I changed PORTAGE_TMPDIR="/usr/portage/tmp", because lack of space on root partition, and I ran into the problem every emerge sync destroys that dir and then report derectory specified in you PORTAGE_TMPDIR does not exists. Reproducible: Always Steps to Reproduce: 1.Edit make.conf PORTAGE_TMPDIR="/usr/portage/tmp" 2.mkdir /usr/portage/tmp, chown portage /usr/portage/tmp 3.emerge whatever. 4.check /usr/portage/tmp: ls /usr/portage/tmp/ portage 5.emerge sync Actual Results: www-apps/websvn/websvn-1.61.ebuild 1307 100% 212.73kB/s 0:00:00 (9, 93.3% of 112837) deleting tmp/timestamp.chk deleting directory tmp/portage/homedir deleting directory tmp/portage deleting directory tmp Number of files: 112837 Number of files transferred: 9 Total file size: 88265185 bytes Total transferred file size: 2523 bytes Literal data: 2523 bytes Matched data: 0 bytes File list size: 2564428 Total bytes sent: 329 Total bytes received: 2568227 sent 329 bytes received 2568227 bytes 109300.26 bytes/sec total size is 88265185 speedup is 34.36 >>> Updating Portage cache: !!! Stating source file failed... movefile() !!! [Errno 2] No such file or directory: '/usr/portage/tmp/timestamp.chk' 100% portage: the directory specified in your PORTAGE_TMPDIR variable, "/usr/portage/tmp," does not exist. Please create this directory or correct your PORTAGE_TMPDIR setting. Expected Results: clean sync emerge info Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20050125-r0, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1600MHz Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 21 2005, 13:18:17)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r3, 1.5, 1.9.4, 1.6.3, 1.4_p6, 1.7.9-r1 sys-devel/binutils: 2.15.92.0.2-r4 sys-devel/libtool: 1.5.10-r5 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -pipe -O2 -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /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/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -pipe -O2 -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sfperms" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ http://gentoo.mirror.sdv.fr ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://mirror.gentoo.no/" LANG="en_US.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/portage/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 X aalib acpi acpi4linux alsa arts async avantgo avi bcmath berkdb bitmap-fonts bluetooth bzlib cdr codecs cross crypt cups curl curlwrappers dbm divx4linux djbfft dmx dumb-allegro dv dvd dvdr dvdread emboss encode erandom escreen esd exif ext-png ext-zlib f2c f77 faac faad fam festival ffmpeg fftw flac flash flatfile font-server foomaticdb fortran freetype fs gd gd-external gdbm gif gimpgimpprint gkrellm gmtsuppl gmttria gnome gphoto2 gpm graphviz gs gsl gstreamer gtk gtk2 guile hdf5 icq icu imagemagick imlib ipv6 irda j2ee java javadoc jikes jpeg junit kde lcms ldap lesstif libg++ libwww lirc lzo lzw lzw-tiff mad make-busybox-symlinks matroska mcal mdb mikmod mime ming mono motif mozilla mp3 mpeg mpeg4 mplayer msn music mysql ncurses nls oggvorbis ooo-kde opengl opie oss pam pda pdf pdflib pear-db perl pic png python qdbm qt quicktime radeon readline ruby samba sdl slang spell sqlite ssl svga szip tcltk tcpd tetex threads tiff transcode truetype truetype-fonts type1 type1-fonts uml unicode usb wifi wmf wxwindows xine xml xml2 xmms xsl xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS cat /etc/fstab | grep /usr /dev/hda6 /usr/ ext3 noatime 0 0 /dev/hda7 /usr/portage reiserfs noatime 0 0
This is neither recommended nor is it supported. The logic required to handle users specifying random directories within PORTDIR or any other dir is more complicated than useful.
Please update make.conf and documentation according your view of user options.
--sync Initiates a portage tree update with one of the rsync.gentoo.org mirrors. Note that any changes you have made to the portage tree will be erased. Except for special circumstances, this uses rsync to do the update. See make.conf(5)'s description of PORTDIR_OVERLAY for a method to avoid deletions.