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.
31 lines
991 B
TOML
31 lines
991 B
TOML
[package]
|
|
name = "libgmp"
|
|
version = "6.3.0"
|
|
|
|
# GNU Multiple Precision Arithmetic Library (GMP) is a free and open source
|
|
# library for arbitrary-precision arithmetic, operating on signed integers,
|
|
# rational numbers, and floating-point numbers.
|
|
|
|
[source]
|
|
tar = "https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz"
|
|
blake3 = "fffe4996713928ae19331c8ef39129e46d3bf5b7182820656fd4639435cd83a4"
|
|
|
|
[build]
|
|
template = "custom"
|
|
script = """
|
|
# libgmp fails to regenerate autotools when building for host toolchain
|
|
# To workaround this, the source is copied to the build dir and autotools is
|
|
# only regenerated when not building for the host
|
|
rsync -a --delete "${COOKBOOK_SOURCE}/" ./
|
|
COOKBOOK_SOURCE="${COOKBOOK_BUILD}"
|
|
if [ "$TARGET" != "$COOKBOOK_HOST_TARGET" ]; then
|
|
autotools_recursive_regenerate
|
|
# need to invoke configure in specific way to make shared libs work
|
|
./configure --host="${GNU_TARGET}" --prefix="/usr"
|
|
COOKBOOK_CONFIGURE=true
|
|
fi
|
|
|
|
DYNAMIC_STATIC_INIT
|
|
cookbook_configure
|
|
"""
|