Summary: | sys-libs/musl-1.2.2-r2 Failed to emerge in a docker container | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michel Ganguin <ganguin> |
Component: | Current packages | Assignee: | Anthony Basile <blueness> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | bertrand, jstein, lu_zero, sam, toolchain |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info
build.log on emerge musl build.log on any emerge invocation after musl 1.2.2 installed |
Description
Michel Ganguin
2021-04-07 11:11:52 UTC
Note that doing interactively does the same: docker create -v /var/db/repos/gentoo --name portage gentoo/portage:latest /bin/true docker run --volumes-from portage -it --rm gentoo/stage3:amd64-musl-hardened emerge -v musl Can you attach example build.log as it's created by portage? Also can you add `emerge --info` from that system? Chances are that you need to disable namespaces related features. Created attachment 700275 [details]
emerge --info
As I already mentioned, it is unmodified stage3 from docker hub
gentoo/stage3:amd64-musl-hardened
Created attachment 700278 [details]
build.log on emerge musl
build.log (/var/tmp/portage/._unmerge_/sys-libs/musl-1.2.1-r2/temp/build.log) on emerge musl (the install succeeds, fails in prerm and postinst phase)
Created attachment 700281 [details]
build.log on any emerge invocation after musl 1.2.2 installed
I tried with FEATURES="-sandbox", FEATURES="-ipc-sandbox" and both FEATURES="-sandbox -ipc-sandbox". Same issue. (In reply to Michel Ganguin from comment #1) > Note that doing interactively does the same: > > docker create -v /var/db/repos/gentoo --name portage gentoo/portage:latest > /bin/true > > docker run --volumes-from portage -it --rm gentoo/stage3:amd64-musl-hardened > > emerge -v musl That works for me as is without failures. build.log does not give more insight. Looks like something very basic is broken. You might need to debug it yourself. Try: # emerge -v musl --debug Maybe it will be clearer how far into setup it got. I cannot reproduce as well, I even tried older tags (gentoo/stage3:amd64-musl-hardened-20210407). But my docker got updated in between, today I have: app-emulation/containerd-1.4.4 app-emulation/docker-20.10.6-r1 Back in April I had: app-emulation/containerd-1.3.9 app-emulation/docker-19.03.15 So it seems it was a docker issue?! Might also be an older sandbox (or other) bug that we fixed by accident. (In reply to Sergei Trofimovich from comment #9) > Might also be an older sandbox (or other) bug that we fixed by accident. Ah, you just mentioned that you tried the same image. Docker version sounds very plausible (or changed set of kernel features if you happened to change that). |