On Monday 08 March 2021 15:22:47 Fabian Vogt wrote:
Moin,
Am Sonntag, 7. März 2021, 16:35:26 CET schrieb Michael Pujos:
Thanks for the tip, it works fine. It would indeed be great to make 'arch = i686' the default for relevant docker images as zypper would 'just work'.
For 32bit ARM/x86 I don't see any reason against this.
I'm wondering whether forcing it to "arch = $(rpm -q --qf %{arch} glibc)" would be a good idea for container images in general. I CC'd some relevant people. That way, installing possibly build-system dependent packages is "opt-in" instead of "opt-out". I don't think we have any in the distro yet (except for i586 vs i686), but that might change in the future and third-party repos also exist.
Only downside I can think of is that when using the same host for building an image and running tasks inside, it might pick the generic x86_64, ... package instead of a possibly better matching arch.
Zypp will obey to arch= if runnig inside the container. From the outside '--root /the/container' it will use the outer systems arch. Depending on your settings it might not be a good idea to mix both ways. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres, E&I, ma@suse.com, Phone: ++49 (0)911 - 74 053-0 +------------------------------------------------------------------+ SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg Germany, (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer +------------------------------------------------------------------+