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