RFC: changing sys-apps/portage python API to use $EROOT instead of $ROOT for keys to portage.db and similar map objects
On 10/01/2011 11:27 AM, Fabian Groffen wrote:
> Hi Zac,
>
> On 01-10-2011 10:34:02 -0700, Zac Medico wrote:
>> As I integrate prefix support into mainline portage, I think it will
>
> Cool! and Thanks!
>
>> make more sense to use $EROOT instead of $ROOT for keys to portage.db
>> and similar map objects. This will also affect the portageq commands
>> which take a <root> parameter. The reason that I think $EROOT makes more
>> sense for these keys is that it will allow for multiple prefixes to
>> exist simultaneously in maps like portage.db.
>>
>> This won't affect non-prefix users, since $EROOT == $ROOT when $EPREFIX
>> is empty. So, I'm asking here because if might affect prefix users who
>> use portageq, or any programs installed in a prefix that use the
>> sys-apps/portage python API. If necessary, I suppose that python
>> programs could have some compatibility code which checks whether or no
>> $EROOT is contained in portage.db, and fall back to "/" otherwise.
>
> What does it actually mean? Does one have to use
> portageq envvar CHOST $EPREFIX/
> instead when this is implemented?
> That would seem not correct to me.
Well, it wouldn't apply to portageq's envvar command, since that doesn't
have a <root> argument. These are the portageq commands that would be
affected:
RFC: changing sys-apps/portage python API to use $EROOT instead of $ROOT for keys to portage.db and similar map objects
On 10/01/2011 10:34 AM, Zac Medico wrote:
> Hi,
>
> As I integrate prefix support into mainline portage, I think it will
> make more sense to use $EROOT instead of $ROOT for keys to portage.db
> and similar map objects. This will also affect the portageq commands
> which take a <root> parameter. The reason that I think $EROOT makes more
> sense for these keys is that it will allow for multiple prefixes to
> exist simultaneously in maps like portage.db.
>
> This won't affect non-prefix users, since $EROOT == $ROOT when $EPREFIX
> is empty. So, I'm asking here because if might affect prefix users who
> use portageq, or any programs installed in a prefix that use the
> sys-apps/portage python API. If necessary, I suppose that python
> programs could have some compatibility code which checks whether or no
> $EROOT is contained in portage.db, and fall back to "/" otherwise.
Here's the commit to watch out for if/when it gets merged into the
prefix branch:
RFC: changing sys-apps/portage python API to use $EROOT instead of $ROOT for keys to portage.db and similar map objects
This is a multi-part message in MIME format.On 10/25/2011 02:06 AM, Zac Medico wrote:
> On 10/01/2011 10:34 AM, Zac Medico wrote:
>> Hi,
>>
>> As I integrate prefix support into mainline portage, I think it will
>> make more sense to use $EROOT instead of $ROOT for keys to portage.db
>> and similar map objects. This will also affect the portageq commands
>> which take a <root> parameter. The reason that I think $EROOT makes more
>> sense for these keys is that it will allow for multiple prefixes to
>> exist simultaneously in maps like portage.db.
>>
>> This won't affect non-prefix users, since $EROOT == $ROOT when $EPREFIX
>> is empty. So, I'm asking here because if might affect prefix users who
>> use portageq, or any programs installed in a prefix that use the
>> sys-apps/portage python API. If necessary, I suppose that python
>> programs could have some compatibility code which checks whether or no
>> $EROOT is contained in portage.db, and fall back to "/" otherwise.
>
> Here's the commit to watch out for if/when it gets merged into the
> prefix branch:
>
> http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=a715b65f7bd36409c1283e69112 65d1f4405ab7a
This change has hit in prefix portage-2.2.01.19833. The only problem
that I've noticed so far is that `eselect news` doesn't find news items.
I've attached a patch for eselect in order to fix this. The following
commit will also have to be applied to prefix portage-2.2.01.19833 in
order to make this work correctly:
RFC: changing sys-apps/portage python API to use $EROOT instead of $ROOT for keys to portage.db and similar map objects
On 09-12-2011 11:18:33 -0800, Zac Medico wrote:
> > Here's the commit to watch out for if/when it gets merged into the
> > prefix branch:
> >
> > http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=a715b65f7bd36409c1283e69112 65d1f4405ab7a
>
> This change has hit in prefix portage-2.2.01.19833. The only problem
> that I've noticed so far is that `eselect news` doesn't find news items.
> I've attached a patch for eselect in order to fix this. The following
> commit will also have to be applied to prefix portage-2.2.01.19833 in
> order to make this work correctly:
>
> http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=174ffd8336ec9914f85f871b7ce 78506574d3d9b
Thanks! Is there a bug against eselect for this? Prefix has no local
copy of eselect.
--
Fabian Groffen
Gentoo on a different level
12-09-2011, 07:14 PM
Zac Medico
RFC: changing sys-apps/portage python API to use $EROOT instead of $ROOT for keys to portage.db and similar map objects
On 12/09/2011 11:22 AM, Fabian Groffen wrote:
> On 09-12-2011 11:18:33 -0800, Zac Medico wrote:
>>> Here's the commit to watch out for if/when it gets merged into the
>>> prefix branch:
>>>
>>> http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=a715b65f7bd36409c1283e69112 65d1f4405ab7a
>>
>> This change has hit in prefix portage-2.2.01.19833. The only problem
>> that I've noticed so far is that `eselect news` doesn't find news items.
>> I've attached a patch for eselect in order to fix this. The following
>> commit will also have to be applied to prefix portage-2.2.01.19833 in
>> order to make this work correctly:
>>
>> http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=174ffd8336ec9914f85f871b7ce 78506574d3d9b
>
> Thanks! Is there a bug against eselect for this? Prefix has no local
> copy of eselect.