Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39075 - Error in id3v2-0.1.7.ebuild
Summary: Error in id3v2-0.1.7.ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-22 14:29 UTC by Laura Effinger-Dean
Modified: 2004-01-22 14:49 UTC (History)
0 users

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 Laura Effinger-Dean 2004-01-22 14:29:40 UTC
Trying to emerge id3v2 gave the following error:

student-06le id3v2 # emerge /usr/portage/media-sound/id3v2/id3v2-0.1.7.ebuild
Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/id3v2-0.1.7 to /
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2220, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1362, in merge
    retval=portage.doebuild(y,"merge",myroot,edebug)
  File "/usr/lib/portage/pym/portage.py", line 1891, in doebuild
    if not fetch(fetchme, listonly, fetchonly):
  File "/usr/lib/portage/pym/portage.py", line 1392, in fetch
    if (fetched!=2) and not listonly:
UnboundLocalError: local variable 'fetched' referenced before assignment

Fixed this by changing the SRC_URI line in the ebuild from:

SRC_URI="mirror:///sourceforge/id3v2/${P}.tar.gz"

to (removing extra '/'):

SRC_URI="mirror://sourceforge/id3v2/${P}.tar.gz"

Reproducible: Always
Steps to Reproduce:
1. Try to emerge id3v2-0.1.7 (emerge /usr/portage/media-sound/id3v2/id3v2-0.1.7.ebuild)
2.
3.

Actual Results:  
Emerge failed with error given above. 

Expected Results:  
Emerge id3v2 (this works once the typo in the ebuild has been fixed). 

Here's emerge info just in case but I posted the fix above. 
 
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.1-rc1) 
================================================================= 
System uname: 2.6.1-rc1 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz 
Gentoo Base System version 1.4.3.12 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X acpi avi berkdb cdr crypt cups dvd encode esd foomaticdb gdbm gif gpm gtk 
gtk2 imlib java jpeg libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis 
opengl oss pam pdflib perl png ppds python quicktime readline samba sdl slang spell 
ssl svga tcltk tcpd tiff truetype usb x86 xml2 xv zlib"
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-01-22 14:32:14 UTC
Fixed in CVS.  Good spotting.  Thanks for the bug report.