]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Fix distcheck: remove potentially-read-only files from builddir
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 5 Jun 2012 12:27:23 +0000 (13:27 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 12 Jun 2013 12:59:33 +0000 (13:59 +0100)
During distcheck, the srcdir is read-only. During "make all", cp may
preserve the read-only status of the file copied from the srcdir,
resulting in failure to overwrite it with an identical file during
"make check" (which depends on all-local).

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
test/Makefile.am

index f2d55fe2ff64c9fe6b40ad8e3569b3e179601182..6f8a677c3fe91c749914d4d7ba399895eea264ad 100644 (file)
@@ -308,6 +308,7 @@ all-local:
        else \
                for F in $(static_data); do \
                        $(MKDIR_P) $${F%/*}; \
+                       rm -f $$F; \
                        cp $(srcdir)/$$F $$F; \
                done; \
        fi