Summary: | app-portage/eix[nls] has missing sys-devel/gettext RDEPEND | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Nikoli <nikoli> |
Component: | Current packages | Assignee: | Martin Väth <martin> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | axs, proxy-maint, xmw |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Act like USE_NLS=no if gettext.sh does not exit |
Description
Nikoli
2014-02-02 19:24:11 UTC
It seems that virtual/libintl is somewhat broken, since gettext.sh is supposed to be part of that GNU internationalization library. It is not natural to depend on gettext only for a script which is part of the library. I will see what I can do. Created attachment 369398 [details, diff]
Act like USE_NLS=no if gettext.sh does not exit
The situation is worth than I thought first: Not only that gettext.sh is not available with only virtual/libintl, but also the gettext binary is missing - no chance to do translated output from a shell script without such a binary.
On the one hand, eix could provide such a binary, but this would be strange. On the other hand, gettext is a severe dependency, only to get translated messages for some shell scripts: the binaries work well with virtual/libintl alone.
Currently, you can enable/disable nls at runtime in the scripts by exporting USE_NLS=yes/no. I think that I will use just the attached patch to force USE_NLS=no when gettext.sh cannot found:
This way, eix need not the severe runtime dependency on gettext. The disadvantage is that translation in scripts can get lost if gettext is not available, but the user can simple emerge gettext if he wants the translation back.
After the patch, this is a clear case for an optional dependency. Since the installed binary is not changed, gentoo's policy is to not allow a USE-flag for this. Since the effect is so obvious (you get no translation for the scripts without gettext) it is perhaps not necessary to make a s special pkg_postinst() message.
The attached patch is now already in the git master branch on github and berlios (>=eix-0.30.2).
s/worth/worse/ Closing since eix-0.30.2 is in the tree now. |