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 B2A7A1584AD for ; Tue, 06 May 2025 18:11:11 +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 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 9DE4D343196 for ; Tue, 06 May 2025 18:11:11 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 0C61E1103C1; Tue, 06 May 2025 18:11:05 +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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 023A31103C0 for ; Tue, 06 May 2025 18:11:04 +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 A544033BE00 for ; Tue, 06 May 2025 18:11:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 11FED27F1 for ; Tue, 06 May 2025 18:11:03 +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: <1746555010.0dcca841055773992b4dd38b974e29d657e50b78.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libbpf/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libbpf/libbpf-1.5.0.ebuild dev-libs/libbpf/libbpf-9999.ebuild X-VCS-Directories: dev-libs/libbpf/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0dcca841055773992b4dd38b974e29d657e50b78 X-VCS-Branch: master Date: Tue, 06 May 2025 18:11:03 +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: 2a228cd0-25fd-48fa-97d1-b64a4a7381cd X-Archives-Hash: 681649b5fba5ca568077364a8ecfc0a7 commit: 0dcca841055773992b4dd38b974e29d657e50b78 Author: Sam James gentoo org> AuthorDate: Tue May 6 18:10:10 2025 +0000 Commit: Sam James gentoo org> CommitDate: Tue May 6 18:10:10 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dcca841 dev-libs/libbpf: use dot-a.eclass ... to avoid installing broken static libraries w/ LTO. Signed-off-by: Sam James gentoo.org> dev-libs/libbpf/libbpf-1.5.0.ebuild | 7 +++++-- dev-libs/libbpf/libbpf-9999.ebuild | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dev-libs/libbpf/libbpf-1.5.0.ebuild b/dev-libs/libbpf/libbpf-1.5.0.ebuild index b481220c5694..4d027f75b834 100644 --- a/dev-libs/libbpf/libbpf-1.5.0.ebuild +++ b/dev-libs/libbpf/libbpf-1.5.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit flag-o-matic toolchain-funcs +inherit dot-a flag-o-matic toolchain-funcs DESCRIPTION="Stand-alone build of libbpf from the Linux kernel" HOMEPAGE="https://github.com/libbpf/libbpf" @@ -18,7 +18,7 @@ fi S="${WORKDIR}/${P}/src" LICENSE="GPL-2 LGPL-2.1 BSD-2" -SLOT="0/$(ver_cut 1-2 ${PV})" +SLOT="0/$(ver_cut 1-2)" IUSE="static-libs" DEPEND=" @@ -43,6 +43,7 @@ PATCHES=( src_configure() { append-cflags -fPIC tc-export CC AR PKG_CONFIG + lto-guarantee-fat export LIBSUBDIR="$(get_libdir)" export PREFIX="${EPREFIX}/usr" export V=1 @@ -58,6 +59,8 @@ src_install() { find "${ED}" -name '*.a' -delete || die fi + strip-lto-bytecode + dodoc "${DOCS[@]}" insinto /usr/$(get_libdir)/pkgconfig diff --git a/dev-libs/libbpf/libbpf-9999.ebuild b/dev-libs/libbpf/libbpf-9999.ebuild index dfd5c5f9b4f1..fde463e6bc5d 100644 --- a/dev-libs/libbpf/libbpf-9999.ebuild +++ b/dev-libs/libbpf/libbpf-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 2019-2024 Gentoo Authors +# Copyright 2019-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit flag-o-matic toolchain-funcs +inherit dot-a flag-o-matic toolchain-funcs DESCRIPTION="Stand-alone build of libbpf from the Linux kernel" HOMEPAGE="https://github.com/libbpf/libbpf" @@ -43,6 +43,7 @@ PATCHES=( src_configure() { append-cflags -fPIC tc-export CC AR PKG_CONFIG + lto-guarantee-fat export LIBSUBDIR="$(get_libdir)" export PREFIX="${EPREFIX}/usr" export V=1 @@ -58,6 +59,8 @@ src_install() { find "${ED}" -name '*.a' -delete || die fi + strip-lto-bytecode + dodoc "${DOCS[@]}" insinto /usr/$(get_libdir)/pkgconfig