summaryrefslogtreecommitdiff
path: root/sys-process/xjobs
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
commit9ee6d97c2883d42f204a533a8bc1f4562df778fb (patch)
treeb690ddc0ca30f1472887edbb0b8313629bfcbbb2 /sys-process/xjobs
parentb17a3ef12038de50228bade1f05502c74e135321 (diff)
gentoo resync : 16.09.2020
Diffstat (limited to 'sys-process/xjobs')
-rw-r--r--sys-process/xjobs/Manifest4
-rw-r--r--sys-process/xjobs/files/xjobs-20200726-command-v.patch48
-rw-r--r--sys-process/xjobs/files/xjobs-20200726-dont-page-tests.patch27
-rw-r--r--sys-process/xjobs/xjobs-20200726.ebuild32
4 files changed, 111 insertions, 0 deletions
diff --git a/sys-process/xjobs/Manifest b/sys-process/xjobs/Manifest
index 2f7347aca2d5..95999c3b1a04 100644
--- a/sys-process/xjobs/Manifest
+++ b/sys-process/xjobs/Manifest
@@ -1,4 +1,8 @@
AUX search-libtinfo-for-tigetstr-and-tparm.patch 833 BLAKE2B 26c96c1769272fe9c1f0da72083d7878a8cc59c5319d0d3c03b3e20bc9bdfd5b24970b5f50774faee1b0a25a25fcac7ea3c5e5dbb54dedc77943d924951fcb80 SHA512 38fdb82a721f7baded31bc8aaeff0093485d8bd5afd2ffe6c9c800b74236e50b41dccca062ce83861a0c9fb1ab1075302c82c073a20e74c5ff77421faf2ef58d
+AUX xjobs-20200726-command-v.patch 1342 BLAKE2B 82559a13cdca89177e5550753bed0790a605d80e919ae16a7a043e8c53b6d9c24373013e75b4cd06c254dacb9db7e5d6cc1473e951a82126a96567940bcb1b34 SHA512 afbeac6db7edf8ee0c90249c8fda783989a8427a4d966d202d15902c1662e91983d51b3e912b3a6e70311bf0467d34478f5e59a90a47e41f129d91a67560d9c3
+AUX xjobs-20200726-dont-page-tests.patch 759 BLAKE2B 7f0fb1885df69eea19155f94be71202e8477addd7ccfc232047e7e463cc73cac51f69507583352ee3cbf644588f7309a383a57535a83383d1750380a8090569a SHA512 4825b86e27d5f52908320a04bf5c49b04c8f5aa6ec11d4c8467a2793f3deee8f562a6ce58af43e15ec33a859c6b405c6877a9ea60c02c1ef573ace116d6e8a8a
DIST xjobs-20190725.tgz 113216 BLAKE2B 079b6e104bb160101b2c4ef11e73ff040a8efa30839a39f9c91121b4928ddeefaefa43c3a94e18c9359fb6f66862ad7554598561a4e0c7f36b8f622d9a394340 SHA512 23ead9d33ebacb1b3d7a03c72c40dfb34b6254add81b0fde9e458a4be54f6298d2ce6a0b65742ac050685212eea8c5f83d48ea98b09c3928b16e36c7447a9551
+DIST xjobs-20200726.tgz 113795 BLAKE2B 4a6bfa405c6abf507ea9d0fce066b1547f1900687b04cf5797ced4862052596b4a32c2b24a89a7665e2253fe322ae83948d367c0ffc176bb322a0df9df0023a0 SHA512 52d84a957f53e894897770512271709bdfb1c45e51e1765cc16d96d9dc54901451d3f6ed16ed3a8ff4718e96b149fb2b53ee205d6ff1e1463f1de8b02b345705
EBUILD xjobs-20190725.ebuild 854 BLAKE2B 11547a4ac882fbe6147f21f0928b25b329f7578d7ae425ae993e05430d1a340a63e7d40e0fa0ad632fe3946180f4401bd2f4b6e9cf630c3a9d42f62ac88df90f SHA512 00b38eef16fd6261950ba6bae0f937449adaa9f8bedf0c8959f8a9f6855dbf6813f381f4cad0d09e007b40601b5497586696c1a7581a0d76dc31c37584e40beb
+EBUILD xjobs-20200726.ebuild 837 BLAKE2B bc74a506c167aca0c65c337d4a678d87ae0ded12cf71cabeae318e11e834396a68f2d43f2892874997a7a7402f2b23b68f7543ccce5581826a1c989f85e0a84d SHA512 4ac393dccea01e917eee7e34c63139c6b3da73557b391b37aea03b1b15842c541c90ceb963fd0b1a9b8c63ee6f384c9e31abfe2f0657fb6a15261342297f63c3
MISC metadata.xml 252 BLAKE2B fa9e1dbdc0de3313b50ecd9de7ac59006074b8b75ecb97a8fc4de5fb14609cb00dc1b24ba95a2e7fb11cbc6f8c8f0c068bd0311713cc2aa7e6016992dbd6e8bd SHA512 92f660063c96ac5b3e24e58733006d4a72a7e2f41605988efb575546a2539a92b1ceb3a37e018fcb5c08264a42af26950d6520ea80ba60130ad25ce6092ce742
diff --git a/sys-process/xjobs/files/xjobs-20200726-command-v.patch b/sys-process/xjobs/files/xjobs-20200726-command-v.patch
new file mode 100644
index 000000000000..8e233ba816c2
--- /dev/null
+++ b/sys-process/xjobs/files/xjobs-20200726-command-v.patch
@@ -0,0 +1,48 @@
+From c25bbd08331d88dc1f68806e204a091ed5693f9a Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Tue, 15 Sep 2020 20:03:06 -0400
+Subject: [PATCH 1/2] runtest1.sh,testdummy: use "command -v" instead of
+ "which".
+
+The "command -v" incantation is the POSIX-compatible version of the
+"which" command, described in
+
+ https://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html
+
+This commit changes two uses of "which" to "command -v" for maximum
+compatibility. This has a nice side effect; it eliminates the error
+output when the first of two alternatives is not found, as in
+
+ which: no gsleep in (...)
+
+before the "sleep" command is used as a fallback.
+---
+ runtest1.sh | 2 +-
+ testdummy | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/runtest1.sh b/runtest1.sh
+index 7584116..2dfadd1 100755
+--- a/runtest1.sh
++++ b/runtest1.sh
+@@ -1,4 +1,4 @@
+ #!/bin/sh
+
+-A=`which gawk || which awk`
++A="$(command -v gawk || command -v awk)"
+ $A "BEGIN{for (i=0;i<10;++i) print rand()*10}" | ./xjobs -j8 ./testdummy
+diff --git a/testdummy b/testdummy
+index 1787a46..f511806 100755
+--- a/testdummy
++++ b/testdummy
+@@ -1,6 +1,6 @@
+ #!/bin/sh
+
+-S=`which gsleep||which sleep`
++S="$(command -v gsleep || command -v sleep)"
+ $S $1
+ expr "$1" \> "4" > /dev/null
+ if [ "$?" != "0" ]; then
+--
+2.26.2
+
diff --git a/sys-process/xjobs/files/xjobs-20200726-dont-page-tests.patch b/sys-process/xjobs/files/xjobs-20200726-dont-page-tests.patch
new file mode 100644
index 000000000000..078a0a2af5aa
--- /dev/null
+++ b/sys-process/xjobs/files/xjobs-20200726-dont-page-tests.patch
@@ -0,0 +1,27 @@
+From d8b0e6f20d3e4bfc1989e98856ab11a16851b32e Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Tue, 15 Sep 2020 20:13:44 -0400
+Subject: [PATCH 2/2] runtest1.sh: unset PAGER while running tests.
+
+There's no need to page this output, and it makes automating the test
+suite a pain in the butt. Unsetting PAGER in the test script makes
+it work normally again.
+
+Gentoo-bug: https://bugs.gentoo.org/742443
+---
+ runtest1.sh | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/runtest1.sh b/runtest1.sh
+index 2dfadd1..8d5c46d 100755
+--- a/runtest1.sh
++++ b/runtest1.sh
+@@ -1,4 +1,5 @@
+ #!/bin/sh
+
+ A="$(command -v gawk || command -v awk)"
++unset PAGER
+ $A "BEGIN{for (i=0;i<10;++i) print rand()*10}" | ./xjobs -j8 ./testdummy
+--
+2.26.2
+
diff --git a/sys-process/xjobs/xjobs-20200726.ebuild b/sys-process/xjobs/xjobs-20200726.ebuild
new file mode 100644
index 000000000000..ce8701c8d06e
--- /dev/null
+++ b/sys-process/xjobs/xjobs-20200726.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Reads commands line by line and executes them in parallel"
+HOMEPAGE="https://www.maier-komor.de/xjobs.html"
+SRC_URI="https://www.maier-komor.de/${PN}/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+BDEPEND="sys-devel/flex"
+
+# The ncurses/terminfo libraries are used to provide color and status
+# support; but, they're detected and enabled automagically by the build
+# system. Thus it would do no good to hide them behind a USE flag that
+# can't be turned off.
+DEPEND="sys-libs/ncurses:0="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/xjobs-20200726-command-v.patch"
+ "${FILESDIR}/xjobs-20200726-dont-page-tests.patch"
+)
+
+src_install() {
+ default
+ use examples && dodoc -r examples
+}