wok-stable rev 8728
Fixed linux not to put a tmp folder in WOK. Instead its WOK/PACKAGE/tmp now. This fixes a problem with update-repository dying out cause of WOK/tmp folder.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Feb 19 01:35:37 2011 +0000 (2011-02-19) |
parents | 43ec05a2b26b |
children | d91b95f39ebf |
files | linux/receipt linux/stuff/check_modules.sh |
line diff
1.1 --- a/linux/receipt Sat Feb 19 01:00:28 2011 +0000 1.2 +++ b/linux/receipt Sat Feb 19 01:35:37 2011 +0000 1.3 @@ -115,14 +115,14 @@ 1.4 # Get the base modules 1.5 export src 1.6 export _pkg 1.7 - mkdir $WOK/tmp 1.8 + mkdir $WOK/$PACKAGE/tmp 1.9 $WOK/$PACKAGE/stuff/list_modules.sh \ 1.10 - $(cat stuff/modules-$VERSION.list) > $WOK/tmp/modules.list 1.11 + $(cat stuff/modules-$VERSION.list) > $WOK/$PACKAGE/tmp/modules.list 1.12 while read module; do 1.13 dir=$(dirname $module) 1.14 [ -d $path/$dir ] || mkdir -p $path/$dir 1.15 cp -a $_pkg/lib/modules/$VERSION-slitaz/kernel/$module $path/$dir 1.16 - done < $WOK/tmp/modules.list 1.17 + done < $WOK/$PACKAGE/tmp/modules.list 1.18 # Remove unresolved links 1.19 rm -f $fs/lib/modules/$VERSION-slitaz/build 1.20 rm -f $fs/lib/modules/$VERSION-slitaz/source
2.1 --- a/linux/stuff/check_modules.sh Sat Feb 19 01:00:28 2011 +0000 2.2 +++ b/linux/stuff/check_modules.sh Sat Feb 19 01:35:37 2011 +0000 2.3 @@ -12,43 +12,43 @@ 2.4 src="$WOK/linux/linux-$VERSION" 2.5 2.6 cd $src 2.7 -mkdir -p $WOK/tmp 2.8 -rm -f $WOK/tmp/* 2.9 +mkdir -p $WOK/$PACKAGE/tmp 2.10 +rm -f $WOK/$PACKAGE/tmp/* 2.11 2.12 echo -e "\nChecking for modules selected in .config but not in linux-* pkgs" 2.13 echo "======================================================================" 2.14 2.15 # create a packaged modules list 2.16 -cat ../stuff/modules-"$VERSION".list >> $WOK/tmp/pkgs-modules-"$VERSION".list 2.17 +cat ../stuff/modules-"$VERSION".list >> $WOK/$PACKAGE/tmp/pkgs-modules-"$VERSION".list 2.18 2.19 for i in $(cd $WOK; ls -d linux-*) 2.20 do 2.21 tazpath="taz/$i-$VERSION" 2.22 for j in $(cat $WOK/$i/$tazpath/files.list | grep ".ko.gz") 2.23 do 2.24 - basename $j >> $WOK/tmp/pkgs-modules-"$VERSION".list 2.25 + basename $j >> $WOK/$PACKAGE/tmp/pkgs-modules-"$VERSION".list 2.26 done 2.27 done 2.28 # get the original list in .config 2.29 for i in $(find $_pkg -iname "*.ko.gz") 2.30 do 2.31 - basename $i >> $WOK/tmp/originial-"$VERSION".list 2.32 + basename $i >> $WOK/$PACKAGE/tmp/originial-"$VERSION".list 2.33 done 2.34 # compare original .config and pkged modules 2.35 -for i in $(cat $WOK/tmp/originial-$VERSION.list) 2.36 +for i in $(cat $WOK/$PACKAGE/tmp/originial-$VERSION.list) 2.37 do 2.38 - if ! grep -qs "$i" $WOK/tmp/pkgs-modules-"$VERSION".list ; then 2.39 + if ! grep -qs "$i" $WOK/$PACKAGE/tmp/pkgs-modules-"$VERSION".list ; then 2.40 modpath=`find $_pkg -iname "$i"` 2.41 echo "Orphan module: $i" 2.42 - echo "$i : $modpath" >> $WOK/tmp/unpackaged-modules-"$VERSION".list 2.43 + echo "$i : $modpath" >> $WOK/$PACKAGE/tmp/unpackaged-modules-"$VERSION".list 2.44 fi 2.45 done 2.46 -if [ -f $WOK/tmp/unpackaged-modules-"$VERSION".list ]; then 2.47 +if [ -f $WOK/$PACKAGE/tmp/unpackaged-modules-"$VERSION".list ]; then 2.48 echo "======================================================================" 2.49 echo -e "Check linux/tmp/unpackaged-modules-$VERSION.list for mod path\n" 2.50 else 2.51 echo -e "\nAll modules are packaged\n" 2.52 echo "======================================================================" 2.53 echo "" 2.54 - rm -rf $WOK/tmp 2.55 + rm -rf $WOK/$PACKAGE/tmp 2.56 fi