close Warning:

Changeset 209 for trunk


Ignore:
Timestamp:
10/04/15 22:20:42 (9 years ago)
Author:
kdeugau
Message:

/trunk

File off another few minor nuisances

  • don't expand macros in $tarballdir during %setup or %patch processing
  • hard fail on unknown %patch flag/option Just Like rpmbuild
  • reenable %{buildsubdir}, since according to the comment in /usr/lib/rpm/macros it *should* be defined/set when using %setup, even if it doesn't seem to be in testing. Also, one of my packages uses it, and I'm not sure where else you're supposed to get the information it provides unless you manually set it up.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r208 r209  
    951951
    952952        $prepscript .= "cd '$topdir/BUILD'\n";
    953         $tarballdir = expandmacros($tarballdir,'gp');
    954953        $prepscript .= "rm -rf '$tarballdir'\n" if $deldir;
    955954        $prepscript .= "/bin/mkdir -p $tarballdir\n" if $changedir;
     
    10341033          } elsif ($popt =~ (/^-E/) ) {
    10351034            $noempty = 1;
     1035          } elsif ($popt =~ (/^(-[^s]+)/) ) {
     1036            die "Unknown \%patch option $1: $line\n";
    10361037          }
    10371038        } # while (shift @pbits)
     
    20252026
    20262027    $macrostring =~ s|%{_builddir}|%{_topdir}/BUILD|g;
    2027 # no longer a valid macro/tag
    2028 #    $macrostring =~ s|%{buildsubdir}|$tarballdir|g;
     2028# Not predefined in an eternal file;  defaults to %{name}-%{version}
     2029    $macrostring =~ s|%{buildsubdir}|$tarballdir|g;
    20292030    $macrostring =~ s|%{_topdir}|$topdir|g;
    20302031    $macrostring =~ s|%{_tmppath}|$tmpdir|g;
Note: See TracChangeset for help on using the changeset viewer.