1 |
On 05/09/2015 06:47 AM, Joakim Tjernlund wrote: |
2 |
> On Fri, 2015-05-08 at 11:32 -0700, Zac Medico wrote: |
3 |
>> On 05/07/2015 11:43 PM, Joakim Tjernlund wrote: |
4 |
>>> On Thu, 2015-05-07 at 14:09 -0700, Zac Medico wrote: |
5 |
>>>> On 05/07/2015 03:51 AM, Joakim Tjernlund wrote: |
6 |
>>>>> On Wed, 2015-05-06 at 22:45 +0000, Joakim Tjernlund wrote: |
7 |
>>>>>> On Wed, 2015-05-06 at 15:16 -0700, Zac Medico wrote: |
8 |
>>>>>>> On 05/06/15 14:57, Joakim Tjernlund wrote: |
9 |
>>>>>>>> On Wed, 2015-05-06 at 14:36 -0700, Zac Medico wrote: |
10 |
>>>>>>>>> On 05/06/15 14:30, Joakim Tjernlund wrote: |
11 |
>>>>>>>>>> On Wed, 2015-05-06 at 13:30 -0700, Zac Medico wrote: |
12 |
>>>>>>>>>>> On 05/06/15 13:22, Joakim Tjernlund wrote: |
13 |
>>>>>>>>>>>> On Wed, 2015-05-06 at 12:54 -0700, Zac Medico wrote: |
14 |
>>>>>>>>>>>>> On 05/06/15 12:41, Joakim Tjernlund wrote: |
15 |
>>>>>>>>>>>>>> On Wed, 2015-05-06 at 19:13 +0000, Joakim Tjernlund wrote: |
16 |
>>>>>>>>>>>>>>> On Wed, 2015-05-06 at 11:37 -0700, Zac Medico wrote: |
17 |
>>>>>>>>>>>>>>>> On 05/06/15 09:54, Joakim Tjernlund wrote: |
18 |
>>>>>>>>>>>>>>>>> I am trying to rebuild an old cross sysroot and I got problems. |
19 |
>>>>>>>>>>>>>>>>> I cannot make emerge to select my old ebuilds in an overlay over those |
20 |
>>>>>>>>>>>>>>>>> in /usr/portage. |
21 |
>>>>>>>>>>>>>>>>> |
22 |
>>>>>>>>>>>>>>>>> What new is since last time I did this is /etc/portage/repos.conf/ |
23 |
>>>>>>>>>>>>>>>>> I suspect emerge always reads /etc/portage/repos.conf/ no matter |
24 |
>>>>>>>>>>>>>>>>> what I set PORTAGE_CONFIGROOT / ROOT to ? |
25 |
>>>>>>>>>>>>>>>>> |
26 |
>>>>>>>>>>>>>>>>> Jocke |
27 |
>>>>>>>>>>>>>>>>> |
28 |
>>>>>>>>>>>>>>>> |
29 |
>>>>>>>>>>>>>>>> It instantiates 2 config instances, one using /etc/portage/repos.conf |
30 |
>>>>>>>>>>>>>>>> (for build time DEPEND) and another one using |
31 |
>>>>>>>>>>>>>>>> $PORTAGE_CONFIGROOT/etc/portage/repos.conf (for run time {P,R}DEPEND). |
32 |
>>>>>>>>>>>>>>>> You can see that it's joined with PORTAGE_CONFIGROOT in the |
33 |
>>>>>>>>>>>>>>>> load_repository_config function: |
34 |
>>>>>>>>>>>>>>>> |
35 |
>>>>>>>>>>>>>>>> https://gitweb.gentoo.org/proj/portage.git/tree/pym/portage/repository/config.py |
36 |
>>>>>>>>>>>>>>>> ?id= |
37 |
>>>>>>>>>>>>>>>> 0f19 |
38 |
>>>>>>>>>>>>>>>> 11 |
39 |
>>>>>>>>>>>>>>>> 13cc |
40 |
>>>>>>>>>>>>>>>> cd04 |
41 |
>>>>>>>>>>>>>>>> 9e11 |
42 |
>>>>>>>>>>>>>>>> fdbe |
43 |
>>>>>>>>>>>>>>>> 73 |
44 |
>>>>>>>>>>>>>>>> 493eb1efbf4bf89e#n971 |
45 |
>>>>>>>>>>>>>>> |
46 |
>>>>>>>>>>>>>>> I see, doesn't this prevent exactly what I want to do? |
47 |
>>>>>>>>>>>>>>> |
48 |
>>>>>>>>>>>>>>> I can't see why this should be needed, it only creates a mess, another example: |
49 |
>>>>>>>>>>>>>>> I tried to specify exact version of my old binutils and while that worked, |
50 |
>>>>>>>>>>>>>>> portage |
51 |
>>>>>>>>>>>>>>> wanted |
52 |
>>>>>>>>>>>>>>> to pull in a newer binutils-config from the hosts master gentoo repo and |
53 |
>>>>>>>>>>>>>>> thus the build failed. |
54 |
>>>>>>>>>>>>>>> |
55 |
>>>>>>>>>>>>>>> If a someone really wants this behaviour, he can just add the hosts master repo |
56 |
>>>>>>>>>>>>>>> in his PORTAGE_CONFIGROOT IMHO |
57 |
>>>>>>>>>>>>>>> |
58 |
>>>>>>>>>>>>> |
59 |
>>>>>>>>>>>>> Maybe emerge --root-deps=rdeps is what you are looking for. This will |
60 |
>>>>>>>>>>>>> cause it to ignore DEPEND. |
61 |
>>>>>>>>>>>> |
62 |
>>>>>>>>>>>> That is not the same is it? if I "emerge ncurses" it will build ncurses but still |
63 |
>>>>>>>>>>>> take the ebuild from the hosts master since it is newer version. |
64 |
>>>>>>>>>>>> |
65 |
>>>>>>>>>>>> I realize now that I can change what repos are searched by using |
66 |
>>>>>>>>>>>> PORTAGE_REPOSITORIES=/my/own/repos.conf/ |
67 |
>>>>>>>>>>>> but I still find the default behaviour very confusing and I don't see that it is useful. |
68 |
>>>>>>>>>>> |
69 |
>>>>>>>>>>> The idea is that you have separate repositories configured for each |
70 |
>>>>>>>>>>> ROOT. If it's satisfying a build-time DEPEND that will be installed into |
71 |
>>>>>>>>>>> ROOT=/, then it's supposed to use the repositories configured for ROOT=/. |
72 |
>>>>>>>>>> |
73 |
>>>>>>>>>> I see, but in my case I only install into my sysroot so I don't want this behaviour. |
74 |
>>>>>>>>> |
75 |
>>>>>>>>> So, why don't you use the --root-deps option? |
76 |
>>>>>>>> |
77 |
>>>>>>>> Just did(and --root-deps=rdeps too) and it didn't work, still wants to use |
78 |
>>>>>>>> my newer hosts pkgs. :( |
79 |
>>>>>>> |
80 |
>>>>>>> It shouldn't do that. It sounds like maybe the [gentoo] config |
81 |
>>>>>>> from/usr/share/portage/config/repos.conf is the source of your problems, |
82 |
>>>>>>> since you $PORTAGE_CONFIGROOT config will always inherit that. Would |
83 |
>>>>>>> that be consistent with your observations? |
84 |
>>>>>> |
85 |
>>>>>> Moving that file out of the way changed things, now I got I profile error: |
86 |
>>>>>> !!! Unable to parse profile: '/etc/portage/make.profile' |
87 |
>>>>>> !!! ParseError: Parent 'gentoo:default/linux/amd64/13.0' not found: |
88 |
>>>>>> '/var/lib/layman/transmode/profiles/gentoo64-server/parent' |
89 |
>>>>>> !!! Your current profile is invalid. If you have just changed your profile |
90 |
>>>>>> !!! configuration, you should revert back to the previous configuration. |
91 |
>>>>>> !!! Allowed actions are limited to --help, --info, --search, --sync, and |
92 |
>>>>>> !!! --version. |
93 |
>>>>>> |
94 |
>>>>>> Which I think is a problem in my cross env. |
95 |
>>>>> |
96 |
>>>>> No, this is not it. Portage just bails when reading the host profile which it should not. |
97 |
>>>>> |
98 |
>>>>> Note: defining |
99 |
>>>>> PORTAGE_REPOSITORIES=/my/own/repos.conf |
100 |
>>>>> gives the same error. |
101 |
>>>>> |
102 |
>>>> |
103 |
>>>> According to the error message, your transmode profile inherits a gentoo |
104 |
>>>> profile, so you need the gentoo repository (at least the relevant profile). |
105 |
>>> |
106 |
>>> I have a my own profile in PORTAGE_CONFIGROOT which does not |
107 |
>>> reference the host /etc/portage/make.profile at all so I think |
108 |
>>> portage is using the wrong profile. |
109 |
>> |
110 |
>> When using ROOT=/foo, it always instantiates 2 profiles, and it uses one |
111 |
>> profile for ROOT=/foo and the other profile for ROOT=/. |
112 |
> |
113 |
> This makes sense when just using ROOT, not when cross compiling. |
114 |
> If I cross build (or use PORTAGE_REPOSITORIES ?) I don't think it makes |
115 |
> sense to add the hosts profile as it has little to nothing to |
116 |
> do with my cross target. |
117 |
> How would a cross target use the hosts profile sensibly? |
118 |
|
119 |
The host profile is only used for packages installed to ROOT=/ in order |
120 |
to satisfy DEPEND. If you use the emerge --root-deps then the host |
121 |
profile is used for absolutely nothing (although it is still instantiated). |
122 |
|
123 |
>> |
124 |
>>> Futhermore, it does not understand the host profile, probably |
125 |
>>> because my own PORTAGE_CONFIGROOT don't have profile-formats = portage-2 |
126 |
>> |
127 |
>> You're saying this beciase of the above ParseError? I think maybe what |
128 |
>> you want to do keep the default /usr/share/portage/config/repos.conf and |
129 |
>> mask */*::gentoo in $PORTAGE_CONFIGROOT/etc/portage/package.mask. |
130 |
> |
131 |
> That is what I am doing now, but that still includes the hosts profile I think ? |
132 |
|
133 |
It will only be used for packages installed to ROOT=/ in order to |
134 |
satisfy DEPEND, as I have mentioned above. |
135 |
-- |
136 |
Thanks, |
137 |
Zac |