Gentoo Archives: gentoo-osx

From: Grobian <grobian@g.o>
To: gentoo-osx@l.g.o
Subject: Re: [gentoo-osx] Latest adventures in PREFIX
Date: Sun, 08 Jan 2006 17:56:06
Message-Id: 20060108175517.GI27520@gentoo.org
In Reply to: Re: [gentoo-osx] Latest adventures in PREFIX by Grobian
1 Ok, update:
2
3 !!! Cannot write to '/Library'.
4 !!! Please check permissions and directories for broken symlinks.
5 !!! You may start the merge process again by using ebuild:
6 !!! ebuild
7 /private/var/automount/nfs/poseidon/export/home/gentoo/gentoo-x86/sys-devel/patch/patch-2.5.9-r1.ebuild
8 merge
9 !!! And finish by running this: env-update
10
11 Above is the output of my OSX installation (which worked) when I execute
12 emerge not as root. In order to get this, I first had to chmod 755
13 /Library as it is per default writable to users from the admin group
14 (which I am of course). Before I did this chmod, I found a hint as of
15 why this happens:
16
17 >>> Merging sys-devel/patch-2.5.9-r1 to /
18 !!! EBUILD_PHASE=preinst
19 !!! D=/Library/Gentoo/var/tmp/portage/patch-2.5.9-r1/image/Library/Gentoo///
20 !!! DEST=/Library/Gentoo/var/tmp/portage/patch-2.5.9-r1/image
21 !!! PREFIX=/Library/Gentoo///
22 !!! ROOT=/Library/Gentoo///
23 --- /Library/
24 --- /Library/Gentoo/
25 --- /Library/Gentoo/usr/
26
27 !!! Cannot write to '/Library/Gentoo/usr/bin'.
28 !!! Please check permissions and directories for broken symlinks.
29 !!! You may start the merge process again by using ebuild:
30 !!! ebuild /private/var/automount/nfs/poseidon/export/home/gentoo/gentoo-x86/sys-devel/patch/patch-2.5.9-r1.ebuild merge
31 !!! And finish by running this: env-update
32
33 The directory bin is the first I can't write to as user from the admin
34 group. During the merge phase portage merges the prefix paths from the
35 image too. When being run as root, this is no problem, because root can
36 usually write everywhere on the local system, including the prefix. On
37 my Fedora Core system at work, however, I can't.
38
39 So... (drums) ...I made it work! (w00t!)
40
41 I patched the portage code not to check whether it can write on
42 directories that are from the root till the prefix path. See attached
43 patch. I guess it sucks big time, but the idea should be clear. It
44 works for me at least...
45
46 Now I finally got 'patch' emerged, I'm going to see how far I can get :D
47
48
49 On 06-01-2006 01:17:18 +0100, Grobian wrote:
50 > Well... I installed the older portage snapshot thing from Kito, and it
51 > gives the same problem of wanting to write to /net. I'm getting affraid
52 > portage wants to make sure that it can write in each and every directory
53 > from the root till the base dir, which is not going to work in any
54 > way...
55
56 --
57 Fabian Groffen
58 Gentoo for Mac OS X Project -- Interim Lead

Attachments

File name MIME type
portage.py.patch text/plain