On Tue, 9 Mar 2021, Michael Andres wrote:
On Monday 08 March 2021 17:57:17 Jan Engelhardt wrote:
It's how gcc works for example, so yeah. However, such default should not be in a config file, but be really built-in into the program (just like in gcc's case).
Well, gcc knows it runs only if a glibc to query is installed.
Zypp however, e.g. when setting up a system via --root, does not know the arch of the target system in advance. In general ZYPP needs to now the architecture before any repos are loaded and OTOH applications (zypper/yast/pk) are not forced to set up the target(rpmdb) before they set up the repos.
That's no issue, if the hardware determines the architecture. But if the target system defines the architecture, it may become a chicken/egg issue.
Yeah. I've long wanted a way to deploy an arm "chroot" in /usr/arm-suse-linux/sysroot for the purpose of cross-compiling. You might remember talking about this a few (10) years ago. See also https://hackweek.suse.com/projects/package-proper-cross-compilers It _should_ be as simple as # zypper --root /usr/arm-suse/linux/sysroot --arch arm {--noscripts,--scripts=qemu} install glibc-devel Richard. -- Richard Biener <rguenther@suse.de> SUSE Software Solutions Germany GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany; GF: Felix Imendörffer; HRB 36809 (AG Nuernberg)