Article View: linux.gentoo.dev
Article #207Re: [gentoo-dev] [PATCH 0/3] Fix generated dune-package sections
From: Sam James
Date: Thu, 19 Nov 2026 15:10
Date: Thu, 19 Nov 2026 15:10
76 lines
3730 bytes
3730 bytes
--=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Thomas Bracht Laumann Jespersen <laumann@gentoo.org> writes: > When running "dune install", a dune-package file is generated that > references different sections of the installed package (libdir, docdir, > etc). These locations are the combined values of the --prefix, --libdir, > and --mandir arguments. However, if these values contain temporary > staging install locations, the generated dune-package will reference > these locations. For example: > > (lang dune 3.23) > (name csexp) > (version 1.5.2) > (sections > (lib /var/tmp/portage/dev-ml/csexp-1.5.2-r1/image/usr/lib64/ocaml/cs= exp) > (libexec /var/tmp/portage/dev-ml/csexp-1.5.2-r1/image/usr/lib64/ocam= l/csexp) > (doc /var/tmp/portage/dev-ml/csexp-1.5.2-r1/image/usr/doc/csexp)) > ... snip ... > > Instead we should be setting DESTDIR to the staging install directory in > the src_install phase, and use EPREFIX instead of ED for --prefix and > other arguments, so it ends up like this: > > (lang dune 3.23) > (name csexp) > (version 1.5.2) > (sections > (lib /usr/lib64/ocaml/csexp) > (libexec /usr/lib64/ocaml/csexp) > (doc /usr/doc/csexp)) > ... snip ... > > See: https://manual.archlinux.page/package-guidelines/ocaml/#example-pkgb= uild-using-dune > > Signed-off-by: Thomas Bracht Laumann Jespersen <laumann@gentoo.org> For the series:=20 Reviewed-by: Sam James <sam@gentoo.org> Thanks for doing this. We'll need to revbump dune.eclass consumers... > --- > Thomas Bracht Laumann Jespersen (3): > dune.eclass: set DESTDIR as the staging dir for dune-install > dune.eclass: use --docdir for dune install > dune.eclass: support EAPI=3D9 > > eclass/dune.eclass | 20 ++++++++------------ > 1 file changed, 8 insertions(+), 12 deletions(-) > --- > base-commit: c2e8a152d6ac3a687f199bdaf4868cb2809c020c > change-id: 20261119-dune-eclass-install-4adbc4bb3e12 > > Best regards, --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEBBAEWCgCpFiEEJaa7iN2bdkxrVUHCc4QJ9SDfkZAFAmr/ENIbFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQyNUE2QkI4OEREOUI3NjRDNkI1NTQx QzI3Mzg0MDlGNTIwREY5MTkwDxxzYW1AZ2VudG9vLm9yZwAKCRBzhAn1IN+RkIDZ AQCTN6Z7LmwMLXZ+KxAEWxHuWI4mtrBVifN++kxGFO/09gD/VSVLz1oGiBDTSrkB Z5NF5PFYmZEHMokVvpoPfnZ9mgk= =KbU1 -----END PGP SIGNATURE----- --=-=-=--
Technical Details
Message-ID:
<O1bVT-cUnm-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.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!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Sam James <sam@gentoo.org> Newsgroups: linux.gentoo.dev Subject: Re: [gentoo-dev] [PATCH 0/3] Fix generated dune-package sections Date: Thu, 19 Nov 2026 16:10:01 +0100 Message-ID: <O1bVT-cUnm-1@gated-at.bofh.it> References: <O19AJ-cT6p-5@gated-at.bofh.it> X-Original-To: gentoo-dev@lists.gentoo.org Organization: Gentoo User-Agent: mu4e 1.14.4; emacs 32.0.50 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: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Approved: robomod@news.nic.it Lines: 76 Sender: robomod@news.nic.it X-Original-Cc: Thomas Bracht Laumann Jespersen <laumann@gentoo.org> X-Original-Date: Thu, 19 Nov 2026 15:08:02 +0000 X-Original-Message-ID: <87v75svoz1.fsf@gentoo.org> X-Original-References: <20261119-dune-eclass-install-v1-0-0c6b81eca2b1@gentoo.org>