1 |
Nevermind, I think I managed to discover where I went wrong - in |
2 |
portage, one needs to add the ~<arch> flag in |
3 |
/etc/portage/package.keywords to equivalently set |
4 |
ACCEPT_KEYWORDS="~<arch>" then? |
5 |
|
6 |
The strange thing, is that on my plain-old i686 laptop, i usually just |
7 |
say 'sys-app/busybox' without the ~<arch> and it manages to set |
8 |
ACCEPT_KEYWORDS for that package to ~<arch> .... |
9 |
|
10 |
wierd! |
11 |
|
12 |
Christopher Friedt wrote: |
13 |
> Hi Nedd, |
14 |
> |
15 |
> Thanks for your reply - i've been crazy busy lately. |
16 |
> |
17 |
> The ROOT & PORTAGE_CONFIGROOT directories are the same, and I tested out |
18 |
> /sysroot/etc/portage/package.use. That works no problem. |
19 |
> |
20 |
> However, i still don't see an effect if I do something in package.keywords. |
21 |
> |
22 |
> I usually do this on my desktop machine if I'd like to open up the |
23 |
> keywords for a particular package. Am I doing something wrong? |
24 |
> |
25 |
> |
26 |
> vaiprime / # echo "sys-apps/busybox" >> |
27 |
> /sysroot/etc/portage/package.keywords |
28 |
> vaiprime / # xmerge -pv busybox |
29 |
> |
30 |
> These are the packages that would be merged, in order: |
31 |
> |
32 |
> Calculating dependencies... done! |
33 |
> [ebuild R ] sys-apps/busybox-1.2.2.1 to /sysroot/ USE="static* |
34 |
> -debug -make-symlinks -netboot -savedconfig" 1,380 kB |
35 |
> |
36 |
> vaiprime / # ACCEPT_KEYWORDS="~arm" xmerge -avB busybox |
37 |
> |
38 |
> These are the packages that would be merged, in order: |
39 |
> |
40 |
> Calculating dependencies... done! |
41 |
> [ebuild U ] sys-apps/busybox-1.3.1 [1.2.2.1] to /sysroot/ |
42 |
> USE="static* -debug -make-symlinks -savedconfig (-netboot%)" 1,456 kB |
43 |
> |
44 |
> Ned Ludd wrote: |
45 |
>> Is your $SYSROOT the same as your $PORTAGE_CONFIGROOT? |
46 |
>> Cuz portage only looks in $PORTAGE_CONFIGROOT and cares nothing of |
47 |
>> $SYSROOT.. |
48 |
>> |
49 |
>> |
50 |
>> On Sat, 2007-01-13 at 00:12 +0100, Christopher Friedt wrote: |
51 |
>>> Hi everyone, |
52 |
>>> |
53 |
>>> I've set up a 'build root' that I can chroot into for cross development. |
54 |
>>> There is also a directory of targets to compile for, and for each |
55 |
>>> target, a series of different configurations. |
56 |
>>> |
57 |
>>> When I chroot into my buildroot my 'enter_chroot' script will |
58 |
>>> automatically mount -o bind each of the sysroot, binpkgs, and overlay |
59 |
>>> directories for a specified configuration, as well as mount -o bind |
60 |
>>> the portage tree itself. |
61 |
>>> |
62 |
>>> So my directory structure looks something like this: |
63 |
>>> |
64 |
>>> gentoo-crossdev-buildroot/ |
65 |
>>> enter_chroot.sh |
66 |
>>> (mounts proc, mounts -o bind portage/sysroot/binpkg/overlay etc) |
67 |
>>> portage/ |
68 |
>>> ... (the portage tree) |
69 |
>>> buildroot/ |
70 |
>>> ... (all cross compilation tools and a stage1 filesystem) |
71 |
>>> targets/ |
72 |
>>> arm-9tdmi-linux-gnu/ |
73 |
>>> cross-toolchain/ |
74 |
>>> configurations/ |
75 |
>>> reference/ |
76 |
>>> overlay/ |
77 |
>>> binpkgs/ |
78 |
>>> sysroot/ |
79 |
>>> client1/ |
80 |
>>> ... |
81 |
>>> client2/ |
82 |
>>> ... |
83 |
>>> arm-9tdmi-linux-uclibc/ |
84 |
>>> cross-toolchain/ |
85 |
>>> configurations/ |
86 |
>>> reference/ |
87 |
>>> overlay/ |
88 |
>>> binpkgs/ |
89 |
>>> sysroot/ |
90 |
>>> client1/ |
91 |
>>> ... |
92 |
>>> client2/ |
93 |
>>> ... |
94 |
>>> |
95 |
>>> What I'm hoping to do is leverage the power of portage overlays here, |
96 |
>>> and make it possible to have different package customizations for |
97 |
>>> each client and each platform that my company deals with. |
98 |
>>> |
99 |
>>> It doesn't take a lot to see that this is a great way to minimize |
100 |
>>> maintenance. |
101 |
>>> |
102 |
>>> My problem though, is that when doing cross development (I use the |
103 |
>>> xmerge scrypt and set a SYSROOT variable), I have noticed that when I |
104 |
>>> set new flags in $SYSROOT/etc/portage/package.use, it's not noticed |
105 |
>>> properly during emerge. |
106 |
>>> |
107 |
>>> I'm hoping that portage can be flexible enough to acknowlege those |
108 |
>>> use flags. The xmerge script (taken from one of the gentoo cross |
109 |
>>> development guides online) properly sets the PORTAGE_CONFIGROOT |
110 |
>>> variable, ROOT, etc, so I don't understand why it doesn't acknowlege |
111 |
>>> the changes in $SYSROOT/etc/portage/package.use. |
112 |
>>> |
113 |
>>> Any suggestions? |
114 |
>>> |
115 |
>>> |
116 |
>>> Regards, |
117 |
>>> |
118 |
>>> ~/Chris |
119 |
-- |
120 |
gentoo-embedded@g.o mailing list |