1 |
Hi! |
2 |
|
3 |
alexander@blatt ~ $ sudo emerge -vf rt2500 |
4 |
Calculating dependencies ...done! |
5 |
>>> emerge (1 of 1) net-wireless/rt2500-1.1.0_beta3 to / |
6 |
Traceback (most recent call last): |
7 |
File "/usr/bin/emerge", line 3200, in ? |
8 |
mydepgraph.merge(mydepgraph.altlist()) |
9 |
File "/usr/bin/emerge", line 1859, in merge |
10 |
retval=portage.doebuild(y,"fetch",myroot,self.pkgsettings,edebug,("--pretend" in myopts),fetchonly=1) |
11 |
File "/usr/lib/portage/pym/portage.py", line 2664, in doebuild |
12 |
if mydo!="manifest" and not fetch(fetchme, mysettings, listonly=listonly, fetchonly=fetchonly): |
13 |
File "/usr/lib/portage/pym/portage.py", line 1819, in fetch |
14 |
file_lock = portage_locks.lockfile(mysettings["DISTDIR"]+"/"+locks_in_subdir+"/"+myfile,wantnewlockfile=1) |
15 |
File "/usr/lib/portage/pym/portage_locks.py", line 93, in lockfile |
16 |
fcntl.lockf(myfd,fcntl.LOCK_EX|fcntl.LOCK_NB) |
17 |
IOError: [Errno 13] Permission denied |
18 |
|
19 |
As you can see, emerge (/usr/lib/portage/pym/portage_locks.py) failed |
20 |
to create a lock file - or rather failed to lock the file. |
21 |
|
22 |
On the client, I've got in make.conf: |
23 |
|
24 |
DISTDIR="/Gentoo/Portage/distfiles" |
25 |
|
26 |
alexander@blatt ~ $ ls -lad /Gentoo/Portage/distfiles /misc/distfiles /misc/distfiles/.locks |
27 |
lrwxrwxrwx 1 root portage 15 22. Aug 09:43 /Gentoo/Portage/distfiles -> /misc/distfiles |
28 |
drwxrwsr-x 4 root portage 16384 22. Aug 10:46 /misc/distfiles |
29 |
drwxrwsr-x 2 root portage 125 22. Aug 10:46 /misc/distfiles/.locks |
30 |
|
31 |
Normal files can be created just fine in $DISTDIR/.locks: |
32 |
|
33 |
alexander@blatt ~ $ date > $DISTDIR/.locks/testfile.$(id -un) |
34 |
alexander@blatt ~ $ date | sudo -u portage dd of=$DISTDIR/.locks/testfile.portage |
35 |
0+1 Datensätze ein |
36 |
0+1 Datensätze aus |
37 |
alexander@blatt ~ $ date | sudo dd of=$DISTDIR/.locks/testfile.root |
38 |
0+1 Datensätze ein |
39 |
0+1 Datensätze aus |
40 |
alexander@blatt ~ $ ls -la $DISTDIR/.locks |
41 |
insgesamt 32 |
42 |
drwxrwsr-x 2 root portage 4096 22. Aug 10:53 . |
43 |
drwxrwsr-x 4 root portage 16384 22. Aug 10:52 .. |
44 |
-rw-r--r-- 1 alexander portage 29 22. Aug 10:52 testfile.alexander |
45 |
-rw-r--r-- 1 portage portage 29 22. Aug 10:53 testfile.portage |
46 |
-rw-r--r-- 1 root portage 29 22. Aug 10:54 testfile.root |
47 |
|
48 |
How can I use a NFS exported distfiles directory? |
49 |
|
50 |
Thanks, |
51 |
|
52 |
Alexander Skwar |
53 |
-- |
54 |
* Culus thinks we should go to trade shows and see how many people we |
55 |
can kill by throwing debian cds at them |
56 |
-- |
57 |
gentoo-user@g.o mailing list |