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/csexp)
(libexec /var/tmp/portage/dev-ml/csexp-1.5.2-r1/image/usr/lib64/ocaml/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-pkgbuild-using-dune
Signed-off-by: Thomas Bracht Laumann Jespersen <laum…@gentoo.org>
---
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=9
eclass/dune.eclass | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
---
base-commit: c2e8a152d6ac3a687f199bdaf4868cb2809c020c
change-id: 20261119-dune-eclass-install-4adbc4bb3e12
Best regards,
--
Thomas Bracht Laumann Jespersen <laum…@gentoo.org>
[gentoo-dev] [PATCH 0/3] Fix generated dune-package sections
- From
- Thomas Bracht Laumann Jespersen <laum…@gentoo.org>
- Reply-To
- gent…@lists.gentoo.org
- Sender
- robo…@news.nic.it
- Organization
- linux.* mail to news gateway
- Message-ID
- <O19A…@gated-at.bofh.it>
- Date
- Newsgroups
- linux.gentoo.dev
Moderated This group is moderated.