Changeset 459


Ignore:
Timestamp:
06/01/08 01:50:55 (5 years ago)
Author:
bruno
Message:

Fix an issue of generation on redhat and rhas2.1 where _target_platform in %configure is incorrect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r453 r459  
    666666            # set LANGUAGE to check for correct log messages 
    667667            $ENV{'LANGUAGE'}="C"; 
     668            # Older Redhat use _target_platform in %configure incorrectly 
     669            my $specialdef = ""; 
     670            if (($ddir eq "redhat") || (($ddir eq "rhel") && ($dver eq "2.1"))) { 
     671                $specialdef = "--define \'_target_platform \"\"\'"; 
     672            } 
    668673            foreach my $f (@specfile) { 
    669674                if ($f =~ /\.spec$/) { 
    670                     pb_system("rpmbuild --define \'packager $ENV{'PBPACKAGER'}\' --define \"_topdir $ENV{'PBBUILDDIR'}\" -ba $f","Building package with $f under $ENV{'PBBUILDDIR'}"); 
     675                    pb_system("rpmbuild $specialdef --define \'packager $ENV{'PBPACKAGER'}\' --define \"_topdir $ENV{'PBBUILDDIR'}\" -ba $f","Building package with $f under $ENV{'PBBUILDDIR'}"); 
    671676                    last; 
    672677                } 
Note: See TracChangeset for help on using the changeset viewer.