From 248263f955745108c9ff92a0e70e7c2a1aae74ff Mon Sep 17 00:00:00 2001 From: Cameron Nemo Date: Wed, 14 Dec 2022 15:47:19 -0800 Subject: [PATCH] dqlite: update to 1.13.0 --- srcpkgs/dqlite/patches/musl.patch | 31 +++++++++++++++++++++++++++++++ srcpkgs/dqlite/template | 6 +++--- 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/dqlite/patches/musl.patch diff --git a/srcpkgs/dqlite/patches/musl.patch b/srcpkgs/dqlite/patches/musl.patch new file mode 100644 index 00000000000..ab6a0395494 --- /dev/null +++ b/srcpkgs/dqlite/patches/musl.patch @@ -0,0 +1,31 @@ +commit dcc017a506a5d616d1ff511cfc590a7255f28de1 +Author: Cameron Nemo +Date: Wed Dec 14 15:41:15 2022 -0800 + + vfs: fix include on musl + + On musl, this fails to compile due to -Werror=cpp: + + CC src/vfs.lo + In file included from src/vfs.c:6: + /usr/include/sys/fcntl.h:1:2: error: #warning redirecting incorrect #include to [-Werror=cpp] + 1 | #warning redirecting incorrect #include to + | ^~~~~~~ + cc1: all warnings being treated as errors + make: *** [Makefile:1314: src/vfs.lo] Error 1 + + Signed-off-by: Cameron Nemo + +diff --git a/src/vfs.c b/src/vfs.c +index 03df980..1760c62 100644 +--- a/src/vfs.c ++++ b/src/vfs.c +@@ -3,7 +3,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include diff --git a/srcpkgs/dqlite/template b/srcpkgs/dqlite/template index f03c26efee5..d6f1ed50506 100644 --- a/srcpkgs/dqlite/template +++ b/srcpkgs/dqlite/template @@ -1,6 +1,6 @@ # Template file for 'dqlite' pkgname=dqlite -version=1.11.1 +version=1.13.0 revision=1 build_style=gnu-configure hostmakedepends="pkg-config automake libtool" @@ -9,8 +9,8 @@ short_desc="Distributed SQLite database using the Raft algorithm" maintainer="Cameron Nemo " license="custom:LGPL-3.0-only-linking-exception" homepage="https://github.com/canonical/dqlite" -distfiles="${homepage}/archive/v${version}.tar.gz" -checksum=f900b81b7ba66ba654c734f7fc9f01caf462408f3751f5357019db0c18d438b5 +distfiles="https://github.com/canonical/dqlite/archive/v${version}.tar.gz" +checksum=14334a72389322d047576697f112da4cd6e1a5257d652d6162f195f2855fcd12 pre_configure() { autoreconf -i