Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 755071 - sys-libs/musl-1.2.1 fails to install via crossdev in Gentoo Prefix
Summary: sys-libs/musl-1.2.1 fails to install via crossdev in Gentoo Prefix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-11-17 13:51 UTC by Jason Cooper
Modified: 2024-01-01 02:10 UTC (History)
2 users (show)

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


Attachments
musl-1.2.1 ebuild fix for Prefix crossdev install (musl-1.2.1.ebuild.patch,396 bytes, patch)
2020-11-17 13:51 UTC, Jason Cooper
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Cooper 2020-11-17 13:51:07 UTC
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.
Comment 1 Fabian Groffen gentoo-dev 2021-01-03 10:50:57 UTC
@musl: is this OK to apply?  patch is pretty straightforward:

-	is_crosscompile && sysroot=/usr/${CTARGET}
+	is_crosscompile && sysroot=${EPREFIX}/usr/${CTARGET}
Comment 2 Anthony Basile gentoo-dev 2021-01-03 16:54:31 UTC
(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.
Comment 3 Larry the Git Cow gentoo-dev 2021-01-03 18:58:37 UTC
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(-)