GNU bug report logs - #19376
[PATCH 4/4] build: use -pi.bak instead of -pi

Previous Next

Package: coreutils;

Reported by: KO Myung-Hun <komh78 <at> gmail.com>

Date: Sun, 14 Dec 2014 03:49:04 UTC

Severity: normal

Tags: patch, wontfix

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: KO Myung-Hun <komh78 <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: [PATCH 4/4] build: use -pi.bak instead of -pi
Date: Sun, 14 Dec 2014 12:47:41 +0900
This fixes the following error.

-----
Can't do inplace edit without backup.
-----

* Makefile.am (dist-hook): Use -pi.bak instead of -pi.
* bootstrap.conf (bootstrap_epilogue): Likewise.
---
 Makefile.am    | 2 +-
 bootstrap.conf | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index fb4af27..371eb59 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -105,7 +105,7 @@ BUILT_SOURCES = .version
 # See the rm_subst comment for details.
 dist-hook: gen-ChangeLog
 	$(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
-	$(AM_V_at)perl -pi -e '$(rm_subst)' $(distdir)/Makefile.in
+	$(AM_V_at)perl -pi.bak -e '$(rm_subst)' $(distdir)/Makefile.in
 
 gen_start_date = 2008-02-08
 .PHONY: gen-ChangeLog
diff --git a/bootstrap.conf b/bootstrap.conf
index c0b5f02..0baf455 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -366,7 +366,7 @@ bootstrap_epilogue()
   # Why?  That pipeline searches all files in $(top_srcdir), and if you
   # happen to have large files (or apparently large sparse files), the
   # first grep may well run out of memory.
-  perl -pi -e 's/if LC_ALL=C grep .GNU .PACKAGE.*; then/if true; then/' \
+  perl -pi.bak -e 's/if LC_ALL=C grep .GNU .PACKAGE.*; then/if true; then/' \
     po/Makefile.in.in
 
   # Install our git hooks, as long as "cp" accepts the --backup option,
-- 
1.8.5.2





This bug report was last modified 6 years and 220 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.