From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1481924-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F0CB915800F for <garchives@archives.gentoo.org>; Sun, 29 Jan 2023 07:33:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3FEE6E088C; Sun, 29 Jan 2023 07:33:30 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 25904E088C for <gentoo-commits@lists.gentoo.org>; Sun, 29 Jan 2023 07:33:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4D8AE340E8A for <gentoo-commits@lists.gentoo.org>; Sun, 29 Jan 2023 07:33:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D7DE9893 for <gentoo-commits@lists.gentoo.org>; Sun, 29 Jan 2023 07:33:26 +0000 (UTC) From: "Sam James" <sam@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org> Message-ID: <1674977593.cc023c47f0a30174d43fb940109fce5781edda95.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/diffutils/files/, sys-apps/diffutils/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/diffutils/diffutils-3.9.ebuild sys-apps/diffutils/files/diffutils-3.9-make-4.4-test-color.patch X-VCS-Directories: sys-apps/diffutils/files/ sys-apps/diffutils/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: cc023c47f0a30174d43fb940109fce5781edda95 X-VCS-Branch: master Date: Sun, 29 Jan 2023 07:33:26 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 815069b3-92fd-4b6d-b0c7-6cdbc9a46f33 X-Archives-Hash: 08357974de4bb069147a4e03d3c2c5d0 commit: cc023c47f0a30174d43fb940109fce5781edda95 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Jan 29 07:32:40 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Jan 29 07:33:13 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc023c47 sys-apps/diffutils: fix tests w/ make 4.4 Closes: https://bugs.gentoo.org/879891 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-apps/diffutils/diffutils-3.9.ebuild | 10 ++++++-- .../files/diffutils-3.9-make-4.4-test-color.patch | 30 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/sys-apps/diffutils/diffutils-3.9.ebuild b/sys-apps/diffutils/diffutils-3.9.ebuild index ebbd0424d186..acce50bad293 100644 --- a/sys-apps/diffutils/diffutils-3.9.ebuild +++ b/sys-apps/diffutils/diffutils-3.9.ebuild @@ -27,8 +27,14 @@ LICENSE="GPL-2" SLOT="0" IUSE="nls static" -BDEPEND="nls? ( sys-devel/gettext ) - verify-sig? ( sec-keys/openpgp-keys-diffutils )" +BDEPEND=" + nls? ( sys-devel/gettext ) + verify-sig? ( sec-keys/openpgp-keys-diffutils ) +" + +PATCHES=( + "${FILESDIR}"/${P}-make-4.4-test-color.patch +) src_configure() { use static && append-ldflags -static 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 new file mode 100644 index 000000000000..01f6aeedc956 --- /dev/null +++ b/sys-apps/diffutils/files/diffutils-3.9-make-4.4-test-color.patch @@ -0,0 +1,30 @@ +https://bugs.gentoo.org/879891 +https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59905 +https://git.savannah.gnu.org/cgit/diffutils.git/commit/?id=89f3daeaaf021a77177daec8666bcd80ec476833 + +From 89f3daeaaf021a77177daec8666bcd80ec476833 Mon Sep 17 00:00:00 2001 +From: Jim Meyering <meyering@fb.com> +Date: Mon, 16 Jan 2023 15:48:10 -0800 +Subject: tests: accommodate newer GNU make's SIGPIPE-ignore +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +* tests/colors: Allow an exit code of not just 141 (SIGPIPE), +but also "error": 2. +Reported by Tomasz Kłoczko in http://bugs.gnu.org/59905. +--- a/tests/colors ++++ b/tests/colors +@@ -128,6 +128,9 @@ printf '%1000000s-a' > a + printf '%1000000s-b' > b + head -c 10 < fifo > /dev/null & + diff --color=always ---presume-output-tty a b > fifo +-test $? = 141 || fail=1 ++ ++# Depending on version of GNU make (4.3.92-4.4 set SIGPIPE to "ignore"), ++# either of these is acceptable. ++case $? in 2|141) ;; *) fail=1 ;; esac + + Exit $fail +-- +cgit v1.1