Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3 Use -f with cp.



details:   https://anonhg.NetBSD.org/src/rev/b3a90bf56dc2
branches:  trunk
changeset: 341360:b3a90bf56dc2
user:      gdt <gdt%NetBSD.org@localhost>
date:      Mon Nov 02 00:51:18 2015 +0000

description:
Use -f with cp.

When the source tree is 444 (as should be unremarkable), cp results in
object files that are 444, which when cp'd again without -f result in
an error.

diffstat:

 external/gpl3/gcc.old/dist/gcc/Makefile.in |  4 ++--
 external/gpl3/gcc/dist/gcc/Makefile.in     |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r e2c6da79661d -r b3a90bf56dc2 external/gpl3/gcc.old/dist/gcc/Makefile.in
--- a/external/gpl3/gcc.old/dist/gcc/Makefile.in        Mon Nov 02 00:50:47 2015 +0000
+++ b/external/gpl3/gcc.old/dist/gcc/Makefile.in        Mon Nov 02 00:51:18 2015 +0000
@@ -1902,10 +1902,10 @@
 # ??? the implicit rules dont trigger if the source file has a different name
 # so copy instead
 gcc-ranlib.c: gcc-ar.c
-       cp $^ $@
+       cp -f $^ $@
 
 gcc-nm.c: gcc-ar.c
-       cp $^ $@
+       cp -f $^ $@
 
 COLLECT2_OBJS = collect2.o collect2-aix.o tlink.o vec.o ggc-none.o file-find.o
 COLLECT2_LIBS = @COLLECT2_LIBS@
diff -r e2c6da79661d -r b3a90bf56dc2 external/gpl3/gcc/dist/gcc/Makefile.in
--- a/external/gpl3/gcc/dist/gcc/Makefile.in    Mon Nov 02 00:50:47 2015 +0000
+++ b/external/gpl3/gcc/dist/gcc/Makefile.in    Mon Nov 02 00:51:18 2015 +0000
@@ -1902,10 +1902,10 @@
 # ??? the implicit rules dont trigger if the source file has a different name
 # so copy instead
 gcc-ranlib.c: gcc-ar.c
-       cp $^ $@
+       cp -f $^ $@
 
 gcc-nm.c: gcc-ar.c
-       cp $^ $@
+       cp -f $^ $@
 
 COLLECT2_OBJS = collect2.o collect2-aix.o tlink.o vec.o ggc-none.o file-find.o
 COLLECT2_LIBS = @COLLECT2_LIBS@



Home | Main Index | Thread Index | Old Index