Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Access denied when making /var/tmp/portage a symlink
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
roan
n00b
n00b


Joined: 11 Jul 2002
Posts: 22

PostPosted: Thu Jul 11, 2002 6:26 pm    Post subject: Access denied when making /var/tmp/portage a symlink Reply with quote

I ran out of space on my / partition where also /var is. The ebuild scripts build all packages in /var/tmp/portage (I think). So I made this directory to be a symlink to a directory on another partition. Then the ebuild scripts got access denied when trying to unpack the source. It didn't give up though, it just unpacked it to another location (/var/tmp/xc instead of /var/tmp/portage/xfree-4.2.0-r12/work/xc as it happens). This is the output when running emerge mozilla: (tries to update xfree86 first, why?).
Code:

bash-2.05a# emerge mozilla
>>> emerge x11-base/xfree-4.2.0-r12 to /
>>> md5 ;-) X420src-1.tgz
>>> md5 ;-) X420src-2.tgz
>>> md5 ;-) X420src-3.tgz
>>> md5 ;-) freetype-2.0.9.tar.bz2
>>> md5 ;-) truetype.tar.gz
>>> md5 ;-) 4.2.0-xlib-i18n-module.patch
>>> md5 ;-) 4.2.0-zlib-security.patch
>>> md5 ;-) 4.2.0-libGLU-bad-extern.patch
>>> md5 ;-) xf86Wacom.c.gz
ACCESS DENIED mkdir:     /misc/film/src/portage/xfree-4.2.0-r12/work
install: cannot create directory `/var/tmp/portage/xfree-4.2.0-r12/work: Permission denied
/usr/sbin/ebuild.sh: cd: /var/tmp/portage/xfree-4.2.0-r12/work: No such file or directory
>>> Unpacking source...
>>> Unpacking X420src-1.tgz

and so on. /misc/film/src/portage/ is where the symlink is pointing to of course. Although the script gets access denied when creating /var/tmp/portage/xfree-4.2.0-r12/work, it happily creates the directories /var/tmp/portage/xfree-4.2.0-r12/ and /var/tmp/portage/xfree-4.2.0-r12/temp. I find this rather weird. The permissions haven't changed, I just moved the whole directory. Anybody who knows what the problem is?
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Thu Jul 11, 2002 6:47 pm    Post subject: Reply with quote

Why don't you just change your "PORTAGE_TMPDIR" to point to the new location? (Add it to /etc/make.conf.)
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
roan
n00b
n00b


Joined: 11 Jul 2002
Posts: 22

PostPosted: Thu Jul 11, 2002 7:06 pm    Post subject: Reply with quote

Thats the easy way.... :wink:

Thanks
Back to top
View user's profile Send private message
dmcaul
n00b
n00b


Joined: 14 Apr 2002
Posts: 16
Location: Ireland

PostPosted: Thu Jul 11, 2002 7:06 pm    Post subject: Reply with quote

Is the partition the symlink points to mounted -noexec? IIRC that will break things during builds.
_________________
Programming Tips: Cd wrttn wtht vwls s mch trsr.
Back to top
View user's profile Send private message
roytoo
n00b
n00b


Joined: 04 Feb 2005
Posts: 1

PostPosted: Mon Feb 14, 2005 3:20 pm    Post subject: Reply with quote

delta407's response works wonderfully, just two things to keep in mind:
1. It seems that the top portage tmp directory must be named "portage".
2. PORTAGE_TMPDIR should be set to point to the folder containing the portage tmp directory, not the directory itself.
(i.e. if you moved your portage tmp to /home/portage, set PORTAGE_TMPDIR="/home")

Thanks delta407,
roytoo
Back to top
View user's profile Send private message
Shovas
n00b
n00b


Joined: 23 May 2003
Posts: 73

PostPosted: Sat Apr 23, 2005 10:23 pm    Post subject: Reply with quote

In case anyone else has this problem, the error (for searching the forums):

Code:

crimson portage # emerge ut2004
Calculating dependencies ...done!
>>> emerge (1 of 1) games-fps/ut2004-3339 to /
>>> md5 files   ;-) ChangeLog
>>> md5 files   ;-) metadata.xml
>>> md5 files   ;-) ut2004-3355.ebuild
>>> md5 files   ;-) ut2004-3339.ebuild
>>> md5 files   ;-) files/ut2004.xml
>>> md5 files   ;-) files/digest-ut2004-3355
>>> md5 files   ;-) files/digest-ut2004-3339
>>> md5 src_uri ;-) ut2004-lnxpatch3339.tar.bz2
>>> md5 src_uri ;-) ut2004-ecebonuspack.tar.bz2
 * Do you accept the terms of this license (ut2003)? [yes/no] yes
 * The installed game takes about 6.8GB of space!
 * Found CD #1 root at /home/_public/ut2004/disk1
ACCESS DENIED  mkdir:     /home/__root__/var/tmp/portage/ut2004-3339/work
install: cannot create directory `/var/tmp/portage/ut2004-3339/work': Permission denied

!!! ERROR: games-fps/ut2004-3339 failed.
!!! Function dyn_unpack, Line 678, Exitcode 1
!!! Failed to create dir '/var/tmp/portage/ut2004-3339/work'
!!! If you need support, post the topmost build error, NOT this status message.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-games-fps_-_ut2004-3339-13226.log"

mkdir:     /home/__root__/var/tmp/portage/ut2004-3339/work
-------------------------------------------------------------------------------


And, yes, it was after moving /var/tmp/portage to /home/__root__/var/tmp/portage and symlinking only the /portage/ directory back to /var/tmp.

The solution was to move the entire /var/tmp to /home/__root__/var and symlink that back to /var.

Hope that helps people who need more space.
_________________
Selah.ca
Consultant; Profile and Portfolio
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum