sys-process/xjobs: drop 20200726

Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
Michael Orlitzky
2025-03-12 02:55:51 -04:00
parent ddb783fa55
commit ea8d233ca7
4 changed files with 0 additions and 108 deletions

View File

@@ -1,2 +1 @@
DIST xjobs-20200726.tgz 113795 BLAKE2B 4a6bfa405c6abf507ea9d0fce066b1547f1900687b04cf5797ced4862052596b4a32c2b24a89a7665e2253fe322ae83948d367c0ffc176bb322a0df9df0023a0 SHA512 52d84a957f53e894897770512271709bdfb1c45e51e1765cc16d96d9dc54901451d3f6ed16ed3a8ff4718e96b149fb2b53ee205d6ff1e1463f1de8b02b345705
DIST xjobs-20241010.tgz 118169 BLAKE2B a7dfb303d3745867893cda7b3c895e20ce9eb216324d18268fca5785067a9a4421ff7489e2abeca0164403dbdc6f7191a0d7dff2a005a3a063f92034c7d77e91 SHA512 df1621648edfc4ecbfa1bc63e975691adf70d27350bd05244ca27e6aed8b4b0b772fb976aea7fc029ed8ffe9173f3d232be92ac053107649d0a5dba2f18c51e1

View File

@@ -1,48 +0,0 @@
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

View File

@@ -1,27 +0,0 @@
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

View File

@@ -1,32 +0,0 @@
# Copyright 1999-2024 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="app-alternatives/lex"
# 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
}