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;
Created attachment 689394 [details] Output of `emerge --info`
Created attachment 689397 [details] Output of `emerge -pqv`
Created attachment 689400 [details] The ebuild environment
Created attachment 689403 [details] The build directory's hierarchy
Created attachment 689406 [details, diff] Patch to the ebuild that could let installation complete
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!