summaryrefslogtreecommitdiff
path: root/dev-libs/blazesym_c
diff options
context:
space:
mode:
authorHolger Hoffstätte <holger@applied-asynchrony.com>2025-08-15 19:22:32 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2025-08-16 14:30:56 +0300
commit4739347a442b79c750ebd63ed24a713bbfd8ac3f (patch)
tree5d4bb64534786d1728820b9e63f62b5078beac6f /dev-libs/blazesym_c
parent260c873faa3758b2cd85a7e8eff85e2ec2963624 (diff)
downloadgentoo-4739347a442b79c750ebd63ed24a713bbfd8ac3f.tar.gz
gentoo-4739347a442b79c750ebd63ed24a713bbfd8ac3f.tar.bz2
gentoo-4739347a442b79c750ebd63ed24a713bbfd8ac3f.zip
dev-libs/blazesym_c: add 0.1.3
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Part-of: https://github.com/gentoo/gentoo/pull/43456 Closes: https://github.com/gentoo/gentoo/pull/43456 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-libs/blazesym_c')
-rw-r--r--dev-libs/blazesym_c/Manifest2
-rw-r--r--dev-libs/blazesym_c/blazesym_c-0.1.3.ebuild75
2 files changed, 77 insertions, 0 deletions
diff --git a/dev-libs/blazesym_c/Manifest b/dev-libs/blazesym_c/Manifest
index 3b2c1b5786f6..8315fb8e6047 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.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_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 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.3.ebuild b/dev-libs/blazesym_c/blazesym_c-0.1.3.ebuild
new file mode 100644
index 000000000000..23fb1da1e7ac
--- /dev/null
+++ b/dev-libs/blazesym_c/blazesym_c-0.1.3.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
+}