Bug 123116 - app-text/a2ps has gettext as RDEPEND
Bug#: 123116 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: printing@gentoo.org Reported By: flameeyes@gentoo.org
Component: Ebuilds
URL: 
Summary: app-text/a2ps has gettext as RDEPEND
Keywords:  
Status Whiteboard: 
Opened: 2006-02-16 16:49 0000
Description:   Opened: 2006-02-16 16:49 0000
The ebuild in summary has a runtime dependency over gettext.

gettext is normally used only as build-time dependency to create the po files
in nls-enabled packages.
A part from development tools, the only case when gettext is needed as runtime
dependency is when the system c library does not provide intl functions.
For this reason the right way to state the dependencies for nls-enabled
packages is:

RDEPEND="nls? ( virtual/libintl )
   ...."

DEPEND="${RDEPEND}
   nls? ( sys-devel/gettext )"

this way libintl takes care of adding the dependency when needed and gettext is
required only at build time.

Note: although usually packages using gettext and autotools are supposed to
honour --disable-nls at configure time, that might not always be true, so
gettext and libintl might be an hard dependency. Also, gettext (but not
libintl) might be an hard dependency if the sources needs to be bootstrapped
for autotools from scratch (and thus autopoint has to be run).

Thanks,
Diego

------- Comment #1 From Marcelo Goes 2006-02-16 17:41:34 0000 -------
Thanks, fixed in cvs.