Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 78824

Summary: portage-2.0.51-r14 crashes when using the buildpkg-option (OSError: [Errno 2] No such file or directory: '')
Product: Gentoo Linux Reporter: Carsten Tschense <carsten>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Carsten Tschense 2005-01-20 08:44:42 UTC
When I try to build a package with the buildpkg/buildpkgonly-option portage crashes after checking the downloaded files.
This is an example with xorg-x11.

Reproducible: Always
Steps to Reproduce:
1. emerge -B package / emerge -b package

Actual Results:  
Cypher ~ # emerge -B xorg-x11
Calculating dependencies    ...done!
>>> emerge (1 of 1) x11-base/xorg-x11-6.8.1.902 to /
>>> md5 src_uri ;-) eurofonts-X11.tar.bz2
>>> md5 src_uri ;-) xfsft-encodings-0.1.tar.bz2
>>> md5 src_uri ;-) gentoo-cursors-tad-0.3.1.tar.bz2
>>> md5 src_uri ;-) gemini-koi8-u.tar.bz2
>>> md5 src_uri ;-) xorg-x11-6.8.1.902-files-0.2.tar.bz2
>>> md5 src_uri ;-) xorg-x11-6.8.1.902-patches-0.1.2.tar.bz2
>>> md5 src_uri ;-) xorg-x11-6.8.1.902.tar.bz2
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3045, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1808, in merge
    retval=portage.doebuild(y,"package",myroot,self.pkgsettings,edebug)
  File "/usr/lib/portage/pym/portage.py", line 2632, in doebuild
    os.makedirs(mysettings["PKGDIR"]+x)
  File "/usr/lib/python2.3/os.py", line 154, in makedirs
    mkdir(name, mode)
OSError: [Errno 2] No such file or directory: ''


Portage 2.0.51-r14 (default-linux/x86/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.5-gentoo-r1 i686)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Oct 18 2004, 18:11:09)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.4, 1.8.5-r2, 1.6.3, 1.7.9, 1.5, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fforce-addr
-fprefetch-loop-arrays -msse -mfpmath=sse -mmmx -m3dnow"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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 -fforce-addr
-fprefetch-loop-arrays -msse -mfpmath=sse -mmmx -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://gentoo.zie.pg.gda.pl"
MAKEOPTS="-j2"
PKGDIR=""
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib alsa apm avi bitmap-fonts cdr crypt cups curl dvd dvdr
dvdread eds emacs encode esd evo f77 fam flac font-server foomatic foomaticdb
fortran gdbm gif gnome gpm gstreamer gtk gtk2 i8x0 imagemagick imlib ipv6 java
jpeg junit lcms libg++ libwww mad mikmod mmx motif mpeg ncurses network nls nptl
nptlonly oggvorbis opengl pam pdflib perl pic png ppds python qt quicktime
readline real sdl slang speex spell sse ssl svga tcpd tiff truetype
truetype-fonts type1-fonts xine xml xml2 xmms xv zlib"
Unset:  LDFLAGS, PORTDIR_OVERLAY
Comment 1 Carsten Tschense 2005-01-20 08:47:57 UTC
Yes, now I noticed it... I'm an idiot.
Comment 2 Emil Beinroth 2005-01-20 09:06:33 UTC
Wouldn't it be better if portage would print a messages, let's say "Set you PKGDIR in /etc/make.conf", instead of crashing?
Comment 3 Carsten Tschense 2005-01-20 09:37:04 UTC
Yes, would be nice ;)... Strange, I set PKGDIR, but left it empty ;)
Does portage tell you about it, if it isn't set? I give it a try, when xorg is finish...