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 C3859158064 for ; Fri, 3 May 2024 21:06:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6042E2A0C; Fri, 3 May 2024 21:06:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AFFFCE2A0C for ; Fri, 3 May 2024 21:06:34 +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 EE960343030 for ; Fri, 3 May 2024 21:06:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0786693E for ; Fri, 3 May 2024 21:06:32 +0000 (UTC) From: "Arsen Arsenović" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arsen Arsenović" Message-ID: <1714770304.360b1b820c825c920d52c32419f4f753059e8d2f.arsen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libnbd/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/libnbd/libnbd-1.18.1-r1.ebuild X-VCS-Directories: sys-libs/libnbd/ X-VCS-Committer: arsen X-VCS-Committer-Name: Arsen Arsenović X-VCS-Revision: 360b1b820c825c920d52c32419f4f753059e8d2f X-VCS-Branch: master Date: Fri, 3 May 2024 21:06:32 +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: 658fea99-c837-4278-9abc-aaca2847c130 X-Archives-Hash: ebe29cbfe25083197fcd187f5ac779cb commit: 360b1b820c825c920d52c32419f4f753059e8d2f Author: Arsen Arsenović gentoo org> AuthorDate: Tue Apr 30 09:36:28 2024 +0000 Commit: Arsen Arsenović gentoo org> CommitDate: Fri May 3 21:05:04 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=360b1b82 sys-libs/libnbd: enable py3.12 Closes: https://bugs.gentoo.org/929856 Signed-off-by: Arsen Arsenović gentoo.org> sys-libs/libnbd/libnbd-1.18.1-r1.ebuild | 81 +++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/sys-libs/libnbd/libnbd-1.18.1-r1.ebuild b/sys-libs/libnbd/libnbd-1.18.1-r1.ebuild new file mode 100644 index 000000000000..accecba8e4d2 --- /dev/null +++ b/sys-libs/libnbd/libnbd-1.18.1-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +inherit bash-completion-r1 python-single-r1 + +DESCRIPTION="NBD client library in userspace" +HOMEPAGE="https://gitlab.com/nbdkit/libnbd" +SRC_URI="https://download.libguestfs.org/libnbd/$(ver_cut 1-2)-stable/${P}.tar.gz" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~sparc ~x86" +IUSE="fuse gnutls go ocaml python test" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +RESTRICT="!test? ( test )" + +# libxml2 - URI support +RDEPEND=" + dev-libs/libxml2 + fuse? ( sys-fs/fuse:3 ) + gnutls? ( net-libs/gnutls:= ) + python? ( ${PYTHON_DEPS} ) + go? ( dev-lang/go ) + ocaml? ( >=dev-lang/ocaml-4.03:=[ocamlopt] ) +" +DEPEND=" + ${RDEPEND} + test? ( + sys-block/nbd[gnutls?] + sys-block/nbdkit[gnutls?] + ) +" +BDEPEND="dev-lang/perl" + +src_prepare() { + default + + # Some tests require impossible to provide features, such as fuse. + # These are marked by requires_... in the functions.sh shell + # library. Rather than listing these tests, let's list out the + # impossible to support features and make them skip. + cat <<-EOF >> tests/functions.sh.in || die + requires_fuse () + { + requires false + } + EOF + + # Broken under sandbox. + cat <<-EOF > lib/test-fork-safe-execvpe.sh || die + #!/bin/sh + : + EOF +} + +src_configure() { + local myeconfargs=( + $(use_enable fuse) + $(use_enable go golang) + $(use_enable ocaml) + $(use_enable python) + $(use_with gnutls) + --disable-rust # TODO(arsen): security bump takes priority + --with-libxml2 + ) + + export bashcompdir="$(get_bashcompdir)" + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + find "${ED}" -name '*.la' -delete || die + use python && python_optimize +}