[opensuse-buildservice] SLES11 SP3 x86_64 not considered as x86_64?
I noticed a strange behaviour.
https://build.opensuse.org/package/view_file/devel:languages:haskell/ghc-rpm...
=====
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 <
I noticed a strange behaviour.
https://build.opensuse.org/package/view_file/devel:languages:haskell/ghc-rpm... ===== 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 <
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_6... ==== [ 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/g... ==== [ 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. That's because rpm on SLE11 doens't support different arch for subpackages. It just takes first BuildArch: noarch and treats whole
On Thu, Jun 26, 2014 at 12:46 AM, Martin Koegler
Regards, Martin -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Thursday 2014-06-26 00:46, Martin Koegler wrote:
I noticed a strange behaviour.
https://build.opensuse.org/package/view_file/devel:languages:haskell/ghc-rpm... ===== 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 <
yada, you have an unguarded BuildArch: noarch in the .spec, which the old rpm in SLE11 does not support as such. Your package builds as noarch, so no, %if(n)arch x86_64 won't match in that case. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Dinar Valeev
-
Jan Engelhardt
-
Martin Koegler