Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136530 - Aborting clean phase because PORTAGE_BUILDDIR is unset!
Summary: Aborting clean phase because PORTAGE_BUILDDIR is unset!
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-12 03:46 UTC by Evert
Modified: 2006-07-28 02:10 UTC (History)
1 user (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 Evert 2006-06-12 03:46:12 UTC
After emerge -uDNva world, portage is upgraded and the following appears on the screen:

>>> Regenerating /etc/ld.so.cache...
>>> sys-apps/portage-2.1 merged.
Aborting clean phase because PORTAGE_BUILDDIR is unset!

I assume this should be some parameter in make.conf, maybe even a replacement for PORTAGE_TMPDIR so I searched for "PORTAGE_BUILDDIR" in the manpage of make.conf but could not find it.

So 3 questions arise:

1. What should I do now?
2. What is this PORTAGE_BUILDDIR parameter?
3. Where should this parameter be documented and where can I find the documentation?



# emerge --info
Portage 2.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16.16 i686)
=================================================================
System uname: 2.6.16.16 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/data/linux/gentoo/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo http://gentoo.mirror.sdv.fr http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.inode.at/"
MAKEOPTS="-j2"
PKGDIR="/data/linux/gentoo/packages/amd_athlon-xp"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/compile"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac alsa apache2 apm avi berkdb bitmap-fonts cli crypt cups dri dvd dvdr dvdread eds emboss encode esd foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jpeg libg++ libwww mad mikmod mmx mng motif mp3 mpeg mplayer ncurses nls nptl ogg opengl oss pam pcre pdflib perl png pppd python qt quicktime readline reflection sdl session spell spl sse ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev unicode vcd vorbis wmf xml xmms xorg xv zlib elibc_glibc kernel_linux userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2006-06-12 08:18:52 UTC
The PORTAGE_BUILDDIR variable is set by >=portage-2.1 but not by earlier versions.    Therefore, you can expect to receive the warning message during the upgrade from portage-2.0.x to portage-2.1, but you shouldn't see it at any other time.  Since PORTAGE_BUILDDIR is unset during the upgrade, you'll have to remove $PORTAGE_TMPDIR/portage/portage-2.1 manually.  Failed builds leave directories like that, so it's just a normal thing to clean those up manually...

See bug 124203 for reference.
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2006-06-12 09:12:03 UTC
Just for clarification: PORTAGE_BUILDDIR is a internal-only variable that is not intended to be seen or changed by users or ebuilds in any way, therefore it's undocumented.
Comment 3 Evert 2006-06-14 09:58:30 UTC
Is it also normal after upgrade to portage 2.1 that "emerge --newuse --ask world" suddenly wants to rebuild _a_lot_of_ packages based on use flags?

# emerge --newuse --ask world
>>> --newuse implies --update... adding --update to options.

These are the packages that would be merged, in order:

Calculating world dependencies... done!
[ebuild   R   ] media-sound/xmms-1.2.10-r15  USE="-directfb* -flac* -jack*"
[ebuild   R   ] sys-libs/db-4.2.52_p2-r1  USE="-java* -tcltk*"
[ebuild   R   ] dev-libs/apr-util-0.9.7  USE="-ldap*"
[ebuild   R   ] net-www/apache-2.0.55-r1  USE="-ldap*"
[ebuild   R   ] net-misc/openssh-4.3_p2-r1  USE="-ldap*"
[ebuild   R   ] media-libs/libsdl-1.2.8-r1  USE="-aalib* -directfb* -svga*"
[ebuild   R   ] media-video/mplayer-1.0.20060415  USE="-aalib* -directfb* -jack* -openal* -samba* -svga*"
[ebuild   R   ] media-gfx/gimageview-0.2.27-r2  USE="-xine*"
[ebuild   R   ] mail-client/mutt-1.5.11  USE="-idn*"
[ebuild   R   ] dev-java/blackdown-jdk-1.4.2.03  USE="-mozilla*"
[ebuild   R   ] net-dns/bind-9.3.2  USE="-idn* -ldap* -mysql*"
[ebuild   R   ] net-libs/courier-authlib-0.58  USE="-ldap* -mysql*"
[ebuild   R   ] app-misc/mc-4.6.1  USE="-samba* -slang*"
[ebuild   R   ] net-mail/courier-imap-4.0.1  USE="-fam*"
[ebuild   R   ] net-print/cups-1.1.23-r7  USE="-samba*"
[ebuild   R   ] app-text/acroread-7.0.5-r2  USE="-ldap*"
[ebuild   R   ] media-sound/audacity-1.2.1  USE="-flac*"
[ebuild   R   ] app-arch/tar-1.15.1-r1  USE="-bzip2*"
[ebuild   R   ] net-fs/autofs-4.1.3-r7  USE="-ldap*"
[ebuild   R   ] dev-lang/python-2.4.2  USE="-tcltk*"
[ebuild   R   ] media-gfx/gimp-2.2.8-r1  USE="-aalib* -gtkhtml* -lcms*"
[ebuild   R   ] gnome-base/gnome-vfs-2.12.2  USE="-samba*"
[ebuild   R   ] gnome-extra/nautilus-cd-burner-2.12.3  USE="-cdr*"
[ebuild   R   ] media-sound/sound-juicer-2.12.3  USE="-flac*"
[ebuild   R   ] gnome-extra/evolution-data-server-1.4.2.1  USE="-ldap*"
[ebuild   R   ] mail-mta/postfix-2.2.10  USE="-ldap* -mysql*"
[ebuild   R   ] app-crypt/gnupg-1.4.2.2  USE="-bzip2* -curl* -ldap* -usb*"
[ebuild   R   ] app-crypt/gnupg-1.9.20-r3  USE="-ldap*"
[ebuild   R   ] mail-filter/spamassassin-3.1.3  USE="-ldap* -mysql*"
[ebuild   R   ] mail-client/evolution-2.4.2.1  USE="-ldap*"
[ebuild   R   ] media-gfx/eog-2.12.3  USE="-lcms*"
[ebuild   R   ] media-video/totem-1.2.1  USE="-flac* -xine*"
[ebuild   R   ] app-admin/gnome-system-tools-1.4.1  USE="-samba*"
[ebuild   R   ] gnome-base/gnome-2.12.3  USE="-cdr*"
[ebuild   R   ] app-editors/vim-6.4  USE="-ruby*"
[ebuild   R   ] net-misc/curl-7.15.1-r1  USE="-idn* -ldap*"
[ebuild   R   ] media-sound/vorbis-tools-1.0.1  USE="-flac*"
[ebuild   R   ] x11-libs/qt-3.3.6-r1  USE="-mysql*"
[ebuild   R   ] media-sound/cheesetracker-0.9.9  USE="-jack*"
[ebuild   R   ] www-client/links-2.1_pre20  USE="-directfb* -svga*"
[ebuild   R   ] net-fs/samba-3.0.22  USE="-ldap* -mysql*"
[ebuild   R   ] net-nds/openldap-2.2.28-r3  USE="-samba*"
[ebuild   R   ] app-misc/gentoo-0.11.55  USE="-fam*"
[ebuild   R   ] media-video/vcdimager-0.7.21  USE="-xml2*"
[ebuild   R   ] media-libs/imlib2-1.2.1.009  USE="-bzip2*"
[ebuild   R   ] media-video/ffmpeg-0.4.9_p20051216  USE="-dts* -xvid*"
[ebuild   R   ] media-libs/xine-lib-1.1.2_pre20060328-r9  USE="-aalib* -directfb* -dts* -flac* -imagemagick* -samba*"
[ebuild   R   ] media-video/xine-ui-0.99.4-r5  USE="-aalib* -curl*"
[ebuild   R   ] net-im/gaim-1.5.0  USE="-tcltk*"
[ebuild   R   ] net-ftp/pure-ftpd-1.0.20-r1  USE="-ldap* -mysql*"
[ebuild   R   ] www-client/mozilla-1.7.13  USE="-java* -ldap*"
[ebuild   R   ] media-sound/mixxx-1.4.2  USE="-jack*"
[ebuild   R   ] app-emulation/wine-0.9.8-r1  USE="-glut* -jack* -lcms* -ldap*"
[ebuild   R   ] app-office/openoffice-2.0.2-r1  USE="xml* -java* -ldap* -mozilla*"
[ebuild   R   ] media-gfx/imagemagick-6.2.5.5  USE="-bzip2* -lcms*"
[ebuild   R   ] net-irc/xchat-2.4.5  USE="-tcltk*"

Would you like to merge these packages? [Yes/No]
Comment 4 Zac Medico gentoo-dev 2006-06-14 10:10:19 UTC
(In reply to comment #3)
> Is it also normal after upgrade to portage 2.1 that "emerge --newuse --ask
> world" suddenly wants to rebuild _a_lot_of_ packages based on use flags?

Yes. That's off topic for this bug though. Please see my comment in the forums:

https://forums.gentoo.org/viewtopic-p-3380763.html
Comment 5 Evert 2006-06-14 12:13:09 UTC
I know it's a bit off topic but it would also be a bit overkill to create a new bug for it ;-) Anyway, thanx for the answer! I added the following to /etc/make.conf and everything is back to "normal".

USE_ORDER="env:pkg:conf:auto:defaults"
Comment 6 Evert 2006-07-28 02:10:51 UTC
I close this bug as invalid since
- it was morely a question
- this issue only happens once when upgrading to portage-2.1
- it is not really a bug