diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-02 16:16:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-02 16:16:41 +0100 |
commit | 2982504d287f7f91eade76902f11e691f8181071 (patch) | |
tree | 6c5dedf9f5c14d738b335a8d18ec5aed6ddad01f /dev-util | |
parent | 02fbebe9426ee05ab39e9b5a56e3529e64160ef6 (diff) |
gentoo auto-resync : 02:09:2022 - 16:16:41
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/Manifest.gz | bin | 68641 -> 68641 bytes | |||
-rw-r--r-- | dev-util/trace-cmd/Manifest | 4 | ||||
-rw-r--r-- | dev-util/trace-cmd/metadata.xml | 4 | ||||
-rw-r--r-- | dev-util/trace-cmd/trace-cmd-3.1.2.ebuild | 134 |
4 files changed, 141 insertions, 1 deletions
diff --git a/dev-util/Manifest.gz b/dev-util/Manifest.gz Binary files differindex df85139cb5a7..cb82d279e81a 100644 --- a/dev-util/Manifest.gz +++ b/dev-util/Manifest.gz diff --git a/dev-util/trace-cmd/Manifest b/dev-util/trace-cmd/Manifest index 9890bb8f683d..d0dd188fe209 100644 --- a/dev-util/trace-cmd/Manifest +++ b/dev-util/trace-cmd/Manifest @@ -1,5 +1,7 @@ DIST trace-cmd-v2.9.1.tar.gz 4298008 BLAKE2B f7aa2f12b2c90f35390857ed6f5818b74c42be36ce70835d86410f9f4931d27410123baaad007fa2795c1ba1f5bafc739db620f467ccc48021d774ee7be8a68d SHA512 186bfdd8ff1e88e9e6d3ae87b123f049892deaaa8d6a42944b6f8abee6b828946b88774029aa96daf4423a3dfc01b42835508f44f636dd02579ef9a8ef425131 DIST trace-cmd-v3.0.2.tar.gz 308097 BLAKE2B 109cf260a2bc219c9bef92fb85bdd5abd0698d261ecec35ea31b152986af720aae26720cfa6148f798fca1d33f631ea3e50906a5fc7ef00dbd705c63d3b83f2a SHA512 3f364409f4a8931a09b762b19ee19ae52215b46e7ed90610a0fa4092e71d88d0dae91353ff98ba11f18012c27ef67289097c6c132f0f07193fac459ac52861d0 +DIST trace-cmd-v3.1.2.tar.gz 317611 BLAKE2B 485d62bfd6c7e3dedc5c3a9eb18af4b425bccc03e932854ef87fc0d032ef011e68cb978b34e319d97b85b24bba6d16ce619faaca8d96c77be1b64b1c4ca06e69 SHA512 d894842c11d895e2753fe254a83ecdc6bedcdfe1eceba5d75f1302b5476c9a3114c1fc5acddcba19ab05eaafb30db97e2e9b51b90afb1fd0550f1fbe0f59e0ac EBUILD trace-cmd-2.9.1.ebuild 2787 BLAKE2B 22b4be76ae6d985733791fe7c47fc274b83e5861695b99d4065e24667e567704591f0e532867e6524e603101c7a7b131eed7ee310beb2fb6f69dc279d7360548 SHA512 589e69f1c0c06887bfd27438617c9038ee59e4c9f21bf0807489aaf1c114b630756ed31a37c2fdda40c5474aa6a2699b88fd71e2eb0d356942b065e75cbabd61 EBUILD trace-cmd-3.0.2.ebuild 3028 BLAKE2B dca25da4895984203d401b75e79328cfc4e80408f62792ae63c17ef5c41a388f725af9d1054f23f83c20a0cce754b3638eaa02de6b5599f2c7c7be44f9ad189b SHA512 089bc4e6ecd966bf37217bc1bdbe06f883cb9f3116e3b69591a229baec093c9638e3305ff7efac4e2a58cf22fdc44885f7cabeee8760c370ac57cf49ce9903c5 -MISC metadata.xml 361 BLAKE2B 25c92c4f81463633306cd3724f52d8590400d48caffdd03a5abaf6b9026a5ea486cd88f2677ab999bba93b79c3584210938c4ad2ce3a275e2ed07f32a5c5fd15 SHA512 17d5098f0416f962c2424dbf5a0c0002f5dec71d9a87d804bb018e9cb2b2959f6784c98fec4b6e1fc12ab81186f8d7d0feebb01304f9ef6690a090f85bb8486a +EBUILD trace-cmd-3.1.2.ebuild 3028 BLAKE2B 2d9f8226f5423bd93bc3af018108bcad3dc19f87b25aa17a30eea44221602a2f57372e020ac7254e08f9f00d9a4d4bff0248ac745ff5aba56fd1d614254269f9 SHA512 d9578451a54a19e52f2a2716543366b69da83c90ccf426f6e01f50b98b90306aef0774d9e239a1405e63fc1157236fb5805e03f72ed20c4d55a23b5a64628cbf +MISC metadata.xml 462 BLAKE2B 60ccc0b91ad64f83db4df7cafd5af9355192c5f60139cc523f2c0d1bd287a75501822773443995b0e6f51986aa504a473a74e87c4db78ed9780e24816128f91e SHA512 9a8f02d6b9b23aa4350d7ce48a6aca9541ec5fcde82437c6c9ff1cfc950c8843994eb31133b67d678a9babaa8a15230c00cfba65c45f5db4d4859db0198cb554 diff --git a/dev-util/trace-cmd/metadata.xml b/dev-util/trace-cmd/metadata.xml index c6cbdd9e0f6d..a580fe510b6b 100644 --- a/dev-util/trace-cmd/metadata.xml +++ b/dev-util/trace-cmd/metadata.xml @@ -5,6 +5,10 @@ <email>chutzpah@gentoo.org</email> <name>Patrick McLean</name> </maintainer> + <maintainer type="person"> + <email>dlan@gentoo.org</email> + <name>Yixun Lan</name> + </maintainer> <use> <flag name="udis86">Enable support for <pkg>dev-libs/udis86</pkg> disassembler library</flag> </use> diff --git a/dev-util/trace-cmd/trace-cmd-3.1.2.ebuild b/dev-util/trace-cmd/trace-cmd-3.1.2.ebuild new file mode 100644 index 000000000000..0d772370332c --- /dev/null +++ b/dev-util/trace-cmd/trace-cmd-3.1.2.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{8..11} ) +DISTUTILS_OPTIONAL=1 + +inherit linux-info bash-completion-r1 python-r1 toolchain-funcs + +DESCRIPTION="User-space front-end for Ftrace" +HOMEPAGE="https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/trace-cmd/${PN}.git" + inherit git-r3 +else + SRC_URI="https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/${PN}-v${PV}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~x86" + S="${WORKDIR}/${PN}-v${PV}" +fi + +LICENSE="GPL-2+ LGPL-2.1+" +SLOT="0/${PV}" +IUSE="+audit doc python test udis86 +zstd" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +RESTRICT="!test? ( test )" + +# XXX trace-cmd autodetects this without configurability. This might cause +# issues if the libraries are picked up with the useflag disabled and later +# uninstalled +RDEPEND=" + audit? ( sys-process/audit ) + python? ( ${PYTHON_DEPS} ) + udis86? ( dev-libs/udis86 ) + zstd? ( >=app-arch/zstd-1.4 ) + >=dev-libs/libtracefs-1.4 + >=dev-libs/libtraceevent-1.5 +" +DEPEND="${RDEPEND} + sys-kernel/linux-headers + test? ( dev-util/cunit ) +" +BDEPEND=" + virtual/pkgconfig + python? ( dev-lang/swig ) + doc? ( app-text/asciidoc ) +" + +# having trouble getting tests to compile +RESTRICT+=" test" + +pkg_setup() { + local CONFIG_CHECK=" + ~TRACING + ~FTRACE + ~BLK_DEV_IO_TRACE" + + linux-info_pkg_setup +} + +src_prepare() { + default + sed -r -e 's:([[:space:]]+)install_bash_completion($|[[:space:]]+):\1:' \ + -i Makefile || die "sed failed" +} + +src_configure() { + EMAKE_FLAGS=( + BUILD_OUTPUT="${WORKDIR}/${P}_build" + "prefix=${EPREFIX}/usr" + "libdir=${EPREFIX}/usr/$(get_libdir)" + "CC=$(tc-getCC)" + "AR=$(tc-getAR)" + "BASH_COMPLETE_DIR=$(get_bashcompdir)" + "etcdir=/etc" + $(usex audit '' 'NO_AUDIT=' '' '1') + $(usex test 'CUNIT_INSTALLED=' '' '1' '') + $(usex udis86 '' 'NO_UDIS86=' '' '1') + VERBOSE=1 + ) +} + +src_compile() { + emake "${EMAKE_FLAGS[@]}" NO_PYTHON=1 \ + trace-cmd + + if use python; then + python_copy_sources + python_foreach_impl python_compile + fi + + use doc && emake doc +} + +python_compile() { + pushd "${BUILD_DIR}" > /dev/null || die + + emake "${EMAKE_FLAGS[@]}" \ + PYTHON_VERS="${EPYTHON}" \ + PYTHON_PKGCONFIG_VERS="${EPYTHON//python/python-}" \ + python_dir=$(python_get_sitedir)/${PN} \ + python ctracecmd.so + + popd > /dev/null || die +} + +src_test() { + emake "${EMAKE_FLAGS[@]}" test +} + +src_install() { + emake "${EMAKE_FLAGS[@]}" NO_PYTHON=1 \ + DESTDIR="${D}" \ + install install_libs + + newbashcomp tracecmd/trace-cmd.bash "${PN}" + + use doc && emake DESTDIR="${D}" install_doc + use python && python_foreach_impl python_install +} + +python_install() { + pushd "${BUILD_DIR}" > /dev/null || die + + emake "${EMAKE_FLAGS[@]}" DESTDIR="${D}" \ + PYTHON_VERS="${EPYTHON}" \ + PYTHON_PKGCONFIG_VERS="${EPYTHON//python/python-}" \ + python_dir=$(python_get_sitedir)/${PN} \ + install_python + + popd > /dev/null || die + + python_optimize +} |