nix: Fix gcc13-freestanding-install again

It appears, that in a clean state it's still failing:

+ cd ./zlib/contrib/minizip
+ autoreconf2.69 -fvi -I/home/kis/Projects/tryredox/redox/recipes/dev/gcc13/source/config -I/usr/share/aclocal
configure.ac:7: error: required file './compile' not found
configure.ac:7:   'automake --add-missing' can install 'compile'
configure.ac:7: error: required file './config.guess' not found
configure.ac:7:   'automake --add-missing' can install 'config.guess'
configure.ac:7: error: required file './config.sub' not found
configure.ac:7:   'automake --add-missing' can install 'config.sub'
configure.ac:6: error: required file './install-sh' not found
configure.ac:6:   'automake --add-missing' can install 'install-sh'
configure.ac:7: error: required file './ltmain.sh' not found
configure.ac:6: error: required file './missing' not found
configure.ac:6:   'automake --add-missing' can install 'missing'
Makefile.am: error: required file './depcomp' not found
Makefile.am:   'automake --add-missing' can install 'depcomp'
autoreconf: automake failed with exit status: 1
cook host:gcc13 - failed

Fix it by putting copy operations before executing
autotools_recursive_regenerate.
Also, copy all the required files to fix the issue.
This commit is contained in:
Konstantin Shabanov 2026-08-24 16:16:43 +07:00
parent eaba2933bb
commit 52871803b2

View File

@ -4,15 +4,15 @@ branch = "redox-13.2.0"
shallow_clone = true
script = """
DYNAMIC_INIT
LIBTOOL_BUILD_AUX="${COOKBOOK_LIBTOOL_DIR:-$COOKBOOK_HOST_SYSROOT}"/share/libtool/build-aux
cp -fpv "$LIBTOOL_BUILD_AUX"/{config.sub,config.guess,install-sh} libiberty/
cp -fpv "$LIBTOOL_BUILD_AUX"/{compile,config.sub,config.guess,depcomp,install-sh,ltmain.sh,missing} zlib/contrib/minizip/
export COOKBOOK_AUTORECONF=$(
command -v autoreconf2.69 2>/dev/null || \\
(autoreconf --version 2>/dev/null | grep -q '2\\.69' && command -v autoreconf) || \\
(echo "Error: Autoconf 2.69 required" >&2; exit 1)
)
autotools_recursive_regenerate -I"$(realpath ./config)"
LIBTOOL_BUILD_AUX="${COOKBOOK_LIBTOOL_DIR:-$COOKBOOK_HOST_SYSROOT}"/share/libtool/build-aux
cp -fpv "$LIBTOOL_BUILD_AUX"/{config.sub,config.guess,install-sh} libiberty/
cp -fpv "$LIBTOOL_BUILD_AUX"/{config.sub,config.guess,install-sh} zlib/contrib/minizip/
"""
[build]