Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13085 - sed 4.0.5 does not work
Summary: sed 4.0.5 does not work
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High blocker
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-02 07:20 UTC by Julien Cayzac
Modified: 2011-10-30 22:22 UTC (History)
2 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 Julien Cayzac 2003-01-02 07:20:29 UTC
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.
Comment 1 SpanKY gentoo-dev 2003-01-02 21:21:09 UTC
please post more information
Comment 2 Julien Cayzac 2003-01-03 00:55:57 UTC
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).
Comment 3 Brandon Low (RETIRED) gentoo-dev 2003-01-06 10:53:33 UTC
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.
Comment 4 Julien Cayzac 2003-01-06 12:07:35 UTC
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.
Comment 5 SpanKY gentoo-dev 2003-01-10 16:52:22 UTC
what packages is it dieing on ? 
Comment 6 Julien Cayzac 2003-01-10 18:38:10 UTC
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.
Comment 7 SpanKY gentoo-dev 2003-01-10 18:42:45 UTC
post `emerge info` 
Comment 8 Julien Cayzac 2003-01-11 05:30:40 UTC
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
Comment 9 Veiko Kukk 2003-03-07 18:12:01 UTC
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)
Comment 10 SpanKY gentoo-dev 2003-03-08 02:01:11 UTC
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)
Comment 11 Brandon Low (RETIRED) gentoo-dev 2003-04-13 00:38:27 UTC
Closing this, requesting testing with 4.0.7 please.
Comment 12 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-12 10:12:09 UTC
you said you would close it ;)