# HG changeset patch # User Stanislas Leduc # Date 1668020772 0 # Node ID 6914a0c336eb298f76f62da149b933a5fc42822f # Parent 1b1b93dfdfde93113e251c22365def189f067eb2 tazpkg: upgrade core pkgs first diff -r 1b1b93dfdfde -r 6914a0c336eb tazpkg/receipt --- a/tazpkg/receipt Wed Nov 09 16:34:52 2022 +0000 +++ b/tazpkg/receipt Wed Nov 09 19:06:12 2022 +0000 @@ -22,6 +22,7 @@ compile_rules() { cd $src + patch -p1 < $stuff/upgrade-core-pkg-first.patch make && make DESTDIR=$DESTDIR install } diff -r 1b1b93dfdfde -r 6914a0c336eb tazpkg/stuff/upgrade-core-pkg-first.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tazpkg/stuff/upgrade-core-pkg-first.patch Wed Nov 09 19:06:12 2022 +0000 @@ -0,0 +1,20 @@ +--- a/tazpkg ++++ b/tazpkg +@@ -2430,6 +2430,16 @@ + done + done + sed -i /^$/d $UP_LIST ++ ++ # Ensure that core system package upgrade first ++ # glibc-base / gcc-lib-base ++ if [[ "$(grep -F 'gcc-lib-base' $UP_LIST)" != '' ]]; then ++ sed -i -e '/gcc-lib-base/d' -e '1i gcc-lib-base' $UP_LIST ++ fi ++ if [[ "$(grep -F 'glibc-base' $UP_LIST)" != '' ]]; then ++ sed -i -e '/glibc-base/d' -e '1i glibc-base' $UP_LIST ++ fi ++ + upnb=$(cat $UP_LIST | wc -l) + pkgs=$(ls | wc -l) + if [ "$upnb" = 0 ]; then +