Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191669 - x11-libs/libXpm lacks gettext buildtime dependency
Summary: x11-libs/libXpm lacks gettext buildtime dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: Inclusion
: 219112 236355 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-08 10:28 UTC by Philipp
Modified: 2011-03-07 23:03 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libXpm-3.5.7-gettext.patch (libXpm-3.5.7-gettext.patch,624 bytes, patch)
2008-01-05 16:41 UTC, impulze
Details | Diff
libXpm-3.5.7-r1.ebuild.patch (libXpm-3.5.7-r1.ebuild.patch,976 bytes, patch)
2008-01-05 16:42 UTC, impulze
Details | Diff
libXpm-3.5.7-r1.ebuild.patch (by making it CVS ebuild, probably cleaner solution) (libXpm-3.5.7-r1.ebuild.patch,811 bytes, patch)
2008-01-05 16:54 UTC, impulze
Details | Diff
build log from failure of x11-libs/libXpm-3.5.8 (build.log,9.91 KB, text/plain)
2010-01-23 22:43 UTC, Ryan Tandy
Details
xgettext: command not found (libXpm-3.5.8-build.log,10.35 KB, text/plain)
2010-01-24 20:59 UTC, Raffaello D. Di Napoli
Details
Updated patch fixing configure.ac test for gettext (libXpm-3.5.8-gettext.patch,642 bytes, patch)
2010-01-25 20:47 UTC, Raffaello D. Di Napoli
Details | Diff
Updated patch for the ebuild to use above patch (libXpm-3.5.8.ebuild.patch,637 bytes, patch)
2010-01-25 20:54 UTC, Raffaello D. Di Napoli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp 2007-09-08 10:28:57 UTC
/bin/sh: xgettext: command not found

!!! ERROR in x11-libs/libXpm-3.5.7:
!!! In x-modular_src_make at line 4667
!!! emake failed
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2007-09-08 20:08:49 UTC
Is libXpm the only X package you've hit this with?
Comment 2 Philipp 2007-09-08 23:30:21 UTC
Sorry, I installed gettext after encountering this error so I don't know if it triggers with other packages as well.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2007-09-09 01:45:48 UTC
OK, someone needs to have a look to see whether gettext is something that autotools always die without.
Comment 4 a1200ux 2007-09-29 21:18:46 UTC
I am having the same problem.

(In reply to comment #1)
> Is libXpm the only X package you've hit this with?

Yes. Running a ~x86 system without sys-devel/gettext installed, libXpm is the only package suffering from this. Solved it rather ugly by adding following lines to libXpm-3.5.7.ebuild:

IUSE="nls"
added "nls? ( sys-devel/gettext )" to RDEPEND
CONFIGURE_OPTIONS="$(use_with nls localedir)"

I *think* the error is in line 43 in configure.ac but i'm not familiar enough with autotools to fix it decent. Upstream issue!?
Comment 5 impulze 2008-01-05 16:40:25 UTC
the problem is actually that libXpm treats gettext as xgettext, the gettext function is available on gnu libc systems without further libraries so AC_SEARCH_LIBS[gettext] [intl] SETTRUE SETFALSE will SETTRUE... but xgettext is a binary and not provided by the gnu libc :) therefore it fails when invoking it. i provided a patch that checks for xgettext and if that's available for needed libs to link against. i'm not sure if this is the right way or whatnot but it got the job done here.
Comment 6 impulze 2008-01-05 16:41:30 UTC
Created attachment 140196 [details, diff]
libXpm-3.5.7-gettext.patch
Comment 7 impulze 2008-01-05 16:42:38 UTC
Created attachment 140198 [details, diff]
libXpm-3.5.7-r1.ebuild.patch
Comment 8 impulze 2008-01-05 16:54:22 UTC
Created attachment 140199 [details, diff]
libXpm-3.5.7-r1.ebuild.patch (by making it CVS ebuild, probably cleaner solution)
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2008-01-11 08:39:46 UTC
(In reply to comment #8)
> Created an attachment (id=140199) [edit]
> libXpm-3.5.7-r1.ebuild.patch (by making it CVS ebuild, probably cleaner
> solution)

That solution is quite nice, actually.
Comment 10 Matthias B. 2008-01-11 19:14:34 UTC
Just wanted to say that I'm affected by this problem (I don't have gettext and my xorg build aborted at libXpm) and the patches worked for me.
Comment 11 Bruno 2008-04-27 13:22:58 UTC
I was rebuilding my complete X installation an also did hit x11-libs/libXpm's build time dependency on gettext:

make[2]: Entering directory `/var/tmp/portage/x11-libs/libXpm-3.5.7/work/libXpm-3.5.7/sxpm'
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include   -Wall -Wpointer-arith -Wstrict-prototypes   -Wmissing-prototypes -Wmissing-declarations     -Wnested-externs -fno-strict-aliasing -O2 -march=pentium-m -pipe -MT sxpm.o -MD -MP -MF .deps/sxpm.Tpo -c -o sxpm.o sxpm.c
sed -e 's|__vendorversion__|"libXpm 3.5.7" "X Version 11"|' -e 's|__xorgversion__|"libXpm 3.5.7" "X Version 11"|' -e 's|__xservername__|Xorg|g' -e 's|__xconfigfile__|xorg.conf|g' -e 's|__projectroot__|/usr|g' -e 's|__apploaddir__||' -e 's|__appmansuffix__|1|g' -e 's|__libmansuffix__|3|g' -e 's|__adminmansuffix__|8|g' -e 's|__miscmansuffix__|7|g' -e 's|__filemansuffix__|5|g'  < sxpm.man > sxpm.1
xgettext -c"L10N_Comments" -d sxpm -n ./sxpm.c
/bin/sh: xgettext: command not found
make[2]: *** [sxpm.po] Error 127
make[2]: *** Waiting for unfinished jobs....
sxpm.c:113: warning: function declaration isn't a prototype
sxpm.c:114: warning: function declaration isn't a prototype
sxpm.c:115: warning: function declaration isn't a prototype
sxpm.c:116: warning: function declaration isn't a prototype
sxpm.c:143: warning: function declaration isn't a prototype
sxpm.c:582: warning: function declaration isn't a prototype
sxpm.c:620: warning: function declaration isn't a prototype
sxpm.c:678: warning: function declaration isn't a prototype
sxpm.c:725: warning: function declaration isn't a prototype
sxpm.c:737: warning: function declaration isn't a prototype
mv -f .deps/sxpm.Tpo .deps/sxpm.Po
make[2]: Leaving directory `/var/tmp/portage/x11-libs/libXpm-3.5.7/work/libXpm-3.5.7/sxpm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-libs/libXpm-3.5.7/work/libXpm-3.5.7'
make: *** [all] Error 2
Comment 12 Donnie Berkholz (RETIRED) gentoo-dev 2008-05-09 07:38:45 UTC
*** Bug 219112 has been marked as a duplicate of this bug. ***
Comment 13 Markus Duft (RETIRED) gentoo-dev 2008-05-09 09:59:40 UTC
i stumbled over this again:

make[2]: Entering directory `/opt/gentoo/var/tmp/portage/x11-libs/libXpm-3.5.7/work/libXpm-3.5.7/sxpm'
i586-pc-interix6.0-gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include  -I/opt/gentoo/usr/include   -Wall -Wpointer-arith -Wstrict-prototypes 	-Wmissing-prototypes -Wmissing-declarations 	-Wnested-externs -fno-strict-aliasing  -MT sxpm.o -MD -MP -MF .deps/sxpm.Tpo -c -o sxpm.o sxpm.c
sxpm.c:56:21: error: libintl.h: No such file or directory
Comment 14 Markus Duft (RETIRED) gentoo-dev 2008-07-02 08:47:30 UTC
whats the status of this? i hit it _again_ :)
Comment 15 Donnie Berkholz (RETIRED) gentoo-dev 2008-07-12 22:55:10 UTC
The status is that it's one of many low-priority bugs (not really marked as such) with known causes and a reasonable idea of what to do next (Keywords: Inclusion).
Comment 16 Bernhard Hartleb 2008-09-02 08:14:23 UTC
*** Bug 236355 has been marked as a duplicate of this bug. ***
Comment 17 Steve Dibb (RETIRED) gentoo-dev 2009-02-03 19:24:08 UTC
Fixed DEPEND in CVS
Comment 18 solar (RETIRED) gentoo-dev 2009-12-26 20:45:01 UTC
On a uClibc system the gettext dep breaks and is not always an option. 
The libXpm package builds and appears to work fine with the simple addition of the nls? ( dep ) 
Being a no brainer fix, I just pushed it to the tree in 3.5.8 ebuild where the configure script does the right thing now.
Comment 19 Rémi Cardona (RETIRED) gentoo-dev 2009-12-26 23:57:04 UTC
Then it needs to be ported over to the x11 overlay otherwise it'll get lost during the next bump.

Thanks
Comment 20 Ryan Tandy 2010-01-23 22:43:44 UTC
Created attachment 217276 [details]
build log from failure of x11-libs/libXpm-3.5.8

(In reply to comment #18)
> The libXpm package builds and appears to work fine with the simple addition of
> the nls? ( dep ) 

This doesn't seem to quite be true.  I'm installing a new system and just stumbled over this - the current ~x86 libXpm (3.5.8) still fails if gettext is not installed.  It configures and compiles properly but fails before installing.  gettext is not pulled in because I don't have USE=nls enabled.  I'm attaching the build log.

I was also able to reproduce the failure on a working system via: quickpkg gettext; emerge -C gettext; emerge -v1 x11-libs/libXpm
Comment 21 Raffaello D. Di Napoli 2010-01-24 20:59:21 UTC
Created attachment 217330 [details]
xgettext: command not found

Same here:

...
Making all in sxpm
make[2]: Entering directory `/var/tmp/portage/x11-libs/libXpm-3.5.8/work/libXpm-3.5.8/sxpm'
  CC     sxpm.o
  GEN    sxpm.1
  GEN    sxpm.po
/bin/sh: xgettext: command not found
make[2]: *** [sxpm.po] Error 127
...


My USE doesn’t include nls.
Comment 22 Raffaello D. Di Napoli 2010-01-25 20:47:51 UTC
Created attachment 217417 [details, diff]
Updated patch fixing configure.ac test for gettext

I updated the patch for libXpm-3.5.7, adjusting it for libXpm-3.5.8...
Comment 23 Raffaello D. Di Napoli 2010-01-25 20:54:35 UTC
Created attachment 217418 [details, diff]
Updated patch for the ebuild to use above patch

...and this is the patch for libXpm-3.5.8.ebuild, to use the above attached patch.

It’s just an updated version of patch attachment 140199 [details, diff].
Comment 24 Tomáš Chvátal (RETIRED) gentoo-dev 2011-03-07 23:03:10 UTC
This thing is fixed in 3.5.9 which is only version in main tree.

Sorry it took so long, closing.