Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 774243 - dev-ml/dune-2.8.2 fails to install on systems with 'split-usr' USE flag masked
Summary: dev-ml/dune-2.8.2 fails to install on systems with 'split-usr' USE flag masked
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low minor (vote)
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-03-04 23:29 UTC by Yuan Liao (Leo3418)
Modified: 2022-04-23 02:01 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,41.67 KB, text/plain)
2021-03-04 23:29 UTC, Yuan Liao (Leo3418)
Details
Output of `emerge --info` (emerge-info-pkg.txt,5.74 KB, text/plain)
2021-03-04 23:29 UTC, Yuan Liao (Leo3418)
Details
Output of `emerge -pqv` (emerge-pretend.txt,253 bytes, text/plain)
2021-03-04 23:30 UTC, Yuan Liao (Leo3418)
Details
The ebuild environment (environment,19.37 KB, text/plain)
2021-03-04 23:30 UTC, Yuan Liao (Leo3418)
Details
The build directory's hierarchy (image-dir-hier.txt,932 bytes, text/plain)
2021-03-04 23:31 UTC, Yuan Liao (Leo3418)
Details
Patch to the ebuild that could let installation complete (0001-dev-ml-dune-Change-path-to-doc-and-man-in-build-dire.patch,1.17 KB, patch)
2021-03-04 23:32 UTC, Yuan Liao (Leo3418)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuan Liao (Leo3418) 2021-03-04 23:29:12 UTC
Created attachment 689391 [details]
build.log

Installation of dev-ml/dune-2.8.2 fails to complete on two of my Gentoo systems.  It was first observed in an update on my production system.  Then I tried to install it on my test system which was almost pristine and did not have any other packages related to OCaml installed beforehand, and the same error was reproducible.

The package could be built, but it would fail on the install stage:

mv: cannot stat '/var/tmp/portage/dev-ml/dune-2.8.2/image/usr/doc': No such file or directory
 * ERROR: dev-ml/dune-2.8.2::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 125:  Called src_install
 *   environment, line 491:  Called die
 * The specific snippet of code:
 *       mv "${ED}"/usr/doc "${ED}"/usr/share/doc/${PF} || die;
Comment 1 Yuan Liao (Leo3418) 2021-03-04 23:29:48 UTC
Created attachment 689394 [details]
Output of `emerge --info`
Comment 2 Yuan Liao (Leo3418) 2021-03-04 23:30:15 UTC
Created attachment 689397 [details]
Output of `emerge -pqv`
Comment 3 Yuan Liao (Leo3418) 2021-03-04 23:30:40 UTC
Created attachment 689400 [details]
The ebuild environment
Comment 4 Yuan Liao (Leo3418) 2021-03-04 23:31:04 UTC
Created attachment 689403 [details]
The build directory's hierarchy
Comment 5 Yuan Liao (Leo3418) 2021-03-04 23:32:01 UTC
Created attachment 689406 [details, diff]
Patch to the ebuild that could let installation complete
Comment 6 Yuan Liao (Leo3418) 2021-03-05 04:38:11 UTC
Well, this is a little embarrassing.  Soon after I submitted this bug, I realized it might have something to do with the fact that both systems I used had the 'split-usr' USE flag disabled, because I was crazy enough to perform a /usr merge on my systems.  I spent a few hours installing a new copy of Gentoo in a virtual machine, with 'split-usr' enabled and system layout untouched, tested it again, and the package could be installed normally.

As of now, the 'split-usr' USE flag is forcibly enabled on all profiles, so this shouldn't be an issue for most users, unless they are as crazy as me and also have their system /usr-merged.  I don't know if Gentoo has any plan on /usr merge at this point.  If this package's maintainers are interested in ensuring that it works on systems with 'split-usr' disabled, then there's work to do.  Otherwise, it should be fine for now.

Sorry if this has created any surprise or confusion to the maintainers.  This might be either a non-issue or a trivial problem depending on the maintainers' interest, and I wish to express this with the updated importance and status of this ticket.  I'm not very familiar with these things so please correct them if I have made a mistake, thanks!