Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
glibc and libintl.so - how?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
nick87720z
n00b
n00b


Joined: 22 Mar 2017
Posts: 13

PostPosted: Thu Sep 07, 2017 10:14 pm    Post subject: glibc and libintl.so - how? Reply with quote

I'm currently doing series of live ebuilds for Dave Robillard audio tool set.
media-libs/ganv is written with c++, uses gtkmm and gettext.
As for ebuild deps, for nls it depends in virtual/libintl, which is supposed to pull in libintl package,
what may be visible just by its RDEPEND string... which, however doesn't work.

By some reason libintl is separated from gettext into separate package...
For summary - it looks intentionally locked, to have libintl.so library, while glibc is installed.
It could be clear, if there is file collision, but glibc don't have such lib, instead having gettext functions in libc.so.6.
I'm not sure, it is good idea -to link c++/gtkmm program with glibc only for gettext functions.

Looking better to gettext ebuild contents, i found similar lib - preloadable_libintl.so, which has those functions (ganv checks dor dgettext symbol).

Unfortunally, gettext/libintl stuff is not integrated with pkg-config. And is it possible, to specify LIBS for waf, to make if find it?
It would be possible to do a symlink to preloaded_libintl.so, but entire idea of restricting to have file libintl.so with glibc installed looks crazy.

So, what is possible way in gentoo?
Back to top
View user's profile Send private message
nick87720z
n00b
n00b


Joined: 22 Mar 2017
Posts: 13

PostPosted: Thu Sep 07, 2017 10:51 pm    Post subject: Reply with quote

It appears to be a harder, than expected.
Both symlink and real libintl package (after renaming libintl.h from glibc though) did not work,
so can't test it.
Also found such support in glib, probably it will be in glibmm too.

I understood, why libintl package is not installed with glibc (there is gentoo bug, which i forgot).
Could not it be solved by simple moving just on header into separate package?
or even having gettext use flag to install or not libintl.h
e.g. IUSE="libintl-header"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum