Hi, Install can failed when gentoo package name is different than $pkg.install name. For example, building ocaml-base64 package with dune.eclass failed during the installation. ebuild ocaml-base64-3.4.0.ebuild package * ocaml-base64-3.4.0.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking ocaml-base64-3.4.0.tar.gz to /var/tmp/portage/dev-ml/ocaml-base64-3.4.0/work >>> Source unpacked in /var/tmp/portage/dev-ml/ocaml-base64-3.4.0/work >>> Preparing source in /var/tmp/portage/dev-ml/ocaml-base64-3.4.0/work/ocaml-base64-3.4.0 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-ml/ocaml-base64-3.4.0/work/ocaml-base64-3.4.0 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-ml/ocaml-base64-3.4.0/work/ocaml-base64-3.4.0 ... >>> Source compiled. >>> Test phase [not enabled]: dev-ml/ocaml-base64-3.4.0 >>> Install dev-ml/ocaml-base64-3.4.0 into /var/tmp/portage/dev-ml/ocaml-base64-3.4.0/image Error: Unknown package ocaml-base64! * ERROR: dev-ml/ocaml-base64-3.4.0::moteel-overlay failed (install phase): * (no error message) * * Call stack: * ebuild.sh, line 125: Called src_install * environment, line 475: Called dune_src_install * environment, line 293: Called dune-install 'ocaml-base64' * environment, line 283: Called die * The specific snippet of code: * dune install --prefix="${ED%/}/usr" --libdir="${D%/}$(ocamlc -where)" "${pkg}" || die;
I wonder if this gentoo package name should not be renamed to base64 instead of ocaml-base64. On the opam website the package is named base64 and not ocaml-base64. https://opam.ocaml.org/packages/base64/ What is your point of view about that. Thx
You have to set DUNE_PKG_NAME before you inherit dune if it's different from the gentoo package name, for example: DUNE_PKG_NAME=base64 inherit dune see dev-ml/ocaml-fileutils/ocaml-fileutils-0.6.2.ebuild for an example.
Ok, I see. I would like to come back about gentoo package naming. Why some of gentoo packages in dev-ml use a different naming than the list of packages on https://opam.ocaml.org/packages. Thx
The gentoo-dev mailing list is a good place to discuss this.