[Libguestfs] [nbdkit PATCH] build: Install ocaml files relative to --prefix

Eric Blake eblake at redhat.com
Fri Dec 7 21:09:43 UTC 2018


Rather than always trying to install ocaml files into $(OCAMLLIBS),
which is likely to be root-owned and therefore fail during a
'./configure --prefix=$HOME/subdir', we instead choose to always
install relative to $(prefix) and let distro packagers take steps
post-install to move the distro's pre-built copy into the correct
location for the distro.  This fixes a 'make distcheck' failure.

Signed-off-by: Eric Blake <eblake at redhat.com>
---
 plugins/ocaml/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/ocaml/Makefile.am b/plugins/ocaml/Makefile.am
index b95f255..bbde5e1 100644
--- a/plugins/ocaml/Makefile.am
+++ b/plugins/ocaml/Makefile.am
@@ -39,7 +39,7 @@ EXTRA_DIST = \

 if HAVE_OCAML

-ocamllibdir = $(OCAMLLIB)
+ocamllibdir = $(libdir)/ocaml
 ocamllib_DATA = NBDKit.mli NBDKit.cmi NBDKit.cmx NBDKit.o

 NBDKit.cmi: NBDKit.mli
-- 
2.17.2




More information about the Libguestfs mailing list