1488226b91
git links -lintl (libintl, from gettext) for i18n but never declared gettext as a build dependency — it was implicitly relying on libintl.a already being in the shared prefix sysroot from another package. When the relibc/kernel-touched boot- ABI relink cleaned the sysroot, git's own sysroot lacked libintl and the link failed. Declare the dependency so libintl.a is staged into git's sysroot.
49 lines
1.1 KiB
TOML
49 lines
1.1 KiB
TOML
[source]
|
|
tar = "https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.55.0.tar.xz"
|
|
blake3 = "99cf418d6426cd615c2818986002f3d4619c707bceea9c624414cc2362c1ff5e"
|
|
patches = ["git.patch"]
|
|
|
|
[build]
|
|
dependencies=[
|
|
"curl",
|
|
"expat",
|
|
"gettext",
|
|
"nghttp2",
|
|
"openssl3",
|
|
"zlib"
|
|
]
|
|
template = "custom"
|
|
script = """
|
|
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
|
DYNAMIC_INIT
|
|
MAKEFLAGS=(
|
|
NEEDS_SSL_WITH_CURL=1
|
|
NEEDS_CRYPTO_WITH_SSL=1
|
|
NO_IPV6=1
|
|
NO_PREAD=1
|
|
NO_MMAP=1
|
|
NO_SETITIMER=1
|
|
NO_UNIX_SOCKETS=1
|
|
NEEDS_LIBICONV=
|
|
NEEDS_LIBRT=
|
|
BLK_SHA1=1
|
|
V=1
|
|
)
|
|
export CURL_CONFIG="${COOKBOOK_SYSROOT}/usr/bin/curl-config"
|
|
./configure \
|
|
--host="${GNU_TARGET}" \
|
|
--prefix=/usr \
|
|
ac_cv_fread_reads_directories=yes \
|
|
ac_cv_snprintf_returns_bogus=yes \
|
|
ac_cv_lib_curl_curl_global_init=yes
|
|
"${COOKBOOK_MAKE}" "${MAKEFLAGS[@]}" -j"${COOKBOOK_MAKE_JOBS}"
|
|
"${COOKBOOK_MAKE}" DESTDIR="${COOKBOOK_STAGE}" "${MAKEFLAGS[@]}" install
|
|
rm -rf "${COOKBOOK_STAGE}/usr/share/man"
|
|
"""
|
|
|
|
[package]
|
|
dependencies = [
|
|
"ca-certificates",
|
|
"nghttp2"
|
|
]
|