Option to disable lib32 packaging
Context: archlinux/rfcs!32 (merged)
If/when Arch brings non-x86 architectures into the fold, virtually every one of these ports will quickly run into the gcc package building lib32 stuff by default.
@felixonmars has patched it out in the RISC-V port: https://github.com/felixonmars/archriscv-packages/blob/master/gcc/riscv64.patch
It's been patched out of ALARM since forever: https://github.com/archlinuxarm/PKGBUILDs/blob/master/core/gcc/PKGBUILD
Maybe it's premature but I wanted to see if ya'll would be interested in some patches that disable the lib32 stuff for non-x86 builds? I imagine the simplest way to do it would be something like:
if [[ "$CARCH" == "x86_64"]]; then
pkgname+=(lib32-gcc-libs)
fi
... And then similar checks during build()
.
I understand this discussion might be considered a little premature since that RFC hasn't actually gone ahead yet. I figure something like it is going to happen though, right? So it's only a matter of time? :)
Anyway, I also figure that selectively enabling lib32 builds wouldn't add a huge amount of overhead or burden to the gcc PKGBUILD, so I thought I might start the discussion now rather than later.
(Depending on how discussion on this issue goes I would also be proposing something similar for glibc)