1 |
commit: cc023c47f0a30174d43fb940109fce5781edda95 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 29 07:32:40 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 29 07:33:13 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc023c47 |
7 |
|
8 |
sys-apps/diffutils: fix tests w/ make 4.4 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/879891 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
sys-apps/diffutils/diffutils-3.9.ebuild | 10 ++++++-- |
14 |
.../files/diffutils-3.9-make-4.4-test-color.patch | 30 ++++++++++++++++++++++ |
15 |
2 files changed, 38 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/sys-apps/diffutils/diffutils-3.9.ebuild b/sys-apps/diffutils/diffutils-3.9.ebuild |
18 |
index ebbd0424d186..acce50bad293 100644 |
19 |
--- a/sys-apps/diffutils/diffutils-3.9.ebuild |
20 |
+++ b/sys-apps/diffutils/diffutils-3.9.ebuild |
21 |
@@ -27,8 +27,14 @@ LICENSE="GPL-2" |
22 |
SLOT="0" |
23 |
IUSE="nls static" |
24 |
|
25 |
-BDEPEND="nls? ( sys-devel/gettext ) |
26 |
- verify-sig? ( sec-keys/openpgp-keys-diffutils )" |
27 |
+BDEPEND=" |
28 |
+ nls? ( sys-devel/gettext ) |
29 |
+ verify-sig? ( sec-keys/openpgp-keys-diffutils ) |
30 |
+" |
31 |
+ |
32 |
+PATCHES=( |
33 |
+ "${FILESDIR}"/${P}-make-4.4-test-color.patch |
34 |
+) |
35 |
|
36 |
src_configure() { |
37 |
use static && append-ldflags -static |
38 |
|
39 |
diff --git a/sys-apps/diffutils/files/diffutils-3.9-make-4.4-test-color.patch b/sys-apps/diffutils/files/diffutils-3.9-make-4.4-test-color.patch |
40 |
new file mode 100644 |
41 |
index 000000000000..01f6aeedc956 |
42 |
--- /dev/null |
43 |
+++ b/sys-apps/diffutils/files/diffutils-3.9-make-4.4-test-color.patch |
44 |
@@ -0,0 +1,30 @@ |
45 |
+https://bugs.gentoo.org/879891 |
46 |
+https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59905 |
47 |
+https://git.savannah.gnu.org/cgit/diffutils.git/commit/?id=89f3daeaaf021a77177daec8666bcd80ec476833 |
48 |
+ |
49 |
+From 89f3daeaaf021a77177daec8666bcd80ec476833 Mon Sep 17 00:00:00 2001 |
50 |
+From: Jim Meyering <meyering@××.com> |
51 |
+Date: Mon, 16 Jan 2023 15:48:10 -0800 |
52 |
+Subject: tests: accommodate newer GNU make's SIGPIPE-ignore |
53 |
+MIME-Version: 1.0 |
54 |
+Content-Type: text/plain; charset=UTF-8 |
55 |
+Content-Transfer-Encoding: 8bit |
56 |
+ |
57 |
+* tests/colors: Allow an exit code of not just 141 (SIGPIPE), |
58 |
+but also "error": 2. |
59 |
+Reported by Tomasz Kłoczko in http://bugs.gnu.org/59905. |
60 |
+--- a/tests/colors |
61 |
++++ b/tests/colors |
62 |
+@@ -128,6 +128,9 @@ printf '%1000000s-a' > a |
63 |
+ printf '%1000000s-b' > b |
64 |
+ head -c 10 < fifo > /dev/null & |
65 |
+ diff --color=always ---presume-output-tty a b > fifo |
66 |
+-test $? = 141 || fail=1 |
67 |
++ |
68 |
++# Depending on version of GNU make (4.3.92-4.4 set SIGPIPE to "ignore"), |
69 |
++# either of these is acceptable. |
70 |
++case $? in 2|141) ;; *) fail=1 ;; esac |
71 |
+ |
72 |
+ Exit $fail |
73 |
+-- |
74 |
+cgit v1.1 |