Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58867 - portage error with local ebuild
Summary: portage error with local ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-07-30 01:37 UTC by Andrei Ivanov
Modified: 2004-07-31 17:59 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 Andrei Ivanov 2004-07-30 01:37:48 UTC
Hello,
I've modified the ebuild for mysql-4.1.3-beta from bug 34600 to install mysql in alternate directories(I've added -4.1 suffix to all mysql dirs) and created a portage overlay and put it there.
I've downloaded the mysql source and put it in /usr/portage/distfiles.

And emerge mysql:
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-db/mysql-4.1.3_beta to /
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2599, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1555, in merge
    retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug)
  File "/usr/lib/portage/pym/portage.py", line 2319, in doebuild
    if not fetch(fetchme, mysettings, listonly, fetchonly):
  File "/usr/lib/portage/pym/portage.py", line 1796, in fetch
    if (fetched!=2) and not listonly:
UnboundLocalError: local variable 'fetched' referenced before assignment


Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040619-r0, 2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse -ftracer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.lug.ro/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow aalib acl acpi adns alsa apache2 avi berkdb bzlib caps cdb crypt cups curl curlwrappers dio encode exif fam flac foomaticdb ftp gd gdbm gif gmp gnutls gpm imagemagick imap imlib java jpeg junit ldap libg++ libwww mad maildir mailwrapper memlimit mhash mikmod mmap mmx mpeg mysql ncurses nls nptl offensive oggvorbis opengl pam pcntl pcre pdflib png posix postgres qt quicktime readline samba sdl session shared sharedmem slang slp soap sockets socks5 speex spell sqlite sse ssl svg sysvipc tcpd theora tiff truetype unicode usb vhosts wmf x86 xml xml2 xmlrpc zlib"
Comment 1 Andrei Ivanov 2004-07-30 06:43:59 UTC
Hmm.. I found the bug.
I've used vim to replace all mysql/ with mysql-4.1/ and it replaced mirror://mysql/ with mirror://mysql-4.1/.

Anyway, maybe you should eventually make portage not to spill its guts when it doesn't find a mirror ;)
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2004-07-31 17:59:44 UTC
Notification added.
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2004-07-31 17:59:52 UTC
Notification added.