From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] dqlite: update to 0.9.1
Date: Mon, 22 Jul 2019 07:07:20 +0200 [thread overview]
Message-ID: <20190722050720.aZVU7vFkC358FbtjQSv2NiYS8LPuvPu-UxGnZWkvscA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-13163@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 320 bytes --]
There is an updated pull request by julio641742 against master on the void-packages repository
https://github.com/julio641742/void-packages dqlite
https://github.com/void-linux/void-packages/pull/13163
dqlite: update to 0.9.1
A patch file from https://github.com/void-linux/void-packages/pull/13163.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dqlite-13163.patch --]
[-- Type: application/text/x-diff, Size: 8122 bytes --]
From b9b0c427ba54236d56ffe5a236d46d19ee1e57c2 Mon Sep 17 00:00:00 2001
From: Julio Galvan <julio@epazote.net>
Date: Tue, 16 Jul 2019 16:48:32 -0700
Subject: [PATCH 1/3] New package: libco-1.0.2
---
common/shlibs | 3 +++
srcpkgs/libco-devel | 1 +
srcpkgs/libco/template | 33 +++++++++++++++++++++++++++++++++
3 files changed, 37 insertions(+)
create mode 120000 srcpkgs/libco-devel
create mode 100644 srcpkgs/libco/template
diff --git a/common/shlibs b/common/shlibs
index 2f146bbfa9d..9fdacc43d7c 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3493,3 +3493,6 @@ libkres.so.9 knot-resolver-4.0.0_1
libnsl.so.2 libnsl-1.2.0_1
libbcc.so.0 bcc-0.10.0_1
libbcc_bpf.so.0 bcc-0.10.0_1
+libco.so libco-1.0.1_1
+libco.so libco-1.0.2_1
+libraft.so.0 raft-0.9.2_1
diff --git a/srcpkgs/libco-devel b/srcpkgs/libco-devel
new file mode 120000
index 00000000000..9cbee396adf
--- /dev/null
+++ b/srcpkgs/libco-devel
@@ -0,0 +1 @@
+libco
\ No newline at end of file
diff --git a/srcpkgs/libco/template b/srcpkgs/libco/template
new file mode 100644
index 00000000000..a6b50f4af07
--- /dev/null
+++ b/srcpkgs/libco/template
@@ -0,0 +1,33 @@
+# Template file for 'libco'
+pkgname=libco
+version=1.0.2
+revision=1
+short_desc="Cooperative multithreading library written in C89"
+maintainer="Julio Galvan <julio@epazote.net>"
+license="Public Domain"
+homepage="https://github.com/freeekanayaka/libco"
+distfiles="https://github.com/freeekanayaka/libco/archive/v${version}.tar.gz"
+checksum=8876aa8e61f07b37adb3ad422b369ecf9bf6fad20ce691428c35719ba5f16615
+
+do_build() {
+ make
+}
+
+do_install() {
+ vinstall libco.so 0664 /usr/lib/ libco.so.${version}
+ ln -s libco.so.${version} ${DESTDIR}/usr/lib/libco.so.1
+ ln -s libco.so.${version} ${DESTDIR}/usr/lib/libco.so
+ vinstall libco.pc 0664 /usr/lib/pkgconfig
+ vinstall libco.a 0664 /usr/lib/
+ vinstall libco.h 0664 /usr/include/
+}
+
+libco-devel_package() {
+ depends="libco>=${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/pkgconfig
+ vmove "usr/lib/*.a"
+ }
+}
From 6745bc272b6229cf49e1d7227db044e9ab70de42 Mon Sep 17 00:00:00 2001
From: Julio Galvan <julio@epazote.net>
Date: Tue, 16 Jul 2019 16:59:54 -0700
Subject: [PATCH 2/3] New package: raft-0.9.2
---
srcpkgs/raft-devel | 1 +
srcpkgs/raft/patches/fix-musl.patch | 58 +++++++++++++++++++++++++
srcpkgs/raft/patches/remove-extra.patch | 21 +++++++++
srcpkgs/raft/template | 29 +++++++++++++
4 files changed, 109 insertions(+)
create mode 120000 srcpkgs/raft-devel
create mode 100644 srcpkgs/raft/patches/fix-musl.patch
create mode 100644 srcpkgs/raft/patches/remove-extra.patch
create mode 100644 srcpkgs/raft/template
diff --git a/srcpkgs/raft-devel b/srcpkgs/raft-devel
new file mode 120000
index 00000000000..d96c908578a
--- /dev/null
+++ b/srcpkgs/raft-devel
@@ -0,0 +1 @@
+raft
\ No newline at end of file
diff --git a/srcpkgs/raft/patches/fix-musl.patch b/srcpkgs/raft/patches/fix-musl.patch
new file mode 100644
index 00000000000..2689cb81578
--- /dev/null
+++ b/srcpkgs/raft/patches/fix-musl.patch
@@ -0,0 +1,58 @@
+From dae2c6d6dc4e4a553cef7c8da7a2bb303f37dbb3 Mon Sep 17 00:00:00 2001
+From: Free Ekanayaka <free.ekanayaka@canonical.com>
+Date: Thu, 18 Jul 2019 11:22:35 +0200
+Subject: [PATCH 1/2] Conditionally include error.h
+
+---
+ src/replication.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git src/replication.c src/replication.c
+index f9cb5a8f..6039a694 100644
+--- src/replication.c
++++ src/replication.c
+@@ -3,6 +3,9 @@
+ #include "assert.h"
+ #include "configuration.h"
+ #include "convert.h"
++#ifdef __GLIBC__
++#include "error.h"
++#endif
+ #include "error.h"
+ #include "log.h"
+ #include "logging.h"
+
+From 62b1753f80ac3aed5cdc1029882cf18060d67d3a Mon Sep 17 00:00:00 2001
+From: Free Ekanayaka <free.ekanayaka@canonical.com>
+Date: Thu, 18 Jul 2019 11:22:45 +0200
+Subject: [PATCH 2/2] Run clang-format
+
+---
+ src/replication.c | 7 +++----
+ 1 file changed, 3 insertions(+), 4 deletions(-)
+
+diff --git src/replication.c src/replication.c
+index 6039a694..052fd652 100644
+--- src/replication.c
++++ src/replication.c
+@@ -236,8 +236,8 @@ static void sendSnapshotGetCb(struct raft_io_snapshot_get *get,
+ req->snapshot = snapshot;
+ req->send.data = req;
+
+- debugf(r, "sending snapshot with last index %ld to %ld",
+- snapshot->index, server->id);
++ debugf(r, "sending snapshot with last index %ld to %ld", snapshot->index,
++ server->id);
+
+ rv = r->io->send(r->io, &req->send, &message, sendInstallSnapshotCb);
+ if (rv != 0) {
+@@ -378,8 +378,7 @@ static int triggerAll(struct raft *r)
+ rv = replicationProgress(r, i);
+ if (rv != 0 && rv != RAFT_NOCONNECTION) {
+ /* This is not a critical failure, let's just log it. */
+- debugf(r,
+- "failed to send append entries to server %ld: %s (%d)",
++ debugf(r, "failed to send append entries to server %ld: %s (%d)",
+ server->id, raft_strerror(rv), rv);
+ }
+ }
diff --git a/srcpkgs/raft/patches/remove-extra.patch b/srcpkgs/raft/patches/remove-extra.patch
new file mode 100644
index 00000000000..a84464c14a0
--- /dev/null
+++ b/srcpkgs/raft/patches/remove-extra.patch
@@ -0,0 +1,21 @@
+From b9e6f25ca3eff14fac1fd27491011a20272fb18c Mon Sep 17 00:00:00 2001
+From: Julio Galvan <julio@epazote.net>
+Date: Sun, 21 Jul 2019 21:59:01 -0700
+Subject: [PATCH] remove extra header
+
+---
+ src/replication.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git src/replication.c src/replication.c
+index 052fd652..53bddd20 100644
+--- src/replication.c
++++ src/replication.c
+@@ -6,7 +6,6 @@
+ #ifdef __GLIBC__
+ #include "error.h"
+ #endif
+-#include "error.h"
+ #include "log.h"
+ #include "logging.h"
+ #include "membership.h"
diff --git a/srcpkgs/raft/template b/srcpkgs/raft/template
new file mode 100644
index 00000000000..f819e2235e2
--- /dev/null
+++ b/srcpkgs/raft/template
@@ -0,0 +1,29 @@
+# Template file for 'raft'
+pkgname=raft
+version=0.9.2
+revision=1
+build_style=gnu-configure
+configure_args="--enable-example=no"
+hostmakedepends="pkg-config autoconf automake libtool"
+makedepends="libuv-devel"
+short_desc="C implementation of the Raft consensus protocol"
+maintainer="Julio Galvan <julio@epazote.net>"
+license="Apache-2.0"
+homepage="https://github.com/CanonicalLtd/raft"
+distfiles="https://github.com/CanonicalLtd/raft/archive/v${version}.tar.gz"
+checksum=3090b1f44fafad712af5da08358cec3354164dff6036617011198baa351b9e92
+
+pre_configure() {
+ autoreconf -i
+}
+
+raft-devel_package() {
+ depends="raft>=${version}_${revision}"
+ short_desc+=" - development files"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/pkgconfig
+ vmove "usr/lib/*.a"
+ vmove "usr/lib/*.so"
+ }
+}
From 5003e9ebccf47927666b2d4fe6dab00de3cd1d7c Mon Sep 17 00:00:00 2001
From: Julio Galvan <julio@epazote.net>
Date: Tue, 16 Jul 2019 15:39:24 -0700
Subject: [PATCH 3/3] dqlite: update to 0.9.1
---
srcpkgs/dqlite/template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/dqlite/template b/srcpkgs/dqlite/template
index b11c2e93bd9..1818072b1e3 100644
--- a/srcpkgs/dqlite/template
+++ b/srcpkgs/dqlite/template
@@ -1,17 +1,17 @@
# Template file for 'dqlite'
pkgname=dqlite
-version=0.2.6
+version=0.9.1
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config autoconf automake libtool"
-makedepends="libuv-devel sqlite-replication-devel"
+makedepends="libuv-devel sqlite-replication-devel raft-devel libco-devel"
depends="sqlite-replication"
short_desc="Distributed SQLite database using the Raft algorithm"
maintainer="Cameron Nemo <camerontnorman@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/CanonicalLtd/dqlite"
distfiles="${homepage}/archive/v${version}.tar.gz"
-checksum=47d31550d970a12d25101c331896cfb855128c110d912f5da3371062d9ece52b
+checksum=0d3f96343b1a0d5c2b717402c3a9f99b96452439af838cd64f6e07ae6899ef7b
pre_configure() {
autoreconf -i
next prev parent reply other threads:[~2019-07-22 5:07 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-16 22:40 [PR PATCH] " voidlinux-github
2019-07-16 22:58 ` voidlinux-github
2019-07-16 23:00 ` voidlinux-github
2019-07-17 0:02 ` [PR PATCH] [Updated] " voidlinux-github
2019-07-17 0:02 ` voidlinux-github
2019-07-17 0:06 ` voidlinux-github
2019-07-17 15:23 ` voidlinux-github
2019-07-17 22:53 ` [PR PATCH] [Updated] " voidlinux-github
2019-07-17 22:53 ` voidlinux-github
2019-07-17 22:56 ` voidlinux-github
2019-07-17 22:56 ` voidlinux-github
2019-07-17 23:09 ` voidlinux-github
2019-07-17 23:15 ` [PR PATCH] [Updated] " voidlinux-github
2019-07-17 23:15 ` voidlinux-github
2019-07-18 0:00 ` voidlinux-github
2019-07-22 5:07 ` voidlinux-github [this message]
2019-07-22 5:07 ` [PR PATCH] [Updated] " voidlinux-github
2019-07-22 5:08 ` voidlinux-github
2019-07-22 5:08 ` voidlinux-github
2019-07-28 21:10 ` voidlinux-github
2019-07-28 21:11 ` voidlinux-github
2019-09-12 15:09 ` [PR PATCH] [Updated] " voidlinux-github
2019-09-12 15:09 ` voidlinux-github
2019-09-12 15:14 ` [PR PATCH] [Updated] lxd: update to 3.17 voidlinux-github
2019-09-12 15:14 ` voidlinux-github
2019-09-13 20:23 ` voidlinux-github
2019-09-19 13:22 ` [PR PATCH] [Updated] " voidlinux-github
2019-09-19 13:22 ` voidlinux-github
2019-10-17 4:51 ` voidlinux-github
2020-02-12 13:51 ` voidlinux-github
2020-02-12 14:14 ` [PR PATCH] [Closed]: " voidlinux-github
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190722050720.aZVU7vFkC358FbtjQSv2NiYS8LPuvPu-UxGnZWkvscA@z \
--to=voidlinux-github@inbox.vuxu.org \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).