From 54688950d07f3dec183186de91acd54425560024 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Fri, 17 Jul 2026 01:04:40 +0700 Subject: [PATCH] Fix compilation for linux tools --- recipes/wip/archives/cpio/recipe.toml | 7 ++++++- recipes/wip/dev/other/elfutils/recipe.toml | 3 ++- recipes/wip/math/bc/recipe.toml | 7 ++++++- recipes/wip/tools/busybox/recipe.toml | 17 +++++++++++++++-- 4 files changed, 29 insertions(+), 5 deletions(-) diff --git a/recipes/wip/archives/cpio/recipe.toml b/recipes/wip/archives/cpio/recipe.toml index 768ca3765..30b74c0c3 100644 --- a/recipes/wip/archives/cpio/recipe.toml +++ b/recipes/wip/archives/cpio/recipe.toml @@ -1,5 +1,10 @@ -#TODO compile and test +#TODO compiled but not tested [source] tar = "https://ftp.gnu.org/gnu/cpio/cpio-2.15.tar.bz2" +blake3 = "510b18d82d9ee4fd136ce285162a31808c9c87907c188e215cd21a8cc7cde992" +script = """ +autotools_recursive_regenerate +""" + [build] template = "configure" diff --git a/recipes/wip/dev/other/elfutils/recipe.toml b/recipes/wip/dev/other/elfutils/recipe.toml index f080a3b7d..816cffd70 100644 --- a/recipes/wip/dev/other/elfutils/recipe.toml +++ b/recipes/wip/dev/other/elfutils/recipe.toml @@ -14,4 +14,5 @@ dependencies = [ configureflags = [ "--disable-libdebuginfod", "--disable-debuginfod", -] \ No newline at end of file + "--disable-demangler", +] diff --git a/recipes/wip/math/bc/recipe.toml b/recipes/wip/math/bc/recipe.toml index 5b5e7139f..40173e378 100644 --- a/recipes/wip/math/bc/recipe.toml +++ b/recipes/wip/math/bc/recipe.toml @@ -1,5 +1,10 @@ -#TODO not compiled or tested +#TODO compiled but not tested [source] tar = "https://ftp.gnu.org/gnu/bc/bc-1.08.2.tar.gz" +blake3 = "3b1391fbcea440b4abd0c7296a97f6de9b564659320038ff4c3bc7cbc9f5dcee" +script = """ +autotools_recursive_regenerate +""" + [build] template = "configure" diff --git a/recipes/wip/tools/busybox/recipe.toml b/recipes/wip/tools/busybox/recipe.toml index 58bc56afd..a476811f8 100644 --- a/recipes/wip/tools/busybox/recipe.toml +++ b/recipes/wip/tools/busybox/recipe.toml @@ -1,6 +1,19 @@ -#TODO missing script for GNU Make, see https://www.busybox.net/FAQ.html#configure -#TODO cross-compilation - https://www.busybox.net/FAQ.html#build +#TODO compiled but not tested [source] tar = "https://www.busybox.net/downloads/busybox-1.36.1.tar.bz2" +blake3 = "dfdfc1b9aa41d5134e087d904c0a5f6958825f0e94db1d2cb5ea93088247c886" [build] template = "custom" +script = """ +pushd $COOKBOOK_SOURCE +make "O=$COOKBOOK_BUILD" defconfig +popd + +sed -i \ + -e 's/^CONFIG_SHA1_HWACCEL=y/# CONFIG_SHA1_HWACCEL is not set/' \ + -e 's/^CONFIG_SHA256_HWACCEL=y/# CONFIG_SHA256_HWACCEL is not set/' \ + -e 's/^CONFIG_TC=y/# CONFIG_TC is not set/' \ + .config +make +make "CONFIG_PREFIX=$COOKBOOK_STAGE" install +"""