Mailinglist Archive: opensuse-buildservice (140 mails)

< Previous Next >
[opensuse-buildservice] SLES11 SP3 x86_64 not considered as x86_64?
  • From: Martin Koegler <martin.koegler@xxxxxxxxx>
  • Date: Thu, 26 Jun 2014 00:46:21 +0200
  • Message-id: <20140625224621.GA27478@mail.zuhause>
I noticed a strange behaviour.

https://build.opensuse.org/package/view_file/devel:languages:haskell/ghc-rpm-macros/ghc-rpm-macros.spec
=====
install -p -D -m 0644 ghc-rpm-macros.ghc-srpm
%{buildroot}/%{macros_dir}/macros.ghc-srpm

# this is why this package is now arch-dependent:
# turn off shared libs and dynamic linking on secondary archs
%ifnarch %{ix86} x86_64
cat >> %{buildroot}%{macros_dir}/macros.ghc <<EOF
====

The package check, if it is built on x86_64 or i586 with %ifnarch. If not, it
want to run cat.

For openSuSE, everything is working as expected (cat is not running).
https://build.opensuse.org/build/devel:languages:haskell/openSUSE_13.1/x86_64/ghc-rpm-macros/_log
====
[ 34s] + install -p -D -m 0644 ghc-rpm-macros.ghc-srpm
/home/abuild/rpmbuild/BUILDROOT/ghc-rpm-macros-1.2.7-28.1.x86_64//etc/rpm/macros.ghc-srpm
[ 34s] + /usr/lib/rpm/brp-compress
====

On SLES11 SP3 x86_64, cat is started, although it is x86_64:
https://build.opensuse.org/build/devel:languages:haskell/SLE_11_SP3/x86_64/ghc-rpm-macros/_log
====
[ 54s] + install -p -D -m 0644 ghc-rpm-macros.ghc-srpm
/var/tmp/ghc-rpm-macros-1.2.7-build//etc/rpm/macros.ghc-srpm
[ 54s] + cat
[ 54s] + /usr/lib/rpm/brp-lib64-linux
====

I even tried "%ifnarch %{ix86} x86_64" in a spec in a SLES11 SP3 x86_64 chroot
- and it works as expected.

So I'm really puzzled, why SLES on OBS is different.

Regards,
Martin
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >