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.
64 lines
2.0 KiB
TOML
64 lines
2.0 KiB
TOML
[package]
|
|
name = "gettext"
|
|
version = "0.22.5"
|
|
|
|
# GNU gettext utilities are a set of tools that provides a framework to help
|
|
# other GNU packages produce multi-lingual messages.
|
|
[source]
|
|
tar = "https://ftp.gnu.org/gnu/gettext/gettext-0.22.5.tar.gz"
|
|
blake3 = "cb3f3a34da7ce1a92746df81f5b78c5d53841973a24eb80ab76537263d380ec0"
|
|
patches = [
|
|
"redox.patch",
|
|
"01-external-gettext.patch"
|
|
]
|
|
script = """
|
|
DYNAMIC_INIT
|
|
GNU_CONFIG_GET build-aux/config.sub
|
|
# Red Bear: gettext 0.22.5 expects m4/ dirs in every autoreconf-recursed
|
|
# subdir before autoreconf can run. Create them where missing.
|
|
mkdir -p m4
|
|
find gettext-runtime gettext-tools libtextstyle -name configure.ac 2>/dev/null | while read ac; do
|
|
d="$(dirname "$ac")"
|
|
[ -d "$d/m4" ] || mkdir -p "$d/m4"
|
|
done
|
|
( cd gettext-runtime/libasprintf && autoreconf -fvi -I${COOKBOOK_HOST_SYSROOT}/share/aclocal )
|
|
( cd gettext-runtime/intl && autoreconf -fvi -I${COOKBOOK_HOST_SYSROOT}/share/aclocal )
|
|
( cd gettext-runtime && autoreconf -fvi -I${COOKBOOK_HOST_SYSROOT}/share/aclocal )
|
|
( cd gettext-tools && autoreconf -fvi -I${COOKBOOK_HOST_SYSROOT}/share/aclocal )
|
|
( cd libtextstyle && autoreconf -fvi -I${COOKBOOK_HOST_SYSROOT}/share/aclocal )
|
|
autoreconf -fvi -I${COOKBOOK_HOST_SYSROOT}/share/aclocal
|
|
"""
|
|
|
|
[build]
|
|
template = "custom"
|
|
dependencies = [
|
|
"libiconv"
|
|
]
|
|
script = """
|
|
COOKBOOK_CONFIGURE_FLAGS=(
|
|
--host="${GNU_TARGET}"
|
|
--prefix="/usr"
|
|
--disable-shared
|
|
--enable-static
|
|
--with-included-gettext
|
|
--disable-libasprintf
|
|
--disable-csharp
|
|
--disable-java
|
|
)
|
|
export CXX=false
|
|
export CFLAGS+=" -fPIC"
|
|
COOKBOOK_CONFIGURE_FLAGS+=(
|
|
ac_cv_have_decl_program_invocation_name=no
|
|
ac_cv_func_malloc_0_nonnull=yes
|
|
ac_cv_func_realloc_0_nonnull=yes
|
|
gt_cv_locale_fr=false
|
|
gt_cv_locale_fr_utf8=false
|
|
gt_cv_locale_ja=false
|
|
gt_cv_locale_tr_utf8=false
|
|
gt_cv_locale_zh_CN=false
|
|
)
|
|
cookbook_configure
|
|
|
|
cp -f gettext-runtime/intl/.libs/libgnuintl.a "${COOKBOOK_STAGE}/usr/lib/libintl.a"
|
|
cp -f gettext-runtime/intl/libgnuintl.h "${COOKBOOK_STAGE}/usr/include/libintl.h"
|
|
""" |