Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712020 - Gentoo Prefix fails to bootstrap on Stage 3 due to circular dependencies (sys-libs/pam & sys-lib/libcap)
Summary: Gentoo Prefix fails to bootstrap on Stage 3 due to circular dependencies (sys...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-10 02:35 UTC by Sammy Pfeiffer
Modified: 2020-03-13 05:24 UTC (History)
0 users

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 Sammy Pfeiffer 2020-03-10 02:35:39 UTC
This has been happening in the Gentoo Prefix CI for x86 since the 7th of March. Althought it may have been there before, as the build was broken by another bug.

The build output:
* running emerge -u system
setlocale: unsupported locale setting
setlocale: unsupported locale setting
Calculating dependencies  
 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

... done!


[nomerge       ] virtual/ssh-0::gentoo  USE="-minimal" 
[nomerge       ]  net-misc/openssh-8.2_p1-r5::gentoo  USE="pie ssl -X -X509 -audit -bindist -debug -hpn -kerberos -ldns -libedit -libressl -livecd (-pam) -sctp -security-key (-selinux) -static -test -xmss" 
[nomerge       ]   sys-apps/shadow-4.8.1-r1::gentoo  USE="acl cracklib nls pam (split-usr) su -audit -bcrypt (-selinux) -skey -xattr" 
[nomerge       ]    sys-libs/pam-1.3.1_p20200128::gentoo  USE="berkdb cracklib filecaps nls pie (split-usr) -audit -debug -nis (-selinux) -static-libs" 
[ebuild  N     ]     sys-libs/libcap-2.33::gentoo  USE="pam (split-usr) -static-libs" 109 KiB
[ebuild  N     ] virtual/ssh-0::gentoo  USE="-minimal" 0 KiB
[ebuild  N     ]  net-misc/openssh-8.2_p1-r5::gentoo  USE="pie ssl -X -X509 -audit -bindist -debug -hpn -kerberos -ldns -libedit -libressl -livecd (-pam) -sctp -security-key (-selinux) -static -test -xmss" 1662 KiB
[ebuild  N     ]   sys-apps/shadow-4.8.1-r1::gentoo  USE="acl cracklib nls pam (split-usr) su -audit -bcrypt (-selinux) -skey -xattr" 1574 KiB
[ebuild  N     ]    sys-auth/pambase-20200304::gentoo  USE="cracklib nullok sha512 -caps -consolekit -debug -elogind -minimal -mktemp -pam_krb5 -pam_ssh -passwdqc -securetty (-selinux) (-systemd)" 4 KiB
[ebuild  N     ]     sys-libs/pam-1.3.1_p20200128::gentoo  USE="berkdb cracklib filecaps nls pie (split-usr) -audit -debug -nis (-selinux) -static-libs" 748 KiB

Total: 6 packages (6 new), Size of downloads: 4095 KiB

 * Error: circular dependencies:

(sys-libs/libcap-2.33:0/0::gentoo, ebuild scheduled for merge) depends on
 (sys-libs/pam-1.3.1_p20200128:0/0::gentoo, ebuild scheduled for merge) (buildtime)
  (sys-libs/libcap-2.33:0/0::gentoo, ebuild scheduled for merge) (buildtime)

It might be possible to break this cycle
by applying any of the following changes:
- sys-libs/pam-1.3.1_p20200128 (Change USE: -filecaps)
- sys-libs/libcap-2.33 (Change USE: -pam)

You can find full raw log from the bootstrap on x86 of Stage 3 here:
https://dev.azure.com/12719821/e566c963-8f77-4f01-b7bc-ae2d91b1334f/_apis/build/builds/1352/logs/41

You can find yourself in a Docker image in that specific situation doing:
docker pull awesomebytes/gentoo_prefix_ci_stage3_32b:1352
docker run -it awesomebytes/gentoo_prefix_ci_stage3_32b:1352 /bin/bash
(EPREFIX is /tmp/gentoo).






Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2020-03-12 16:38:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=ec023785f6f32eac7e0e7364552d418f899e4ad5

commit ec023785f6f32eac7e0e7364552d418f899e4ad5
Author:     Michael Haubenwallner <haubi@gentoo.org>
AuthorDate: 2020-03-12 16:37:25 +0000
Commit:     Michael Haubenwallner <haubi@gentoo.org>
CommitDate: 2020-03-12 16:37:25 +0000

    bootstrap-prefix.sh: break pam<->libcap circle
    
    Closes: https://bugs.gentoo.org/712020
    Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>

 scripts/bootstrap-prefix.sh | 9 +++++++++
 1 file changed, 9 insertions(+)
Comment 2 Sammy Pfeiffer 2020-03-13 05:24:29 UTC
I confirm that the CI doesn't have this error anymore.

Now it is blocked by this though: https://bugs.gentoo.org/712296