From 3e4e19de304850147299599a9e05a23d26db1b45 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 19 Sep 2025 20:40:18 +0100 Subject: [PATCH] sys-process/parallel: needs ithreads Unfortunately, parcat really does seem to need ithreads, so depend on it accordingly. Worse, it doesn't seem to check for failure in all cases either if it is missing. Note: if you're hitting a conflict caused by this, you need to set PERL_FEATURES globally or in package.use with */*, not just for paralllel. Closes: https://bugs.gentoo.org/940683 Signed-off-by: Sam James --- .../parallel/parallel-20250722-r1.ebuild | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 sys-process/parallel/parallel-20250722-r1.ebuild diff --git a/sys-process/parallel/parallel-20250722-r1.ebuild b/sys-process/parallel/parallel-20250722-r1.ebuild new file mode 100644 index 0000000000000..9b3cf59c9890a --- /dev/null +++ b/sys-process/parallel/parallel-20250722-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/oletange.asc +inherit verify-sig + +DESCRIPTION="Shell tool for executing jobs in parallel locally or on remote machines" +HOMEPAGE="https://www.gnu.org/software/parallel/ https://git.savannah.gnu.org/cgit/parallel.git/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2" +SRC_URI+=" verify-sig? ( mirror://gnu/${PN}/${P}.tar.bz2.sig )" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" + +RDEPEND=" + dev-lang/perl[perl_features_ithreads] + dev-perl/Devel-Size + dev-perl/Text-CSV +" +DEPEND="${RDEPEND}" +BDEPEND="verify-sig? ( >=sec-keys/openpgp-keys-oletange-20210423 )" + +src_configure() { + # bug #908214 + unset PARALLEL_HOME + + econf --docdir="${EPREFIX}"/usr/share/doc/${PF}/html +} + +src_compile() { + # Silence a warning where it tries to use pod2pdf; force it to fallback + # to pre-generated PDF. + mkdir "${T}"/fake || die + ln -s "${BROOT}"/bin/false "${T}"/fake/pod2pdf || die + export PATH="${T}/fake:${PATH}" + + default +}