Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 732078 - dune.eclass: src_install() fails when gentoo package name is different than $pkg.install name - dev-ml/ocaml-base64-3.4.0 - Error: Unknown package ocaml-base64!
Summary: dune.eclass: src_install() fails when gentoo package name is different than $...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rafael Kitover
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-10 10:34 UTC by account-removed-pi8sho5Quotohwohmee6
Modified: 2020-07-10 13:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description account-removed-pi8sho5Quotohwohmee6 2020-07-10 10:34:12 UTC
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;
Comment 1 account-removed-pi8sho5Quotohwohmee6 2020-07-10 11:34:28 UTC
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
Comment 2 Rafael Kitover 2020-07-10 12:45:13 UTC
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.
Comment 3 account-removed-pi8sho5Quotohwohmee6 2020-07-10 12:58:59 UTC
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
Comment 4 Rafael Kitover 2020-07-10 13:24:54 UTC
The gentoo-dev mailing list is a good place to discuss this.