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.
install -p -D -m 0644 ghc-rpm-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).
[ 34s] + install -p -D -m 0644 ghc-rpm-macros.ghc-srpm
[ 34s] + /usr/lib/rpm/brp-compress

On SLES11 SP3 x86_64, cat is started, although it is x86_64:
[ 54s] + install -p -D -m 0644 ghc-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.

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

< Previous Next >