From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 finch.gentoo.org (Postfix) with ESMTPS id 8A02D15808A for ; Mon, 04 Aug 2025 18:53:38 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 76D80340BB4 for ; Mon, 04 Aug 2025 18:53:38 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 61C2611036D; Mon, 04 Aug 2025 18:53:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 554FD11036D for ; Mon, 04 Aug 2025 18:53:37 +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 0D2D333EB78 for ; Mon, 04 Aug 2025 18:53:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6793E3186 for ; Mon, 04 Aug 2025 18:53:35 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1754333546.976f6b50303605158f8548b8cbf6fac4a658d820.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libcap/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/libcap/libcap-2.71.ebuild sys-libs/libcap/libcap-2.76.ebuild sys-libs/libcap/libcap-9999.ebuild X-VCS-Directories: sys-libs/libcap/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 976f6b50303605158f8548b8cbf6fac4a658d820 X-VCS-Branch: master Date: Mon, 04 Aug 2025 18:53:35 +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: 7deda738-8c3d-4bbe-9059-dfd2e1246cb6 X-Archives-Hash: 27bc729d26d07f85c3a3a73b8b04f355 commit: 976f6b50303605158f8548b8cbf6fac4a658d820 Author: Alfred Wingate protonmail com> AuthorDate: Mon Aug 4 18:23:45 2025 +0000 Commit: Sam James gentoo org> CommitDate: Mon Aug 4 18:52:26 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=976f6b50 sys-libs/libcap: use dot-a.eclass for LTO Signed-off-by: Alfred Wingate protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43326 Closes: https://github.com/gentoo/gentoo/pull/43326 Signed-off-by: Sam James gentoo.org> sys-libs/libcap/libcap-2.71.ebuild | 7 +++++-- sys-libs/libcap/libcap-2.76.ebuild | 7 +++++-- sys-libs/libcap/libcap-9999.ebuild | 9 ++++++--- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/sys-libs/libcap/libcap-2.71.ebuild b/sys-libs/libcap/libcap-2.71.ebuild index bdff2e8cbccd..b83ad80003d1 100644 --- a/sys-libs/libcap/libcap-2.71.ebuild +++ b/sys-libs/libcap/libcap-2.71.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit multilib-minimal toolchain-funcs pam +inherit dot-a multilib-minimal toolchain-funcs pam if [[ ${PV} == *9999 ]]; then inherit git-r3 @@ -59,6 +59,7 @@ run_emake() { } src_configure() { + use static-libs && lto-guarantee-fat tc-export_build_env BUILD_CC multilib-minimal_src_configure } @@ -75,7 +76,9 @@ multilib_src_install() { # no configure, needs explicit install line #444724#c3 run_emake DESTDIR="${D}" install - if ! use static-libs ; then + if use static-libs ; then + strip-lto-bytecode + else rm "${ED}"/usr/$(get_libdir)/lib{cap,psx}.a || die fi diff --git a/sys-libs/libcap/libcap-2.76.ebuild b/sys-libs/libcap/libcap-2.76.ebuild index bdff2e8cbccd..b83ad80003d1 100644 --- a/sys-libs/libcap/libcap-2.76.ebuild +++ b/sys-libs/libcap/libcap-2.76.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit multilib-minimal toolchain-funcs pam +inherit dot-a multilib-minimal toolchain-funcs pam if [[ ${PV} == *9999 ]]; then inherit git-r3 @@ -59,6 +59,7 @@ run_emake() { } src_configure() { + use static-libs && lto-guarantee-fat tc-export_build_env BUILD_CC multilib-minimal_src_configure } @@ -75,7 +76,9 @@ multilib_src_install() { # no configure, needs explicit install line #444724#c3 run_emake DESTDIR="${D}" install - if ! use static-libs ; then + if use static-libs ; then + strip-lto-bytecode + else rm "${ED}"/usr/$(get_libdir)/lib{cap,psx}.a || die fi diff --git a/sys-libs/libcap/libcap-9999.ebuild b/sys-libs/libcap/libcap-9999.ebuild index b81da91b6121..aeb560184a59 100644 --- a/sys-libs/libcap/libcap-9999.ebuild +++ b/sys-libs/libcap/libcap-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit multilib-minimal toolchain-funcs pam +inherit dot-a multilib-minimal toolchain-funcs pam if [[ ${PV} == *9999 ]]; then inherit git-r3 @@ -59,6 +59,7 @@ run_emake() { } src_configure() { + use static-libs && lto-guarantee-fat tc-export_build_env BUILD_CC multilib-minimal_src_configure } @@ -75,7 +76,9 @@ multilib_src_install() { # no configure, needs explicit install line #444724#c3 run_emake DESTDIR="${D}" install - if ! use static-libs ; then + if use static-libs ; then + strip-lto-bytecode + else rm "${ED}"/usr/$(get_libdir)/lib{cap,psx}.a || die fi