dev-libs/dqlite: add 1.18.0

Closes: https://github.com/gentoo/gentoo/pull/39527
Signed-off-by: Brahmajit Das <listout@listout.xyz>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
Brahmajit Das
2025-03-28 03:54:49 +05:30
committed by Joonas Niilola
parent cc6e6dd15d
commit ad65bb6ca0
3 changed files with 75 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST dqlite-1.16.4.tar.gz 499174 BLAKE2B 3a5f28dd352ada1d0866d3563c450aad10413118a30fc9369aaadc5f46acefaa8f28e21118e71ef3eb801c51c9946664882d82a15eff71eefbbd51f6fd68c4b3 SHA512 164a63ce9224b9a4f10d2312ac03e98ccdec8c6c4fe22e6fc595dc792f9a7c75317cf8e839eb31a8db2501a094d67053300532a92bca26c86ef5097dd3c06a2b
DIST dqlite-1.16.7.tar.gz 528738 BLAKE2B 868e2317df85eb6f3e866851c0bab4b0b5fbc4eb80d687bb687349e398e93ce9d5bab79aa3fdf62aa0bfd9f9938feaa77d477ff977681bc6a6172dd164deb2e9 SHA512 ee63ac49355e3be1e70608e6f20863d365ab7983e704134b6c881312cba16f7cb137835492f6869f216795d166c0e54880aca6ff29000633350fe3835564029a
DIST dqlite-1.18.0.tar.gz 540402 BLAKE2B ac97b3366b5d5aa279ffdab3147786df81ffee16fa27c77d3cf80c74db2238b6ad158c8a01dce1f99d850427b7b1a7113cedd69d5b18e4182361c2e32cf6b777 SHA512 b248cf8f786c083e23fee3172393fe8d898c75a1949bb280ca6e054a1592fc650384f8f4a3733389584d10cfab6783cfce96bf6969e7d1090b00a6e0dae19971

View File

@@ -0,0 +1,55 @@
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Embeddable, replicated and fault tolerant SQL engine"
HOMEPAGE="https://dqlite.io/ https://github.com/canonical/dqlite"
SRC_URI="https://github.com/canonical/dqlite/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-3-with-linking-exception"
SLOT="0/1.18.0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="+lz4 test"
RESTRICT="!test? ( test )"
RDEPEND="dev-db/sqlite:3
dev-libs/libuv:=
lz4? ( app-arch/lz4:= )"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/dqlite-1.18.0-disable-werror.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
local myeconfargs=(
--disable-backtrace
--disable-debug
--disable-sanitize
--disable-static
# Linking to a separately-built libraft is no longer supported.
--enable-build-raft=yes
# Will build a bundled libsqlite3.so.
--enable-build-sqlite=no
$(use_with lz4)
)
econf "${myeconfargs[@]}"
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}

View File

@@ -0,0 +1,19 @@
--- a/configure.ac
+++ b/configure.ac
@@ -3,7 +3,7 @@ AC_INIT([libdqlite], [1.18.0], [https://github.com/canonical/dqlite])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([ac])
-AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror -Wno-portability foreign])
+AM_INIT_AUTOMAKE([subdir-objects -Wall -Wno-portability foreign])
AM_SILENT_RULES([yes])
AC_SUBST(AM_CFLAGS)
@@ -114,7 +114,6 @@ CC_CHECK_FLAGS_APPEND([AM_CFLAGS],[CFLAGS],[ \
-Wnested-externs \
-Wconversion \
-Wno-format-nonliteral \
- -Werror \
])
# To enable:
#