aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2024-02-03 17:37:11 +1000
committerfuzzard <fuzzard@kodi.tv>2024-02-10 14:25:54 +1000
commit68c6fb11199098b7c4e9d94dfb485d5d855689fe (patch)
tree84dc4600986aab9c3867bc51269dbbde644ed6e2 /tools
parent533bc0300834642957fd09b155d329d9b885d6f3 (diff)
[tools/depends][native] Bump gettext 0.22.4
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/native/gettext/01-gettext-tools-stpncpy.patch11
-rw-r--r--tools/depends/native/gettext/02-disable-test-doc.patch6
-rw-r--r--tools/depends/native/gettext/GETTEXT-VERSION4
-rw-r--r--tools/depends/native/gettext/Makefile53
4 files changed, 29 insertions, 45 deletions
diff --git a/tools/depends/native/gettext/01-gettext-tools-stpncpy.patch b/tools/depends/native/gettext/01-gettext-tools-stpncpy.patch
deleted file mode 100644
index a7541bffd8..0000000000
--- a/tools/depends/native/gettext/01-gettext-tools-stpncpy.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/gettext-tools/gnulib-lib/stpncpy.c
-+++ b/gettext-tools/gnulib-lib/stpncpy.c
-@@ -24,7 +24,7 @@
- /* Specification. */
- #include <string.h>
-
--#ifndef weak_alias
-+#ifndef HAVE_STPNCPY
- # define __stpncpy stpncpy
- #endif
-
diff --git a/tools/depends/native/gettext/02-disable-test-doc.patch b/tools/depends/native/gettext/02-disable-test-doc.patch
index 1e539d1431..aea2c63840 100644
--- a/tools/depends/native/gettext/02-disable-test-doc.patch
+++ b/tools/depends/native/gettext/02-disable-test-doc.patch
@@ -1,11 +1,11 @@
--- a/gettext-tools/Makefile.in
+++ b/gettext-tools/Makefile.in
-@@ -2198,7 +2198,7 @@
+@@ -3400,7 +3400,7 @@
top_srcdir = @top_srcdir@
AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4
--SUBDIRS = intl gnulib-lib libgrep src libgettextpo po its projects styles emacs misc man m4 tests system-tests gnulib-tests examples doc
-+SUBDIRS = intl gnulib-lib libgrep src libgettextpo po its projects styles emacs misc man m4
+-SUBDIRS = gnulib-lib libgrep src libgettextpo po its projects styles emacs misc man m4 tests system-tests gnulib-tests examples doc
++SUBDIRS = gnulib-lib libgrep src libgettextpo po its projects styles emacs misc man m4
# Allow users to use "gnulib-tool --update".
diff --git a/tools/depends/native/gettext/GETTEXT-VERSION b/tools/depends/native/gettext/GETTEXT-VERSION
new file mode 100644
index 0000000000..9aa25a750c
--- /dev/null
+++ b/tools/depends/native/gettext/GETTEXT-VERSION
@@ -0,0 +1,4 @@
+LIBNAME=gettext
+VERSION=0.22.4
+ARCHIVE=$(LIBNAME)-$(VERSION).tar.gz
+SHA512=ad2fa2f69be996a637e9b51e8941a39e10050060245dcec1fe75c15b68d0ff973043c87b77e4e2830e407e3bdd040b578f8e24fd05bba43adb94eaee34001aa5
diff --git a/tools/depends/native/gettext/Makefile b/tools/depends/native/gettext/Makefile
index f78aceab1f..2022d04b33 100644
--- a/tools/depends/native/gettext/Makefile
+++ b/tools/depends/native/gettext/Makefile
@@ -1,34 +1,28 @@
-include ../../Makefile.include
+include ../../Makefile.include GETTEXT-VERSION ../../download-files.include
PREFIX=$(NATIVEPREFIX)
PLATFORM=$(NATIVEPLATFORM)
-DEPS = ../../Makefile.include Makefile 01-gettext-tools-stpncpy.patch 02-disable-test-doc.patch ../../download-files.include
-
-# lib name, version
-LIBNAME=gettext
-VERSION=0.21
-SOURCE=$(LIBNAME)-$(VERSION)
-ARCHIVE=$(SOURCE).tar.xz
-SHA512=f7e2968651879f8444d43a176a149db9f9411f4a03132a7f3b37c2ed97e3978ae6888169c995c1953cb78943b6e3573811abcbb8661b6631edbbe067b2699ddf
-include ../../download-files.include
+DEPS = ../../Makefile.include Makefile GETTEXT-VERSION ../../download-files.include \
+ 02-disable-test-doc.patch
# configuration settings
CONFIGURE=./configure --prefix=$(PREFIX) \
- --disable-csharp --disable-native-java --disable-java --without-emacs \
- --disable-libasprintf --disable-openmp \
- --with-included-gettext \
- --with-included-glib \
- --with-included-libcroco \
- --with-included-libxml \
- --without-git --without-cvs \
- --disable-shared --disable-curses --disable-acl --disable-c++ --disable-nls
-
-ifeq ($(NATIVE_OS), osx)
- # As per homebrew - https://github.com/Homebrew/homebrew-core/blob/f6df737d9479dd215185000a3dbd641185eafec2/Formula/g/gettext.rb#L52C1-L55
- # Sonoma iconv() has a regression w.r.t. transliteration, which happens to
- # break gettext's configure check. Force it.
- # Reported to Apple as FB13163914
- CONFIGURE+= am_cv_func_iconv_works=y
-endif
+ --disable-csharp \
+ --disable-native-java \
+ --disable-java \
+ --disable-c++ \
+ --without-emacs \
+ --disable-libasprintf \
+ --disable-openmp \
+ --disable-curses \
+ --disable-acl \
+ --disable-nls \
+ --with-included-gettext \
+ --with-included-glib \
+ --with-included-libcroco \
+ --with-included-libxml \
+ --without-git \
+ --without-cvs \
+ --disable-shared
LIBDYLIB=$(PLATFORM)/gettext-tools/src/.libs/libgettextsrc.a
@@ -38,19 +32,16 @@ all: .installed-$(PLATFORM)
$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
- cd $(PLATFORM); sed -ie '/gets is a security hole/d' gettext-tools/gnulib-lib/stdio.in.h
- cd $(PLATFORM); sed -ie '/gets is a security hole/d' gettext-tools/libgettextpo/stdio.in.h
- cd $(PLATFORM); sed -ie '/gets is a security hole/d' gettext-runtime/gnulib-lib/stdio.in.h
- cd $(PLATFORM); patch -p1 -i ../01-gettext-tools-stpncpy.patch
cd $(PLATFORM); patch -p1 -i ../02-disable-test-doc.patch
cd $(PLATFORM); $(CONFIGURE)
$(LIBDYLIB): $(PLATFORM)
+ $(MAKE) -C $(PLATFORM)/gettext-runtime/intl libgnuintl.h
$(MAKE) -C $(PLATFORM)/libtextstyle
$(MAKE) -C $(PLATFORM)/gettext-tools
.installed-$(PLATFORM): $(LIBDYLIB)
- $(MAKE) -j1 -C $(PLATFORM)/gettext-tools install
+ $(MAKE) -C $(PLATFORM)/gettext-tools install
touch $@
clean: