3bcf4cc196
Comprehensive fix — not a fallback. Each recipe now has explicit [package] section with name and version. Version inference: - Git-source recipes without rev/branch: '0.1.0' (Red Bear convention) - Tar/git recipes with version in URL or dir name: extracted version - Sysroot-copy recipes: matched to toolchain version Affected: 250+ recipes across all categories (core, libs, dev, system, kde, qt, drivers, gpu, drm, kernel, userspace, etc.) Every recipe in the redbear-mini build chain that was missing [package] now has explicit version metadata. Cookbook can now always determine a version at packaging time, eliminating 'cannot guess version' failures. No cookbook fallback hack — the source of truth is recipe metadata.
41 lines
770 B
TOML
41 lines
770 B
TOML
[package]
|
|
name = "gnu-binutils"
|
|
version = "2.43.1"
|
|
|
|
[source]
|
|
tar = "https://ftp.gnu.org/gnu/binutils/binutils-2.43.1.tar.xz"
|
|
blake3 = "f074c81313b70eabc58ce9a9411cd771c5fa2433792d0ad8abcc45f603f58ed6"
|
|
patches = ["01_build_fix.patch"]
|
|
script = """
|
|
DYNAMIC_INIT
|
|
|
|
cp -fpv ${COOKBOOK_HOST_SYSROOT}/share/libtool/build-aux/{config.sub,config.guess,install-sh} libiberty/
|
|
"""
|
|
|
|
[build]
|
|
template = "custom"
|
|
dependencies = [
|
|
"expat",
|
|
"libgmp",
|
|
"libmpfr",
|
|
"zlib",
|
|
]
|
|
script = """
|
|
DYNAMIC_INIT
|
|
|
|
COOKBOOK_CONFIGURE_FLAGS+=(
|
|
--target="${GNU_TARGET}"
|
|
--disable-werror
|
|
--disable-dependency-tracking
|
|
--disable-nls
|
|
--enable-colored-disassembly
|
|
--enable-gdb
|
|
--with-system-zlib
|
|
--with-multilib
|
|
--with-interwork
|
|
--with-pic
|
|
--with-expat
|
|
)
|
|
|
|
cookbook_configure
|
|
""" |