From unknown Sat Aug 16 13:39:38 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#15255 <15255@debbugs.gnu.org> To: bug#15255 <15255@debbugs.gnu.org> Subject: Status: coreutils should requires "patch" command 2.6 or later Reply-To: bug#15255 <15255@debbugs.gnu.org> Date: Sat, 16 Aug 2025 20:39:38 +0000 retitle 15255 coreutils should requires "patch" command 2.6 or later reassign 15255 coreutils submitter 15255 FUJIWARA Katsunori severity 15255 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 03 06:03:02 2013 Received: (at submit) by debbugs.gnu.org; 3 Sep 2013 10:03:02 +0000 Received: from localhost ([127.0.0.1]:38514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VGnRt-00067N-LI for submit@debbugs.gnu.org; Tue, 03 Sep 2013 06:03:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43647) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VGnRp-000671-MK for submit@debbugs.gnu.org; Tue, 03 Sep 2013 06:02:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGnRd-0003Ia-6i for submit@debbugs.gnu.org; Tue, 03 Sep 2013 06:02:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50, RECEIVED_FROM_WINDOWS_HOST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGnRd-0003IW-3e for submit@debbugs.gnu.org; Tue, 03 Sep 2013 06:02:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGnRW-00028s-MZ for bug-coreutils@gnu.org; Tue, 03 Sep 2013 06:02:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGnRQ-0003Gm-IE for bug-coreutils@gnu.org; Tue, 03 Sep 2013 06:02:38 -0400 Received: from smtp10.dti.ne.jp ([202.216.231.185]:49616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGnRQ-0003Gc-4r for bug-coreutils@gnu.org; Tue, 03 Sep 2013 06:02:32 -0400 Received: from feefifofum.foozy.private.lares.dti.ne.jp (HKRnm1185.tokyo-ip.dti.ne.jp [59.156.41.185]) by smtp10.dti.ne.jp (3.11s) with ESMTP AUTH id r83A2DY5014285 for ; Tue, 3 Sep 2013 19:02:20 +0900 (JST) Date: Tue, 03 Sep 2013 19:02:12 +0900 Message-ID: From: FUJIWARA Katsunori To: bug-coreutils@gnu.org Subject: coreutils should requires "patch" command 2.6 or later User-Agent: Wanderlust/2.15.7 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.3 (i386-msvc-nt6.1.7601) MULE/5.0 (SAKAKI) Meadow/3.02-dev (RINDOU) (2009-06-17 Rev.4261) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) With recent coreutils, "patch" command 2.5.9 causes failure of "./bootstrap" as below: gnulib/gnulib-tool: *** patch file gl/modules/tempname.diff didn't apply cleanly gnulib/gnulib-tool: *** Stop. missing header for unified diff at line 12 of patch The text leading up to this was: -------------------------- | | Files: | lib/tempname.c -------------------------- File to patch: EOF Skip this patch? [y] 1 out of 1 hunk ignored gnulib/gnulib-tool: *** patch file gl/modules/tempname.diff didn't apply cleanly gnulib/gnulib-tool: *** Stop. ./bootstrap[348]: build-aux/prefix-gnulib-mk: not found [No such file or directory] ./bootstrap: bootstrap_post_import_hook failed "patch" command 2.6 or later can avoid this error. "./bootstrap" should check not only availability of "patch" command, but also version of it. diff --git a/bootstrap.conf b/bootstrap.conf index 0863590..2535b20 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -324,7 +324,7 @@ git 1.4.4 gperf - gzip - makeinfo 4.13 -patch - +patch 2.6 perl 5.5 rsync - tar - ---------------------------------------------------------------------- [FUJIWARA Katsunori] foozy@lares.dti.ne.jp From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 03 11:26:57 2013 Received: (at 15255-done) by debbugs.gnu.org; 3 Sep 2013 15:26:57 +0000 Received: from localhost ([127.0.0.1]:39205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VGsVM-00088k-JQ for submit@debbugs.gnu.org; Tue, 03 Sep 2013 11:26:57 -0400 Received: from mail2.vodafone.ie ([213.233.128.44]:13944) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VGsVJ-00088U-9C for 15255-done@debbugs.gnu.org; Tue, 03 Sep 2013 11:26:54 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBAKn+JVJtT7lX/2dsb2JhbAANTsIPgnOBQYMYAQEBBDIBRhALDQsJFg8JAwIBAgFFBg0BBwEBrwCSEI92B4QdA55IjjQ Received: from unknown (HELO [192.168.1.79]) ([109.79.185.87]) by mail2.vodafone.ie with ESMTP; 03 Sep 2013 16:26:46 +0100 Message-ID: <5225FFB5.4030508@draigBrady.com> Date: Tue, 03 Sep 2013 16:26:45 +0100 From: =?ISO-8859-1?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: FUJIWARA Katsunori Subject: Re: bug#15255: coreutils should requires "patch" command 2.6 or later References: In-Reply-To: X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15255-done Cc: 15255-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On 09/03/2013 11:02 AM, FUJIWARA Katsunori wrote: > With recent coreutils, "patch" command 2.5.9 causes failure of > "./bootstrap" as below: > > gnulib/gnulib-tool: *** patch file gl/modules/tempname.diff didn't apply cleanly > gnulib/gnulib-tool: *** Stop. > missing header for unified diff at line 12 of patch > The text leading up to this was: > -------------------------- > | > | Files: > | lib/tempname.c > -------------------------- > File to patch: EOF > Skip this patch? [y] > 1 out of 1 hunk ignored > gnulib/gnulib-tool: *** patch file gl/modules/tempname.diff didn't apply cleanly > gnulib/gnulib-tool: *** Stop. > ./bootstrap[348]: build-aux/prefix-gnulib-mk: not found [No such file or directory] > ./bootstrap: bootstrap_post_import_hook failed > > "patch" command 2.6 or later can avoid this error. > > "./bootstrap" should check not only availability of "patch" command, > but also version of it. > > diff --git a/bootstrap.conf b/bootstrap.conf > index 0863590..2535b20 100644 > --- a/bootstrap.conf > +++ b/bootstrap.conf > @@ -324,7 +324,7 @@ git 1.4.4 > gperf - > gzip - > makeinfo 4.13 > -patch - > +patch 2.6 > perl 5.5 > rsync - > tar - Yikes. This in fact looks like later versions of patch do not diagnose the issues with the mangled patch. They fuzz the first hunk and _ignore_ the second hunk?? If I adjust the patch like this then all patch versions apply both hunks without issue: -@@ -1,2 +1,2 @@ +@@ -1,5 +1,5 @@ I'll report the ignored hunk issue to patch authors. thanks! Pádraig. From unknown Sat Aug 16 13:39:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 02 Oct 2013 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator