emerge media-libs/t1lib Calculating dependencies ... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) media-libs/t1lib-5.0.2-r1 * t1lib-5.0.2.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking t1lib-5.0.2.tar.gz to /var/tmp/portage/media-libs/t1lib-5.0.2-r1/work * Applying t1lib-5.0.2-gentoo.diff ... [ ok ] * Applying t1lib-5.0.2-asneeded.patch ... [ ok ] * Applying t1lib-5.0.2-SA26241_buffer_overflow.patch ... [ ok ] >>> Source unpacked in /var/tmp/portage/media-libs/t1lib-5.0.2-r1/work >>> Compiling source in /var/tmp/portage/media-libs/t1lib-5.0.2-r1/work/t1lib-5.0.2 ... * econf: updating t1lib-5.0.2/ac-tools/config.sub with /usr/share/gnuconfig/config.sub * econf: updating t1lib-5.0.2/ac-tools/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datadir=/etc --with-x configure: error: x: invalid package name * ERROR: media-libs/t1lib-5.0.2-r1 failed: * econf failed * * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2893: Called econf '--datadir=/etc' '--with-x' * ebuild.sh, line 545: Called die * The specific snippet of code: * die "econf failed" * * If you need support, post the output of 'emerge --info =media-libs/t1lib-5.0.2-r1', * the complete build log and the output of 'emerge -pqv =media-libs/t1lib-5.0.2-r1'. * The complete build log is located at '/var/tmp/portage/media-libs/t1lib-5.0.2-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-libs/t1lib-5.0.2-r1/temp/environment'. * S: '/var/tmp/portage/media-libs/t1lib-5.0.2-r1/work/t1lib-5.0.2' >>> Failed to emerge media-libs/t1lib-5.0.2-r1, Log file: >>> '/var/tmp/portage/media-libs/t1lib-5.0.2-r1/temp/build.log' * Messages for package media-libs/t1lib-5.0.2-r1: * ERROR: media-libs/t1lib-5.0.2-r1 failed: * econf failed * * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2893: Called econf '--datadir=/etc' '--with-x' * ebuild.sh, line 545: Called die * The specific snippet of code: * die "econf failed" Reproducible: Always Steps to Reproduce: 1.emerge media-libs/t1lib emerge --info =media-libs/t1lib-5.0.2-r1 Portage 2.2_rc46 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.30-gentoo-r4-i686-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-1.12.11.1 Timestamp of tree: Mon, 26 Oct 2009 18:15:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.4.4-r13, 2.5.4-r3, 2.6.2-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles/ ftp://trumpetti.atm.tut.fi/gentoo/ http://ftp.linux.ee/pub/gentoo/distfiles/ http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ " LANG="et_EE.UTF-8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa apache berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gpm gstreamer hal iconv ipv6 isdnlog jpeg kde ldap libnotify mad matroska midi mikmod modules mp3 mp4 mpeg mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl php png postgresql ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session smp spell spl ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb v4l2 vorbis win32codecs x264 x86 xml xorg xulrunner xv xvid zlib" 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 mmap_emul 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Works here and should for you. It fails on the following code: -with-* | --with-*) ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi so... does sed works on your system? What version of sed do you have? try manually: ac_package=x echo $ac_package| sed 's/[-_a-zA-Z0-9]//g' It should return nothing. Please, reopen bug if it still fails.