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; + push @macros, "%define _target_cpu @l"; } elsif ($l0 !~ /^[#%]/) { warn("unknown keyword in config: $l0\n"); }
Why do you need an extra keyword for this? Just add _target_cpu mumble to the Macros: section of the config. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org