If the --prefix, --libdir, and other install locations include the
staging install directory, the sections listed in the generated
dune-package file will incorrectly reference those locations.
Instead we should set DESTDIR, and the install locations should use
EPREFIX.
Signed-off-by: Thomas Bracht Laumann Jespersen <laum…@gentoo.org>
---
eclass/dune.eclass | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/eclass/dune.eclass b/eclass/dune.eclass
index 6cd3ad402230..2bb6d4c3d2a3 100644
--- a/eclass/dune.eclass
+++ b/eclass/dune.eclass
@@ -165,10 +165,11 @@ dune-install() {
[[ ${#pkgs[@]} -eq 0 ]] && pkgs=( "${DUNE_PKG_NAME}" )
+ local -x DESTDIR="${ED}"
local -a myduneopts=(
- --prefix="${ED}/usr"
- --libdir="${D}$(ocamlc -where)"
- --mandir="${ED}/usr/share/man"
+ --prefix="${EPREFIX}/usr"
+ --libdir="$(ocamlc -where)"
+ --mandir="${EPREFIX}/usr/share/man"
)
local pkg
--
2.56.1