Created attachment 671875 [details, diff] musl-1.2.1 ebuild fix for Prefix crossdev install I've successful installed Gentoo Prefix on an up to date Arch Linux system (x86_64). Using crossdev to install toolchains has gone well until I attempted to install the musl-libc toolchains. They all fail to install musl with the following error: ```bash >>> Completed installing cross-aarch64-unknown-linux-musl/musl-1.2.1 into /home/jason/gentoo/var/tmp/portage/cross-aarch64-unknown-linux-musl/musl-1.2.1/image * Final size of build directory: 22812 KiB (22.2 MiB) * Final size of installed tree: 4912 KiB ( 4.7 MiB) * QA Notice: the following files are outside of the prefix: * /usr * /usr/aarch64-unknown-linux-musl ... ``` I've fixed the issue with the attached patch. I don't know if it's the proper solution, but it wfm.
@musl: is this OK to apply? patch is pretty straightforward: - is_crosscompile && sysroot=/usr/${CTARGET} + is_crosscompile && sysroot=${EPREFIX}/usr/${CTARGET}
(In reply to Fabian Groffen from comment #1) > @musl: is this OK to apply? patch is pretty straightforward: > > - is_crosscompile && sysroot=/usr/${CTARGET} > + is_crosscompile && sysroot=${EPREFIX}/usr/${CTARGET} I don't suspect it will make a difference, but if it breaks the stage builds I may have to revert. Go ahead and commit.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9a367c1fa24e219d5508a0969b7c0f4a3176479 commit e9a367c1fa24e219d5508a0969b7c0f4a3176479 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2021-01-03 18:58:20 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2021-01-03 18:58:20 +0000 sys-libs/musl: prefix sysroot, bug #755071 Closes: https://bugs.gentoo.org/755071 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Fabian Groffen <grobian@gentoo.org> sys-libs/musl/musl-1.2.1-r1.ebuild | 4 ++-- sys-libs/musl/musl-9999.ebuild | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)