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 7235C15800C for ; Thu, 29 Dec 2022 21:31:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 97E86E0961; Thu, 29 Dec 2022 21:31:19 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 82FFAE0961 for ; Thu, 29 Dec 2022 21:31:19 +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 A510A335D83 for ; Thu, 29 Dec 2022 21:31:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E2A5A7F1 for ; Thu, 29 Dec 2022 21:31:16 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1672349456.a3b99a29c763bbef6a741b5a364dca74ac8ecd43.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libbsd/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libbsd/libbsd-0.11.7-r1.ebuild X-VCS-Directories: dev-libs/libbsd/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: a3b99a29c763bbef6a741b5a364dca74ac8ecd43 X-VCS-Branch: master Date: Thu, 29 Dec 2022 21:31:16 +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: 2d7619de-b6d6-466b-903c-9dd69dda402f X-Archives-Hash: d556540d42ba186d26d0e1c476f06cca commit: a3b99a29c763bbef6a741b5a364dca74ac8ecd43 Author: James Le Cuirot gentoo org> AuthorDate: Tue Dec 27 14:13:51 2022 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Thu Dec 29 21:30:56 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3b99a29 dev-libs/libbsd: Force a libbsd.so symlink instead of unnecessary ld script The path in the libbsd.so ld script would need the prefix stripped, but we don't need it for applying --as-needed anyway, so force a symlink instead. Signed-off-by: James Le Cuirot gentoo.org> dev-libs/libbsd/libbsd-0.11.7-r1.ebuild | 44 +++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/dev-libs/libbsd/libbsd-0.11.7-r1.ebuild b/dev-libs/libbsd/libbsd-0.11.7-r1.ebuild new file mode 100644 index 000000000000..d8b229e11d3e --- /dev/null +++ b/dev-libs/libbsd/libbsd-0.11.7-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/guillemjover.asc +inherit multilib-minimal verify-sig + +DESCRIPTION="Library to provide useful functions commonly found on BSD systems" +HOMEPAGE="https://libbsd.freedesktop.org/wiki/ https://gitlab.freedesktop.org/libbsd/libbsd" +SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz" +SRC_URI+=" verify-sig? ( https://${PN}.freedesktop.org/releases/${P}.tar.xz.asc )" + +LICENSE="BSD BSD-2 BSD-4 ISC" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="static-libs" + +RDEPEND="app-crypt/libmd[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-3.17 +" +BDEPEND="verify-sig? ( sec-keys/openpgp-keys-guillemjover )" + +src_prepare() { + default + + # The path in the libbsd.so ld script would need the prefix stripped, but we + # don't need it for applying --as-needed anyway, so force a symlink instead. + sed -ri "s:(need_transparent_libmd)=yes:\1=no:g" configure || die +} + +multilib_src_configure() { + # The build system will install libbsd-ctor.a despite USE="-static-libs" + # which is correct, see: + # https://gitlab.freedesktop.org/libbsd/libbsd/commit/c5b959028734ca2281250c85773d9b5e1d259bc8 + ECONF_SOURCE="${S}" econf $(use_enable static-libs static) +} + +multilib_src_install() { + emake DESTDIR="${D}" install + + find "${ED}" -type f -name "*.la" -delete || die +}