diff mbox series

[v2] gettext: fix libtool: Version mismatch error

Message ID 20241230033450.582395-2-vince@underview.tech
State New
Headers show
Series [v2] gettext: fix libtool: Version mismatch error | expand

Commit Message

Vincent Davis Jr Dec. 30, 2024, 3:34 a.m. UTC
Commit adds in hackish fix for
libtool: Version mismatch.

Along with subsequent errors that occur after fix.

Signed-off-by: Vincent Davis Jr <vince@underview.tech>
---
 meta/recipes-core/gettext/gettext_0.22.5.bb | 28 +++++++++++++++++++++
 1 file changed, 28 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-core/gettext/gettext_0.22.5.bb b/meta/recipes-core/gettext/gettext_0.22.5.bb
index 0bf2a56e5f..a420d3df17 100644
--- a/meta/recipes-core/gettext/gettext_0.22.5.bb
+++ b/meta/recipes-core/gettext/gettext_0.22.5.bb
@@ -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_configure:prepend:class-target() {
+    cd ${S}
+    autoreconf --force --install
+}
+
+# Fixes
+# NOTE: make -j $(nproc)
+# make: *** No targets specified and no makefile found.  Stop.
+# ERROR: oe_runmake failed
+do_compile:prepend:class-target() {
+    cd ${S}
+}
+
+# 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
 }