Martin Mohring wrote:
Ludwig Nussel wrote:
Adrian Schröter wrote:
Am Montag, 12. April 2010 22:27:53 schrieb Jan Engelhardt: ...
diff --git a/src/backend/bs_worker b/src/backend/bs_worker index 6feb6bd..f779e37 100755 --- a/src/backend/bs_worker +++ b/src/backend/bs_worker
...
@@ -1393,6 +1394,8 @@ sub dobuild { push @args, '--release', "$release" if defined $release; push @args, '--debug' if $buildinfo->{'debuginfo'}; push @args, '--arch', $arch; + # target can be different from arch (e.g. target=sparcv9, arch=sparc64) + push @args, '--target', $target; push @args, '--jobs', $jobs if $jobs; push @args, '--reason', "Building $buildinfo->{'package'} for project '$projid' repository '$repoid' arch '$arch' srcmd5 '$buildinfo->{'srcmd5'}'"; push @args, '--disturl', $disturl;
This can have been side effects. Michael mumbled something about buggy rpm versions in some distros. You may want to make this for sparc only for now.
There's a hack for ARM in the build script, it looks at 'changetarget' in prjconf in order to define the target I think. Maybe that feature could be used here too.
This is not a hack, it is due to the behavior of rpm. We found no other way working with all rpm versions to handle this. And: the problem solved with this is not limited to ARM.
Atm it is both a hack (conflicts with ABUILD_TARGET_ARCH AFAICS) and is limited to ARM :-) 1613 # case arm, extract changetarget 1614 # this is restricted to arm to make sure it doesn't interfere with x86 1615 if [ "$BUILD_ARCH" != "${BUILD_ARCH#arm}" ]; then cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org