[PATCH] Fix broken build due to cp+symlink behaviour
Colin Guthrie
cguthrie at mandriva.org
Sat Mar 12 11:28:38 CET 2011
Sometimes the destination file is a symlink to the source file.
If this happens cp may complain:
cp: ./info.h' are the same file
This patch just adds a safety rm -f before hand which wont do any harm.
---
include/sound/Makefile | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/sound/Makefile b/include/sound/Makefile
index 4f3c782..f992c01 100644
--- a/include/sound/Makefile
+++ b/include/sound/Makefile
@@ -27,6 +27,7 @@ version.h: ../version.h
b=$$(basename $$s .h); \
if test -f $$b.patch; then \
echo "$$s: $$i $$b.patch" >> $@; \
+ echo " rm -f \$$@" >> $@; \
echo " cp \$$(INCSRC)/\$$@ ." >> $@; \
echo " patch -p0 -i $$b.patch \$$@" >> $@; \
echo >> $@; \
--
1.7.4.1
--------------060405030201020509050606--
More information about the Alsa-devel
mailing list