Article View: linux.gentoo.dev
Article #203[gentoo-dev] [PATCH 1/3] dune.eclass: set DESTDIR as the staging dir for dune-install
From: Thomas Bracht Laumann Jespersen
Date: Thu, 19 Nov 2026 12:40
Date: Thu, 19 Nov 2026 12:40
34 lines
2811 bytes
2811 bytes
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 <laumann@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
Technical Details
Message-ID:
<O19AJ-cT6p-15@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<O19AJ-cT6p-5@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Thomas Bracht Laumann Jespersen <laumann@gentoo.org> Newsgroups: linux.gentoo.dev Subject: [gentoo-dev] [PATCH 1/3] dune.eclass: set DESTDIR as the staging dir for dune-install Date: Thu, 19 Nov 2026 13:40:01 +0100 Message-ID: <O19AJ-cT6p-15@gated-at.bofh.it> References: <O19AJ-cT6p-5@gated-at.bofh.it> List-ID: Gentoo Linux mail <gentoo-dev.gentoo.org> Reply-To: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=976; i=laumann@gentoo.org; h=from:subject:message-id; bh=1vqgVz/ChXsKqlf04xjjLBtL4Bi1ldb9obSSXZ0VgWo=; b=owGbwMvMwCWm/LstS/zLCmvG02pJDFn/3qhvemHiUiu7IPyS+P7KCjOFl4KiX37Mbbint39v9 PPHz1r4Oz6yMIhxMcwUU2RZvWVl10Vr8RPMBxn3wcxhZQIZIi3SwAAELAx8uYl5pUY6Rnqm2oZ6 hkCGjlE8RE6PQSOzuLg0tUg3raDIIS+/JLEkMz+vWC+/IDWvIL1ALy0zrSQjI7+oOBVohF5eaom jk5OJo6WFo4uhsZOhubOFgbGzoYGhk6uRsZuThZmZo6G5m4mjhbETAxenAMw1Co4M/4wVHA4ai6 4SMvtzNXDCi5lyt+w2TtbZ6tPpaX7t4gnZ/60M/5SUWVc9375Nre7hhpmtHy3P/vPsClm8V0C2U U+C79D9P3wA X-Developer-Key: i=laumann@gentoo.org; a=openpgp; fpr=94DC1AEB62B1E0B4FDC5DC3A85C9FB9C4405C282 Approved: robomod@news.nic.it Lines: 34 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Thomas Bracht Laumann Jespersen <laumann@gentoo.org> X-Original-Date: Thu, 19 Nov 2026 13:31:20 +0100 X-Original-Message-ID: <20261119-dune-eclass-install-v1-1-0c6b81eca2b1@gentoo.org> X-Original-References: <20261119-dune-eclass-install-v1-0-0c6b81eca2b1@gentoo.org>