summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Hoffstätte <holger@applied-asynchrony.com>2024-11-11 17:43:58 +0100
committerSam James <sam@gentoo.org>2024-11-11 22:24:10 +0000
commit69c52b46d66944913cb4f024c4daec65a69dcbee (patch)
tree78b73fd837d1718296a11b7e964c883abb638b07 /dev-libs
parentapp-editors/emacs: Backport bug-reference fix from Emacs 29 (diff)
downloadgentoo-69c52b46d66944913cb4f024c4daec65a69dcbee.tar.gz
gentoo-69c52b46d66944913cb4f024c4daec65a69dcbee.tar.bz2
gentoo-69c52b46d66944913cb4f024c4daec65a69dcbee.zip
dev-libs/libbpf: add 1.5.0
No changes, simple bump. Required for next version of bpftrace. Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libbpf/Manifest1
-rw-r--r--dev-libs/libbpf/libbpf-1.5.0.ebuild65
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-libs/libbpf/Manifest b/dev-libs/libbpf/Manifest
index 04946922acc3..4584e7f62310 100644
--- a/dev-libs/libbpf/Manifest
+++ b/dev-libs/libbpf/Manifest
@@ -2,3 +2,4 @@ DIST libbpf-0.8.1.tar.gz 942702 BLAKE2B 084be7d4258500fa894560ed2e52821addcc5d15
DIST libbpf-1.3.0.tar.gz 999282 BLAKE2B 5ee0a45cd06be482c9523ec2a9bb26cf12b89df23f515b037badda868770069d5ffb751c011222b86b1d43034a1cdd537cb263883ed0645641548adc9c9896eb SHA512 59990189538e47765542e9ed6e88bc78c9d29bc077b5666bb1303cf15579c90b3d35a0d631b9bbd4bff2708243dc91d901bd68c119fb74dfd10a3e1066aa9acc
DIST libbpf-1.3.2.tar.gz 999726 BLAKE2B 1e8bf6275b5542acebd021c1594f8b069e786b091099111bfa01efbc9975e014c3cd5fac680ffa6467cacf293890449cd857b6127a857711d42b7f8326b7d965 SHA512 0817c144ecdc9b02866e8d70fd87b103fc4909430417388930ccf9b6f8e9abef0ae2783bfd5a85830dd909459087642e987d2627f9d0f571f2279c64a29fc791
DIST libbpf-1.4.5.tar.gz 1016457 BLAKE2B 4aa57b67a184938cfb9e24afced63c816715a1f38f1446320bb7c9b59ca446fdd5addda63b05c880499df9ed7820e02764c5299c7609164cf22bcd5512467a6d SHA512 c5ed459e89a8897ef7c892723c61efb2f2fdb0e7bea63eaff1c9936d368d2cc9e63b8c093207eef0df3109c021156c52ddb570757f69c54e713909e866dbb2f5
+DIST libbpf-1.5.0.tar.gz 1036613 BLAKE2B fd9bbf7689632c6f3fc18705bf1cfb5ba8abca632f6da1264692f0b6ff0e5887fb88697dd4418cc9a451df3421015f4c8de5162c1b8a40594af050dca3442669 SHA512 0cc25addcf5fcee0537d598037feab4bc73a513e6025d8f559bed58fe8850a10fcfeefd1a9dafc5e0bac6202d445944b12811cb7254b9b3be4dd3d2cc1e9419b
diff --git a/dev-libs/libbpf/libbpf-1.5.0.ebuild b/dev-libs/libbpf/libbpf-1.5.0.ebuild
new file mode 100644
index 000000000000..9ff1eb278ac1
--- /dev/null
+++ b/dev-libs/libbpf/libbpf-1.5.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2019-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit 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 ${PV})"
+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
+ 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
+
+ dodoc "${DOCS[@]}"
+
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${PN}.pc
+}