Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: reavertm@×××××.com
Subject: Re: [gentoo-dev] The gx86 multilib project -- masterplan
Date: Wed, 30 Jan 2013 09:54:16
Message-Id: 20130130105449.022eca92@pomiocik.lan
In Reply to: Re: [gentoo-dev] The gx86 multilib project -- masterplan by Maciej Mrozowski
1 On Wed, 30 Jan 2013 01:39:16 +0100
2 Maciej Mrozowski <reavertm@×××××.com> wrote:
3
4 > On Sunday 27 of January 2013 19:11:16 Micha³ Górny wrote:
5 > > On Sun, 27 Jan 2013 21:04:14 +0300
6 > >
7 > > Sergei Trofimovich <slyfox@g.o> wrote:
8 > > > On Sun, 27 Jan 2013 17:30:22 +0100
9 > > >
10 > > > Micha³ Górny <mgorny@g.o> wrote:
11 > > > > On Sun, 27 Jan 2013 16:07:48 +0000
12 > > > >
13 > > > > Ciaran McCreesh <ciaran.mccreesh@××××××××××.com> wrote:
14 > > > > > On Sun, 27 Jan 2013 16:12:37 +0100
15 > > > > >
16 > > > > > Micha³ Górny <mgorny@g.o> wrote:
17 > > > > > > RDEPEND="dev-libs/libfoo[${MULTILIB_USEDEP}]
18 > > > > > >
19 > > > > > > dev-libs/libbar[ssl,${MULTILIB_USEDEP}]"
20 > > > > >
21 > > > > > This looks like it might be a bit fragile. Is it something better
22 > > > > > addressed by an EAPI extension?
23 > > > >
24 > > > > I have no idea. This one's clear and simple. Not sure how you could be
25 > > > > able to do that better in EAPI.
26 > > >
27 > > > EAPI might allow lib[multiple?][use?][flags?] as an alias of
28 > > > [multiple?,use?,flags?].
29 > > I still don't think that would be really helpful.
30 > >
31 > > dev-libs/libfoo[ssl][${MULTILIB_USEDEP}]
32 > >
33 > > is IMO just more confusing than the usual [ssl,...] -- people start
34 > > thinking 'does it mean something special?'
35 > >
36 > > Unless you mean adding the brackets to the variable itself -- but that
37 > > will be just scary...
38 > >
39 > > dev-libs/libfoo${MULTILIB_USEDEP}
40 >
41 > Alternatively, less fragile but more verbose would be eclass function to
42 > produce dependency string. While it may sound as overkill - we already do it
43 > in KDE:
44
45 And in ruby, and in arfrever's python....
46
47 add_foo_dep $(add_bar_dep ...) ... oh wait, it doesn't work like that.
48
49 --
50 Best regards,
51 Michał Górny

Attachments

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