Changeset 180 for trunk/debbuild
- Timestamp:
- 05/27/15 21:44:09 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debbuild
r179 r180 32 32 use Config; 33 33 34 my $version = "0.9. 9"; #VERSION#34 my $version = "0.9.10"; #VERSION# 35 35 36 36 # regex debugger … … 1485 1485 my @reqlist = split /,\s+/, $buildreq; 1486 1486 1487 my @missinglist; 1487 1488 foreach my $req (@reqlist) { 1488 1489 # from rpmbuild error message … … 1502 1503 } 1503 1504 1505 ## Apparently a package that has been installed, then uninstalled, has a "known" dpkg status of 1506 ## "unknown ok not-installed" vs a package that has never been installed which returns nothing. O_o 1507 ## Virtual packages, of course, *also* show as "not installed" like this (WTF?) 1508 ## This causes real packages to be misdetected as installed "possible virtual packages" instead of "missing 1509 ## packages". I don't think there's really a solution until/unless Debian's tools properly register virtual 1510 ## packages as installed. 1504 1511 my @pkglist = qx { dpkg-query --showformat '\${status}\t\${version}\n' -W $pkg }; 1505 1512 if (!$pkglist[0]) { 1506 print " * Missing build-dependency $pkg!\n ";1513 print " * Missing build-dependency $pkg!\n $pkglist[0]"; 1507 1514 $reqflag = 0; 1515 push @missinglist, $pkg; 1508 1516 } else { 1509 1517 # real package, installed … … 1529 1537 } else { 1530 1538 # whatever state it's in, it's not completely installed, therefore it's missing. 1531 print " * Missing build-dependency $pkg!\n ";1539 print " * Missing build-dependency $pkg!\n $pkglist[0]"; 1532 1540 $reqflag = 0; 1541 push @missinglist, $pkg; 1533 1542 } # end not installed/installed check 1534 1543 } 1535 1544 } # end req loop 1545 1546 print "To install all missing dependencies, run 'apt-get install ".join(' ', @missinglist)."'.\n" unless $reqflag; 1536 1547 1537 1548 return $reqflag; … … 1756 1767 1757 1768 $macrostring =~ s|%{_builddir}|%{_topdir}/BUILD|g; 1758 $macrostring =~ s|%{buildsubdir}|$tarballdir|g; 1769 # no longer a valid macro/tag 1770 # $macrostring =~ s|%{buildsubdir}|$tarballdir|g; 1759 1771 $macrostring =~ s|%{_topdir}|$topdir|g; 1760 1772 $macrostring =~ s|%{_tmppath}|$tmpdir|g;
Note:
See TracChangeset
for help on using the changeset viewer.