I'm trying to build tiny system without any 'stuff' and I'm switch off almost all USE-flags, and also 'nls'. Just unpacked latest (2008.0) stage3 for i686. # cat /etc/make.conf CFLAGS="-O2 -march=i686 -pipe" CXXFLAGS="${CFLAGS}" LDFLAGS="-Wl,-O1 -Wl,--as-needed" CHOST="i686-gentoo-linux-gnu" FEATURES="buildpkg noinfo noman nodoc userpriv" ACCEPT_KEYWORDS="~x86" EMERGE_DEFAULT_OPTS="--with-bdeps=y" PORTAGE_NICENESS=19 USE="-* minimal nocxx -cxx unicode ipv6 logrotate" # emerge --info Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-20-generic i686) ================================================================= System uname: 2.6.24-20-generic i686 AMD Athlon(tm) 64 Processor 3500+ Timestamp of tree: Mon, 28 Jul 2008 01:45:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 3.2_p33 dev-lang/python: 2.5.2-r5 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.62-r1 sys-devel/automake: 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-gentoo-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-gentoo-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y" FEATURES="buildpkg distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ipv6 logrotate minimal nocxx unicode x86" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY Reproducible: Always Steps to Reproduce: 1. Rebuild system with USE="-nls" 2. Unmerge sys-devel/gettext (not needed, check emerge --depclean) 3. Try to build sys-apps/shadow-4.1.2.1 Actual Results: Unpack stops with autoconf fail: ***** autoconf ***** ***** autoconf configure.in:412: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:413: error: possibly undefined macro: AM_GNU_GETTEXT Expected Results: Dont check for any gettext stuff, or need it only for compile time...
BTW, stable sys-apps/shadow-4.0.18.2 compiles fine
The issue is we're running autoreconf and libtoolize inside of the unpack stage of this ebuild. Which means that gettext is a depend since that autoconf macro is provided by gettext.
Change in line with 'eautoreconf' to 'eautoconf || die' solve unpack problem, but is it right?
should be safe i think as openpam only touches the configure file, and none of the stuff it adds requires a regen of other autotools from what i can see http://sources.gentoo.org/sys-apps/shadow/shadow-4.1.2.1.ebuild?r1=1.2&r2=1.3 http://sources.gentoo.org/sys-apps/shadow/shadow-4.1.2.2.ebuild?r1=1.1&r2=1.2
(In reply to comment #4) > should be safe i think as openpam only touches the configure file, and none of > the stuff it adds requires a regen of other autotools from what i can see > but it broke not yet clear why, one difference is that it doesn't use libtool after eautoconf, error lines see bug249403
(In reply to comment #5) > (In reply to comment #4) > but it broke not yet clear why, one difference is that it doesn't use libtool > after eautoconf, error lines see bug249403 > USE='-pam' works, but not USE='pam'
*** Bug 249403 has been marked as a duplicate of this bug. ***
also added autoheader for the AC_CHECK_DECLS() stuff http://sources.gentoo.org/sys-apps/shadow/shadow-4.1.2.1.ebuild?r1=1.3&r2=1.4 http://sources.gentoo.org/sys-apps/shadow/shadow-4.1.2.2.ebuild?r1=1.2&r2=1.3