Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10403 - Warning, existing variable may be set
Summary: Warning, existing variable may be set
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Alternative Installation Guide (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Stoyan Zhekov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-07 16:15 UTC by Philippe Fremy
Modified: 2003-02-04 19:42 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 Philippe Fremy 2002-11-07 16:15:09 UTC
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.
Comment 1 SpanKY gentoo-dev 2002-11-07 23:34:20 UTC
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` ...
Comment 2 Philippe Fremy 2002-11-09 12:20:28 UTC
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. 
Comment 3 SpanKY gentoo-dev 2002-11-09 15:11:21 UTC
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 ;) 
Comment 4 Philippe Fremy 2002-11-15 12:17:16 UTC
It does. I must have missed one of the command when doing my first emerge.