Skip to contentSkip to conversation

gettext: fix libtool: Version mismatch error

PATCH Superseded Vincent Davis Jr 1 participant 1 message Dec 30, 2024

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gettext: fix libtool: Version mismatch error

Commit adds in hackish fix for
libtool: Version mismatch.

Along with subsequent errors that occur after fix.

---
 meta/recipes-core/gettext/gettext_0.22.5.bb | 28 +++++++++++++++++++++
 1 file changed, 28 insertions(+)
meta/recipes-core/gettext/gettext_0.22.5.bb +28 -0
index 0bf2a56e5f..e8ff67d14e 100644
@@ -122,6 +122,34 @@ FILES:gettext-runtime-doc = "${mandir}/man1/gettext.* \
                              ${infodir}/autosprintf.info \
                             "
 
+
+# Hackish fix for:
+#
+# libtool: Version mismatch error.  This is libtool 2.5.4, but the
+# libtool: definition of this LT_INIT comes from libtool 2.5.2.
+# libtool: You should recreate aclocal.m4 with macros from libtool 2.5.4
+# libtool: and run autoconf again.
+do_compile:prepend:class-target() {
+    cd ${S}
+}
+
+# Fixes
+# NOTE: make -j $(nproc)
+# make: *** No targets specified and no makefile found.  Stop.
+# ERROR: oe_runmake failed
+do_configure:prepend:class-target() {
+    cd ${S}
+    autoreconf --force --install
+}
+
+# Fixes
+# NOTE: make -j $(nproc) DESTDIR=$D install
+# make: *** No rule to make target 'install'.  Stop.
+# ERROR: oe_runmake failed
+do_install:prepend:class-target() {
+    cd ${S}
+}
+
 do_install:append() {
     rm -f ${D}${libdir}/preloadable_libintl.so
 }
Signature · 1 line
2.43.0