Browse Source

Clifford Wolf <clifford@clifford.at>:

Improved dependency analysis and flist creation which also keeps track
of dependencies on directories.


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2133 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Clifford Wolf 21 years ago
parent
commit
d46f303f42
10 changed files with 23 additions and 17 deletions
  1. +0
    -1
      package/nikolaus/cheapskatefonts/cheapskatefonts.desc
  2. +0
    -1
      package/rene/bitstream-vera-fonts/bitstream-vera-fonts.desc
  3. +0
    -1
      package/rene/gpl-fonts/gpl-fonts.desc
  4. +0
    -1
      package/rene/microsoft-web-core-fonts/microsoft-web-core-fonts.desc
  5. +0
    -1
      package/rene/tex-ttf/tex-ttf.desc
  6. +0
    -1
      package/rene/tuxcursor/tuxcursor.desc
  7. +0
    -1
      package/rene/xemacs-packages/xemacs-packages.desc
  8. +0
    -1
      package/x11/freefonts/freefonts.desc
  9. +0
    -1
      package/x11/ghostscript-fonts/ghostscript-fonts.desc
  10. +23
    -8
      scripts/Build-Pkg

+ 0
- 1
package/nikolaus/cheapskatefonts/cheapskatefonts.desc

@ -30,7 +30,6 @@
[M] Nikolaus Filus <NFilus@gmx.net> [M] Nikolaus Filus <NFilus@gmx.net>
[C] extra/font [C] extra/font
[E] add x11
[L] GPL [L] GPL
[S] Stable [S] Stable

+ 0
- 1
package/rene/bitstream-vera-fonts/bitstream-vera-fonts.desc

@ -32,7 +32,6 @@
[M] Rene Rebe <rene@rocklinux.org> [M] Rene Rebe <rene@rocklinux.org>
[C] base/x11 [C] base/x11
[E] add x11
[L] OpenSource [L] OpenSource
[S] Stable [S] Stable

+ 0
- 1
package/rene/gpl-fonts/gpl-fonts.desc

@ -32,7 +32,6 @@
[M] Rene Rebe <rene@rocklinux.org> [M] Rene Rebe <rene@rocklinux.org>
[C] extra/multimedia [C] extra/multimedia
[E] add x11
[L] GPL [L] GPL
[S] Stable [S] Stable

+ 0
- 1
package/rene/microsoft-web-core-fonts/microsoft-web-core-fonts.desc

@ -49,7 +49,6 @@
[M] Rene Rebe <rene@rocklinux.org> [M] Rene Rebe <rene@rocklinux.org>
[C] extra/multimedia [C] extra/multimedia
[E] add x11
[L] Free-to-use [L] Free-to-use
[S] Stable [S] Stable

+ 0
- 1
package/rene/tex-ttf/tex-ttf.desc

@ -37,7 +37,6 @@
[M] René Rebe <rene@rocklinux.org> [M] René Rebe <rene@rocklinux.org>
[C] extra/office [C] extra/office
[E] add x11
[L] OpenSource [L] OpenSource
[S] Alpha [S] Alpha

+ 0
- 1
package/rene/tuxcursor/tuxcursor.desc

@ -33,7 +33,6 @@
[L] OpenSource [L] OpenSource
[C] extra/icon [C] extra/icon
[E] add x11
[S] Stable [S] Stable
[L] GPL [L] GPL

+ 0
- 1
package/rene/xemacs-packages/xemacs-packages.desc

@ -30,7 +30,6 @@
[M] Rene Rebe <rene@rocklinux.org> [M] Rene Rebe <rene@rocklinux.org>
[C] extra/editor extra/office [C] extra/editor extra/office
[E] add xemacs
[L] Free-to-use [L] Free-to-use
[S] Stable [S] Stable

+ 0
- 1
package/x11/freefonts/freefonts.desc

@ -34,7 +34,6 @@
[M] Rene Rebe <rene@rocklinux.org> [M] Rene Rebe <rene@rocklinux.org>
[C] base/x11 [C] base/x11
[E] add x11
[L] Free-to-use [L] Free-to-use
[S] Stable [S] Stable

+ 0
- 1
package/x11/ghostscript-fonts/ghostscript-fonts.desc

@ -32,7 +32,6 @@
[U] http://www.cups.org/ghostscript.php [U] http://www.cups.org/ghostscript.php
[C] extra/printing extra/office [C] extra/printing extra/office
[E] add ghostscript
[L] OpenSource [L] OpenSource
[S] Stable [S] Stable

+ 23
- 8
scripts/Build-Pkg

@ -704,7 +704,7 @@ abort() {
false false
fi fi
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// /|})(/|$)" >> \ egrep "^(${flistroot// /|})(/|$)" >> \
$builddir/flist.txt $builddir/flist.txt
then : ; fi then : ; fi
@ -739,13 +739,28 @@ abort() {
"$ROCKCFG_FLIST" = "strace" ] && [ $stagelevel -gt 1 ] ; then "$ROCKCFG_FLIST" = "strace" ] && [ $stagelevel -gt 1 ] ; then
echo "Calculating package dependencies ..." 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; }' \ awk 'BEGIN { FS=": "; } { print "'$xpkg': " $1; }' \
< $builddir/dependencies.debug \ < $builddir/dependencies.debug \

Loading…
Cancel
Save