Patchwork [RFC,v1,12/14] autoconf: fix out-of-tree build

mail settings
Submitter Thomas Petazzoni
Date Jan. 20, 2013, 11:52 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/214005/
State Changes Requested
Headers show


Thomas Petazzoni - Jan. 20, 2013, 11:52 p.m.
Even though one might think that autoconf should have been the best
example of a clean and nice example of a correct out of tree build
implementation, this is not the case. The autoconf build process makes
modification to the source tree, for some obscure updating process of
manual pages.

For now, we workaround this problem by re-adding write permissions on
the man/ subdirectory of autoconf sources, but on the long term, a
proper, upstreamable solution would be better.

Signed-off-by: Thomas Petazzoni <>
 package/autoconf/ |   10 ++++++++++
 1 file changed, 10 insertions(+)


diff --git a/package/autoconf/ b/package/autoconf/
index 8807c10..e77bb54 100644
--- a/package/autoconf/
+++ b/package/autoconf/
@@ -20,6 +20,16 @@  HOST_AUTOCONF_CONF_ENV = ac_cv_path_M4=$(HOST_DIR)/usr/bin/m4 \
 HOST_AUTOCONF_DEPENDENCIES = host-m4 host-libtool
+# The autoconf build process writes to its source directory, which is
+# very stupid, but forces us to give write permissions to one
+# directory.
+	chmod u+w -R $(AUTOCONF_SRCDIR)/man
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))