On Wed, Sep 1, 2021 at 5:18 PM Demi Marie Obenour <demiobenour(a)gmail.com> wrote:
On 9/1/21 1:55 PM, Florian Weimer wrote:
> In autotools parlance, cross-compilation is defined by the inability of
> running even the most trivial program that was just compiled.
It is often possible to avoid this problem using qemu in user-mode
emulation mode, but even that is not needed here.
It is often not good enough for making reliable package builds, which
is why we exclusively build natively unless there's literally no
choice.
> What you seem to be arguing for is using a multilib build
environment
> that leans towards 64-bit, overridden towards 32-bit mode using build
> flags. Like the environment that you have to use if you want to build
> 32-bit binaries on Red Hat Enterprise Linux outside of Red Hat. That
> just does not work in current Koji, and probably does not work that well
> with direct mock invocations, either. It's the reason why there are no
> 32-bit package builds in EPEL anymore.
This can be worked around by replacing /usr/bin/gcc and other binaries
with ones that have been built to produce 32-bit code, but which are
themselves 64-bit programs.
That said, building a package that isn’t going to be shipped is silly.
In general, Fedora does not build packages that do not get shipped.
I'm only aware of a couple like that, and they're repackaging hacks of
shipped packages to deal with specific build environment issues.
--
真実はいつも一つ!/ Always, there's only one truth!