public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] emerge can't create lock in NFS exported distfiles directory
@ 2005-08-22  8:55 Alexander Skwar
  2005-08-22 14:07 ` Matthew Cline
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Alexander Skwar @ 2005-08-22  8:55 UTC (permalink / raw
  To: gentoo-user

Hi!

alexander@blatt ~ $ sudo emerge -vf rt2500
Calculating dependencies ...done!
>>> emerge (1 of 1) net-wireless/rt2500-1.1.0_beta3 to /
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 1819, in fetch
    file_lock = portage_locks.lockfile(mysettings["DISTDIR"]+"/"+locks_in_subdir+"/"+myfile,wantnewlockfile=1)
  File "/usr/lib/portage/pym/portage_locks.py", line 93, in lockfile
    fcntl.lockf(myfd,fcntl.LOCK_EX|fcntl.LOCK_NB)
IOError: [Errno 13] Permission denied

As you can see, emerge (/usr/lib/portage/pym/portage_locks.py) failed
to create a lock file - or rather failed to lock the file.

On the client, I've got in make.conf:

DISTDIR="/Gentoo/Portage/distfiles"

alexander@blatt ~ $ ls -lad /Gentoo/Portage/distfiles /misc/distfiles /misc/distfiles/.locks
lrwxrwxrwx  1 root portage    15 22. Aug 09:43 /Gentoo/Portage/distfiles -> /misc/distfiles
drwxrwsr-x  4 root portage 16384 22. Aug 10:46 /misc/distfiles
drwxrwsr-x  2 root portage   125 22. Aug 10:46 /misc/distfiles/.locks

Normal files can be created just fine in $DISTDIR/.locks:

alexander@blatt ~ $ date > $DISTDIR/.locks/testfile.$(id -un)
alexander@blatt ~ $ date | sudo -u portage dd of=$DISTDIR/.locks/testfile.portage
0+1 Datensätze ein
0+1 Datensätze aus
alexander@blatt ~ $ date | sudo dd of=$DISTDIR/.locks/testfile.root
0+1 Datensätze ein
0+1 Datensätze aus
alexander@blatt ~ $ ls -la $DISTDIR/.locks
insgesamt 32
drwxrwsr-x  2 root      portage  4096 22. Aug 10:53 .
drwxrwsr-x  4 root      portage 16384 22. Aug 10:52 ..
-rw-r--r--  1 alexander portage    29 22. Aug 10:52 testfile.alexander
-rw-r--r--  1 portage   portage    29 22. Aug 10:53 testfile.portage
-rw-r--r--  1 root      portage    29 22. Aug 10:54 testfile.root

How can I use a NFS exported distfiles directory?

Thanks,

Alexander Skwar
-- 
* Culus thinks we should go to trade shows and see how many people we
  can kill by throwing debian cds at them
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-09-01 16:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-22  8:55 [gentoo-user] emerge can't create lock in NFS exported distfiles directory Alexander Skwar
2005-08-22 14:07 ` Matthew Cline
2005-08-22 16:33   ` Alexander Skwar
2005-08-22 14:35 ` Roman v. Gemmeren
2005-08-22 15:31 ` Neil Bothwick
2005-09-01 13:25   ` Alexander Skwar
2005-09-01 14:16     ` Neil Bothwick
2005-09-01 16:14       ` Alexander Skwar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox