when trying to emerge xorg-server on a system with USE="-nls" net-misc/xkeyboard-config fails during configure with error configure: error: GNU gettext tools not found; required for intltool Reproducible: Always Steps to Reproduce: 1. set USE="-nls" in make.conf (assuming there is no package depending directly on gettext in your world like glib, atk or some others) 2. emerge -uND world 3. emerge --depclean 4. emerge xkeyboard-config -1 Actual Results: fails at configure saying gettext is a required dependency. Expected Results: should have all the required dependencies and thus not fail at configure.
there's also bug 314953... not sure if we should just add gettext to intltool's deps directly
true, that might be better to add dependency directly to intltool it is the binary that needs gettext as stated by the configure script. I didn't realize intltool was in another ebuild when I saw the error message just thought it was an internal tool compiled by gettext.
actually, even if bug 314953 is valid (and it seems to be), xkeyboard-config defines it's own gettext depend in configure.ac too: GETTEXT_PACKAGE=xkeyboard-config AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package]) so it should also depend on it
I've been digging a lot in intltool lately and I think intltool should just depend on gettext since you can't use intltool without using gettext *directly*. The easiest thing we can do for ebuild writers is to make the gettext dep useless when depending on intltool. Cheers
(In reply to comment #4) > I've been digging a lot in intltool lately and I think intltool should just > depend on gettext since you can't use intltool without using gettext > *directly*. > > The easiest thing we can do for ebuild writers is to make the gettext dep > useless when depending on intltool. > > Cheers > Then, there is no need to keep this bug open anymore, is there? I agree it should stay as one, but it's still implicit depend and they are error prone... "until someone decides intltool shouldn't depend on gettext anymore", really want to count on that? :) I'd prefer if the commit was just added for good example to others.
@samuli, remi: so WHAT should we do, this is open long enough, lets just add that gettext to intltool and be done with it...
Proposed fix as github pull request https://github.com/gentoo/gentoo/pull/3760
[master 49451837fc] x11-misc/xkeyboard-config: DEPEND on sys-devel/gettext Author: Harri Nieminen <moikkis@gmail.com> Date: Wed Feb 1 16:38:08 2017 +0200 6 files changed, 6 insertions(+)