wok-4.x rev 12469

tazpkg: upgrade core pkgs first
author Stanislas Leduc <shann@slitaz.org>
date Wed Nov 09 19:06:12 2022 +0000 (2022-11-09)
parents 1b1b93dfdfde
children 991c0409f618
files tazpkg/receipt tazpkg/stuff/upgrade-core-pkg-first.patch
line diff
     1.1 --- a/tazpkg/receipt	Wed Nov 09 16:34:52 2022 +0000
     1.2 +++ b/tazpkg/receipt	Wed Nov 09 19:06:12 2022 +0000
     1.3 @@ -22,6 +22,7 @@
     1.4  compile_rules()
     1.5  {
     1.6  	cd $src
     1.7 +	patch -p1 < $stuff/upgrade-core-pkg-first.patch
     1.8  	make && make DESTDIR=$DESTDIR install
     1.9  }
    1.10  
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/tazpkg/stuff/upgrade-core-pkg-first.patch	Wed Nov 09 19:06:12 2022 +0000
     2.3 @@ -0,0 +1,20 @@
     2.4 +--- a/tazpkg
     2.5 ++++ b/tazpkg
     2.6 +@@ -2430,6 +2430,16 @@
     2.7 + 			done
     2.8 + 		done
     2.9 + 		sed -i /^$/d $UP_LIST
    2.10 ++
    2.11 ++		# Ensure that core system package upgrade first
    2.12 ++		# glibc-base / gcc-lib-base
    2.13 ++		if [[ "$(grep -F 'gcc-lib-base' $UP_LIST)" != '' ]]; then
    2.14 ++			sed -i -e '/gcc-lib-base/d' -e '1i gcc-lib-base' $UP_LIST
    2.15 ++		fi
    2.16 ++		if [[ "$(grep -F 'glibc-base' $UP_LIST)" != '' ]]; then 
    2.17 ++			sed -i -e '/glibc-base/d' -e '1i glibc-base' $UP_LIST
    2.18 ++		fi
    2.19 ++
    2.20 + 		upnb=$(cat $UP_LIST | wc -l)
    2.21 + 		pkgs=$(ls | wc -l)
    2.22 + 		if [ "$upnb" = 0 ]; then
    2.23 +