[gentoo-commits] repo/gentoo:master commit in: dev-util/bpf-linker/, dev-util/bpf-linker/files/

2026-02-04 Thread Michał Górny
commit: cddadc4cee9143e4b830f6ecade44a4fa99d9816
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Feb  4 13:29:23 2026 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Feb  4 17:18:04 2026 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cddadc4c

dev-util/bpf-linker: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-util/bpf-linker/Manifest   |   3 -
 dev-util/bpf-linker/bpf-linker-0.9.14-r1.ebuild|  90 -
 dev-util/bpf-linker/bpf-linker-0.9.14.ebuild   |  83 
 .../files/bpf-linker-0.9.14-llvm-21.patch  | 107 -
 .../files/bpf-linker-0.9.14-rust-1.88.patch|  39 
 5 files changed, 322 deletions(-)

diff --git a/dev-util/bpf-linker/Manifest b/dev-util/bpf-linker/Manifest
index 010c8c74877e..7398149be92a 100644
--- a/dev-util/bpf-linker/Manifest
+++ b/dev-util/bpf-linker/Manifest
@@ -1,5 +1,3 @@
-DIST bpf-linker-0.9.14-crates.tar.xz 14190616 BLAKE2B 
5384062cb678ef2ec19401fddb023a30fb9ae02f8e7f656ac82ac1061ba32cbde448baafa27e73938901e7d1a049a9d7eaea8ddfe0e40b96c3004865a108102c
 SHA512 
095674241b50069d62789ce875fe6b3df2351e77f538c4f740a0388b68f6c26e25268c4ef41ca13d53b974c615a12595a82bfcde7a7e287c3e8a00cee44ed60a
-DIST bpf-linker-0.9.14.gh.tar.gz 47526 BLAKE2B 
cb6a9d1fadff1554d9ad69934e3d22ef325f38ea3c97410e1c155e8d88835aaeb485e9c06c6ada3e975881190fe8c50fc0ecdf2921dbc83abd0f7873e1a08001
 SHA512 
0c5e530f8b94dbd4a290a92c11a4a99c4b92c8ee6b6dc6f00c25d5dcb43fa44c7a62d12e8a10edae2078b78cf7141363060b08cb6b98a5026dbaeb60d7c95bf1
 DIST bpf-linker-0.9.15-crates.tar.xz 16330432 BLAKE2B 
b22ecf0efe6a0dbcd76d4468f3ba674851fd41a9a3a2f71cc4f6c2f1cfcbb69043c49ae28fce441cb3972f6a7bcaa7d1aa51f78b3acb3ca67add23573c81de70
 SHA512 
32c172cb84999cbf9eed73bc2988fd805cf6e028349884e0af006e828374ffef3a2d47033501115dfd32641927fd7f679132c3a57c8dc475d709fab91a05b625
 DIST bpf-linker-0.9.15.gh.tar.gz 53754 BLAKE2B 
91554e366b4981a28a74a154258970702d8a259ea8ca3ce48d510e8b87978d8dd438505aec1a53a1c7b4d7c3e48ae3a996b03271f7e10f2dcf328e80188e432a
 SHA512 
8c55eb0d46ca4229a1d2b38a3d9b6dc2e21e3d720a9f7b57e0a1435c895e3829ed370d2d25fec8d5bf41fd75543a6cb493d78f4bddc1d903c831e13b9784
 DIST compiler_builtins-0.1.146.crate 212475 BLAKE2B 
9036a9e643ad310932c7943ce5e41c53029f08e604e8ed0a6255d49cf98ecea832dd19ffd109c34a83873880f1c281dc5991bf3f34b9e04f6e9562d40926fd48
 SHA512 
51db04a4e2b7fbc8a7b7407d57a9c82884f9950f5937cf422d14d4c53bc6b942d90e443857cf0c363b0365202713ecbaea3977e9c1cf534c54b041a1f6efd409
@@ -7,4 +5,3 @@ DIST compiler_builtins-0.1.152.crate 224321 BLAKE2B 
232cbc3afb4de5f9ed401df8dce4
 DIST compiler_builtins-0.1.158.crate 245300 BLAKE2B 
2f0c6281af04eab6d8b2d819e3169ec384beda8b2326a41bfef77fcea24b2fe20d83ed5e2cc0a2c1635dd2f4a4b42fba161a1d6305451e767c8f79c501065d8b
 SHA512 
8b440293d8fb3184b665cddd25dfcc8c65f216dfe5e353db0e867f0346b1aff48e3af82ed3e77aee0ff1a1767e6f35ce348048d3aabc168feb6ab633f19214e5
 DIST compiler_builtins-0.1.160.crate 242364 BLAKE2B 
c85996e22b19e08eb4fb0d679b0b357d60f072ed2611b332d042f6d02d02f5c8fad6bad32baa5c86d5142ddeb79ff939fbb25ed68a9f8134f4a25c6cb961387c
 SHA512 
b8a10cf1b1b42fdc070ba7b3ea4a018c912beb1540b1aef2622302e6ad876b1d488c8ef08b90d2fcab4d32d9c836c0fa552c52c1fe96afc2ad0e1be95c3ef6f6
 DIST compiletest-rs-0c1418d5cd5177ee9d863a5c2f300c0973cfc4f1.gh.tar.gz 61012 
BLAKE2B 
f282dcb1d88021245dcdb03101f37fcb6a3936690716fc1470fdd671985c2757bb92c5f3d3d1e7ed2663529fc89ed587b16c70f644f1097ae039cbbcab96d809
 SHA512 
b7d192e6ab3617170460f2f08fb5a7ff11f0f48735de5d8d3924ffcc3f724d4c60821a7387ca9e37dfa5462645cfd7d0e9f2852da292e733d514822e9ccbaf76
-DIST compiletest-rs-cb121796a041255ae0afcd9c2766bee4ebfd54f0.gh.tar.gz 60800 
BLAKE2B 
30ca17a8420b6dc19e299e7d18a536b480c19bfdc5bc8237107f8ce2d9f009cfe73bda11f9f0cda009f0608d2259a8470e5d9bb00b7aeafbaa85454a725a
 SHA512 
5d5ca47a712dd5e6593e6debba272f35da220ec3411e504d1dcac0162f5dfb209068f1465e7bc7e1ffe9c3a2f6d2cb4e5b00b33d43536e3dcd2b6622d8f69361

diff --git a/dev-util/bpf-linker/bpf-linker-0.9.14-r1.ebuild 
b/dev-util/bpf-linker/bpf-linker-0.9.14-r1.ebuild
deleted file mode 100644
index 91bc378e0207..
--- a/dev-util/bpf-linker/bpf-linker-0.9.14-r1.ebuild
+++ /dev/null
@@ -1,90 +0,0 @@
-# Copyright 2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# Extra crates required at runtime via rustc-build-sysroot crate.
-# Note: versions are locked in 
/usr/lib/rust/*/lib/rustlib/src/rust/library/Cargo.lock.
-CRATES="
-   [email protected]
-   [email protected]
-   [email protected]
-"
-
-# Implied by crates above.
-RUST_MIN_VER=1.86.0
-RUST_MAX_VER=1.88.0
-
-declare -A GIT_CRATES=(
-   
[compiletest_rs]='https://github.com/Manishearth/compiletest-rs;cb121796a041255ae0afcd9c2766bee4ebfd54f0;compiletest-rs-%commit%'
-)
-
-# bpf-linker code specifically requires LLVM 21 right now
-LLVM_COMPAT=( 21 )
-RUST_REQ_USE="llvm_targets

[gentoo-commits] repo/gentoo:master commit in: dev-util/bpf-linker/

2025-10-24 Thread Michał Górny
commit: b65390555d292123bc6b2793cc8fd84f373e58ea
Author: Michal Rostecki  protonmail  com>
AuthorDate: Wed Oct 22 14:37:42 2025 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Oct 24 09:31:57 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6539055

dev-util/bpf-linker: Fix build for libc++

llvm-sys[0] by default tries to link to libstc++ and any alternative
linker needs to be mentioned in the `LLVM_SYS_LIBCPP` environment
variable.

[0] https://crates.io/crates/llvm-sys

Closes: https://bugs.gentoo.org/965011
Signed-off-by: Michal Rostecki  protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44296
Closes: https://github.com/gentoo/gentoo/pull/44296
Signed-off-by: Michał Górny  gentoo.org>

 dev-util/bpf-linker/bpf-linker-0.9.15-r1.ebuild | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dev-util/bpf-linker/bpf-linker-0.9.15-r1.ebuild 
b/dev-util/bpf-linker/bpf-linker-0.9.15-r1.ebuild
index 013ded64afd2..b6916cd4f94b 100644
--- a/dev-util/bpf-linker/bpf-linker-0.9.15-r1.ebuild
+++ b/dev-util/bpf-linker/bpf-linker-0.9.15-r1.ebuild
@@ -15,7 +15,7 @@ declare -A GIT_CRATES=(
 LLVM_COMPAT=( {20..21} )
 RUST_REQ_USE="llvm_targets_BPF(+),rust_sysroots_bpf(-)"
 
-inherit cargo llvm-r2
+inherit cargo llvm-r2 toolchain-funcs
 
 DESCRIPTION="Simple BPF static linker"
 HOMEPAGE="https://github.com/aya-rs/bpf-linker/";
@@ -72,4 +72,8 @@ src_configure() {
cargo_src_configure --no-default-features
 
export "LLVM_SYS_${LLVM_SLOT}1_PREFIX"="$(get_llvm_prefix -d)"
+
+   if [[ $(tc-get-cxx-stdlib) == "libc++" ]]; then
+   export LLVM_SYS_LIBCPP=c++
+   fi
 }



[gentoo-commits] repo/gentoo:master commit in: dev-util/bpf-linker/

2025-10-24 Thread Michał Górny
commit: 2db933d77593bf4cb77cac1109d5b0a459b3a3ab
Author: Michal Rostecki  protonmail  com>
AuthorDate: Wed Oct 22 14:43:07 2025 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Oct 24 09:31:56 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2db933d7

dev-util/bpf-linker: Remove `RUSTC_BOOTSTRAP` environment variable

Since Rust 1.90.0, BPF sysroot is provided as part of dev-lang/rust
ebuild through the `rust_sysroots_bpf` USE flag and we don't build it
on demand anymore.

Signed-off-by: Michal Rostecki  protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44296
Signed-off-by: Michał Górny  gentoo.org>

 dev-util/bpf-linker/bpf-linker-0.9.15-r1.ebuild | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dev-util/bpf-linker/bpf-linker-0.9.15-r1.ebuild 
b/dev-util/bpf-linker/bpf-linker-0.9.15-r1.ebuild
index 90672bce8be2..013ded64afd2 100644
--- a/dev-util/bpf-linker/bpf-linker-0.9.15-r1.ebuild
+++ b/dev-util/bpf-linker/bpf-linker-0.9.15-r1.ebuild
@@ -72,6 +72,4 @@ src_configure() {
cargo_src_configure --no-default-features
 
export "LLVM_SYS_${LLVM_SLOT}1_PREFIX"="$(get_llvm_prefix -d)"
-   # the package requires BPF target that is only available in nightly
-   export RUSTC_BOOTSTRAP=1
 }



[gentoo-commits] repo/gentoo:master commit in: dev-util/bpf-linker/

2025-10-12 Thread Michał Górny
commit: 4f349a040a51de19189e985ee622251b44599068
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Oct 12 14:04:24 2025 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Oct 12 14:14:06 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f349a04

dev-util/bpf-linker: Keyword 0.9.15

It now supports keyworded LLVM versions.

Signed-off-by: Michał Górny  gentoo.org>

 dev-util/bpf-linker/bpf-linker-0.9.15.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-util/bpf-linker/bpf-linker-0.9.15.ebuild 
b/dev-util/bpf-linker/bpf-linker-0.9.15.ebuild
index 14c060ae0a60..476219aff571 100644
--- a/dev-util/bpf-linker/bpf-linker-0.9.15.ebuild
+++ b/dev-util/bpf-linker/bpf-linker-0.9.15.ebuild
@@ -42,6 +42,7 @@ LICENSE+="
|| ( Apache-2.0 Boost-1.0 )
 "
 SLOT="0"
+KEYWORDS="~amd64 ~arm64"
 IUSE="test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-util/bpf-linker/

2025-09-14 Thread Michał Górny
commit: 1258f397d3669c5d779718f771d8ba48c701698b
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Sep 14 14:37:44 2025 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Sep 14 14:37:44 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1258f397

dev-util/bpf-linker: Stabilize 0.9.14 amd64, #957336

Signed-off-by: Michał Górny  gentoo.org>

 dev-util/bpf-linker/bpf-linker-0.9.14.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild 
b/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
index 6db0f0953d91..9612cb3c193b 100644
--- a/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
+++ b/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
@@ -40,7 +40,7 @@ LICENSE+="
|| ( Apache-2.0 Boost-1.0 )
 "
 SLOT="0"
-KEYWORDS="~amd64 ~arm64"
+KEYWORDS="amd64 ~arm64"
 IUSE="test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-util/bpf-linker/

2025-09-11 Thread Michał Górny
commit: 7b93e36388a50571d02249e4fbfbaa1e3d2fed25
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Sep 11 13:02:13 2025 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Sep 11 13:09:36 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b93e363

dev-util/bpf-linker: Bump to 0.9.15

Signed-off-by: Michał Górny  gentoo.org>

 dev-util/bpf-linker/Manifest |  4 ++
 dev-util/bpf-linker/bpf-linker-0.9.15.ebuild | 87 
 2 files changed, 91 insertions(+)

diff --git a/dev-util/bpf-linker/Manifest b/dev-util/bpf-linker/Manifest
index 4358509f0075..010c8c74877e 100644
--- a/dev-util/bpf-linker/Manifest
+++ b/dev-util/bpf-linker/Manifest
@@ -1,6 +1,10 @@
 DIST bpf-linker-0.9.14-crates.tar.xz 14190616 BLAKE2B 
5384062cb678ef2ec19401fddb023a30fb9ae02f8e7f656ac82ac1061ba32cbde448baafa27e73938901e7d1a049a9d7eaea8ddfe0e40b96c3004865a108102c
 SHA512 
095674241b50069d62789ce875fe6b3df2351e77f538c4f740a0388b68f6c26e25268c4ef41ca13d53b974c615a12595a82bfcde7a7e287c3e8a00cee44ed60a
 DIST bpf-linker-0.9.14.gh.tar.gz 47526 BLAKE2B 
cb6a9d1fadff1554d9ad69934e3d22ef325f38ea3c97410e1c155e8d88835aaeb485e9c06c6ada3e975881190fe8c50fc0ecdf2921dbc83abd0f7873e1a08001
 SHA512 
0c5e530f8b94dbd4a290a92c11a4a99c4b92c8ee6b6dc6f00c25d5dcb43fa44c7a62d12e8a10edae2078b78cf7141363060b08cb6b98a5026dbaeb60d7c95bf1
+DIST bpf-linker-0.9.15-crates.tar.xz 16330432 BLAKE2B 
b22ecf0efe6a0dbcd76d4468f3ba674851fd41a9a3a2f71cc4f6c2f1cfcbb69043c49ae28fce441cb3972f6a7bcaa7d1aa51f78b3acb3ca67add23573c81de70
 SHA512 
32c172cb84999cbf9eed73bc2988fd805cf6e028349884e0af006e828374ffef3a2d47033501115dfd32641927fd7f679132c3a57c8dc475d709fab91a05b625
+DIST bpf-linker-0.9.15.gh.tar.gz 53754 BLAKE2B 
91554e366b4981a28a74a154258970702d8a259ea8ca3ce48d510e8b87978d8dd438505aec1a53a1c7b4d7c3e48ae3a996b03271f7e10f2dcf328e80188e432a
 SHA512 
8c55eb0d46ca4229a1d2b38a3d9b6dc2e21e3d720a9f7b57e0a1435c895e3829ed370d2d25fec8d5bf41fd75543a6cb493d78f4bddc1d903c831e13b9784
 DIST compiler_builtins-0.1.146.crate 212475 BLAKE2B 
9036a9e643ad310932c7943ce5e41c53029f08e604e8ed0a6255d49cf98ecea832dd19ffd109c34a83873880f1c281dc5991bf3f34b9e04f6e9562d40926fd48
 SHA512 
51db04a4e2b7fbc8a7b7407d57a9c82884f9950f5937cf422d14d4c53bc6b942d90e443857cf0c363b0365202713ecbaea3977e9c1cf534c54b041a1f6efd409
 DIST compiler_builtins-0.1.152.crate 224321 BLAKE2B 
232cbc3afb4de5f9ed401df8dce40a1ba56e392f5d5d9b52314abd2c93255859fcb271bd066ca4f23b7879cc787688eedd1dc78eb559ed08aa9fd0d802397fae
 SHA512 
4053d17f667f36e1b06f30b252825e578f42f5dd5dbd4000c8e8742df2787964a9f198c052b6563d09db3d18cd1408be3d9a59b6c366b5c6198ee5581dbc7265
 DIST compiler_builtins-0.1.158.crate 245300 BLAKE2B 
2f0c6281af04eab6d8b2d819e3169ec384beda8b2326a41bfef77fcea24b2fe20d83ed5e2cc0a2c1635dd2f4a4b42fba161a1d6305451e767c8f79c501065d8b
 SHA512 
8b440293d8fb3184b665cddd25dfcc8c65f216dfe5e353db0e867f0346b1aff48e3af82ed3e77aee0ff1a1767e6f35ce348048d3aabc168feb6ab633f19214e5
+DIST compiler_builtins-0.1.160.crate 242364 BLAKE2B 
c85996e22b19e08eb4fb0d679b0b357d60f072ed2611b332d042f6d02d02f5c8fad6bad32baa5c86d5142ddeb79ff939fbb25ed68a9f8134f4a25c6cb961387c
 SHA512 
b8a10cf1b1b42fdc070ba7b3ea4a018c912beb1540b1aef2622302e6ad876b1d488c8ef08b90d2fcab4d32d9c836c0fa552c52c1fe96afc2ad0e1be95c3ef6f6
+DIST compiletest-rs-0c1418d5cd5177ee9d863a5c2f300c0973cfc4f1.gh.tar.gz 61012 
BLAKE2B 
f282dcb1d88021245dcdb03101f37fcb6a3936690716fc1470fdd671985c2757bb92c5f3d3d1e7ed2663529fc89ed587b16c70f644f1097ae039cbbcab96d809
 SHA512 
b7d192e6ab3617170460f2f08fb5a7ff11f0f48735de5d8d3924ffcc3f724d4c60821a7387ca9e37dfa5462645cfd7d0e9f2852da292e733d514822e9ccbaf76
 DIST compiletest-rs-cb121796a041255ae0afcd9c2766bee4ebfd54f0.gh.tar.gz 60800 
BLAKE2B 
30ca17a8420b6dc19e299e7d18a536b480c19bfdc5bc8237107f8ce2d9f009cfe73bda11f9f0cda009f0608d2259a8470e5d9bb00b7aeafbaa85454a725a
 SHA512 
5d5ca47a712dd5e6593e6debba272f35da220ec3411e504d1dcac0162f5dfb209068f1465e7bc7e1ffe9c3a2f6d2cb4e5b00b33d43536e3dcd2b6622d8f69361

diff --git a/dev-util/bpf-linker/bpf-linker-0.9.15.ebuild 
b/dev-util/bpf-linker/bpf-linker-0.9.15.ebuild
new file mode 100644
index ..14c060ae0a60
--- /dev/null
+++ b/dev-util/bpf-linker/bpf-linker-0.9.15.ebuild
@@ -0,0 +1,87 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Extra crates required at runtime via rustc-build-sysroot crate.
+# Note: versions are locked in 
/usr/lib/rust/*/lib/rustlib/src/rust/library/Cargo.lock.
+CRATES="
+   [email protected]
+   [email protected]
+   [email protected]
+   [email protected]
+"
+
+# Implied by crates above.
+RUST_MIN_VER=1.86.0
+RUST_MAX_VER=1.89.0
+
+declare -A GIT_CRATES=(
+   
[compiletest_rs]='https://github.com/Manishearth/compiletest-rs;0c1418d5cd5177ee9d863a5c2f300c0973cfc4f1;compiletest-rs-%commit%'
+)
+
+# LLVM 19 fails on assertions
+LLVM_COMPAT=( {20..21} )
+RUST_REQ_USE="llvm_targ

[gentoo-commits] repo/gentoo:master commit in: dev-util/bpf-linker/files/, dev-util/bpf-linker/

2025-09-11 Thread Michał Górny
commit: 8007493abaf9d9af06aa6c72463c2942532a5e57
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Sep 11 10:07:42 2025 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Sep 11 13:09:27 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8007493a

dev-util/bpf-linker: Fix building with rust 1.88.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-util/bpf-linker/Manifest   |  1 +
 dev-util/bpf-linker/bpf-linker-0.9.14-r1.ebuild|  3 ++
 .../files/bpf-linker-0.9.14-rust-1.88.patch| 39 ++
 3 files changed, 43 insertions(+)

diff --git a/dev-util/bpf-linker/Manifest b/dev-util/bpf-linker/Manifest
index 9d9cf4ba9fde..4358509f0075 100644
--- a/dev-util/bpf-linker/Manifest
+++ b/dev-util/bpf-linker/Manifest
@@ -2,4 +2,5 @@ DIST bpf-linker-0.9.14-crates.tar.xz 14190616 BLAKE2B 
5384062cb678ef2ec19401fddb
 DIST bpf-linker-0.9.14.gh.tar.gz 47526 BLAKE2B 
cb6a9d1fadff1554d9ad69934e3d22ef325f38ea3c97410e1c155e8d88835aaeb485e9c06c6ada3e975881190fe8c50fc0ecdf2921dbc83abd0f7873e1a08001
 SHA512 
0c5e530f8b94dbd4a290a92c11a4a99c4b92c8ee6b6dc6f00c25d5dcb43fa44c7a62d12e8a10edae2078b78cf7141363060b08cb6b98a5026dbaeb60d7c95bf1
 DIST compiler_builtins-0.1.146.crate 212475 BLAKE2B 
9036a9e643ad310932c7943ce5e41c53029f08e604e8ed0a6255d49cf98ecea832dd19ffd109c34a83873880f1c281dc5991bf3f34b9e04f6e9562d40926fd48
 SHA512 
51db04a4e2b7fbc8a7b7407d57a9c82884f9950f5937cf422d14d4c53bc6b942d90e443857cf0c363b0365202713ecbaea3977e9c1cf534c54b041a1f6efd409
 DIST compiler_builtins-0.1.152.crate 224321 BLAKE2B 
232cbc3afb4de5f9ed401df8dce40a1ba56e392f5d5d9b52314abd2c93255859fcb271bd066ca4f23b7879cc787688eedd1dc78eb559ed08aa9fd0d802397fae
 SHA512 
4053d17f667f36e1b06f30b252825e578f42f5dd5dbd4000c8e8742df2787964a9f198c052b6563d09db3d18cd1408be3d9a59b6c366b5c6198ee5581dbc7265
+DIST compiler_builtins-0.1.158.crate 245300 BLAKE2B 
2f0c6281af04eab6d8b2d819e3169ec384beda8b2326a41bfef77fcea24b2fe20d83ed5e2cc0a2c1635dd2f4a4b42fba161a1d6305451e767c8f79c501065d8b
 SHA512 
8b440293d8fb3184b665cddd25dfcc8c65f216dfe5e353db0e867f0346b1aff48e3af82ed3e77aee0ff1a1767e6f35ce348048d3aabc168feb6ab633f19214e5
 DIST compiletest-rs-cb121796a041255ae0afcd9c2766bee4ebfd54f0.gh.tar.gz 60800 
BLAKE2B 
30ca17a8420b6dc19e299e7d18a536b480c19bfdc5bc8237107f8ce2d9f009cfe73bda11f9f0cda009f0608d2259a8470e5d9bb00b7aeafbaa85454a725a
 SHA512 
5d5ca47a712dd5e6593e6debba272f35da220ec3411e504d1dcac0162f5dfb209068f1465e7bc7e1ffe9c3a2f6d2cb4e5b00b33d43536e3dcd2b6622d8f69361

diff --git a/dev-util/bpf-linker/bpf-linker-0.9.14-r1.ebuild 
b/dev-util/bpf-linker/bpf-linker-0.9.14-r1.ebuild
index aec93a4d288e..91bc378e0207 100644
--- a/dev-util/bpf-linker/bpf-linker-0.9.14-r1.ebuild
+++ b/dev-util/bpf-linker/bpf-linker-0.9.14-r1.ebuild
@@ -8,6 +8,7 @@ EAPI=8
 CRATES="
[email protected]
[email protected]
+   [email protected]
 "
 
 # Implied by crates above.
@@ -68,6 +69,8 @@ src_prepare() {
local PATCHES=(
# https://github.com/aya-rs/bpf-linker/pull/289
"${FILESDIR}/${P}-llvm-21.patch"
+   # https://github.com/aya-rs/bpf-linker/pull/265
+   "${FILESDIR}/${P}-rust-1.88.patch"
)
 
default

diff --git a/dev-util/bpf-linker/files/bpf-linker-0.9.14-rust-1.88.patch 
b/dev-util/bpf-linker/files/bpf-linker-0.9.14-rust-1.88.patch
new file mode 100644
index ..c9d5e7521df0
--- /dev/null
+++ b/dev-util/bpf-linker/files/bpf-linker-0.9.14-rust-1.88.patch
@@ -0,0 +1,39 @@
+From 223f8540e80c75730d95d925d6ab9e03cfbfa011 Mon Sep 17 00:00:00 2001
+From: Tamir Duberstein 
+Date: Tue, 1 Apr 2025 10:19:23 -0400
+Subject: [PATCH] Appease `invalid_null_arguments`
+
+This was promoted from a clippy lint in nightly.
+
+Link: https://github.com/rust-lang/rust/pull/119220
+---
+ tests/assembly/auxiliary/dep-exports.rs | 2 +-
+ tests/btf/assembly/auxiliary/dep-exports.rs | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tests/assembly/auxiliary/dep-exports.rs 
b/tests/assembly/auxiliary/dep-exports.rs
+index 35e003cf..a3dcd682 100644
+--- a/tests/assembly/auxiliary/dep-exports.rs
 b/tests/assembly/auxiliary/dep-exports.rs
+@@ -4,7 +4,7 @@
+ 
+ pub fn dep_public_symbol() -> u8 {
+ // read_volatile stops LTO inlining the function in the calling crate
+-unsafe { core::ptr::read_volatile(0 as *const u8) }
++unsafe { core::ptr::read_volatile(core::ptr::dangling()) }
+ }
+ 
+ #[no_mangle]
+diff --git a/tests/btf/assembly/auxiliary/dep-exports.rs 
b/tests/btf/assembly/auxiliary/dep-exports.rs
+index 6adcdc03..3a95ecde 100644
+--- a/tests/btf/assembly/auxiliary/dep-exports.rs
 b/tests/btf/assembly/auxiliary/dep-exports.rs
+@@ -5,7 +5,7 @@
+ #[inline(never)]
+ pub fn dep_public_symbol() -> u8 {
+ // read_volatile stops LTO inlining the function in the calling crate
+-unsafe { core::ptr::read_volatile(0 as *const u8) }
++unsafe { core::ptr::

[gentoo-commits] repo/gentoo:master commit in: dev-util/bpf-linker/

2025-08-14 Thread Michał Górny
commit: 4c4aa9e36b80653ef0b7c583ed33e956a07c54cb
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Aug 14 16:42:51 2025 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Aug 14 16:44:20 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c4aa9e3

dev-util/bpf-linker: Remove LLVM 21 from 0.9.14-r0

Signed-off-by: Michał Górny  gentoo.org>

 dev-util/bpf-linker/bpf-linker-0.9.14.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild 
b/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
index 6a45933edf07..6db0f0953d91 100644
--- a/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
+++ b/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
@@ -18,8 +18,8 @@ declare -A GIT_CRATES=(

[compiletest_rs]='https://github.com/Manishearth/compiletest-rs;cb121796a041255ae0afcd9c2766bee4ebfd54f0;compiletest-rs-%commit%'
 )
 
-# https://crates.io/crates/llvm-sys#llvm-compatibility
-LLVM_COMPAT=( {20..21} )
+# this version of bpf-linker is incompatible with changes in LLVM 21
+LLVM_COMPAT=( 20 )
 RUST_REQ_USE="llvm_targets_BPF(+),rust-src"
 
 inherit cargo llvm-r2



[gentoo-commits] repo/gentoo:master commit in: dev-util/bpf-linker/, dev-util/bpf-linker/files/

2025-08-14 Thread Michał Górny
commit: 9607dc64a545cd8777f256f14ce330394e97effc
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Aug 14 16:42:14 2025 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Aug 14 16:44:19 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9607dc64

dev-util/bpf-linker: Backport LLVM 21 upstream fix

Signed-off-by: Michał Górny  gentoo.org>

 dev-util/bpf-linker/bpf-linker-0.9.14-r1.ebuild|  87 +
 .../files/bpf-linker-0.9.14-llvm-21.patch  | 107 +
 2 files changed, 194 insertions(+)

diff --git a/dev-util/bpf-linker/bpf-linker-0.9.14-r1.ebuild 
b/dev-util/bpf-linker/bpf-linker-0.9.14-r1.ebuild
new file mode 100644
index ..aec93a4d288e
--- /dev/null
+++ b/dev-util/bpf-linker/bpf-linker-0.9.14-r1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Extra crates required at runtime via rustc-build-sysroot crate.
+# Note: versions are locked in 
/usr/lib/rust/*/lib/rustlib/src/rust/library/Cargo.lock.
+CRATES="
+   [email protected]
+   [email protected]
+"
+
+# Implied by crates above.
+RUST_MIN_VER=1.86.0
+RUST_MAX_VER=1.88.0
+
+declare -A GIT_CRATES=(
+   
[compiletest_rs]='https://github.com/Manishearth/compiletest-rs;cb121796a041255ae0afcd9c2766bee4ebfd54f0;compiletest-rs-%commit%'
+)
+
+# bpf-linker code specifically requires LLVM 21 right now
+LLVM_COMPAT=( 21 )
+RUST_REQ_USE="llvm_targets_BPF(+),rust-src"
+
+inherit cargo llvm-r2
+
+DESCRIPTION="Simple BPF static linker"
+HOMEPAGE="https://github.com/aya-rs/bpf-linker/";
+SRC_URI="
+   https://github.com/aya-rs/bpf-linker/archive/v${PV}.tar.gz
+   -> ${P}.gh.tar.gz
+   
https://github.com/gentoo-crate-dist/bpf-linker/releases/download/v${PV}/${P}-crates.tar.xz
+   ${CARGO_CRATE_URIS}
+"
+
+LICENSE="|| ( MIT Apache-2.0 )"
+# Dependent crate licenses
+LICENSE+="
+   ISC MIT Unicode-3.0 Unicode-DFS-2016
+   || ( Apache-2.0 Boost-1.0 )
+"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+   $(llvm_gen_dep '
+   llvm-core/llvm:${LLVM_SLOT}=[llvm_targets_BPF]
+   ')
+"
+RDEPEND="
+   ${DEPEND}
+   ${RUST_DEPEND}
+"
+BDEPEND="
+   test? (
+   dev-util/btfdump
+   )
+"
+
+QA_FLAGS_IGNORED=/usr/bin/bpf-linker
+
+pkg_setup() {
+   rust_pkg_setup
+}
+
+src_prepare() {
+   local PATCHES=(
+   # https://github.com/aya-rs/bpf-linker/pull/289
+   "${FILESDIR}/${P}-llvm-21.patch"
+   )
+
+   default
+
+   # replace upstream crate substitution with our crate substitution, sigh
+   local ct_dep=$(grep ^compiletest_rs "${ECARGO_HOME}"/config.toml || die)
+   sed -i -e "/compiletest_rs/s;^.*$;${ct_dep};" Cargo.toml || die
+}
+
+src_configure() {
+   cargo_src_configure --no-default-features
+
+   # note: this needs to be updated to match llvm crate version
+   export LLVM_SYS_201_PREFIX="$(get_llvm_prefix -d)"
+   # the package requires BPF target that is only available in nightly
+   export RUSTC_BOOTSTRAP=1
+}

diff --git a/dev-util/bpf-linker/files/bpf-linker-0.9.14-llvm-21.patch 
b/dev-util/bpf-linker/files/bpf-linker-0.9.14-llvm-21.patch
new file mode 100644
index ..b8ef3f72cc31
--- /dev/null
+++ b/dev-util/bpf-linker/files/bpf-linker-0.9.14-llvm-21.patch
@@ -0,0 +1,107 @@
+From b1e6dcd3c8a75489329707709a14403e247e0fa0 Mon Sep 17 00:00:00 2001
+From: Michal Rostecki 
+Date: Thu, 14 Aug 2025 13:36:12 +0200
+Subject: [PATCH 2/3] di: Update operand indices
+
+Operand indices in `DIType` and all children types were moved starting
+from LLVM 21[0].
+
+[0] llvm/llvm-project@3b90597c2ceaae86608214f6b62b43e55823102b
+---
+ src/llvm/types/di.rs | 8 
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/llvm/types/di.rs b/src/llvm/types/di.rs
+index 76757cb1..c44252f0 100644
+--- a/src/llvm/types/di.rs
 b/src/llvm/types/di.rs
+@@ -150,8 +150,8 @@ impl<'ctx> From> for DIType<'ctx> {
+ #[repr(u32)]
+ enum DIDerivedTypeOperand {
+ /// [`DIType`] representing a base type of the given derived type.
+-/// [Reference in LLVM 
code](https://github.com/llvm/llvm-project/blob/llvmorg-17.0.3/llvm/include/llvm/IR/DebugInfoMetadata.h#L1032).
+-BaseType = 3,
++/// [Reference in LLVM 
code](https://github.com/llvm/llvm-project/blob/llvmorg-21.1.0-rc3/llvm/include/llvm/IR/DebugInfoMetadata.h#L1386).
++BaseType = 5,
+ }
+ 
+ /// Represents the debug information for a derived type in LLVM IR.
+@@ -212,8 +212,8 @@ impl DIDerivedType<'_> {
+ #[repr(u32)]
+ enum DICompositeTypeOperand {
+ /// Elements of the composite type.
+-/// [Reference in LLVM 
code](https://github.com/llvm/llvm-project/blob/llvmorg-17.0.3/llvm/include/llvm/IR/DebugInfoMetadata.h#L1230).
+-Elements = 4,
++/// [Reference in LLVM 
code](https://github.com/llvm/llvm-project/blob

[gentoo-commits] repo/gentoo:master commit in: dev-util/bpf-linker/

2025-05-30 Thread Michał Górny
commit: 0f3ad2e46a4a6d34a4e84b5f86f76e0ac96e965b
Author: Michał Górny  gentoo  org>
AuthorDate: Sat May 31 04:58:10 2025 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat May 31 05:10:18 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f3ad2e4

dev-util/bpf-linker: Allow Rust 1.87.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-util/bpf-linker/Manifest | 1 +
 dev-util/bpf-linker/bpf-linker-0.9.14.ebuild | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/dev-util/bpf-linker/Manifest b/dev-util/bpf-linker/Manifest
index 3654e23d399c..9d9cf4ba9fde 100644
--- a/dev-util/bpf-linker/Manifest
+++ b/dev-util/bpf-linker/Manifest
@@ -1,4 +1,5 @@
 DIST bpf-linker-0.9.14-crates.tar.xz 14190616 BLAKE2B 
5384062cb678ef2ec19401fddb023a30fb9ae02f8e7f656ac82ac1061ba32cbde448baafa27e73938901e7d1a049a9d7eaea8ddfe0e40b96c3004865a108102c
 SHA512 
095674241b50069d62789ce875fe6b3df2351e77f538c4f740a0388b68f6c26e25268c4ef41ca13d53b974c615a12595a82bfcde7a7e287c3e8a00cee44ed60a
 DIST bpf-linker-0.9.14.gh.tar.gz 47526 BLAKE2B 
cb6a9d1fadff1554d9ad69934e3d22ef325f38ea3c97410e1c155e8d88835aaeb485e9c06c6ada3e975881190fe8c50fc0ecdf2921dbc83abd0f7873e1a08001
 SHA512 
0c5e530f8b94dbd4a290a92c11a4a99c4b92c8ee6b6dc6f00c25d5dcb43fa44c7a62d12e8a10edae2078b78cf7141363060b08cb6b98a5026dbaeb60d7c95bf1
 DIST compiler_builtins-0.1.146.crate 212475 BLAKE2B 
9036a9e643ad310932c7943ce5e41c53029f08e604e8ed0a6255d49cf98ecea832dd19ffd109c34a83873880f1c281dc5991bf3f34b9e04f6e9562d40926fd48
 SHA512 
51db04a4e2b7fbc8a7b7407d57a9c82884f9950f5937cf422d14d4c53bc6b942d90e443857cf0c363b0365202713ecbaea3977e9c1cf534c54b041a1f6efd409
+DIST compiler_builtins-0.1.152.crate 224321 BLAKE2B 
232cbc3afb4de5f9ed401df8dce40a1ba56e392f5d5d9b52314abd2c93255859fcb271bd066ca4f23b7879cc787688eedd1dc78eb559ed08aa9fd0d802397fae
 SHA512 
4053d17f667f36e1b06f30b252825e578f42f5dd5dbd4000c8e8742df2787964a9f198c052b6563d09db3d18cd1408be3d9a59b6c366b5c6198ee5581dbc7265
 DIST compiletest-rs-cb121796a041255ae0afcd9c2766bee4ebfd54f0.gh.tar.gz 60800 
BLAKE2B 
30ca17a8420b6dc19e299e7d18a536b480c19bfdc5bc8237107f8ce2d9f009cfe73bda11f9f0cda009f0608d2259a8470e5d9bb00b7aeafbaa85454a725a
 SHA512 
5d5ca47a712dd5e6593e6debba272f35da220ec3411e504d1dcac0162f5dfb209068f1465e7bc7e1ffe9c3a2f6d2cb4e5b00b33d43536e3dcd2b6622d8f69361

diff --git a/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild 
b/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
index f752db823f97..6a45933edf07 100644
--- a/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
+++ b/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
@@ -7,11 +7,12 @@ EAPI=8
 # Note: versions are locked in 
/usr/lib/rust/*/lib/rustlib/src/rust/library/Cargo.lock.
 CRATES="
[email protected]
+   [email protected]
 "
 
 # Implied by crates above.
 RUST_MIN_VER=1.86.0
-RUST_MAX_VER=1.86.0
+RUST_MAX_VER=1.87.0
 
 declare -A GIT_CRATES=(

[compiletest_rs]='https://github.com/Manishearth/compiletest-rs;cb121796a041255ae0afcd9c2766bee4ebfd54f0;compiletest-rs-%commit%'



[gentoo-commits] repo/gentoo:master commit in: dev-util/bpf-linker/

2025-05-17 Thread Sam James
commit: 7baabe077b8c234ac86a44f812d7914f7b103c1b
Author: Sam James  gentoo  org>
AuthorDate: Sat May 17 11:30:04 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Sat May 17 11:37:17 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7baabe07

dev-util/bpf-linker: Keyword 0.9.14 arm64, #947275

Signed-off-by: Sam James  gentoo.org>

 dev-util/bpf-linker/bpf-linker-0.9.14.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild 
b/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
index 0d7e51141450..f752db823f97 100644
--- a/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
+++ b/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
@@ -39,7 +39,7 @@ LICENSE+="
|| ( Apache-2.0 Boost-1.0 )
 "
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~arm64"
 IUSE="test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-util/bpf-linker/

2025-04-21 Thread Michał Górny
commit: 573ca2023607c7a2398e8eb504c8ebe1f9fed4dd
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Apr 21 11:05:16 2025 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Apr 21 11:06:22 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=573ca202

dev-util/bpf-linker: We need rust-src flag too

Signed-off-by: Michał Górny  gentoo.org>

 dev-util/bpf-linker/bpf-linker-0.9.14.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild 
b/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
index a60bf9f562ff..0d7e51141450 100644
--- a/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
+++ b/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
@@ -19,7 +19,7 @@ declare -A GIT_CRATES=(
 
 # https://crates.io/crates/llvm-sys#llvm-compatibility
 LLVM_COMPAT=( {20..21} )
-RUST_REQ_USE="llvm_targets_BPF(+)"
+RUST_REQ_USE="llvm_targets_BPF(+),rust-src"
 
 inherit cargo llvm-r2
 



[gentoo-commits] repo/gentoo:master commit in: dev-util/bpf-linker/

2025-04-20 Thread Michał Górny
commit: a9ab30771d7eee051ddb27ee7a1837b71943581b
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Apr 20 18:42:44 2025 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Apr 20 18:43:45 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9ab3077

dev-util/bpf-linker: rust-bin seems to have BPF targets

Signed-off-by: Michał Górny  gentoo.org>

 dev-util/bpf-linker/bpf-linker-0.9.14.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild 
b/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
index e61f716dff4d..a60bf9f562ff 100644
--- a/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
+++ b/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
@@ -19,7 +19,7 @@ declare -A GIT_CRATES=(
 
 # https://crates.io/crates/llvm-sys#llvm-compatibility
 LLVM_COMPAT=( {20..21} )
-RUST_REQ_USE="llvm_targets_BPF"
+RUST_REQ_USE="llvm_targets_BPF(+)"
 
 inherit cargo llvm-r2
 



[gentoo-commits] repo/gentoo:master commit in: dev-util/bpf-linker/

2025-04-20 Thread Michał Górny
commit: bc548f0a2baeb857d848bb16ed6662ceda9dd713
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Apr 15 06:30:09 2025 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Apr 20 11:42:53 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc548f0a

dev-util/bpf-linker: New package, 0.9.14

Signed-off-by: Michał Górny  gentoo.org>

 dev-util/bpf-linker/Manifest |  4 ++
 dev-util/bpf-linker/bpf-linker-0.9.14.ebuild | 82 
 dev-util/bpf-linker/metadata.xml | 11 
 3 files changed, 97 insertions(+)

diff --git a/dev-util/bpf-linker/Manifest b/dev-util/bpf-linker/Manifest
new file mode 100644
index ..3654e23d399c
--- /dev/null
+++ b/dev-util/bpf-linker/Manifest
@@ -0,0 +1,4 @@
+DIST bpf-linker-0.9.14-crates.tar.xz 14190616 BLAKE2B 
5384062cb678ef2ec19401fddb023a30fb9ae02f8e7f656ac82ac1061ba32cbde448baafa27e73938901e7d1a049a9d7eaea8ddfe0e40b96c3004865a108102c
 SHA512 
095674241b50069d62789ce875fe6b3df2351e77f538c4f740a0388b68f6c26e25268c4ef41ca13d53b974c615a12595a82bfcde7a7e287c3e8a00cee44ed60a
+DIST bpf-linker-0.9.14.gh.tar.gz 47526 BLAKE2B 
cb6a9d1fadff1554d9ad69934e3d22ef325f38ea3c97410e1c155e8d88835aaeb485e9c06c6ada3e975881190fe8c50fc0ecdf2921dbc83abd0f7873e1a08001
 SHA512 
0c5e530f8b94dbd4a290a92c11a4a99c4b92c8ee6b6dc6f00c25d5dcb43fa44c7a62d12e8a10edae2078b78cf7141363060b08cb6b98a5026dbaeb60d7c95bf1
+DIST compiler_builtins-0.1.146.crate 212475 BLAKE2B 
9036a9e643ad310932c7943ce5e41c53029f08e604e8ed0a6255d49cf98ecea832dd19ffd109c34a83873880f1c281dc5991bf3f34b9e04f6e9562d40926fd48
 SHA512 
51db04a4e2b7fbc8a7b7407d57a9c82884f9950f5937cf422d14d4c53bc6b942d90e443857cf0c363b0365202713ecbaea3977e9c1cf534c54b041a1f6efd409
+DIST compiletest-rs-cb121796a041255ae0afcd9c2766bee4ebfd54f0.gh.tar.gz 60800 
BLAKE2B 
30ca17a8420b6dc19e299e7d18a536b480c19bfdc5bc8237107f8ce2d9f009cfe73bda11f9f0cda009f0608d2259a8470e5d9bb00b7aeafbaa85454a725a
 SHA512 
5d5ca47a712dd5e6593e6debba272f35da220ec3411e504d1dcac0162f5dfb209068f1465e7bc7e1ffe9c3a2f6d2cb4e5b00b33d43536e3dcd2b6622d8f69361

diff --git a/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild 
b/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
new file mode 100644
index ..e61f716dff4d
--- /dev/null
+++ b/dev-util/bpf-linker/bpf-linker-0.9.14.ebuild
@@ -0,0 +1,82 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Extra crates required at runtime via rustc-build-sysroot crate.
+# Note: versions are locked in 
/usr/lib/rust/*/lib/rustlib/src/rust/library/Cargo.lock.
+CRATES="
+   [email protected]
+"
+
+# Implied by crates above.
+RUST_MIN_VER=1.86.0
+RUST_MAX_VER=1.86.0
+
+declare -A GIT_CRATES=(
+   
[compiletest_rs]='https://github.com/Manishearth/compiletest-rs;cb121796a041255ae0afcd9c2766bee4ebfd54f0;compiletest-rs-%commit%'
+)
+
+# https://crates.io/crates/llvm-sys#llvm-compatibility
+LLVM_COMPAT=( {20..21} )
+RUST_REQ_USE="llvm_targets_BPF"
+
+inherit cargo llvm-r2
+
+DESCRIPTION="Simple BPF static linker"
+HOMEPAGE="https://github.com/aya-rs/bpf-linker/";
+SRC_URI="
+   https://github.com/aya-rs/bpf-linker/archive/v${PV}.tar.gz
+   -> ${P}.gh.tar.gz
+   
https://github.com/gentoo-crate-dist/bpf-linker/releases/download/v${PV}/${P}-crates.tar.xz
+   ${CARGO_CRATE_URIS}
+"
+
+LICENSE="|| ( MIT Apache-2.0 )"
+# Dependent crate licenses
+LICENSE+="
+   ISC MIT Unicode-3.0 Unicode-DFS-2016
+   || ( Apache-2.0 Boost-1.0 )
+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+   $(llvm_gen_dep '
+   llvm-core/llvm:${LLVM_SLOT}=[llvm_targets_BPF]
+   ')
+"
+RDEPEND="
+   ${DEPEND}
+   ${RUST_DEPEND}
+"
+BDEPEND="
+   test? (
+   dev-util/btfdump
+   )
+"
+
+QA_FLAGS_IGNORED=/usr/bin/bpf-linker
+
+pkg_setup() {
+   rust_pkg_setup
+}
+
+src_prepare() {
+   default
+
+   # replace upstream crate substitution with our crate substitution, sigh
+   local ct_dep=$(grep ^compiletest_rs "${ECARGO_HOME}"/config.toml || die)
+   sed -i -e "/compiletest_rs/s;^.*$;${ct_dep};" Cargo.toml || die
+}
+
+src_configure() {
+   cargo_src_configure --no-default-features
+
+   # note: this needs to be updated to match llvm crate version
+   export LLVM_SYS_201_PREFIX="$(get_llvm_prefix -d)"
+   # the package requires BPF target that is only available in nightly
+   export RUSTC_BOOTSTRAP=1
+}

diff --git a/dev-util/bpf-linker/metadata.xml b/dev-util/bpf-linker/metadata.xml
new file mode 100644
index ..aac43fdab9cf
--- /dev/null
+++ b/dev-util/bpf-linker/metadata.xml
@@ -0,0 +1,11 @@
+
+https://www.gentoo.org/dtd/metadata.dtd";>
+
+   
+   [email protected]
+   Michał Górny
+   
+   
+   aya-rs/bpf-linker
+   
+