From c8ab8d344b5335fae51fef01e3b8d23be066721f Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 10 May 2016 18:10:43 -0400 Subject: [PATCH] Fix: examples make distcheck failure "make distcheck" marks each source file on the srcdir in the extracted dist tarball read-only. The examples copy from the srcdir into the builddir before running the "make" examples, but this keeps the read-only flag on the builddir directories, which fails the build because the resulting objects cannot be created. Fix this by ensuring the copied target directory for each example is user-writeable. Fixes: #903 Signed-off-by: Mathieu Desnoyers --- doc/examples/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 7a511fe4..b62a7886 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -92,6 +92,7 @@ all-local: @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ for subdir in $(SUBDIRS_PROXY) $(SUBDIRS_JUL) $(SUBDIRS_LOG4J); do \ cp -pfR $(srcdir)/$$subdir $(builddir); \ + chmod -R u+w $(builddir)/$$subdir; \ done; \ fi; \ if [ x"$(shell echo "$(top_srcdir)" | grep "^/" | wc -l)" = x"1" ]; then \ -- 2.34.1