Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150543 - dev-libs/popt-1.10.4-r1 will not build if sys-devel/gettext is not installed
Summary: dev-libs/popt-1.10.4-r1 will not build if sys-devel/gettext is not installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Sandro Bonazzola (RETIRED)
URL:
Whiteboard:
Keywords:
: 151124 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-09 00:50 UTC by Jonathan Callen (RETIRED)
Modified: 2006-11-12 00:05 UTC (History)
10 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Callen (RETIRED) gentoo-dev 2006-10-09 00:50:47 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060921 Ubuntu/dapper-security Firefox/1.5.0.7
Build Identifier: 

If sys-devel/gettext is not installed (e.g., the entire system is built with
USE=-nls), then dev-libs/popt-1.10.4-r1 will not compile at all -- either the
package should be patched to not absolutely depend on gettext to build (if
possible), or the DEPEND should change from "nls? (sys-devel/gettext)" to
"sys-devel/gettext"

Reproducible: Always

Steps to Reproduce:
1. Ensure that sys-devel/gettext is not installed
2. Set USE=-nls
3. Add =dev-libs/popt-1.10.4-r1 to portage.keywords
4. Attempt to emerge popt

Actual Results:  
# emerge -avt1 popt

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R   ] dev-libs/popt-1.10.4-r1  USE="-nls" 0 kB

Total size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] y

>>> Emerging (1 of 1) dev-libs/popt-1.10.4-r1 to /
 * popt-1.10.4.tar.gz MD5 ;-) ...                                         [ ok ]
 * popt-1.10.4.tar.gz RMD160 ;-) ...                                      [ ok ]
 * popt-1.10.4.tar.gz SHA1 ;-) ...                                        [ ok ]
 * popt-1.10.4.tar.gz SHA256 ;-) ...                                      [ ok ]
 * popt-1.10.4.tar.gz size ;-) ...                                        [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking popt-1.10.4.tar.gz ;-) ...                                    [ ok ]
>>> Unpacking source...
>>> Unpacking popt-1.10.4.tar.gz to /var/tmp/portage/popt-1.10.4-r1/work
 * Applying popt-1.10.4-lib64.patch ...                                   [ ok ]
 * Running eautoreconf in '/var/tmp/portage/popt-1.10.4-r1/work/popt-1.10.4' ...
 * Running aclocal ...                                                    [ ok ]
 * Running libtoolize --copy --force --automake ...                       [ ok ]
 * Running aclocal ...                                                    [ ok ]
 * Running autoconf ...                                                   [ !! ]
 * Failed Running autoconf !
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/popt-1.10.4-r1/temp/autoconf-13761.out


!!! ERROR: dev-libs/popt-1.10.4-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_unpack
  ebuild.sh, line 708:   Called src_unpack
  popt-1.10.4-r1.ebuild, line 26:   Called eautoreconf
  autotools.eclass, line 81:   Called eautoconf
  autotools.eclass, line 151:   Called autotools_run_tool 'autoconf'
  autotools.eclass, line 212:   Called die

!!! Failed Running autoconf !
!!! If you need support, post the topmost build error, and the call stack if
relevant.

Expected Results:  
Installed properly, or DEPENDed on sys-devel/gettext

# cat /var/tmp/portage/popt-1.10.4-r1/temp/autoconf-13761.out
***** autoconf *****

configure.ac:119: error: possibly undefined macro: AM_GNU_GETTEXT
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

# emerge --info
Portage 2.1.2_pre2-r1 (default-linux/x86/2006.1/desktop, gcc-4.1.1,
glibc-2.4-r4, 2.6.18-gentoo i686)
=================================================================
System uname: 2.6.18-gentoo i686 unknown
Gentoo Base System version 1.12.5
Last Sync: Mon, 02 Oct 2006 15:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -mtune=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/init.d /etc/revdep-rebuild
/etc/terminfo"
CXXFLAGS="-Os -march=pentium4 -mtune=prescott -pipe -fomit-frame-pointer
-fvisibility-inlines-hidden -fvisibility=hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms
strict"
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/"
LANG="C"
LC_ALL="C"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa arts artswrappersuid bash-completion berkdb bitmap-fonts
bzip2 cairo cdr cjk cli crypt cups dbus dlloader dri dvd dvdr elibc_glibc emboss
encode esd fam fbcon firefox gif glibc-omitfp gnome gpm gs gstreamer gtk hal
input_devices_keyboard input_devices_mouse isdnlog javascript jpeg kde
kdeenablefinal kdehiddenvisibility kernel_linux libg++ linguas_en mad md5sum
mikmod motif mp3 mpeg ncurses no-old-linux nptl nptlonly ogg opengl pcre pdf
perl png pppd python qt3 quicktime rdesktop readline reflection rle scanner sdl
session spell spl sse2 ssl svg svga symlink tcpd tiff truetype truetype-fonts
type1-fonts udev unicode usb userland_GNU video_cards_ati video_cards_nv
video_cards_radeon video_cards_vesa vorbis win32codecs xml xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS
Comment 1 yogeshbug 2006-10-09 01:52:41 UTC
I manually tried to compile popt vy using this command.
#  ./configure --disable-nls
I got below error.
checking for GNU xgettext... configure: error:
  *** GNU gettext is required. The latest version
  *** is always available from ftp://ftp.gnu.org/gnu/gettext/.

so even if USE=-nls ,  gettext is required .
so line 17 of ebuild should be DEPEND="sys-devel/gettext" instead of DEPEND="nls? ( sys-devel/gettext )"
Comment 2 Sandro Bonazzola (RETIRED) gentoo-dev 2006-10-09 10:54:52 UTC
I can confirm that xgettext is required in order to compile popt, I'm going to fix it.
Comment 3 Sandro Bonazzola (RETIRED) gentoo-dev 2006-10-09 11:49:39 UTC
Fixed in CVS. Commit message:
+files/popt-1.10.4-nls.patch, popt-1.10.4-r1.ebuild:
Fix bug #150543. Patch provided by opensolaris.org, ported from popt-1.7 and
adapted for gentoo. Original patch available here:
http://cvs.opensolaris.org/source/xref/jds/Solaris/patches/popt-01-xgettext.diff

No version bump needed, those who compiled popt with USE=nls are unaffected by the changes.
Comment 4 Sandro Bonazzola (RETIRED) gentoo-dev 2006-10-15 08:19:48 UTC
Reopening due to bug #151124. I don't think that adding a dependency on gettext is the right thing to do here. -nls is a flag for those who don't want gettext. I'll try to patch again configure.ac removing any reference to gettext with USE=-nls tomorrow.
Comment 5 Sandro Bonazzola (RETIRED) gentoo-dev 2006-10-15 08:20:26 UTC
*** Bug 151124 has been marked as a duplicate of this bug. ***
Comment 6 Grzegorz Kulewski 2006-10-19 04:32:17 UTC
Hmm, looks like this patch does not solve the issue for me:

>>> Emerging (71 of 125) dev-libs/popt-1.10.4-r1 to /
 * popt-1.10.4.tar.gz MD5 ;-) ...                                                                                 [ ok ]
 * popt-1.10.4.tar.gz RMD160 ;-) ...                                                                              [ ok ]
 * popt-1.10.4.tar.gz SHA1 ;-) ...                                                                                [ ok ]
 * popt-1.10.4.tar.gz SHA256 ;-) ...                                                                              [ ok ]
 * popt-1.10.4.tar.gz size ;-) ...                                                                                [ ok ]
 * checking ebuild checksums ;-) ...                                                                              [ ok ]
 * checking auxfile checksums ;-) ...                                                                             [ ok ]
 * checking miscfile checksums ;-) ...                                                                            [ ok ]
 * checking popt-1.10.4.tar.gz ;-) ...                                                                            [ ok ]
>>> Unpacking source...
>>> Unpacking popt-1.10.4.tar.gz to /var/tmp/portage/dev-libs/popt-1.10.4-r1/work
 * Applying popt-1.10.4-lib64.patch ...                                                                           [ ok ]
 * Applying popt-1.10.4-nls.patch ...                                                                             [ ok ]
 * Running eautoreconf in '/var/tmp/portage/dev-libs/popt-1.10.4-r1/work/popt-1.10.4' ...
 * Running aclocal ...                                                                                            [ ok ]
 * Running libtoolize --copy --force --automake ...                                                               [ ok ]
 * Running aclocal ...                                                                                            [ ok ]
 * Running autoconf ...                                                                                           [ !! ]

 * Failed Running autoconf !
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/dev-libs/popt-1.10.4-r1/temp/autoconf-1275.out


!!! ERROR: dev-libs/popt-1.10.4-r1 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_unpack
  ebuild.sh, line 708:   Called src_unpack
  popt-1.10.4-r1.ebuild, line 27:   Called eautoreconf
  autotools.eclass, line 85:   Called eautoconf
  autotools.eclass, line 158:   Called autotools_run_tool 'autoconf'
  autotools.eclass, line 239:   Called die

!!! Failed Running autoconf !
!!! If you need support, post the topmost build error, and the call stack if relevant.

# cat /var/tmp/portage/dev-libs/popt-1.10.4-r1/temp/autoconf-1275.out
***** autoconf *****

configure.ac:110: error: possibly undefined macro: AM_GNU_GETTEXT
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

It stops emerge -e world here on nearly bare stage3, 2006.1/desktop, ~x86.
Comment 7 Sandro Bonazzola (RETIRED) gentoo-dev 2006-10-21 04:50:22 UTC
Removed nls patch from 1.10.4-r1 now DEPENDing on gettext. Added 1.10.4-r2 masked for testing, nls patch updated discarding any gettext reference. Repoman cmplains against badindev from sparc-fbsd, please check fbsd deps.

Please unmask 1.10.4-r2 and test it on your arch. I've tested on ~x86 and ~amd64 and worls for me.
Comment 8 Sandro Bonazzola (RETIRED) gentoo-dev 2006-10-21 04:51:51 UTC
Adding archs for testing 1.10.4-r2.
Comment 9 Christian Faulhammer (RETIRED) gentoo-dev 2006-10-21 23:45:23 UTC
[ebuild     U ] dev-libs/popt-1.10.4-r2 [1.7-r1] USE="nls"

Don't forget to unmask

1) emerges fine
2) passes collision test
3) media-gfx/eog emerges fine on it and works

Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.5
Last Sync: Sun, 22 Oct 2006 05:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d a52 aiglx alsa artworkextra asf audiofile bash-completion beagle berkdb bidi bitmap-fonts bootsplash branding bzip2 cairo cdda cddb cdparanoia cdr cli cracklib crypt css cups curl custom-cflags dbus dga directfb divx4linux dlloader dri dts dvd dvdr dvdread dvi eds elibc_glibc emacs emboss encode esd evo exif expat fam fat fbcon ffmpeg firefox fortran ftp gb gcj gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml hal icq idn imagemagick imap input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jikes jpeg jpeg2k kde kernel_linux ldap leim libg++ linguas_de lm_sensors mad maildir matroska mbox mhash mikmod mime mmx mmxext mng mono mp3 mpeg mpeg2 mule mysql nautilus ncurses nforce2 nls nocardbus nptl nptlonly nsplugin nvidia objc ogg opengl pam pcre pdf perl plotutils pmu png ppds pppd preview-latex print python qt3 qt4 quicktime readline reflection reiserfs samba sdk session slang spell spl sse ssl svg svga t1lib tcltk tcpd tetex theora thunderbird tiff truetype truetype-fonts type1-fonts udev usb userland_GNU vcd video_cards_fbdev video_cards_radeon video_cards_vesa videos vorbis win32codecs wmf wxwindows xine xml xorg xosd xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 10 Sandro Bonazzola (RETIRED) gentoo-dev 2006-10-22 01:00:14 UTC
(In reply to comment #9)
> [ebuild     U ] dev-libs/popt-1.10.4-r2 [1.7-r1] USE="nls"

The worst case for this ebuild is USE=-nls and gettext not present on the system.
USE=nls leave the ebuild as for popt-1.10.4-r1.

I've tested in a 32bit x86 chroot and it seems to work fine here with rsync compiled against it.
Comment 11 Markus Rothe (RETIRED) gentoo-dev 2006-10-22 02:23:43 UTC
USE="-nls" seems to build and work on PPC64, too. Unfortunatly I won't mark stable before it is some time out of p.mask, would I?
Comment 12 Christian Faulhammer (RETIRED) gentoo-dev 2006-10-22 06:40:18 UTC
(In reply to comment #10)
> (In reply to comment #9)
> The worst case for this ebuild is USE=-nls and gettext not present on the
> system.
> USE=nls leave the ebuild as for popt-1.10.4-r1.

[ebuild  N    ] sys-devel/gettext-0.15  USE="emacs -doc -nls -nocxx"

 Unmerged gettext, emerged popt with USE=-nls, gettext got pulled in as above and popt went fine.  eog emerges fine on it and works.
Comment 13 Sandro Bonazzola (RETIRED) gentoo-dev 2006-10-22 09:51:26 UTC
Ok, I'm going to unmask it this evening. If any issue arises before tomorrow evening feel free to remask it immediately.