1 |
On 21/06/18 03:38, Jason Zaman wrote: |
2 |
> On Wed, Jun 20, 2018 at 06:01:10PM -0500, Marty E. Plummer wrote: |
3 |
>> On Wed, Jun 20, 2018 at 11:33:53PM +0100, James Le Cuirot wrote: |
4 |
>>> On Wed, 20 Jun 2018 17:21:09 -0500 |
5 |
>>> "Marty E. Plummer" <hanetzer@×××××××××.com> wrote: |
6 |
>>> |
7 |
>>>> On Wed, Jun 20, 2018 at 09:03:44PM +0800, Jason Zaman wrote: |
8 |
>>>>> On Wed, Jun 20, 2018 at 02:10:50AM -0500, Marty E. Plummer wrote: |
9 |
>>>>>> Use ${EROOT%/} whereever possible, as the tools and directories which |
10 |
>>>>>> are used with it are already prefixed with a / |
11 |
>>>>>> |
12 |
>>>>>> Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
13 |
>>>>>> --- |
14 |
>>>>>> eclass/xdg-utils.eclass | 10 +++++----- |
15 |
>>>>>> 1 file changed, 5 insertions(+), 5 deletions(-) |
16 |
>>>>>> |
17 |
>>>>>> diff --git a/eclass/xdg-utils.eclass b/eclass/xdg-utils.eclass |
18 |
>>>>>> index ac075185d8e..8dba5ed6861 100644 |
19 |
>>>>>> --- a/eclass/xdg-utils.eclass |
20 |
>>>>>> +++ b/eclass/xdg-utils.eclass |
21 |
>>>>>> @@ -66,7 +66,7 @@ xdg_environment_reset() { |
22 |
>>>>>> # Updates the .desktop files database. |
23 |
>>>>>> # Generates a list of mimetypes linked to applications that can handle them |
24 |
>>>>>> xdg_desktop_database_update() { |
25 |
>>>>>> - local updater="${EROOT}${DESKTOP_DATABASE_UPDATE_BIN}" |
26 |
>>>>>> + local updater="${EROOT%/}${DESKTOP_DATABASE_UPDATE_BIN}" |
27 |
>>>>> Shouldn't things like this be $BROOT since they're being run? $EROOT |
28 |
>>>>> might be a different architecture that may or may not run at all on the |
29 |
>>>>> build machine. |
30 |
>>>>> |
31 |
>>>> Good point, but here's a question; if EROOT=${ROOT%/}${EPREFIX}, how do |
32 |
>>>> we use BROOT here? EBROOT? Or longhand ${BROOT%/}${EPREFIX} ? I think |
33 |
>>>> that may be a use case that got missed in the EAPI 7 discussions. |
34 |
>>> BROOT is already prefixed as BROOT without a prefix would just be /. |
35 |
>>> |
36 |
>> I don't follow. Its my understanding that BROOT ~= ROOT for most |
37 |
>> situations. But consider this setup: |
38 |
>> Ubuntu amd64 with Gentoo Prefix, emerging a native arm @system to |
39 |
>> /mnt/arm EPREFIX = /home/user/gentoo. |
40 |
>> |
41 |
>> In this situation, ROOT=/mnt/arm, EROOT=/mnt/arm, but what is BROOT? /, |
42 |
>> or /home/usr/gentoo? |
43 |
> https://dev.gentoo.org/~mgorny/articles/the-ultimate-guide-to-eapi-7.html#broot-variable-for-bdepend |
44 |
> |
45 |
> Basically BROOT already contains EPREFIX or BPREFIX or whatever it would |
46 |
> be called. There is like no need for an un-prefixed BROOT so its just |
47 |
> merged in. so you should just need "${BROOT}/usr/bin/update-mime-database" |
48 |
> |
49 |
> -- Jason |
50 |
> |
51 |
>>> -- |
52 |
>>> James Le Cuirot (chewi) |
53 |
>>> Gentoo Linux Developer |
54 |
>> |
55 |
>> |
56 |
Obligatory n00b question .. how does this work in EAPI <= 6 ?! :D |