Gentoo Archives: gentoo-osx

From: m h <sesquile@×××××.com>
To: Michael Haubenwallner <michael.haubenwallner@×××××××.at>, gentoo-osx@l.g.o
Subject: [gentoo-osx] Re: Attempt to use prefix on linux as secondary...
Date: Thu, 15 Dec 2005 23:28:15
Message-Id: e36b84ee0512151527q139ff7ebl25bc4a43cc47ba09@mail.gmail.com
In Reply to: [gentoo-osx] Re: Attempt to use prefix on linux as secondary... by m h
1 So after running my script to the point where the emerge command tries
2 to work I guess that #5 below of my dependencies (virtual filesystem)
3 is not required yet.
4
5 I've attached my script. It currently has dependencies on some
6 directories where I store haubi's toolbox, kito's tarballs, some
7 modified files I have made (${MATT} directory) and a unzipped stage1
8 directory. If anyone has questions fire away.
9
10 The script tries to run "emerge -av system" which currently gives the
11 following output:
12 *** You are not in the portage group. You may experience cache problems
13 *** due to permissions preventing the creation of the on-disk cache.
14 *** Please add this user to the portage group if you wish to use portage.
15
16 Invalid package name in package.provided: virtual/libc
17 Invalid package name in package.provided: virtual/linux-sources
18 Invalid package name in package.provided: virtual/os-headers
19 !!! Problem with sandbox binary. Disabling...
20
21 Traceback (most recent call last):
22 File "/data1/portage/dec15/prefix/toolsbox-4-patchespre.20051215/i686-pc-linux-gnu/bin/emerge",
23 line 10, in ?
24 import portage
25 File "/data1/portage/dec15/prefix/toolsbox-4-patchespre.20051215/i686-pc-linux-gnu/lib/portage/pym/portage.py",
26 line 6856, in ?
27 portdb=portdbapi(settings["PORTDIR"])
28 File "/data1/portage/dec15/prefix/toolsbox-4-patchespre.20051215/i686-pc-linux-gnu/lib/portage/pym/portage.py",
29 line 4834, in __init__
30 self.auxdb[x] = self.auxdbmodule(portage_const.DEPCACHE_PATH, x,
31 filtered_auxdbkeys, gid=portage_gid)
32 File "/data1/portage/dec15/prefix/toolsbox-4-patchespre.20051215/i686-pc-linux-gnu/lib/portage/pym/cache/flat_hash.py",
33 line 22, in __init__
34 self._ensure_dirs()
35 File "/data1/portage/dec15/prefix/toolsbox-4-patchespre.20051215/i686-pc-linux-gnu/lib/portage/pym/cache/fs_template.py",
36 line 61, in _ensure_dirs
37 os.chown(base, -1, self._gid)
38 OSError: [Errno 1] Operation not permitted:
39 '/data1/portage/dec15/prefix/toolsbox-4-patchespre.20051215/i686-pc-linux-gnu/var/cache/edb/dep'
40
41
42 ###########END OUTPUT###########
43
44 There's a few issues:
45 1. Portage group. Will most prefixed users have a portage group? I'm
46 assumming the answer is yes. Any debate here?
47
48 2. Invalid package name in package.provided. I need to look into
49 this. Any hints?
50
51 3. Sanbox binary. I think portage is looking for a sandbox executable
52 which is missing. Should this cause problems?
53
54 4. Python os.chown error. I'll look into this. Portage as of now has
55 a requirement to be run as root, which (I believe) Haubi removed, but
56 Kito hasn't. I don't think this should be a requirement. Debate?
57
58 I'm going to keep plowing ahead. Will keep you guys posted of progress I make.
59
60 matt
61
62 On 12/15/05, m h <sesquile@×××××.com> wrote:
63 > Thanks everyone for there responses.
64 > I'm now re-working my effort into a script (hopefully this can be
65 > generalized so that others can use it).
66 >
67 > There are a few dependencies for the script:
68 > 1) Toolsbox
69 > 2) Prefixed portage
70 > 3) ebuild tree (including profile)
71 > 4) Settings (/etc files)
72 > 5) Virtual filesystem (/etc, /usr/, /var, etc that will reside under
73 > the PREFIX directory)
74 >
75 > I have questions with 3-5.
76 > Kito has an ebuild tree, which I can use for 3. But his profile is
77 > Darwin specific. He said I will need to make my own profile. But
78 > where do I get the profile to start from? I have a gentoo
79 > installation I can copy it from, but I'm trying to ask is where this
80 > is stored in svn... Wait, Kito said it wasn't stored, so how is it
81 > derived? I'm just trying to understand the process here.
82 >
83 > Regarding 4-5. Is it ok to just take this from a stage1? If so, then
84 > this will be arch specific (which is fine, I'm just noting that). Is
85 > 5 even necessary or will portage just add needed directories along the
86 > way?
87 >
88 > Will post my script later....
89 >

Attachments

File name MIME type
bootstrap.sh application/x-sh

Replies

Subject Author
[gentoo-osx] Re: Attempt to use prefix on linux as secondary... m h <sesquile@×××××.com>