1 |
Ühel kenal päeval, K, 21.07.2021 kell 17:08, kirjutas Florian Schmaus: |
2 |
> Note that this removes the export of src_prepare in EPAI 8 as |
3 |
> requested by ionen: |
4 |
> |
5 |
> 1. remove src_prepare export in EAPI-8 |
6 |
> |
7 |
> While "some" packages need xdg_environment_reset, most don't |
8 |
> because |
9 |
> the eclass is often only inherited to handle icons/.desktop and |
10 |
> this |
11 |
> just needlessly overwrite the src_prepare of other eclasses |
12 |
> requiring |
13 |
> more careful inherit ordering (e.g. inherit xdg cmake). |
14 |
> |
15 |
> I'd prefer it was clear when a package need this by calling |
16 |
> xdg_environment_reset directly. Unless there is a non-trivial |
17 |
> amount |
18 |
> of packages that need it (e.g. for tests) that I'm not aware of. |
19 |
|
20 |
asturm asked me to reply here if I think the changes are in the spirit |
21 |
of xdg.eclass, so.. |
22 |
|
23 |
I'm not sure about the spirit, but I personally am fine with the |
24 |
changes, after the technical nitpicks are figured out in the thread |
25 |
here. |
26 |
|
27 |
I do not like at all that we'll need to remember about calling |
28 |
xdg_environment_reset sometimes, but the status quo of clashing with |
29 |
other eclasses src_prepare export is probably worse. |
30 |
And you needing this reset call or not is not at all immediately |
31 |
obvious - it causing trouble may only happen during test suite run, for |
32 |
example, when XDG_RUNTIME_DIR is written to, or something else ends up |
33 |
causing writes to it. Basically ENV_UNSET was a great start, but does |
34 |
not completely address our XDG env reset needs and it'd be great if |
35 |
someone championed a full solution for EAPI-9 or something. |
36 |
|
37 |
I'm starting to think the easiest is to just make the |
38 |
xdg_environment_reset call unconditionally in meson.eclass |
39 |
src_configure like cmake.eclass does, and forget all about this for |
40 |
almost all possible cases. |
41 |
|
42 |
That rant aside, I'm happy in spirit with the changes as proposed here. |
43 |
|
44 |
|
45 |
Mart |