From unknown Sat Aug 16 21:22:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15255: coreutils should requires "patch" command 2.6 or later Resent-From: FUJIWARA Katsunori Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 03 Sep 2013 10:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15255 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 15255@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.137820258223536 (code B ref -1); Tue, 03 Sep 2013 10:04:02 +0000 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 User-Agent: Wanderlust/2.15.7 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) 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-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 unknown Sat Aug 16 21:22:04 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: FUJIWARA Katsunori Subject: bug#15255: closed (Re: bug#15255: coreutils should requires "patch" command 2.6 or later) Message-ID: References: <5225FFB5.4030508@draigBrady.com> X-Gnu-PR-Message: they-closed 15255 X-Gnu-PR-Package: coreutils Reply-To: 15255@debbugs.gnu.org Date: Tue, 03 Sep 2013 15:27:05 +0000 Content-Type: multipart/mixed; boundary="----------=_1378222025-31318-1" This is a multi-part message in MIME format... ------------=_1378222025-31318-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #15255: coreutils should requires "patch" command 2.6 or later which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 15255@debbugs.gnu.org. --=20 15255: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15255 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1378222025-31318-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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. ------------=_1378222025-31318-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 ------------=_1378222025-31318-1--