From 7db205d25d93f801b5f22dfb8afd059c3961ff4f Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 5 Jun 2012 13:27:23 +0100 Subject: [PATCH] Fix distcheck: remove potentially-read-only files from builddir 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 --- test/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/test/Makefile.am b/test/Makefile.am index 0418e59..aa04792 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -294,6 +294,7 @@ all-local: else \ for F in $(static_data); do \ $(MKDIR_P) $${F%/*}; \ + rm -f $$F; \ cp $(srcdir)/$$F $$F; \ done; \ fi -- 2.7.4