Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34465 - eutils.eclass error on line 977 - gzip*)
Summary: eutils.eclass error on line 977 - gzip*)
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
: 34467 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-26 13:45 UTC by tomchuk
Modified: 2011-10-30 22:20 UTC (History)
5 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 tomchuk 2003-11-26 13:45:19 UTC
A modification to eutils.eclass ommited ";;" on line 977.

Original:
#####################################################
 case ${filetype} in
        *tar\ archive)
            tail -n +${skip} ${src} | tar -xf -
            ;;
        bzip2*)
            tail -n +${skip} ${src} | bzip2 -dc | tar -xf -
        gzip*)
            tail -n +${skip} ${src} | tar -xzf -
            ;;
        *)
            false
            ;;
    esac
    assert "failure unpacking (${filetype}) makeself ${shrtsrc} ('${ver}' +${skip})"
#####################################################

Should be:
#####################################################
case ${filetype} in
        *tar\ archive)
            tail -n +${skip} ${src} | tar -xf -
            ;;
        bzip2*)
            tail -n +${skip} ${src} | bzip2 -dc | tar -xf -
            ;;
        gzip*)
            tail -n +${skip} ${src} | tar -xzf -
            ;;
        *)
            false
            ;;
    esac
#####################################################


Reproducible: Always
Steps to Reproduce:
1.emerge sync
2. emerge -vp world (or anything)

Actual Results:  
root@dualie # emerge -vp --debug gtk+

These are the packages that I would merge, in order:

Calculating dependencies  
Parent:    None
Depstring: x11-libs/gtk+
Candidates: ['x11-libs/gtk+']

/usr/sbin/ebuild.sh: /usr/portage/eclass/eutils.eclass: line 977: syntax error
near unexpected token `)'
/usr/sbin/ebuild.sh: /usr/portage/eclass/eutils.eclass: line 977: `            
gzip*)'

!!! ERROR: x11-libs/gtk+-2.2.4_p1-r3 failed.
!!! Function inherit, Line 1018, Exitcode 1
!!! died sourcing /usr/portage/eclass/eutils.eclass in inherit()


aux_get(): (0) Error in x11-libs/gtk+-2.2.4_p1-r3 ebuild.
               Check for syntax error or corruption in the ebuild. (--debug)


!!! all ebuilds that could satisfy "gtk+" have been masked.

!!! Error calculating dependencies. Please correct.


Expected Results:  
root@dualie # emerge -vp --debug gtk+

These are the packages that I would merge, in order:

Calculating dependencies  
Parent:    None
Depstring: x11-libs/gtk+
Candidates: ['x11-libs/gtk+']

eutils
libtool
flag-o-matic

eutils
libtool
flag-o-matic

eutils
libtool
flag-o-matic

eutils
libtool
flag-o-matic

eutils
libtool

eutils
libtool

eutils
libtool
flag-o-matic

eutils
libtool
flag-o-matic

eutils
libtool
flag-o-matic

eutils
libtool
flag-o-matic
ebuild: x11-libs/gtk+-2.2.4_p1-r3
binpkg: None                                                                   
                                                                             \
Parent:    ebuild / x11-libs/gtk+-2.2.4_p1-r3 merge
Depstring: >=x11-base/xfree-4.3.0-r3 >=dev-libs/glib-2.2.3 >=dev-libs/atk-1.4.0
>=x11-libs/pango-1.2.5 >=media-libs/libpng-1.2.1 jpeg? ( >=media-libs/jpeg-6b-r2
) tiff? ( >=media-libs/tiff-3.5.7 ) >=dev-util/pkgconfig-0.12.0 doc? (
>=dev-util/gtk-doc-0.9 ) !bootstrap? ( sys-devel/patch ) !bootstrap? (
sys-devel/libtool ) >=x11-base/xfree-4.3.0-r3 >=dev-libs/glib-2.2.3
>=dev-libs/atk-1.4.0 >=x11-libs/pango-1.2.5 >=media-libs/libpng-1.2.1 jpeg? (
>=media-libs/jpeg-6b-r2 ) tiff? ( >=media-libs/tiff-3.5.7 )
Candidates: []
Exiting... ebuild / x11-libs/gtk+-2.2.4_p1-r3 merge
Exiting... None                                                                
                                                                            
...done!
[ebuild   R   ] x11-libs/gtk+-2.2.4_p1-r3  +tiff -doc +jpeg +breakme 

A few people have been having this problem on #gentoo as well.

#####################################################
root@dualie # emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-test10)
=================================================================
System uname: 2.6.0-test10 i686 AMD Athlon(tm) MP 1900+
Gentoo Base System version 1.4.3.12
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-mp -Os -pipe -fomit-frame-pointer
-fexpensive-optimizations -frerun-cse-after-loop -frerun-loop-opt -mfpmath=sse
-mmmx -msse -m3dnow"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-mp -Os -pipe -fomit-frame-pointer
-fexpensive-optimizations -frerun-cse-after-loop -frerun-loop-opt -mfpmath=sse
-mmmx -msse -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs sandbox cvs buildpkg ccache"
GENTOO_MIRRORS="ftp://mirror.iawnet.sandia.gov/pub/gentoo
ftp://gentoo.mirrors.pair.com/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo
http://212.219.56.162/sites/www.ibiblio.org/gentoo/ ftp://gentoo.noved.org/"
MAKEOPTS="-j4"
PKGDIR="/home/install/distros/gentoo/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="oss apm motif berkdb applypatches breakme offensive 3dnow aalib acpi alsa
-arts artswrappersuid avi bonobo cdr crypt cscope cups dga directfb dvd encode
-esd ethereal evo faad fbcon flac flash foomaticdb gb gd gdbm ggi gif gnome gpm
gstreamer gtk gtk2 gtkhtml guile imap imlib -ipv6 -java javascript jpeg justify
-kde ladcca lcms libg++ libgda libwww mad maildir mcal mikmod mmx mozilla mpeg
mpi nas ncurses -nls nptl oav oggvorbis opengl pam pda pdflib perl plotutils png
python -qt quicktime readline samba scanner sdl slang slp spell sse ssl svga
tcltk tcpd tetex tiff truetype unicode usb videos wmf X xface xine xinerama xosd
xml xml2 -xmms xv zlib zeo x86"
#####################################################
Comment 1 Jason Rhinelander 2003-11-26 13:58:01 UTC
This is pretty severe as anyone who rsyncs will start getting these errors, and anyone who fixes it manually will get the errors again as soon as they sync.
Comment 2 Derk W te Bokkel 2003-11-26 14:14:52 UTC
hopefully no noobs will get caught by this .. it's a pretty obvious fix for a programmer though.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2003-11-26 14:52:15 UTC
*** Bug 34467 has been marked as a duplicate of this bug. ***
Comment 4 Dane Elwell 2003-11-26 15:55:41 UTC
Having the same kinda problem when trying to emerge mm-sources.

xerxes src # emerge mm-sources
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-kernel/mm-sources-2.6.0_beta10-r1 to /
/usr/sbin/ebuild.sh: /usr/portage/eclass/eutils.eclass: line 977: syntax error near unexpected token `)'
/usr/sbin/ebuild.sh: /usr/portage/eclass/eutils.eclass: line 977: `     gzip*)'

!!! ERROR: sys-kernel/mm-sources-2.6.0_beta10-r1 failed.
!!! Function inherit, Line 1018, Exitcode 1
!!! died sourcing /usr/portage/eclass/eutils.eclass in inherit()
Comment 5 Dane Elwell 2003-11-26 16:11:53 UTC
Just synced and tried to emerge mm-sources again. It's working now, maybe it's been fixed and this can be closed?
Comment 6 SpanKY gentoo-dev 2003-11-26 18:56:38 UTC
yeah, i guess merging my local eutils.eclass to cvs didnt go so hot

mr bones fixed it for me