Changeset 169
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r168 r169 6 6 7 7 PKGNAME=debbuild 8 VERSION=0.9. 58 VERSION=0.9.6 9 9 10 10 MANDIR=/usr/share/man -
trunk/debbuild
r167 r169 96 96 my $hostarch; # we set this later... 97 97 my $scriptletbase = 98 q(#!/bin/ sh98 q(#!/bin/bash 99 99 100 100 RPM_SOURCE_DIR="%{_topdir}/SOURCES" … … 843 843 next LINE if /^\%docdir/; 844 844 # my $singleton = 0; # don't recall what this was for 845 next LINE if /^\s*#/; 846 next LINE if /^\s*$/; 845 847 846 848 # create and initialize flags … … 980 982 } elsif (/^enhances:\s*(.+)/i) { 981 983 $pkgdata{main}{enhances} .= ", $1"; 982 warn "Warning: Debian-specific 'En ahnces:' outside \%if wrapper\n" if $iflevel == 0;984 warn "Warning: Debian-specific 'Enhances:' outside \%if wrapper\n" if $iflevel == 0; 983 985 } elsif (/^replaces:\s*(.+)/i) { 984 986 $pkgdata{main}{replaces} .= ", $1"; … … 1465 1467 1466 1468 foreach my $req (@reqlist) { 1469 # from rpmbuild error message 1470 # Dependency tokens must begin with alpha-numeric, '_' or '/' 1471 ##fixme: check for suitable whitespace around $rel 1467 1472 my ($pkg,$rel,$ver); 1468 1473 … … 1479 1484 1480 1485 my @pkglist = qx { dpkg-query --showformat '\${status}\t\${version}\n' -W $pkg }; 1481 # need to check if no lines returned - means a bad buildreq1482 1486 if (!$pkglist[0]) { 1483 1487 print " * Missing build-dependency $pkg!\n"; 1484 1488 $reqflag = 0; 1485 1489 } else { 1490 # real package, installed 1491 #kdeugau:~$ dpkg-query --showformat '${status}\t${version}\n' -W libc-client2007e-dev 2>&1 1492 #install ok installed 8:2007f~dfsg-1 1493 # virtual package, provided by ??? 1494 #kdeugau:~$ dpkg-query --showformat '${status}\t${version}\n' -W libc-client-dev 2>&1 1495 #unknown ok not-installed 1496 # real package or virtual package not installed or provided 1497 #kdeugau:~$ dpkg-query --showformat '${status}\t${version}\n' -W libdb4.8-dbg 2>&1 1498 #dpkg-query: no packages found matching libdb4.8-dbg 1499 1486 1500 my ($reqstat,undef,undef,$reqver) = split /\s+/, $pkglist[0]; 1487 if ($reqstat !~ /install/) {1488 print " * Missing build-dependency $pkg!\n";1489 $reqflag = 0;1490 } els e{1501 if ($reqstat =~ /^unknown/) { 1502 # this seems to be a virtual package. 1503 print " * Warning: $pkg is probably installed but seems to be a virtual package.\n"; 1504 } elsif ($reqstat =~ /^install/) { 1491 1505 my ($resp) = qx { dpkg --compare-versions $reqver '$rel' $ver && echo "ok" }; 1492 1506 if ($resp !~ /^ok/) { … … 1494 1508 print " * Buildreq $pkg is installed, but wrong version ($reqver): Need $ver\n" 1495 1509 } 1510 } else { 1511 # whatever state it's in, it's not completely installed, therefore it's missing. 1512 print " * Missing build-dependency $pkg!\n"; 1513 $reqflag = 0; 1496 1514 } # end not installed/installed check 1497 1515 } … … 1543 1561 next if /linux-vdso.so/; # More kernel hackery. Whee! 1544 1562 1545 my ($req) = (m|=\>\s+([a-z 0-9._/-]+)|); # dig out the actual library (so)name.1563 my ($req) = (m|=\>\s+([a-zA-Z0-9._/+-]+)|); # dig out the actual library (so)name. 1546 1564 # And feh, we need the *path*, since I've discovered a new edge case where 1547 1565 # the same libnnn.1.2.3 *file*name is found across *several* lib dirs. >:( … … 1709 1727 1710 1728 $macrostring =~ s|%{_builddir}|%{_topdir}/BUILD|g; 1729 $macrostring =~ s|%{buildsubdir}|$tarballdir|g; 1711 1730 $macrostring =~ s|%{_topdir}|$topdir|g; 1712 1731 $macrostring =~ s|%{_tmppath}|$tmpdir|g; -
trunk/debbuild.spec
r162 r169 49 49 Source: http://www.deepnet.cx/debbuild/debbuild-%{version}.tar.gz 50 50 Group: Development/Tools 51 License: GPLv2 51 License: GPLv2+ 52 52 Packager: Kris Deugau <kdeugau@deepnet.cx> 53 Requires: perl, build-essential, pax, fakeroot 53 Requires: perl, build-essential, pax, fakeroot, bash 54 54 %if %{_vendor} == "debbuild" 55 55 Recommends: patch, bzip2
Note:
See TracChangeset
for help on using the changeset viewer.