mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
update_chroot: Allow upgrading glibc
This commit is contained in:
parent
45ef8cea91
commit
d2f2e11225
@ -194,8 +194,8 @@ get_cross_pkgs() {
|
|||||||
# Get portage arguments restricting toolchains to binary packages only.
|
# Get portage arguments restricting toolchains to binary packages only.
|
||||||
get_binonly_args() {
|
get_binonly_args() {
|
||||||
local pkgs=( "${TOOLCHAIN_PKGS[@]}" $(get_cross_pkgs "$@") )
|
local pkgs=( "${TOOLCHAIN_PKGS[@]}" $(get_cross_pkgs "$@") )
|
||||||
# XXX: Revert this after stable > 1632.
|
# XXX: Drop this exception after stable > 1729.
|
||||||
local tmppkgs=( ${pkgs[*]##*/binutils} ) ; tmppkgs=( ${tmppkgs[*]##*/gcc} )
|
local tmppkgs=( ${pkgs[*]##*/glibc} )
|
||||||
echo "${tmppkgs[@]/#/--useoldpkg-atoms=}" "${pkgs[@]/#/--rebuild-exclude=}"
|
echo "${tmppkgs[@]/#/--useoldpkg-atoms=}" "${pkgs[@]/#/--rebuild-exclude=}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -241,9 +241,6 @@ sudo -E ${EMERGE_CMD} "${EMERGE_FLAGS[@]}" \
|
|||||||
coreos-devel/sdk-depends world
|
coreos-devel/sdk-depends world
|
||||||
|
|
||||||
info "Removing obsolete packages"
|
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-7.2.0}" 2>/dev/null || :
|
|
||||||
sudo -E ${EMERGE_CMD} --quiet --depclean @unavailable
|
sudo -E ${EMERGE_CMD} --quiet --depclean @unavailable
|
||||||
|
|
||||||
if portageq list_preserved_libs / >/dev/null; then
|
if portageq list_preserved_libs / >/dev/null; then
|
||||||
|
Loading…
Reference in New Issue
Block a user