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 BD45515827B for ; Sat, 23 Aug 2025 08:38:52 +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 5905C340C7B for ; Sat, 23 Aug 2025 08:38:52 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 4BB4C1102F8; Sat, 23 Aug 2025 08:38:51 +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 417711102F8 for ; Sat, 23 Aug 2025 08:38:51 +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 E1F41340DDE for ; Sat, 23 Aug 2025 08:38:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 57B133434 for ; Sat, 23 Aug 2025 08:38:49 +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: <1755938121.757a3cd194bb063b840231b9ac4f8247e0e25604.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libbpf/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libbpf/Manifest dev-libs/libbpf/libbpf-1.6.2.ebuild X-VCS-Directories: dev-libs/libbpf/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 757a3cd194bb063b840231b9ac4f8247e0e25604 X-VCS-Branch: master Date: Sat, 23 Aug 2025 08:38:49 +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: c54d3430-393a-4405-a3e9-61e12b992702 X-Archives-Hash: 2587c4b20b521c5278561f659173df3f commit: 757a3cd194bb063b840231b9ac4f8247e0e25604 Author: Holger Hoffstätte applied-asynchrony com> AuthorDate: Fri Aug 22 09:06:18 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sat Aug 23 08:35:21 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=757a3cd1 dev-libs/libbpf: add 1.6.2 Signed-off-by: Holger Hoffstätte applied-asynchrony.com> Part-of: https://github.com/gentoo/gentoo/pull/43519 Signed-off-by: Sam James gentoo.org> dev-libs/libbpf/Manifest | 1 + dev-libs/libbpf/libbpf-1.6.2.ebuild | 68 +++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/dev-libs/libbpf/Manifest b/dev-libs/libbpf/Manifest index 90dfe89b31fa..bcbd7acfdd4c 100644 --- a/dev-libs/libbpf/Manifest +++ b/dev-libs/libbpf/Manifest @@ -1,2 +1,3 @@ DIST libbpf-1.5.1.tar.gz 1036566 BLAKE2B e7ae61ce536d17d6f137c0d095e4fe32995ff717dc9ee9fb2f9fff1dc36cb37d4645a81af363cb66264548eecccabc586bbecfc6db37547aba15e6fc152ceaf8 SHA512 d24c4ef9c0b09a1252320bde54270aedd41211f4359c72a02ee4960b63782a6e8f3de3e3a535720ed468a491397860154f9d1ffc312755f9595a44d22ea23f3b DIST libbpf-1.6.1.tar.gz 1045428 BLAKE2B c1ce19b7dc0405639542422092e4f0acb383a992ed5d242deea4412f772a6db25eccfbdcbbbf84fa98282cda7f224a9a2c3ac16adebf018359f772f73f5fd7c2 SHA512 8089f6aad10507eacaccf08b1521b571490a1b0d72f9ea6da141c5e530a6d62d71b30c561774428c6d6dcfb5df7d8470d3107930eb03389c3c4f35a87f530db8 +DIST libbpf-1.6.2.tar.gz 1045487 BLAKE2B 452264a0710a9bb1fb63966ef9d9b8cfe11c8332d6d3c041f91676c87034acb0bba82942d49242728a3f1a0acbaf6f7e13162e0052abaa659f731db647e73370 SHA512 aa7511771858f2a58b283edb94595c986d1e9f25e1d8a439484e2ded85b75f87426d417aa7dd162d680f23f416abcfb195902cc13e48e444b99b6a24a179a9b6 diff --git a/dev-libs/libbpf/libbpf-1.6.2.ebuild b/dev-libs/libbpf/libbpf-1.6.2.ebuild new file mode 100644 index 000000000000..a25a5e1cb807 --- /dev/null +++ b/dev-libs/libbpf/libbpf-1.6.2.ebuild @@ -0,0 +1,68 @@ +# Copyright 2019-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit dot-a flag-o-matic toolchain-funcs + +DESCRIPTION="Stand-alone build of libbpf from the Linux kernel" +HOMEPAGE="https://github.com/libbpf/libbpf" + +if [[ ${PV} =~ [9]{4,} ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/libbpf/libbpf.git" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi +S="${WORKDIR}/${P}/src" + +LICENSE="GPL-2 LGPL-2.1 BSD-2" +SLOT="0/$(ver_cut 1-2)" +IUSE="static-libs" + +DEPEND=" + sys-kernel/linux-headers + virtual/libelf +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + virtual/pkgconfig +" + +DOCS=( + ../{README,SYNC}.md +) + +PATCHES=( + "${FILESDIR}"/libbpf-9999-paths.patch +) + +src_configure() { + append-cflags -fPIC + tc-export CC AR PKG_CONFIG + use static-libs && lto-guarantee-fat + export LIBSUBDIR="$(get_libdir)" + export PREFIX="${EPREFIX}/usr" + export V=1 +} + +src_install() { + emake \ + DESTDIR="${D}" \ + LIBSUBDIR="${LIBSUBDIR}" \ + install install_uapi_headers + + if ! use static-libs; then + find "${ED}" -name '*.a' -delete || die + fi + + strip-lto-bytecode + + dodoc "${DOCS[@]}" + + insinto /usr/$(get_libdir)/pkgconfig + doins ${PN}.pc +}