fix(guix-bootstrap): split bootstrap exec xz from static-binaries, use xz 5.0.6, just give it a try to solve problem

This commit is contained in:
vxtls 2026-04-04 21:42:58 -04:00
parent 3007c9a8dd
commit 39796fd955
5 changed files with 47 additions and 1 deletions

View file

@ -0,0 +1,28 @@
# SPDX-License-Identifier: GPL-3.0-or-later
SEED_PREFIX="/bootstrap-seeds/xz-5.0.6"
src_prepare() {
default
# Mirror Guix bootstrap static strategy: force libtool-built xz executable
# to link with -all-static.
sed -i 's/^xz_LDADD =/xz_LDADD = -all-static /' src/xz/Makefile.in
}
src_configure() {
CFLAGS="${CFLAGS:-} -std=gnu89" \
./configure \
--prefix="${SEED_PREFIX}" \
--disable-shared \
--enable-static \
--disable-nls
}
src_compile() {
default_src_compile
}
src_install() {
make DESTDIR="${DESTDIR}" install
}

View file

@ -0,0 +1 @@
f https://tukaani.org/xz/xz-5.0.6.tar.gz b6cf4cdc1313556a00848e722625bce40d2cd552c052b0465791c64c9202c3f1