mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
build_packages: Build all packages in the broken cycle
Previously we broke the cycle caused by sys-apps/util-linux only, while disabling cryptsetup USE flag in systemd to avoid another cycle. That worked before, because the follow-up merge of the rest of packages built sys-fs/cryptsetup before sys-apps/systemd. After an update, the new portage is ordering the builds in different way and sys-apps/systemd ended up being built before sys-fs/cryptsetup and that failed during the configure phase because of unmet dependencies. Better build all the packages taking part in the loop (not counting the virtual packages), so we become less reliant on the package build ordering. It is going to take slightly more time as we build a couple of packages more.
This commit is contained in:
parent
d575ef441a
commit
7f2a437f0a
@ -266,11 +266,18 @@ break_dep_loop() {
|
||||
}
|
||||
|
||||
if [[ "${FLAGS_usepkgonly}" -eq "${FLAGS_FALSE}" ]]; then
|
||||
# Breaking the following loops here:
|
||||
#
|
||||
# util-linux[udev] -> virtual->udev -> systemd -> util-linux
|
||||
break_dep_loop sys-apps/util-linux udev,systemd sys-apps/systemd cryptsetup
|
||||
|
||||
# systemd[cryptsetup] -> cryptsetup -> lvm2 -> virtual/udev -> systemd
|
||||
break_dep_loop sys-apps/systemd cryptsetup
|
||||
# util-linux[systemd] -> systemd -> util-linux
|
||||
# cryptsetup[udev] -> virtual/udev -> systemd[cryptsetup] -> cryptsetup
|
||||
# lvm2[udev] -> virtual/udev -> systemd[cryptsetup] -> cryptsetup -> lvm2
|
||||
# lvm2[systemd] -> systemd[cryptsetup] -> cryptsetup -> lvm2
|
||||
# systemd[cryptsetup] -> cryptsetup[udev] -> virtual/udev -> systemd
|
||||
break_dep_loop sys-apps/util-linux udev,systemd \
|
||||
sys-fs/cryptsetup udev \
|
||||
sys-fs/lvm2 udev,systemd \
|
||||
sys-apps/systemd cryptsetup
|
||||
fi
|
||||
|
||||
export KBUILD_BUILD_USER="${BUILD_USER:-build}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user