I was installing the stage2 gentoo from 1.4-rc1 from an existing Mandrake . My emerge system woudln't work with a strange error: >>> Unpacking bash-2.05a.tar.gz patch: **** Can't create file /root/tmp/ppgqCbhI : Permission denied It turned out that I had some TMP and TMPDIR variable set from before my chroot. They were creating the problem. doing a unset TMP; unset TMPDIR; before the chroot resolved the problem. Please put that in the documentation.
after the chroot, running `env-update ; source /etc/profile` should have fixed that ... maybe what would be better is if the chroot cmd read: `env -i chroot /mnt/gentoo /bin/bash` ...
Running the chroot with env -i would be fine (I didn't know about this command). I just noticed LC_* and LANGUAGE variables also cause problems for compiling certain programs. I don't know about env-update but the doc did not say anything on this. Please add the command to both the normal install and the alternate install method. I did not find the alternat install doc until recentely, so I was using the normal installation document.
actually the install doc does http://www.gentoo.org/doc/en/build.xml Code listing 9.2: Entering the chroot Environment # chroot /mnt/gentoo /bin/bash # env-update Regenerating /etc/ld.so.cache... # source /etc/profile does running 'env-update' fix your problem ? if so this bug should be closed as INVALID ;)
It does. I must have missed one of the command when doing my first emerge.