archlinux-s390x/patches/pkgbuild
Mathieu Benoit 9ec47f76ff [FIX] grep: neutralise the m4 check, do not skip bootstrap
The previous version of this hook skipped ./bootstrap entirely, on the
assumption that the source was a released tarball and therefore already
bootstrapped. It is not -- it is a git checkout, so skipping bootstrap
removed configure itself:

  PKGBUILD: line 43: ./configure: No such file or directory

That made things worse than the failure it was meant to fix, and it was
my assumption that was wrong, not the package.

What has to go is the check, not the bootstrap. grep is the only
package here that INSPECTS the version of the m4 macros its host
provides and refuses to proceed on Ubuntu's serial -- on any Ubuntu
host, x86 included. The check lives in the extracted source, so it is
removed from prepare().

The hook now verifies BOTH that the check is gone and that ./bootstrap
is still invoked, so this particular mistake cannot come back silently.

--- FR ---

La version precedente de ce crochet sautait ./bootstrap entierement, en
supposant que la source etait une archive de version, donc deja
amorcee. Elle ne l est pas -- c est un depot git, et sauter bootstrap
supprimait configure lui-meme :

  PKGBUILD: line 43: ./configure: No such file or directory

Cela empirait l etat au lieu de le corriger, et c est mon hypothese qui
etait fausse, pas le paquet.

Ce qu il faut retirer, c est la verification, pas l amorcage. grep est
le seul paquet ici a EXAMINER la version des macros m4 de son hote et a
refuser la serie d Ubuntu -- sur n importe quel hote Ubuntu, x86
compris. La verification vit dans la source extraite : elle est donc
retiree depuis prepare().

Le crochet controle desormais A LA FOIS que la verification a disparu
et que ./bootstrap est toujours appele, pour que cette erreur precise
ne puisse pas revenir en silence.

Assisted-by: Claude Opus 5
2026-08-16 23:30:49 -04:00
..
binutils.sh [ADD] port patches: gcc front ends, binutils gold, libtool multilib 2026-08-15 21:01:18 -04:00
curl.sh [ADD] TODO.md: track every divergence from upstream Arch 2026-08-16 05:47:47 -04:00
gcc.sh [FIX] gcc: libquadmath does not exist on s390x; python alias for util-linux 2026-08-16 19:52:55 -04:00
glibc.sh [ADD] devtools stand-ins, and lib32 removal for glibc and gcc 2026-08-15 21:15:01 -04:00
grep.sh [FIX] grep: neutralise the m4 check, do not skip bootstrap 2026-08-16 23:30:49 -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
openssl.sh [FIX] openssl: s390x is big-endian, drop the little-endian EC path 2026-08-16 22:53:33 -04:00
util-linux.sh [FIX] grep: skip its host-vetting bootstrap; util-linux: lib64 again 2026-08-16 23:26:54 -04:00