commit: 73e89bab52ca8234a1ca26e1672cef861edc6408 Author: Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com> AuthorDate: Thu Jan 22 13:09:36 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Feb 11 03:27:44 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73e89bab
dev-libs/blazesym_c: add 0.1.6 Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com> Part-of: https://github.com/gentoo/gentoo/pull/45490 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-libs/blazesym_c/Manifest | 2 + dev-libs/blazesym_c/blazesym_c-0.1.6.ebuild | 75 +++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) diff --git a/dev-libs/blazesym_c/Manifest b/dev-libs/blazesym_c/Manifest index 18527acf5a36..e18484a9f4ee 100644 --- a/dev-libs/blazesym_c/Manifest +++ b/dev-libs/blazesym_c/Manifest @@ -1,6 +1,8 @@ DIST blazesym-capi-v0.1.1-crates.tar.xz 34294836 BLAKE2B 85e163004ac8762b50be99bfd794a59c4eb2e2a11857f0962b19a8a93f78d3d195dbab1f8c629045f08e9d27d70287e50728fbcd1542b34923d756d225b38f9f SHA512 42bec9f03bfaea3bec17674d5b8d99de998b596894952fb960e60db8e979ac5e8d8ea97b9dfe4e73e5f74d67f48f3480e1048268321b5d696cc0525906efc260 DIST blazesym-capi-v0.1.5-crates.tar.xz 27982728 BLAKE2B aaf1977d6433f837baf32fcab60c17513741baed8bee679039c234046dc6184f0d2d25d2ba9f6affa72ced487b3cbfc7f0c662d0a7bb88e774ece8e8ca9d7672 SHA512 c8afd59c8fcd6cb40097dc8197abe7fcc8b9b25adc0e3d3166589b7aeb92d817d4ac51fda17faf2451f4a295468423dbe43539f8753369f945173c03ac50dd9c +DIST blazesym-capi-v0.1.6-crates.tar.xz 31253156 BLAKE2B 0b74f9e680409e9dcfe498d710907626571e51292f4cda568882be199e99628a8fb6f6e7559c1f8bbd0953fcdd78b313b00c1708f444b1de128769078ed826d7 SHA512 a442e0c9ccb5ab72ac5a0038a02f58445cfa887b0189a0ac43ebca9cfeaaf9fc58fb80c1c3bbf830f7f1e543b992353396bc3d0e281fbe0dff8d93aa2d423e11 DIST blazesym_c-0.1.1.tar.gz 597215 BLAKE2B b38eff7ab56f35049a88afecb573596430a45a39b5631b82c05817a844b9db2535d0780ded7242b9ef123fe8871930469f4399c447a80c5b29e5bcf7b28529f9 SHA512 13d597b65f11504ea68299738cecccae3659a87e46bef88fdb848887b5bb59bcd987782d67791d225a9f206d02d302ceff9eb3b07748c5b8c7c84273ca4a3890 DIST blazesym_c-0.1.5.tar.gz 607748 BLAKE2B d5694b70f02ef7a1c74fe1e5af34ec731b64f8ec504a5f60bc2372a2c7328183c7c8e80c803c243c93cad7a5fdfa1b58af34720e8d891f5b350f1e0fd49221de SHA512 26f70e25854eebf1de3947be5f1f4e03ca1670f4d9476151bf6923db830aec932c181f2328a30c10de68025e8c394c24e25ac4125acb6aa0694a70126b50ad33 +DIST blazesym_c-0.1.6.tar.gz 620342 BLAKE2B 387b558098d6862a84f7468c1f0767cc989179dff5a5c9adc9c05b273c73be095540cc676831316d90e0d8da8d809357a81bcbb9085bf65234c5cf927fb476d5 SHA512 0de3db5efdc53aebe80504a36a1910a4db796673ef8c07a06ae1880ed16938aa81339dda1396b644879ef35e66bf86e0ab11a74fa9fa9603a1b59317024b24c0 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.6.ebuild b/dev-libs/blazesym_c/blazesym_c-0.1.6.ebuild new file mode 100644 index 000000000000..c45b26554519 --- /dev/null +++ b/dev-libs/blazesym_c/blazesym_c-0.1.6.ebuild @@ -0,0 +1,75 @@ +# Copyright 2026 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 +}
