Changeset 123 for trunk/debbuild


Ignore:
Timestamp:
08/01/07 15:25:06 (17 years ago)
Author:
kdeugau
Message:

/trunk

Maybe-fix? macro expansion bug regarding %{optflags}. Try it and see
if it breaks anything...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r122 r123  
    15761576    } # while()
    15771577
     1578    # Misc expansions
     1579    $macrostring =~ s|%{_arch}|$hostarch|g;
     1580    $macrostring =~ s|%{optflags}|$optflags{$hostarch}|g;
     1581
    15781582# should probably stick a "no runaway" flag in here...  Just In Case...
    15791583    # %define's
    15801584    while (my ($key) = ($macrostring =~ /%{([a-z0-9]+)}/i) ) {
     1585# hrm.  This needs thinking.
     1586#die "A horrible death!  \%{$key}, '$macrostring'\n" if !$specglobals{$key};
    15811587      $macrostring =~ s|%{$key}|$specglobals{$key}|g;
    15821588                # wanna limit this to "... if $specglobals{$key}", but need more magic
     
    15881594      $macrostring =~ s|%{__([a-z0-9_-]+)}|$1|g;
    15891595    }
    1590 
    1591     # Misc expansions
    1592     $macrostring =~ s|%{_arch}|$hostarch|g;
    1593     $macrostring =~ s|%{optflags}|$optflags{$hostarch}|g;
    15941596
    15951597    # Perl @INC/...lib locations, and other related bits.
Note: See TracChangeset for help on using the changeset viewer.