commit:     769b8914a782655cd593d2fe387705c291329015
Author:     Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
AuthorDate: Wed Sep 17 16:47:10 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Sep 17 21:27:45 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=769b8914

dev-libs/blazesym_c: add 0.1.4

Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/43827
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/blazesym_c/Manifest                |  2 +
 dev-libs/blazesym_c/blazesym_c-0.1.4.ebuild | 75 +++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/dev-libs/blazesym_c/Manifest b/dev-libs/blazesym_c/Manifest
index 8315fb8e6047..7aea612d6b98 100644
--- a/dev-libs/blazesym_c/Manifest
+++ b/dev-libs/blazesym_c/Manifest
@@ -1,8 +1,10 @@
 DIST blazesym-capi-v0.1.1-crates.tar.xz 34294836 BLAKE2B 
85e163004ac8762b50be99bfd794a59c4eb2e2a11857f0962b19a8a93f78d3d195dbab1f8c629045f08e9d27d70287e50728fbcd1542b34923d756d225b38f9f
 SHA512 
42bec9f03bfaea3bec17674d5b8d99de998b596894952fb960e60db8e979ac5e8d8ea97b9dfe4e73e5f74d67f48f3480e1048268321b5d696cc0525906efc260
 DIST blazesym-capi-v0.1.2-crates.tar.xz 33483048 BLAKE2B 
2837b2210fe83a37e8ea695f2d60104fcd045c47588c788bfb952ecb5dd0886a13a8b3cbeb5aa935c2b2c0d442f6da38692a19f60f621e2e0fc3721505332453
 SHA512 
740d3bd38b223692d37bcbbe65cfb4ace937baadd3a90d9e82e56dcf13179bccdd72559b3232762fc62dda75e8e65a05206c46f9ef5108b8f78b1e181fe6d88a
 DIST blazesym-capi-v0.1.3-crates.tar.xz 33440984 BLAKE2B 
b99f4b023f5c0a1942ea379baf0a085a72b5444d1c8f4b9196129ddec3ef2c1250f8345a5faa14482f99a99e5907296d5381aa76b727547a1d79a12510b7e466
 SHA512 
4049600b32af732833f312f8726da75d225d99c081af5427b2219fd9cb873b2125924556751048cb6c34eccb1940565b090a7492ae9df539d980cd99b46de950
+DIST blazesym-capi-v0.1.4-crates.tar.xz 30430204 BLAKE2B 
322dd050d46cfe6a03145de6736def0d4736b6083933bc61ed81d617d30b788b6f26abb50beacdc69304d74baf87a78e25cdfe7369fc095b5c3291354dac16ac
 SHA512 
536daab102d0f40d8596dbd96714170ce1c0d72633e3838d103c445b402a3f135a09a5176cd40365cc6ab9f32ae18dc8135e9c129f946f3b93228e5a91973d73
 DIST blazesym_c-0.1.1.tar.gz 597215 BLAKE2B 
b38eff7ab56f35049a88afecb573596430a45a39b5631b82c05817a844b9db2535d0780ded7242b9ef123fe8871930469f4399c447a80c5b29e5bcf7b28529f9
 SHA512 
13d597b65f11504ea68299738cecccae3659a87e46bef88fdb848887b5bb59bcd987782d67791d225a9f206d02d302ceff9eb3b07748c5b8c7c84273ca4a3890
 DIST blazesym_c-0.1.2.tar.gz 605693 BLAKE2B 
447b3add4c5ab65f44e25bddaa61a38376b044f04c459617c218146832a0082a020642ff2e44a4f2e89c9f5a13b4f8aec6818c9593e5a25785b02ce7da5b7af8
 SHA512 
e652cc299d268ea013bb2fd3eb2ecc980ef29655ed65bd00295e20f1db126931530e142dfb444eb03c79cf5abeb1016e8a0b000ac1f01051753bbfef6451c7a5
 DIST blazesym_c-0.1.3.tar.gz 605607 BLAKE2B 
2802bc9075b653ec19cbc178ae63cbb01ecb465afbf37b612aa535a80743b04ab1fc2202aa5c7b8ac5d77fc042f750cfd0575fee657aa9c1ab9de07dcbc1c149
 SHA512 
71876ea9a331545d513f9c8f41ec37be125a2fe04d866c82a637ebfc0bcc8e5d5935a4465bb0bb8b34f5b708c3abc409a87838a96a6b23108a3091f94747fb15
+DIST blazesym_c-0.1.4.tar.gz 609048 BLAKE2B 
454b9bc34a16559a0b107fd50749fefe6dfafa86d34a49e2ae012db902177e417a6dcc6deadc6aaecdfc138238926141bf9cee17db52054058a1aa59688492ef
 SHA512 
d042023a6c71ab6551819ff7360e1287b70b2e6e2f4db57c2972adda93e22aa63424b691e5d4bec785d30e3255e2b5a1bb2eda7121f3d40ba34550c558d0a06c
 DIST criterion.rs-b913e232edd98780961ecfbae836ec77ede49259.gh.tar.gz 786764 
BLAKE2B 
007c75791d93d2d24e11a6ca367ab53a45cfb0be67e1d65c4cdee4696709365a9417b4448ffcf44e790bf3582e8e17a15598e5cfff49bcd11cb61e4f8fb1f7b9
 SHA512 
2374fd2bb86e3c734a054215f5d350f159831c42e8889fba4c59d2d70a90f27eba6869ddb89daee16ce9a7b70d99266cf3e9370d433415ff23b515f3b5d4eb22
 DIST vmlinux.h-a9c092aa771310bf8b00b5018f7d40a1fdb6ec82.gh.tar.gz 3327904 
BLAKE2B 
4798b43e1b9213fe45b284fe3e4cf86a5df77eddcb4a699dada630c07eddd9365c62ebf09c6ef85d2b304b6dbcbfb3013f7479b32b72fdf836223d36458e9750
 SHA512 
02f957c3642b22d801c5eac5f9fc70f1606fc045b14fb1b7ffedbd3a3171c53728f664a33d88a90e2a7d15a9fe1c0559a48b52fcbea2e699199e9bc35943fa81

diff --git a/dev-libs/blazesym_c/blazesym_c-0.1.4.ebuild 
b/dev-libs/blazesym_c/blazesym_c-0.1.4.ebuild
new file mode 100644
index 000000000000..23fb1da1e7ac
--- /dev/null
+++ b/dev-libs/blazesym_c/blazesym_c-0.1.4.ebuild
@@ -0,0 +1,75 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Autogenerated by pycargoebuild 0.14.0
+
+EAPI=8
+
+CRATES="
+"
+
+RUST_MIN_VER="1.85.0"
+
+declare -A GIT_CRATES=(
+       
[vmlinux]='https://github.com/libbpf/vmlinux.h;a9c092aa771310bf8b00b5018f7d40a1fdb6ec82;vmlinux.h-%commit%'
+)
+
+inherit cargo edo rust-toolchain
+
+DESCRIPTION="C bindings for blazesym, a library for address symbolization and 
related tasks"
+HOMEPAGE="https://github.com/libbpf/blazesym";
+SRC_URI="
+       https://github.com/libbpf/blazesym/archive/refs/tags/capi-v${PV}.tar.gz 
-> ${P}.tar.gz
+       
https://github.com/gentoo-crate-dist/blazesym/releases/download/capi-v${PV}/blazesym-capi-v${PV}-crates.tar.xz
+       ${CARGO_CRATE_URIS}
+"
+
+# build in the capi subdirectory since cargo has no -C option:
+# https://github.com/rust-lang/cargo/issues/10098
+S="${WORKDIR}/blazesym-capi-v${PV}/capi"
+
+LICENSE="BSD"
+# Dependent crate licenses
+LICENSE+="
+       Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD Boost-1.0
+       CDLA-Permissive-2.0 ISC MIT MPL-2.0 Unicode-3.0 ZLIB
+"
+
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+
+# Currently suffers from (at least):
+# - problems with crate tarball
+# - hardcoded/hand-rolled multilib assumptions
+# - possibly sandbox
+RESTRICT="test"
+
+BDEPEND="
+       dev-util/cargo-c
+"
+
+QA_FLAGS_IGNORED="usr/lib64/libblazesym_c.so.${PV}"
+
+src_configure() {
+       CARGO_ARGS=(
+               --library-type=cdylib
+               --prefix="${EPREFIX}"/usr
+               --libdir="${EPREFIX}/usr/$(get_libdir)"
+               --target="$(rust_abi)"
+               $(usev !debug '--release')
+       )
+
+       cargo_src_configure
+}
+
+src_compile() {
+       edo cargo cbuild "${CARGO_ARGS[@]}" || die
+}
+
+src_install() {
+       CARGO_ARGS+=(
+               --destdir="${ED}"
+       )
+
+       edo cargo cinstall "${CARGO_ARGS[@]}" || die
+}

Reply via email to