DEPENDS="gettext" vs. DEPENDS="virtual/libintl"
Hi all,
I'm working on exorcizing gettext as a requirement for building OE. Since glib-2.0 absolutely has to have libintl, I've found an alternate way of providing. uClibc's libintl stub has a pretty bad case of bitrot, but I found proxy-libintl, which was written to get GNOME onto Windows. By setting proxy-libintl up as the PREFERRED_PROVIDER for virtual/libintl, I can get past glib-2.0 now.
The problem now is that some packages explicitly list "gettext" in their DEPENDS. Is this just legacy from before virtual/libintl was created? Is there any reason why these can't all be changed to "virtual/libintl"?
TIA,
---
Geoffrey
Quoted 9 lines · Geoffrey Wossum
Hi all,
I'm working on exorcizing gettext as a requirement for building OE. Since glib-2.0 absolutely has to have libintl, I've found an alternate way of providing. uClibc's libintl stub has a pretty bad case of bitrot, but I found proxy-libintl, which was written to get GNOME onto Windows. By setting proxy-libintl up as the
PREFERRED_PROVIDERfor virtual/libintl, I can get past glib-2.0 now.
Quoted 8 lines
The problem now is that some packages explicitly list "gettext" in their DEPENDS. Is this just legacy from before virtual/libintl was created? Is there any reason why these can't all be changed to "virtual/libintl"?
TIA,
---
Geoffrey
Hi,
I suggest looking into this packages to see why they need gettext, maybee they need special tools, which only gettext provides.
Bye,
Henning
Quoted 8 lines · Henning Heinold
Quoted 7 lines · Geoffrey Wossum
I'm working on exorcizing gettext as a requirement for building OE. Since glib-2.0 absolutely has to have libintl, I've found an alternate way of providing. uClibc's libintl stub has a pretty bad case of bitrot, but I found proxy-libintl, which was written to get GNOME onto Windows. By setting proxy-libintl up as the
PREFERRED_PROVIDERfor virtual/libintl, I can get past glib-2.0 now.
Quoted 6 lines
Quoted 3 lines
The problem now is that some packages explicitly list "gettext" in their DEPENDS. Is this just legacy from before virtual/libintl was created? Is there any reason why these can't all be changed to "virtual/libintl"?
I suggest looking into this packages to see why they need gettext, maybee they need special tools, which only gettext provides.
I masked out the gettext package, and it turned out the only package my current system needs that had a DEPENDS for gettext was popt. I changed popt's DEPENDS from gettext to virtual/libintl, and it built fine. I won't be able to test out my gettext free build on hardware until Monday, though.
It seems to me that if a package needs headers or libraries from gettext, a DEPENDS of "virtual/libintl" would be fine. If a package needs tools from gettext to be built, then it should be depending on "gettext-native" instead of "gettext", I would think.
---
Geoffrey
Quoted 8 lines · Geoffrey Wossum
Quoted 7 lines · Henning Heinold
Quoted 6 lines · Geoffrey Wossum
I'm working on exorcizing gettext as a requirement for building OE. Since glib-2.0 absolutely has to have libintl, I've found an alternate way of providing. uClibc's libintl stub has a pretty bad case of bitrot, but I found proxy-libintl, which was written to get GNOME onto Windows. By setting proxy-libintl up as the
PREFERRED_PROVIDERfor virtual/libintl, I can get past glib-2.0 now.
It works! I got rid of gettext. It didn't fix all my problems, but it fixed crashes with aplay and Xfbdev. avahi still crashes, must be a separate issue...
Submitted patches for this as bug #4370:
http://bugs.openembedded.net/show_bug.cgi?id=4370
You'll need to add PREFERRED_PROVIDER_virtual/libintl = "proxy-libintl" and USE_NLS = "no" (if you didn't already have it from somewhere like angstrom-uclibc.inc) to actually make use of proxy-libintl.
---
Geoffrey
Quoted 4 lines · Geoffrey Wossum
It works! I got rid of gettext. It didn't fix all my problems, but it fixed crashes with aplay and Xfbdev. avahi still crashes, must be a separate issue...
avahi segfaults if you dont have a /etc/resolv.conf which a lot of machines dont by default.
G
Quoted 7 lines · Graeme Gregory
Quoted 3 lines · Geoffrey Wossum
It works! I got rid of gettext. It didn't fix all my problems, but it fixed crashes with aplay and Xfbdev. avahi still crashes, must be a separate issue...
avahi segfaults if you dont have a
/etc/resolv.confwhich a lot of machines dont by default.
I had an /etc/resolv.conf, but it was empty. Added a couple of nameserver entries. avahi-daemon still segfaults on startup. Gonna have to hook the debugger up at some point. Thanks for the tip, though.
---
Geoffrey