Changeset 176


Ignore:
Timestamp:
12/04/12 17:04:26 (11 years ago)
Author:
kdeugau
Message:

/trunk

Extend/fix autoreq handling for some new quirks (so it doesn't pick
up -dev dependencies that really aren't required at runtime), possibly
make it a bit more efficient

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r175 r176  
    15671567  my %reqs;
    15681568  my $reqlibs = '';
     1569  my %reqliblist;
    15691570
    15701571  foreach (@reqlist) {
     
    15751576    next if /linux-vdso.so/;            # More kernel hackery.  Whee!
    15761577
     1578    # Whee!  more hackery to detect provided-here libs.  Some apparently return from ldd as "not found".
     1579    my ($a,$b) = split / => /;
     1580    $a =~ s/\s*//g;
     1581    if ($b =~ /not found/) {
     1582      next if qx { find $specglobals{buildroot} -name "*$a" };
     1583    }
     1584
    15771585    my ($req) = (m|=\>\s+([a-zA-Z0-9._/+-]+)|); # dig out the actual library (so)name.
    15781586        # And feh, we need the *path*, since I've discovered a new edge case where
     
    15861594
    15871595    $reqlibs .= " $req";
     1596    $reqliblist{$req} = 1;
    15881597  }
    15891598
    1590   if ($reqlibs ne '') {
    1591     foreach (qx { dpkg -S $reqlibs }) {
    1592       my ($libpkg,undef) = split /:/;
     1599  if (%reqliblist) {
     1600    foreach my $rlib (keys %reqliblist) {
     1601      my $libpkg = qx { dpkg -S $rlib };
     1602      ($libpkg,undef) = split /:/, $libpkg;
    15931603      $reqs{$libpkg} = 1;
    15941604    }
Note: See TracChangeset for help on using the changeset viewer.