@ -704,7 +704,7 @@ abort() {
false
fi
fi
if fl_wrparse -s -r "$xroot/" < $builddir/fl_wrapper.wlog | \
if fl_wrparse -D - s -r "$xroot/" < $builddir/fl_wrapper.wlog | \
egrep "^(${flistroot// /|})(/|$)" >> \
$builddir/flist.txt
then : ; fi
@ -739,13 +739,28 @@ abort() {
"$ROCKCFG_FLIST" = "strace" ] && [ $stagelevel -gt 1 ] ; then
echo "Calculating package dependencies ..."
! egrep -v "^($flistrfilter)\$" $builddir/fl_wrapper.rlog |
sort -u | fl_wrparse -s -r "$xroot/" -p '' | \
sort -k2 var/adm/flists/* - | grep -v ' var/adm/' | awk '
BEGIN { FS=": "; current="."; }
$2 == current && $1 != "" && $2 != "'$xpkg'" { print; }
$1 == "" { current=$2; }' \
>> $builddir/dependencies.debug
! egrep -v "^($flistrfilter)\$" $builddir/fl_wrapper.[rw]log |
sort -u | fl_wrparse -D -s -r "$xroot/" -p '' | \
grep -v ' var/adm/' | awk '
ARGIND < ARGC-1 {
if ( $1 != "'$xpkg':" )
f[$2] = $1 " " f[$2];
}
ARGIND == ARGC-1 {
file = $2;
while ( file != "" ) {
if ( f[file] ) {
split(f[file], a);
for (i in a)
if (! d[a[i] " " file]) {
d[a[i] " " file] = 1;
print a[i] " " file;
}
}
sub("/?[^/]*$", "", file)
}
}
' var/adm/flists/* - >> $builddir/dependencies.debug
awk 'BEGIN { FS=": "; } { print "'$xpkg': " $1; }' \
< $builddir/dependencies.debug \