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.
24 lines
604 B
TOML
24 lines
604 B
TOML
[package]
|
|
name = "readline"
|
|
version = "8.3"
|
|
|
|
[source]
|
|
tar = "https://ftp.gnu.org/gnu/readline/readline-8.3.tar.gz"
|
|
blake3 = "7109f094062bda387a0c16b4875375b96e36437bebbbd8d8f91bb27ba01d687f"
|
|
|
|
[build]
|
|
template = "custom"
|
|
dependencies = [
|
|
"ncursesw",
|
|
]
|
|
script = """
|
|
DYNAMIC_INIT
|
|
cookbook_configure
|
|
OS=$(echo "${TARGET}" | cut -d - -f3)
|
|
if [ "${OS}" = "redox" ]; then
|
|
ln -s "libhistory.so.8" "${COOKBOOK_STAGE}"/usr/lib/libhistory.so
|
|
ln -s "libreadline.so.8" "${COOKBOOK_STAGE}"/usr/lib/libreadline.so
|
|
patchelf --add-needed libncursesw.so "${COOKBOOK_STAGE}/usr/lib/libreadline.so.8"
|
|
fi
|
|
"""
|