[FIX] the xar cycle reformed inside stage 2
39 of 39 packages failed on the same line: bsdtar: error while loading shared libraries: libicuuc.so.76 libarchive is in STAGE2_SKIP_HOOKS, so stage 2 rebuilt it as Arch does -- with xar, linking whatever libxml2 was installed at that moment: the stage-1 one, which wants the host's ICU 76 while ours ships 78. bsdtar is what makepkg uses to extract sources and write packages, so nothing could come out, including libxml2 itself. The stage-1 fix does not reach in here. No new mechanism was needed. libarchive is dropped from stage2.state, so the restore falls back to the stage-1 build that has no xar and therefore no libxml2 at all; libxml2 is hoisted and rebuilt against our icu; libarchive is rebuilt later with xar, against a libxml2 whose ICU now agrees. Verified: bsdtar 3.8.9 runs, and libxml2 is the first OK of the pass. The libgpgme.so.11 errors in five logs were noise -- makepkg carries on past a failed .BUILDINFO. Reading the FIRST error in a log had attributed five failures to the wrong cause; the last error before the abort is the one that matters. --- FR --- 39 paquets sur 39 ont échoué sur la même ligne : bsdtar: error while loading shared libraries: libicuuc.so.76 libarchive figure dans STAGE2_SKIP_HOOKS : l'étage 2 l'a donc rebâti comme le fait Arch — avec xar, contre le libxml2 installé à cet instant, celui de l'étage 1, qui veut l'ICU 76 de l'hôte quand le nôtre livre la 78. bsdtar est ce dont makepkg se sert pour extraire et pour écrire les paquets : plus rien ne sortait, libxml2 compris. Le correctif d'étage 1 n'atteint pas l'intérieur. Aucun mécanisme nouveau. libarchive quitte stage2.state, donc la restauration retombe sur la construction d'étage 1, sans xar et donc sans libxml2 ; libxml2 est hissé et rebâti contre notre icu ; libarchive est rebâti plus tard avec xar, contre un libxml2 dont l'ICU concorde. Vérifié : bsdtar 3.8.9 démarre, et libxml2 est le premier OK de la passe. Les erreurs libgpgme.so.11 de cinq journaux étaient du bruit — makepkg poursuit après un .BUILDINFO manqué. Lire la PREMIÈRE erreur d'un journal avait attribué cinq échecs à la mauvaise cause ; c'est la dernière avant l'abandon qui compte. Assisted-by: Claude Opus 5
This commit is contained in:
parent
ed541dacc4
commit
e137999f8b
1 changed files with 15 additions and 1 deletions
|
|
@ -546,7 +546,21 @@ NOTE
|
|||
# lookup in the chroot then failed. binutils first so the directory is gone
|
||||
# before pkgconf builds; the arch-meson wrapper pins --libdir lib as the
|
||||
# backstop.
|
||||
STAGE2_FIRST=(texinfo binutils pkgconf libxslt)
|
||||
#
|
||||
# libxml2 -- because the xar cycle reformed INSIDE stage 2. libarchive is in
|
||||
# STAGE2_SKIP_HOOKS, so stage 2 rebuilt it as Arch does, with xar, linking the
|
||||
# libxml2 that happened to be installed at that moment: the stage-1 one, which
|
||||
# wants the host's libicuuc.so.76. bsdtar then could not start, and bsdtar is
|
||||
# what makepkg uses to extract sources and write packages -- so 39 of 39
|
||||
# packages failed on the same line, including libxml2 itself. The stage-1 fix
|
||||
# (drop xar) does not reach in here.
|
||||
#
|
||||
# The way out needs no new mechanism: libarchive is dropped from stage2.state,
|
||||
# which makes the restore fall back to the stage-1 build that has no xar and
|
||||
# therefore no libxml2 at all. bsdtar starts, libxml2 gets rebuilt against our
|
||||
# icu 78, and libarchive is rebuilt later in the list -- with xar, against a
|
||||
# libxml2 whose ICU now agrees.
|
||||
STAGE2_FIRST=(texinfo libxml2 binutils pkgconf libxslt)
|
||||
|
||||
STAGE2_SKIP_HOOKS=(libgcrypt git meson libarchive)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue