sed 4.0.5 fails in various circumstances. The most annoying one being when it's called from the "unpack" function in ebuild.sh. I had to downgrade it to version 4.0.1 and to emerge --inject version 4.0.5 to get things working properly again.
please post more information
When unpacking an ebuild, I got the following message: sed: -e expression #1, char 31: invalid range character (something like this, I'm writing it from memory) echo test.tar.bz2 | sed 's:.*\.\(tar\)\.[a-zA-Z0-9]*:\1:' works with sed 4.0.1, but fails with 4.0.5 (with the above message). I had to replace [a-zA-Z0-9] with . in ebuild.sh to get it working, but I get several other sed related errors in other circumstances. Also, it seems ebuild.sh does not exit with an error returncode if one of its commands (in this case, sed) fails (with is dangerous IMHO).
lost sed # sed -V GNU sed version 4.0.5 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, to the extent permitted by law. lost sed # echo test.tar.bz2 | sed 's:.*\.\(tar\)\.[a-zA-Z0-9]*:\1:' tar lost sed # Works here, need more information on your system.
Here some infos on my system: Profile: default-x86-1.4 USE="X -alsa cjk crypt encode gif imap imlib java jikes maildir mmx mpeg mysql ncurses nls odbc oggvorbis opengl pam png perl pdflib python readline samba sdl snmp ssl spell truetype xml2 xv zlib tiff" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium2 -O3 -pipe" Various software versions: sys-apps/bash: 2.05b-r3 sys-devel/gettext: 0.11.5 sys-libs/glibc: 2.3.1-r2 sys-apps/portage: 2.0.46-r4 sys-apps/baselayout: 1.8.5.5 I did not notice anything unusual when emerging sed 4.0.5 first time. Maybe you won't be able to reproduce the bug, since it's a blocking one and nobody else has reported it so I must be cursed... Anyway, using sed 4.0.1 instead of sed 4.0.5 is just fine.
what packages is it dieing on ?
every single one (hence the "blocker" status). As I previously said, everything worked again as soon as I downgraded to sed 4.0.1... Julien.
post `emerge info`
Portage 2.0.46-r4 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) ================================================================= System uname: 2.4.19-gentoo-r9 i686 Celeron (Mendocino) USE="x86 oss 3dnow apm arts avi cups jpeg kde gnome libg++ mikmod motif qtmt quicktime xmms gdbm berkdb slang tetex svga gpm tcpd libwww gtk qt X -alsa cjk crypt encode gif imap imlib java jikes maildir mmx mpeg mysql ncurses nls odbc oggvorbis opengl pam png perl pdflib python readline samba sdl snmp ssl spell truetype xml2 xv zlib tiff pdf" ARCH="x86" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium2 -O3 -pipe" CXXFLAGS="-march=pentium2 -O3 -pipe" ACCEPT_KEYWORDS="x86" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /opt/jakarta/tomcat/conf /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" MAKEOPTS="-j2" JDK_HOME="/opt/blackdown-jdk-1.3.1" JAVA_HOME="/opt/blackdown-jdk-1.3.1" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" ...but I keep my system up to date -emerge -u world each day) so I don't know if it helps
I have problems with sed 4.0.5 too. Several ebuilds won't build with it but with sed 3.x they worked great. Sed 4.0.5 should not be marked stable! One example - when I try to emerge mtools I get following error: checking whether gcc supports loff_t type... yes checking whether gcc supports offset_t type... no checking whether gcc supports long long type... yes checking for utimes... yes checking for tzset... yes checking for gettimeofday... yes checking declaration of sys_errlist... yes ./configure: line 2623: [: too many arguments ./configure: line 2626: [: too many arguments checking for X... ^[[6~libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for main in -lsocket... no checking for main in -lnsl... yes checking for main in -lbsd... yes checking for sys/socket.h... yes checking for arpa/inet.h... yes checking for netdb.h... yes updating cache ./config.cache creating ./config.status creating Makefile sed: file conftest.s1 line 33: Unterminated `s' command sed: couldn't write 40 items to stdout: Broken pipe creating config.h make: *** No targets. Stop. !!! ERROR: app-admin/mtools-3.9.8-r1 failed. !!! Function src_compile, Line 17, Exitcode 2 !!! (no error message)
you'll have to post `emerge info` in order for us to help you ... it is marked stable because all known bugs have been squashed and none of the dev's were having any more problems (on all archs)
Closing this, requesting testing with 4.0.7 please.
you said you would close it ;)