Browse Source

Clifford Wolf:


			
			
				rocklinux
			
			
		
Clifford Wolf 20 years ago
parent
commit
e3fc45d894
4 changed files with 1405 additions and 1349 deletions
  1. +7
    -2
      scripts/Build-Pkg
  2. +10
    -0
      scripts/Check-Deps-2
  3. +7
    -2
      scripts/Create-DepDB
  4. +1381
    -1345
      scripts/dep_db.txt

+ 7
- 2
scripts/Build-Pkg

@ -408,6 +408,11 @@ if [ $this_is_the_2nd_run = 0 ] ; then
rm -f $root/var/adm/cache/$xpkg.tm rm -f $root/var/adm/cache/$xpkg.tm
{ {
errortag=""
if [ -f "$root/var/adm/logs/$stagelevel-$xpkg.err" ] ; then
errortag=" ERROR"
fi
if [ -f $confdir/$pkg.desc ] ; then if [ -f $confdir/$pkg.desc ] ; then
grep '^\[COPY\] ' $confdir/$pkg.desc | \ grep '^\[COPY\] ' $confdir/$pkg.desc | \
sed "s,/$pkg.desc\$,/$pkg.cache," sed "s,/$pkg.desc\$,/$pkg.cache,"
@ -415,7 +420,7 @@ if [ $this_is_the_2nd_run = 0 ] ; then
echo echo
grep '^\[TIMESTAMP\]' $root/var/adm/cache/$xpkg grep '^\[TIMESTAMP\]' $root/var/adm/cache/$xpkg
date "+[TIMESTAMP] %s %c ($stagelevel)"
date "+[TIMESTAMP] %s %c ($stagelevel)$errortag"
echo echo
echo "[CONFIG-ID] ${ROCKCFG_ID#*-}" echo "[CONFIG-ID] ${ROCKCFG_ID#*-}"
@ -426,7 +431,7 @@ if [ $this_is_the_2nd_run = 0 ] ; then
echo echo
grep '^\[BUILDTIME\]' $root/var/adm/cache/$xpkg grep '^\[BUILDTIME\]' $root/var/adm/cache/$xpkg
echo "[BUILDTIME] $buildtime ($stagelevel)"
echo "[BUILDTIME] $buildtime ($stagelevel)$errortag"
x="$root/var/adm/packages/$xpkg" x="$root/var/adm/packages/$xpkg"
if [ -f $x ]; then if [ -f $x ]; then

+ 10
- 0
scripts/Check-Deps-2

@ -12,6 +12,16 @@ my $config = "";
while ($_ = shift @ARGV) { while ($_ = shift @ARGV) {
if ( $_ eq "-cfg" ) { if ( $_ eq "-cfg" ) {
$config = shift @ARGV; $config = shift @ARGV;
} elsif ( /^-/ ) {
print "\n";
print "Usgage: scripts/Check-Deps-2 [ -cfg config-name ]\n";
print "\n";
print "This script does some dependency checking and suggests\n";
print "package priority reorderings (if neccessary).\n";
print "\n";
print "The data from scripts/dep_db.txt and scripts/dep_fixes.txt\n";
print "is used for the dependency analysis.\n";
print "\n";
} else { } else {
$ign{$_} = 1; $ign{$_} = 1;
} }

+ 7
- 2
scripts/Create-DepDB

@ -35,8 +35,13 @@ while [ "$1" ] ; do
-debug) -debug)
debug=$2 ; shift ; shift ;; debug=$2 ; shift ; shift ;;
*) *)
echo
echo "Usage: $0 [ -cachedir cachedir ] [ -descdir descdir ] \\" echo "Usage: $0 [ -cachedir cachedir ] [ -descdir descdir ] \\"
echo " ${0//?/ } [ -debug pkg ] > filename" echo " ${0//?/ } [ -debug pkg ] > filename"
echo
echo " This scripts creates the scripts/dep_db.txt file from"
echo " the *.cache and *.desc files."
echo
exit 1 ;; exit 1 ;;
esac esac
done done
@ -197,8 +202,8 @@ BEGIN {
orderdb[$1]=$3; $3=0; orderdb[$1]=$3; $3=0;
database[$1]=$0; database[$1]=$0;
if (NF > 150) { if (NF > 150) {
printf "\rPackage %s has %d dependencies. I don'\''t " \
"believe this.\n", $1, NF - 3 > "/dev/stderr";
printf "\rPackage %s has more then 150 (%d) dependencies. " \
"I do not believe this.\n", $1, NF - 3 > "/dev/stderr";
ignore[$1] = 1; ignore[$1] = 1;
} }
counter++; counter++;

+ 1381
- 1345
scripts/dep_db.txt
File diff suppressed because it is too large
View File


Loading…
Cancel
Save