mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +02:00
update_chroot: Allow upgrading binutils and GCC
Normally toolchains packages are prevented from upgrading. This drops that restriction and explicitly removes old versions so that conflicting tool profiles are not accidentally used. This reverts commit 20975049b3b5398ee478ba940e785bae50773d6d.
This commit is contained in:
parent
f22d5bed00
commit
ac8402c1aa
@ -194,7 +194,9 @@ get_cross_pkgs() {
|
||||
# Get portage arguments restricting toolchains to binary packages only.
|
||||
get_binonly_args() {
|
||||
local pkgs=( "${TOOLCHAIN_PKGS[@]}" $(get_cross_pkgs "$@") )
|
||||
echo "${pkgs[@]/#/--useoldpkg-atoms=}" "${pkgs[@]/#/--rebuild-exclude=}"
|
||||
# XXX: Revert this after stable > 1632.
|
||||
local tmppkgs=( ${pkgs[*]##*/binutils} ) ; tmppkgs=( ${tmppkgs[*]##*/gcc} )
|
||||
echo "${tmppkgs[@]/#/--useoldpkg-atoms=}" "${pkgs[@]/#/--rebuild-exclude=}"
|
||||
}
|
||||
|
||||
### Toolchain building utilities ###
|
||||
|
@ -241,6 +241,9 @@ sudo -E ${EMERGE_CMD} "${EMERGE_FLAGS[@]}" \
|
||||
coreos-devel/sdk-depends world
|
||||
|
||||
info "Removing obsolete packages"
|
||||
# XXX: Remove these next two lines after stable > 1632.
|
||||
cats=( '<=sys-devel' "${BOARD_CHOSTS[@]/#/<=cross-}" )
|
||||
sudo -E emerge --quiet --unmerge "${cats[@]/%//binutils-2.29.0}" "${cats[@]/%//gcc-6.3.0}" 2>/dev/null || :
|
||||
sudo -E ${EMERGE_CMD} --quiet --depclean @unavailable
|
||||
|
||||
if portageq list_preserved_libs / >/dev/null; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user