diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-28 12:00:19 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-28 12:00:19 +0100 |
commit | 7166f3a0a0b7886d340010458d0b130013cb9989 (patch) | |
tree | 3ff502007dde9dba943a004a3bf201ae4e0787bd /dev-debug/drgn | |
parent | 345c02ca33341652116ddec6705530223af2de85 (diff) |
gentoo auto-resync : 28:08:2024 - 12:00:19
Diffstat (limited to 'dev-debug/drgn')
-rw-r--r-- | dev-debug/drgn/Manifest | 4 | ||||
-rw-r--r-- | dev-debug/drgn/drgn-0.0.27.ebuild | 69 | ||||
-rw-r--r-- | dev-debug/drgn/files/drgn-0.0.27-bashism.patch | 33 | ||||
-rw-r--r-- | dev-debug/drgn/metadata.xml | 12 |
4 files changed, 118 insertions, 0 deletions
diff --git a/dev-debug/drgn/Manifest b/dev-debug/drgn/Manifest new file mode 100644 index 000000000000..146a91614e93 --- /dev/null +++ b/dev-debug/drgn/Manifest @@ -0,0 +1,4 @@ +AUX drgn-0.0.27-bashism.patch 1254 BLAKE2B de06931b08d6bc1569060d39a26386492949b7cdd420b33d464249d3cc63eb4284e02d01d62c8a4aa6dc964321bc0462aa2b6e6843d0653d18c9f91560df1af6 SHA512 57557cfe1537ea1dcd174f968d1df9cf76566d8106d28a7f8968965d61929732d4b398c76bda6f9a7a29a4d5f4c830c7d9607b0d7356ce687ac993ca37107881 +DIST drgn-0.0.27.tar.gz 1193358 BLAKE2B 9008c2784075dd2409d6a948474914f0b08bbd4ee0a7d537e77de5f9f34ebede20dab2fd371047708af5ded0ef395ae2361760edd5cbee2fac88140fcbb3d58e SHA512 fab4620eada3767184b48bf641fc700697b5897c9313ee15ff16aec1070d9e7e92a732e430d4a9d0d02d7071764961e7845b2f9ee6a87c661bdf0fc4d4ecb0f0 +EBUILD drgn-0.0.27.ebuild 1364 BLAKE2B 0529a488218c9a75f381281236884dfffb6c47355f91caba2d0872d5bed396e9a0668cc7b23de858e58c503854257a284cf817709e942e00dedbb74bb0fa3c57 SHA512 93106972ff8b1d20fc10b1a35d18732fe539251b4efe8675a4b7d14f9ec406abbdc327f7fde1b175b90fec1c91f0b42151fec31c0b63221474b4d50458681cfd +MISC metadata.xml 359 BLAKE2B aa0eea7b771679ed77edfbf4678c187654e237066307bb523ece7c7ab42bdabb38cb1fb438230895216545fbad1f33f25b28c01e7f82f8a34d90e8f7ef1c3c89 SHA512 5ce3abf34bf8f653c744beaee91443844916bbbb0a55fdb4859c8569c98afffde64fe6947fd86acc3675b133d2d3a40a7e2a9ad1e378dae6118b7c5dd5f27c56 diff --git a/dev-debug/drgn/drgn-0.0.27.ebuild b/dev-debug/drgn/drgn-0.0.27.ebuild new file mode 100644 index 000000000000..7ee10c7c39b4 --- /dev/null +++ b/dev-debug/drgn/drgn-0.0.27.ebuild @@ -0,0 +1,69 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} ) + +inherit autotools distutils-r1 multiprocessing pypi toolchain-funcs + +DESCRIPTION="Programmable debugger" +HOMEPAGE=" + https://github.com/osandov/drgn + https://pypi.org/project/drgn/ + https://drgn.readthedocs.io/en/latest/ +" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="openmp" + +DEPEND=" + >=dev-libs/elfutils-0.165 + dev-libs/libkdumpfile[${PYTHON_USEDEP}] +" +RDEPEND="${DEPEND}" +BDEPEND=" + virtual/pkgconfig + test? ( dev-libs/check ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.0.27-bashism.patch +) + +distutils_enable_tests unittest + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_prepare() { + distutils-r1_src_prepare + + cd libdrgn || die + eautoreconf +} + +src_configure() { + tc-export AR CC OBJCOPY OBJDUMP PKG_CONFIG RANLIB STRIP + + cat >> setup.cfg <<-EOF || die + [build_ext] + parallel = $(makeopts_jobs) + EOF + + # setuptools calls autotools (!) + export CONFIGURE_FLAGS + CONFIGURE_FLAGS="--disable-dependency-tracking --disable-silent-rules" + CONFIGURE_FLAGS+=" --with-libkdumpfile" + CONFIGURE_FLAGS+=" $(use_enable openmp)" + distutils-r1_src_configure +} diff --git a/dev-debug/drgn/files/drgn-0.0.27-bashism.patch b/dev-debug/drgn/files/drgn-0.0.27-bashism.patch new file mode 100644 index 000000000000..7f7151c4d6bb --- /dev/null +++ b/dev-debug/drgn/files/drgn-0.0.27-bashism.patch @@ -0,0 +1,33 @@ +https://github.com/osandov/drgn/pull/427 + +From 4aad3f174ceaaa740728ba92181d9d156f70abac Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Tue, 27 Aug 2024 21:03:42 +0100 +Subject: [PATCH] libdrgn: fix bashism in M4 macro + +configure scripts need to be runnable with a POSIX-compliant /bin/sh. + +On many (but not all!) systems, /bin/sh is provided by Bash, so errors +like this aren't spotted. Notably Debian defaults to /bin/sh provided +by dash which doesn't tolerate such bashisms as '=='. + +This retains compatibility with bash. + +Signed-off-by: Sam James <sam@gentoo.org> +--- + libdrgn/m4/my_c_auto.m4 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libdrgn/m4/my_c_auto.m4 b/libdrgn/m4/my_c_auto.m4 +index d38c72436..30f3221b5 100644 +--- a/libdrgn/m4/my_c_auto.m4 ++++ b/libdrgn/m4/my_c_auto.m4 +@@ -12,7 +12,7 @@ if test "x$my_cv_c_auto" != xyes; then + AC_CACHE_CHECK([for __auto_type], [my_cv_c___auto_type], + [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[__auto_type x = 1;]])], + [my_cv_c___auto_type=yes], [my_cv_c___auto_type=no])]) +- if test "x$my_cv_c___auto_type" == xyes; then ++ if test "x$my_cv_c___auto_type" = xyes; then + AC_DEFINE([auto], [__auto_type]) + else + AC_MSG_ERROR([no auto or __auto_type]) diff --git a/dev-debug/drgn/metadata.xml b/dev-debug/drgn/metadata.xml new file mode 100644 index 000000000000..277a11e65a36 --- /dev/null +++ b/dev-debug/drgn/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>sam@gentoo.org</email> + <name>Sam James</name> + </maintainer> + <upstream> + <remote-id type="pypi">drgn</remote-id> + <remote-id type="github">osandov/drgn</remote-id> + </upstream> +</pkgmetadata> |