Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sharing distfiles over the network [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Zyne
Guru
Guru


Joined: 08 Jun 2004
Posts: 334

PostPosted: Wed Dec 14, 2005 9:33 pm    Post subject: sharing distfiles over the network [solved] Reply with quote

Hi there everyone!


I seem to be having a problem with a shared resource of distfiles.
What I want to achieve is the following: have all my distfiles on a Windows 2K3 box. I'ld like to mount that dir on the Win2K3 box to /usr/portage/distfiles on my laptop and my main gentoo box.
So far everything works fine! The files are shared, and they're all accessible. Emerging packages works like a charm!edit:errr I was wrong... emerging already fetched packages doesn't work either... :(

However, when I try to emerge new packages (eg man-pages), I get a weird error, saying that I don't have the right permissions. I do have read, write permissions to the shared dir though...

here's what the relevant part of my /etc/fstab looks like: (pls also note that /usr/portage/distfiles is a symlink to /home/distfiles, as that was extremely useful in case of a reinstall ;))
Code:

//neuroserver/distfiles /home/distfiles         cifs    auto,credentials=/etc/credentials,file_mode=0644,dir_mode=0755,gid=250  0 0


And the error I get when fetching a new package:
Code:

# emerge --fetchonly man-pages
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/man-pages-2.15 to /
*** Adjusting cvs-src permissions for portage user...
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3200, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1859, in merge
    retval=portage.doebuild(y,"fetch",myroot,self.pkgsettings,edebug,("--pretend" in myopts),fetchonly=1)
  File "/usr/lib/portage/pym/portage.py", line 2664, in doebuild
    if mydo!="manifest" and not fetch(fetchme, mysettings, listonly=listonly, fetchonly=fetchonly):
  File "/usr/lib/portage/pym/portage.py", line 1791, in fetch
    raise oe
OSError: [Errno 13] Permission denied: '/usr/portage/distfiles'


the permissions on /usr/portage/distfiles:
Code:

# ls -l |grep distfiles
drwxr-xr-x    1 root   portage    0 dec 14 22:19 distfiles



Is it impossible to achieve what I want? I could of course just setup an NFS server on my main gentoo box, but I actually really want to fix the issue at hand. My gentoo box is not up all the time, as I need it for developping in VB .NET
The main server (the win2K3 box) ccould be replaced with a gentoo box, but I don't have the time atm to compile everything on a P2 400...


Thanks for any advice / insight :)


Last edited by Zyne on Thu Dec 15, 2005 9:41 am; edited 1 time in total
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Thu Dec 15, 2005 3:02 am    Post subject: Reply with quote

portage checks for errno 1, "Operation not permitted", but not errno 13, "Permission denied".

Try mounting it chmod 0775 or 2775, so portage doesn't attempt to chmod it.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
Zyne
Guru
Guru


Joined: 08 Jun 2004
Posts: 334

PostPosted: Thu Dec 15, 2005 9:41 am    Post subject: Reply with quote

ecatmur wrote:
Try mounting it chmod 0775 or 2775, so portage doesn't attempt to chmod it.

thanks for that man!
chmod 0775 didn't work, but 2775 actually does work! I get a little warning
Code:

WARNING: 'dir_mode' not expressed in octal.


However, it actually DOES work, so I'll just accept this warning, and carry on with it :)


Thanks again for the help!
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Thu Dec 15, 2005 2:12 pm    Post subject: Reply with quote

Zyne wrote:

Code:

WARNING: 'dir_mode' not expressed in octal.


Ah, yeah. dir_mode=02775 should get rid of that warning. Glad that worked.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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