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: RESOLVED FIXED
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: 2023-01-24 22:58 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"
Comment 2 Larry the Git Cow gentoo-dev 2023-01-24 22:58:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6dce91299dc71c90f302e2d25828f7b2dfff477

commit c6dce91299dc71c90f302e2d25828f7b2dfff477
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2023-01-24 22:56:50 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2023-01-24 22:56:50 +0000

    sys-apps/baselayout: Fix merged-usr riscv case
    
    Closes: https://bugs.gentoo.org/796893
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sys-apps/baselayout/baselayout-2.9-r1.ebuild | 370 +++++++++++++++++++++++++++
 sys-apps/baselayout/baselayout-9999.ebuild   |   2 +-
 2 files changed, 371 insertions(+), 1 deletion(-)