dev-libs/libbpf: clean up old

1.6.1 has an ABI bug which is fixed in 1.6.2.

Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/43519
Closes: https://github.com/gentoo/gentoo/pull/43519
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Holger Hoffstätte
2025-08-22 11:06:52 +02:00
committed by Sam James
parent 0d319bed33
commit f179894814
2 changed files with 0 additions and 69 deletions

View File

@@ -1,3 +1,2 @@
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

View File

@@ -1,68 +0,0 @@
# 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
}