autoconf substitution in install paths breaks rpmbuild which redefines 
install paths

make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib/lxc/templates" || /bin/mkdir -p
"/usr/lib/lxc/templates"
 /usr/bin/install -c lxc-debian lxc-lenny lxc-lucid lxc-maverick
lxc-natty lxc-fedora lxc-busybox lxc-sshd '/usr/lib/lxc/templates'
/usr/bin/install: cannot remove `/usr/lib/lxc/templates/lxc-debian':
Permission denied
/usr/bin/install: cannot remove `/usr/lib/lxc/templates/lxc-lenny':
Permission denied
/usr/bin/install: cannot remove `/usr/lib/lxc/templates/lxc-lucid':
Permission denied
/usr/bin/install: cannot remove `/usr/lib/lxc/templates/lxc-maverick':
Permission denied
/usr/bin/install: cannot remove `/usr/lib/lxc/templates/lxc-natty':
Permission denied
/usr/bin/install: cannot remove `/usr/lib/lxc/templates/lxc-fedora':
Permission denied
/usr/bin/install: cannot remove `/usr/lib/lxc/templates/lxc-busybox':
Permission denied
/usr/bin/install: cannot remove `/usr/lib/lxc/templates/lxc-sshd':
Permission denied
make[3]: *** [install-templatesSCRIPTS] Error 1

Signed-off-by: Cedric Le Goater <c...@fr.ibm.com>
---
 doc/rootfs/Makefile.am |    5 +++--
 templates/Makefile.am  |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/doc/rootfs/Makefile.am b/doc/rootfs/Makefile.am
index 98fb0e0..6dff0de 100644
--- a/doc/rootfs/Makefile.am
+++ b/doc/rootfs/Makefile.am
@@ -1,3 +1,4 @@
-READMEdir=@LXCROOTFSMOUNT@
+READMEdir=$(pkglibdir)/rootfs
+
+README_DATA=README
 
-README_DATA=README
\ No newline at end of file
diff --git a/templates/Makefile.am b/templates/Makefile.am
index f0750e6..26a7d1a 100644
--- a/templates/Makefile.am
+++ b/templates/Makefile.am
@@ -1,4 +1,4 @@
-templatesdir=@LXCTEMPLATEDIR@
+templatesdir=$(pkglibdir)/templates
 
 templates_SCRIPTS = \
        lxc-debian \

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to