On Thu, Apr 30, 2009 at 05:28:54PM +0200, Jan-Simon Möller wrote:
In preparation to my GSoC project (openSUSE@arm) I'd like to propose this patch of Build.pm for inclusion into the Build Service code.
=================================================================== --- Build.pm (Revision 7227) +++ Build.pm (Arbeitskopie) @@ -216,6 +216,9 @@ $config->{'patterntype'} = [ @l ]; } elsif ($l0 eq 'release:') { $config->{'release'} = $l[0];
- } elsif ($l0 eq 'changetargetarch:') {
@macros = grep {$_ !~ /^%define _target_cpu/ } @macros;
} elsif ($l0 !~ /^[#%]/) { warn("unknown keyword in config: $l0\n"); }push @macros, "%define _target_cpu @l";
Why do you need an extra keyword for this? Just add
_target_cpu mumble
to the Macros: section of the config.
Cheers, Michael.