1 |
On Mon, 1 Oct 2018 09:00:38 -0400 |
2 |
Mike Gilbert <floppym@g.o> wrote: |
3 |
|
4 |
> > The reason why it is in DEPEND though is that none of these tools |
5 |
> > are required at runtime. They are needed at postinst and postrm |
6 |
> > stages which afaik makes them DEPEND on EAPI previous to EAPI 7 and |
7 |
> > BDEPEND in EAPI 7 if I'm not mistaken. |
8 |
> |
9 |
> This is incorrect; programs executed in pkg_postinst/pkg_postrm should |
10 |
> be present in RDEPEND. Consider a binpkg installation, which would |
11 |
> ignore DEPEND, but would still execute pkg_postinst. |
12 |
> |
13 |
> Another option: since xdg-utils.eclass functions will politely skip |
14 |
> the updates if the tools are missing, we could just drop the |
15 |
> dependency from xdg.eclass entirely and wait for the tools to get |
16 |
> installed through some indirect means. |
17 |
|
18 |
Unfortunately there is no correct answer here as we didn't consider |
19 |
this scenario when planning EAPI 7. We should have looked at Exherbo, |
20 |
which does make this important distinction. There is a bug report open. |
21 |
|
22 |
https://bugs.gentoo.org/660306 |
23 |
|
24 |
What I will say is that we should not attempt to executing anything |
25 |
from within ROOT or SYSROOT unless it known to be interpreted |
26 |
(e.g. a shell script) and there is no feasible alternative. I add that |
27 |
exclusion clause because I have been forced to do this with |
28 |
python-config. |
29 |
|
30 |
-- |
31 |
James Le Cuirot (chewi) |
32 |
Gentoo Linux Developer |