bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #64536] Gettext-0.22: lib/libintl.la not being installed


From: René Bertin
Subject: [bug #64536] Gettext-0.22: lib/libintl.la not being installed
Date: Wed, 14 Aug 2024 19:33:31 -0400 (EDT)

Follow-up Comment #9, bug #64536 (group gettext):

[comment #3 comment #3:]
> The loss of libintl.la is not important:

They're probably not important indeed in the sense that you can elect never to
install them (as MacPorts does). However if they're there they're likely to
end up in the .la files of dependents.

I learned about this issue today, the hard way. I had upgraded my gettext
install from 0.19.8.1 to 0.22.5, building from source using the toplevel
configure script. That 1st build went fine. A 2nd build failed, with an error
message that `$prefix/lib/libintl.la` was missing.

It took me a long time to figure out that this was because the build had
picked up my libacl install, which has a libacl.la file referencing libintl.la
. I have a handful of other *.la files that also include this reference, e.g.
from the binutils package.

I have to assume that any dependent trying to link against one of those
libraries with the libtool script will fail just like the gettext build
failed.

FWIW, what actually happens with libintl.la is that it gets installed and then
removed via code introduced in #44d2c1d6ed . For my own build I just removed
the conditional removal bit from the Makefile:

```
diff --git gettext-runtime/intl/orig.Makefile.am
gettext-runtime/intl/Makefile.am
index 2bed67b..30c9a47 100644
--- gettext-runtime/intl/orig.Makefile.am
+++ gettext-runtime/intl/Makefile.am
@@ -462,13 +462,7 @@ install-exec-local: install-exec-libintl
 install-exec-libintl: libintl.la
        $(mkdir_p) $(DESTDIR)$(libdir)
        $(LIBTOOL) --mode=install \
-         $(INSTALL_DATA) libintl.la $(DESTDIR)$(libdir)/libintl.la; \
-       if test "@RELOCATABLE@" = yes; then \
-         dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' <
$(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \
-         if test -n "$$dependencies"; then \
-           rm -f $(DESTDIR)$(libdir)/libintl.la; \
-         fi; \
-       fi
+         $(INSTALL_DATA) libintl.la $(DESTDIR)$(libdir)/libintl.la;
 
 installdirs-local: installdirs-libintl
 installdirs-libintl:
```


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64536>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]