From: Mathieu Desnoyers Date: Tue, 10 May 2016 22:22:00 +0000 (-0400) Subject: Fix: examples make distcheck failure X-Git-Tag: v0.9.3~22 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=df3250de4bf86bfdd0232164f868363c54871804;p=urcu.git 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. Signed-off-by: Mathieu Desnoyers --- diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 313f521..6828eee 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -123,9 +123,12 @@ SUBDIRS_PROXY = hlist list urcu-flavors wfcqueue rculfqueue \ all-local: @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ cp -pfR $(srcdir)/dist-files $(builddir); \ + chmod -R u+w $(builddir)/dist-files; \ cp -pf $(srcdir)/Makefile.examples.template $(builddir); \ + chmod u+w $(builddir)/Makefile.examples.template; \ for subdir in $(SUBDIRS_PROXY); 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 \