gdal-1.7.2 fails to complete the src_configure step. Reproducible: Always Steps to Reproduce: 1. ACCEPT_KEYWORDS=~x86 emerge =sci-libs/gdal-1.7.2 2. Wait. 3. Watch the failure. Actual Results: The emerge fails with the output (irrelevant stuff is elided): SWIG Bindings: python perl Statically link PROJ.4: no enable OGR building: yes enable pthread support: no hide internal symbols: no sed: -e expression #1, char 43: unknown option to `s' * ERROR: sci-libs/gdal-1.7.2 failed: * sed python setup.cfg failed * * Call stack: * ebuild.sh, line 54: Called src_configure * environment, line 5631: Called die * The specific snippet of code: * sed -i -e "s:library_dirs = :library_dirs = /usr/$(get_libdir)::g" swig/python/setup.cfg || die "sed python setup.cfg failed"; * * If you need support, post the output of 'emerge --info =sci-libs/gdal-1.7.2', * the complete build log and the output of 'emerge -pqv =sci-libs/gdal-1.7.2'. * The complete build log is located at '/var/tmp/portage/sci-libs/gdal-1.7.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-libs/gdal-1.7.2/temp/environment'. * S: '/var/tmp/portage/sci-libs/gdal-1.7.2/work/gdal-1.7.2' Expected Results: Package emerges without error. emerge --info follows. (NB: gcc-4.4.4-asneeded is gcc-4.4.4 with flameyes's spec file that forces ld to use the --as-needed flag.) Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.4-asneeded, glibc-2.11.2-r0, 2.6.34-gentoo-r2 i686) ================================================================= System uname: Linux-2.6.34-gentoo-r2-i686-Intel-R-_Core-TM-_Duo_CPU_L2400_@_1.66GHz-with-gentoo-2.0.1 Timestamp of tree: Sat, 31 Jul 2010 09:00:01 +0000 app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11 dev-lang/python: 2.4.6, 2.5.4-r4, 2.6.5-r3, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.1-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.4_p6-r1, 1.5-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.5, 4.4.4-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 virtual/os-headers: 2.6.34 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA dlj-1.1 PUEL googleearth AdobeFlash-10" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -pipe -ggdb" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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" CXXFLAGS="-O2 -march=prescott -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms splitdebug strict test unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j1" 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" PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/kde /var/lib/layman/x11 /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X accessibility acl acpi alsa avahi bash-completion berkdb bluetooth bzip2 caps cdr cli consolekit cracklib crypt cups cxx dbus dri dvd ffmpeg flac fortran gdbm gpm gtk hal iconv ieee1394 inotify ipv6 java jingle jpeg kde kerberos lame latex ldap lua lzma mad matroska mmx modules mp3 mudflap mysql ncurses networkmanager nls nptl nptlonly odbc offensive ogg opengl openmp pam pch pcmcia pcre perl png policykit postgres pppd pulseaudio python qt qt3support qt4 readline reflection samba sasl sdl semantic-desktop session slp smp sndfile speex spell spl sse sse2 sse3 ssl svg sysfs tcpd theora threads tiff truetype udev unicode upnp usb v4l2 vim-syntax vorbis wifi win32codecs wireless x86 xattr xinerama xml xorg xv xvid zeroconf zlib" ALSA_CARDS="hda-intel usb-audio" 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 cgi cgid 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 wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
*** This bug has been marked as a duplicate of bug 330515 ***