Mailinglist Archive: opensuse-buildservice (239 mails)

< Previous Next >
Re: [opensuse-buildservice] [Patch] support setting of different _target_arch
  • From: Michael Schroeder <mls@xxxxxxx>
  • Date: Mon, 4 May 2009 11:49:22 +0200
  • Message-id: <20090504094922.GC5610@xxxxxxx>
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@xxxxxxx
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages