Gentoo Archives: gentoo-dev

From: Mart Raudsepp <leio@g.o>
To: gentoo-dev@l.g.o, Florian Schmaus <flow@g.o>
Subject: Re: [gentoo-dev] [PATCH] xdg.eclass: add EAPI 8 support
Date: Thu, 15 Jul 2021 13:22:58
Message-Id: 83ca0c88f47646edb6bc35781acacecb55f88c8e.camel@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH] xdg.eclass: add EAPI 8 support by Ulrich Mueller
1 Ühel kenal päeval, N, 15.07.2021 kell 14:03, kirjutas Ulrich Mueller:
2 > > > > > > On Thu, 15 Jul 2021, Florian Schmaus wrote:
3 >  
4 > > -DEPEND="
5 > > +_XDG_DEPEND="
6 > >         dev-util/desktop-file-utils
7 > >         x11-misc/shared-mime-info
8 > >  "
9 > > +
10 > > +case "${EAPI:-0}" in
11 > > +       4|5|6|7)
12 > > +               DEPEND="${_XDG_DEPEND}"
13 > > +               ;;
14 > > +       *)
15 > > +               IDEPEND="${_XDG_DEPEND}"
16 > > +               ;;
17 > > +esac
18 >
19 > If it is IDEPEND in EAPI 8 (i.e. an install-time dependency which
20 > applies to pkg_postinst etc.), then presumably the best approximation
21 > in other EAPIs would be RDEPEND:
22 > https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-720008.1
23 >
24 > Think about installion of a binpkg where DEPEND won't be pulled in.
25
26 Changing where it is for old EAPIs is presumably not the subject of
27 this patchset. DEPEND is where it was before, and DEPEND is where it
28 should remain after. I'm aware of the incorrectness, but RDEPEND has
29 its other problems for these deps - this is why IDEPEND exists now.
30 As this is not the purpose of this patch, we shouldn't dwelve into this
31 subject further - EAPI-8 is here now to fix this.
32
33
34 Mart

Attachments

File name MIME type
signature.asc application/pgp-signature