From 52871803b2a10ffc3f5f3066a7c8c334b4c9cdac Mon Sep 17 00:00:00 2001 From: Konstantin Shabanov Date: Mon, 24 Aug 2026 16:16:43 +0700 Subject: [PATCH] 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. --- recipes/dev/gcc13/recipe.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/dev/gcc13/recipe.toml b/recipes/dev/gcc13/recipe.toml index d6103ed2a..f03c5d7a3 100644 --- a/recipes/dev/gcc13/recipe.toml +++ b/recipes/dev/gcc13/recipe.toml @@ -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]