archlinux-s390x/patches/pkgbuild
Mathieu Benoit a67bd94f8b [FIX] gcc: 32-bit paths hidden in brace expansions; more host libraries
Two more shapes of the same multilib assumption, and the second is a
trap worth naming.

Some _pick lines write the 32-bit path in full:

  mv: cannot stat 'usr/lib/gcc/s390x-ibm-linux-gnu/16/32/finclude/'

Others write BOTH paths in one line with a brace expansion --
$_libdir/{,32/}finclude/ expands to the normal path and the 32-bit one.
Deleting such a line would silently lose the path that DOES exist, so
only the alternative is removed: {,32/} and {,32} become nothing.

That distinction matters. A blanket "delete every line mentioning 32"
would have dropped gcc-fortran's finclude, libcaf and libgfortran.spec
from the package, and the loss would only have surfaced later, in
something that failed to link.

Host libraries again: libcryptsetup for util-linux, libgcrypt, libksba
and npth for gnupg, libpam for shadow.

--- FR ---

Deux formes de plus de la meme hypothese multilib, et la seconde est un
piege qui merite d etre nomme.

Certaines lignes _pick ecrivent le chemin 32 bits en entier :

  mv: cannot stat 'usr/lib/gcc/s390x-ibm-linux-gnu/16/32/finclude/'

D autres ecrivent les DEUX chemins d un coup par expansion d accolades
-- $_libdir/{,32/}finclude/ produit le chemin normal et celui en 32
bits. Supprimer une telle ligne perdrait en silence le chemin qui
EXISTE, donc seule l alternative disparait : {,32/} et {,32} deviennent
rien.

La distinction compte. Un « supprimer toute ligne mentionnant 32 »
aurait retire finclude, libcaf et libgfortran.spec du paquet
gcc-fortran, et la perte ne serait apparue que plus tard, dans quelque
chose qui refuse de se lier.

Bibliotheques d hote, encore : libcryptsetup pour util-linux, libgcrypt,
libksba et npth pour gnupg, libpam pour shadow.

Assisted-by: Claude Opus 5
2026-08-16 05:19:20 -04:00
..
binutils.sh [ADD] port patches: gcc front ends, binutils gold, libtool multilib 2026-08-15 21:01:18 -04:00
gcc.sh [FIX] gcc: 32-bit paths hidden in brace expansions; more host libraries 2026-08-16 05:19:20 -04:00
glibc.sh [ADD] devtools stand-ins, and lib32 removal for glibc and gcc 2026-08-15 21:15:01 -04:00
libassuan.sh [FIX] canonical CHOST, and a reachable libassuan source 2026-08-16 00:45:50 -04:00
libtool.sh [ADD] port patches: gcc front ends, binutils gold, libtool multilib 2026-08-15 21:01:18 -04:00