Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 796893 - sys-apps/baselayout-2.7-r3: can't install a new root for riscv
Summary: sys-apps/baselayout-2.7-r3: can't install a new root for riscv
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-20 13:18 UTC by David Michael
Modified: 2021-06-23 01:01 UTC (History)
3 users (show)

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 David Michael 2021-06-20 13:18:10 UTC
The compatibility code to create the ABI symlink assumes there is an existing root file system layout.

> # emerge --{,sys}root=/tmp/newroot -1v sys-apps/baselayout
> >>> Emerging (1 of 1) sys-apps/baselayout-2.7-r3::gentoo for /tmp/newroot/
>  * baselayout-2.7.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ]
>  * symlinking /tmp/newroot/lib64 to usr/lib64
>  * symlinking /tmp/newroot/lib to usr/lib
> ln: failed to create symbolic link '/tmp/newroot/lib64/lp64d': No such file or directory
It is failing when /lib exists but is a broken symlink to /usr/lib (before /usr is created), so I don't think it can just create the parent directory.  It might need to reorder the multilib_layout paths.
Comment 1 David Michael 2021-06-23 00:53:56 UTC
This can be run beforehand as a workaround:

> mkdir -p "$ROOT/usr/lib64"