Suggested-by: Michael Tremer <[email protected]>
Signed-off-by: Adolf Belka <[email protected]>
---
 lfs/libloc                                    |  2 +-
 .../libloc-0.9.18_gettext-0.25_fix.patch      | 29 +++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletion(-)
 create mode 100644 src/patches/libloc-0.9.18_gettext-0.25_fix.patch

diff --git a/lfs/libloc b/lfs/libloc
index 8e438b50d..f2f0aa8a9 100644
--- a/lfs/libloc
+++ b/lfs/libloc
@@ -81,7 +81,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 
        # 
https://lists.ipfire.org/pipermail/development/2022-November/014763.html
        cd $(DIR_APP) && patch -Np1 < 
$(DIR_SRC)/src/patches/libloc-0.9.18-Revert-Install-Perl-files-to-Perl-vendor-directory.patch
-
+       cd $(DIR_APP) && patch -Np1 < 
$(DIR_SRC)/src/patches/libloc-0.9.18_gettext-0.25_fix.patch
        cd $(DIR_APP) && ./autogen.sh
        cd $(DIR_APP) && ./configure \
                --prefix=/usr \
diff --git a/src/patches/libloc-0.9.18_gettext-0.25_fix.patch 
b/src/patches/libloc-0.9.18_gettext-0.25_fix.patch
new file mode 100644
index 000000000..ad8d3c92a
--- /dev/null
+++ b/src/patches/libloc-0.9.18_gettext-0.25_fix.patch
@@ -0,0 +1,29 @@
+diff -Naur libloc-0.9.18.orig/autogen.sh libloc-0.9.18/autogen.sh
+--- libloc-0.9.18.orig/autogen.sh      2025-03-10 12:07:35.000000000 +0100
++++ libloc-0.9.18/autogen.sh   2025-05-14 11:24:52.602116647 +0200
+@@ -8,8 +8,9 @@
+         echo "Activated pre-commit hook."
+ fi
+ 
++autopoint
+ intltoolize --force --automake
+-autoreconf --install --symlink
++autoreconf --force --install --symlink
+ 
+ libdir() {
+         echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
+diff -Naur libloc-0.9.18.orig/configure.ac libloc-0.9.18/configure.ac
+--- libloc-0.9.18.orig/configure.ac    2025-03-10 12:07:35.000000000 +0100
++++ libloc-0.9.18/configure.ac 2025-05-14 11:25:45.712783931 +0200
+@@ -30,7 +30,10 @@
+ AC_PREFIX_DEFAULT([/usr])
+ gl_LD_VERSION_SCRIPT
+ 
+-IT_PROG_INTLTOOL([0.40.0])
+++AM_GNU_GETTEXT_VERSION(0.25)
+++AM_GNU_GETTEXT([external])
++
++IT_PROG_INTLTOOL([0.51.0])
+ 
+ # Interpret embedded Python in HTML files
+ XGETTEXT="${XGETTEXT} -L Python --keyword=_:1,2 --keyword=N_:1,2 
--no-location"
-- 
2.49.0


Reply via email to