Index: head/sysutils/xe/Makefile =================================================================== --- head/sysutils/xe/Makefile (revision 446569) +++ head/sysutils/xe/Makefile (revision 446570) @@ -1,30 +1,30 @@ # Created by: Tobias Kortkamp # $FreeBSD$ PORTNAME= xe -PORTVERSION= 0.7.0 +PORTVERSION= 0.9 DISTVERSIONPREFIX= v CATEGORIES= sysutils MAINTAINER= tobik@FreeBSD.org COMMENT= Simple xargs and apply replacement LICENSE= CC0-1.0 USE_GITHUB= yes GH_ACCOUNT= chneukirchen USES= perl5 USE_PERL5= test MAKE_ARGS= CFLAGS="${CFLAGS}" \ MANDIR="${PREFIX}/man" TEST_TARGET= check PLIST_FILES= bin/xe \ man/man1/xe.1.gz post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xe .include Index: head/sysutils/xe/distinfo =================================================================== --- head/sysutils/xe/distinfo (revision 446569) +++ head/sysutils/xe/distinfo (revision 446570) @@ -1,3 +1,3 @@ -TIMESTAMP = 1492163693 -SHA256 (chneukirchen-xe-v0.7.0_GH0.tar.gz) = 32af920a2d27ed0bb8bcb69339fcc805110888e872c92a372d3888df52b300f8 -SIZE (chneukirchen-xe-v0.7.0_GH0.tar.gz) = 7047 +TIMESTAMP = 1500981663 +SHA256 (chneukirchen-xe-v0.9_GH0.tar.gz) = 0e72bafd0d5c30953ef7a5dca710296aec621a60fb62c0aaf7ee2af5e68c2ac2 +SIZE (chneukirchen-xe-v0.9_GH0.tar.gz) = 8444 Index: head/sysutils/xe/files/patch-tests =================================================================== --- head/sysutils/xe/files/patch-tests (revision 446569) +++ head/sysutils/xe/files/patch-tests (revision 446570) @@ -1,49 +1,40 @@ Fix tests -- -A% with no arguments fails now with the additional checks in 0.7.0 - Trying to exec /dev/null/calc.exe on FreeBSD will fail with ENOENT (xe exit 127) but on Linux fails with ENODIR (xe exit 126) - The argscap check returns 8186 + 8186 + 1339 = 17711 on FreeBSD, which should be fine. ---- tests.orig 2017-04-13 15:28:38 UTC +--- tests.orig 2017-07-17 14:20:26 UTC +++ tests -@@ -1,5 +1,5 @@ - #!/bin/sh --printf '1..42\n' -+printf '1..41\n' +@@ -194,7 +194,7 @@ check_output 'using -LL' '{ echo 1; sleep 1; echo 2; s + EOF - set -e - -@@ -127,9 +127,6 @@ check_output 'using -A%' '$XE -A% echo - - -- 3 + check_output 'using -vvL' '{ echo 1; sleep 1; echo 2; sleep 1; echo 3; } | xe -j2 -vvL -s "printf \$1; sleep 1; echo \$1" | wc -l' </dev/null || echo $?' </dev/null || echo $?' </dev/null || echo $?' </dev/null || echo $?' < #include +#include #include #include #include -@@ -99,7 +100,7 @@ mywait() +@@ -114,7 +115,7 @@ my_child: } else if (WEXITSTATUS(status) > 125) { exit(WEXITSTATUS(status)); } - } else if (WIFSIGNALED(status)) { + } else if (WIFSIGNALED(status) && !(fflag && WTERMSIG(status) == SIGPIPE)) { - fprintf(stderr, "xe: pid %d terminated by signal %d\n", - pid, WTERMSIG(status)); + fprintf(stderr, "xe: job %ld [pid %ld] terminated by signal %d\n", + children[i].iter, (long)pid, WTERMSIG(status)); exit(125); -@@ -358,6 +359,7 @@ main(int argc, char *argv[], char *envp[ +@@ -472,6 +473,7 @@ main(int argc, char *argv[], char *envp[]) pusharg("/bin/sh"); pusharg("-c"); pusharg(sflag); + pusharg("--"); pusharg("-"); } else if (optind >= cmdend) { pusharg("printf");