From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B8E67158089 for ; Fri, 13 Oct 2023 17:22:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 081562BC013; Fri, 13 Oct 2023 17:22:46 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E1FD82BC013 for ; Fri, 13 Oct 2023 17:22:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F2FA9335C2A for ; Fri, 13 Oct 2023 17:22:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 52D2CED7 for ; Fri, 13 Oct 2023 17:22:43 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1697217668.0af6de09573278a50c60430e67c04a60eb63019d.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/cowsql/, dev-libs/cowsql/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/cowsql/Manifest dev-libs/cowsql/cowsql-0_pre20230921.ebuild dev-libs/cowsql/files/dqlite-1.12.0-disable-werror.patch dev-libs/cowsql/metadata.xml X-VCS-Directories: dev-libs/cowsql/files/ dev-libs/cowsql/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 0af6de09573278a50c60430e67c04a60eb63019d X-VCS-Branch: master Date: Fri, 13 Oct 2023 17:22:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6e3a5dba-71d0-47c9-979d-bb55f93e94cd X-Archives-Hash: 3166f9577d9c5b9b986ed775f4bb2ff7 commit: 0af6de09573278a50c60430e67c04a60eb63019d Author: Joonas Niilola gentoo org> AuthorDate: Tue Oct 10 13:07:35 2023 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Fri Oct 13 17:21:08 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0af6de09 dev-libs/cowsql: new package, add 0_pre20230921 - dependency of app-containers/incus. Signed-off-by: Joonas Niilola gentoo.org> dev-libs/cowsql/Manifest | 1 + dev-libs/cowsql/cowsql-0_pre20230921.ebuild | 53 ++++++++++++++++++++++ .../files/dqlite-1.12.0-disable-werror.patch | 20 ++++++++ dev-libs/cowsql/metadata.xml | 25 ++++++++++ 4 files changed, 99 insertions(+) diff --git a/dev-libs/cowsql/Manifest b/dev-libs/cowsql/Manifest new file mode 100644 index 000000000000..884fb88867fc --- /dev/null +++ b/dev-libs/cowsql/Manifest @@ -0,0 +1 @@ +DIST cowsql-0_pre20230921.tar.gz 364458 BLAKE2B 4d4a6126a0a9059402c6591aeada96005964566e41a6ad0ce3b47c07d63ddf626b1d279e7847eb4677d44fea82a5b425fd8d5569d0b9545d37d4d903db3a6d0b SHA512 7297c6149287fe96fded43689f081b5b59b294e8b73067587a8255bde41671744a1b3ac541028565eaefd61d72195172ab82bd1f0ddcd6e8bad48af9db8db320 diff --git a/dev-libs/cowsql/cowsql-0_pre20230921.ebuild b/dev-libs/cowsql/cowsql-0_pre20230921.ebuild new file mode 100644 index 000000000000..86b0c6f52fff --- /dev/null +++ b/dev-libs/cowsql/cowsql-0_pre20230921.ebuild @@ -0,0 +1,53 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +MY_COMMIT="a1d49d0d3e40b32ba655fffe14b7669c2aa1bcec" + +DESCRIPTION="Embeddable, replicated and fault tolerant SQL engine (fork of dqlite)" +HOMEPAGE="https://cowsql.dev/ https://github.com/cowsql/cowsql" +SRC_URI="https://github.com/cowsql/cowsql/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3-with-linking-exception" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="dev-db/sqlite:3 + dev-libs/libuv:= + >=dev-libs/raft-0.17.1:=" +DEPEND="${RDEPEND} + test? ( dev-libs/raft[lz4,test] )" +BDEPEND="virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/dqlite-1.12.0-disable-werror.patch ) + +S="${WORKDIR}/cowsql-${MY_COMMIT}" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-backtrace + --disable-debug + --disable-sanitize + --disable-static + + # Will build a bundled libsqlite3.so. + --enable-build-sqlite=no + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +} diff --git a/dev-libs/cowsql/files/dqlite-1.12.0-disable-werror.patch b/dev-libs/cowsql/files/dqlite-1.12.0-disable-werror.patch new file mode 100644 index 000000000000..9c92324688d6 --- /dev/null +++ b/dev-libs/cowsql/files/dqlite-1.12.0-disable-werror.patch @@ -0,0 +1,20 @@ +diff -Naur a/configure.ac b/configure.ac +--- a/configure.ac 2022-11-18 16:44:34.000000000 +0200 ++++ b/configure.ac 2022-11-19 09:21:24.157589426 +0200 +@@ -3,7 +3,7 @@ + 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_PROG_CC_STDC +@@ -82,7 +82,6 @@ + -Wdate-time \ + -Wnested-externs \ + -Wconversion \ +- -Werror \ + ]) + # To enable: + # diff --git a/dev-libs/cowsql/metadata.xml b/dev-libs/cowsql/metadata.xml new file mode 100644 index 000000000000..25c078695e9c --- /dev/null +++ b/dev-libs/cowsql/metadata.xml @@ -0,0 +1,25 @@ + + + + + juippis@gentoo.org + Joonas Niilola + + + virtualization@gentoo.org + Gentoo Virtualization Project + + + cowsql is a C library that implements an embeddable and replicated SQL + database engine with high-availability and automatic failover. + + Cowsql is a fork from dqlite. + The acronym "dqlite" stands for "distributed SQLite", meaning that dqlite + extends SQLite with a network protocol that can connect together various + instances of your application and have them act as a highly-available + cluster, with no dependency on external databases. + + + cowsql/cowsql + +