From: Alec Warner <antarus@gentoo.org>
To: Gentoo Dev <gentoo-dev@lists.gentoo.org>
Subject: Re: [gentoo-dev] [PATCH] systemd.eclass: set BDEPEND for EAPI 7
Date: Mon, 6 Aug 2018 16:09:08 -0400 [thread overview]
Message-ID: <CAAr7Pr9uGEQmMi2_tJS2udJS=M+iKkXF9461iZERx2UooQXP_w@mail.gmail.com> (raw)
In-Reply-To: <CAJ0EP43LQscOmZ3A0bB=YtmJp=WbezYffLhcQgwH0KQu-C2mVg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1468 bytes --]
On Mon, Aug 6, 2018 at 3:51 PM, Mike Gilbert <floppym@gentoo.org> wrote:
> On Mon, Aug 6, 2018 at 3:35 PM Vadim A. Misbakh-Soloviov
> <gentoo@mva.name> wrote:
> >
> > В письме от понедельник, 6 августа 2018 г. 22:13:49 MSK пользователь
> Ulrich
> > Mueller написал:
> > > >>>>> On Mon, 6 Aug 2018, Mike Gilbert wrote:
> > > > -DEPEND="virtual/pkgconfig"
> > > > +if [[ ${EAPI} == [0123456] ]]; then
> > >
> > > This should use ${EAPI:-0} because for EAPI 0 the variable can be
> > > empty.
> > >
> > > > + DEPEND="virtual/pkgconfig"
> > > > +else
> > > > + BDEPEND="virtual/pkgconfig"
> > > > +fi
> >
> > And how about "-le"/"-lt"/"-ge"/"-gt"/"-eq" syntax?
> > Or even ((EAPI<7))?
> > Are they forbidden to use in eclasses?
>
> If I recall correctly, EAPI values are not required to be numeric, and
> are not required to increase in any predictable manner. They only do
> so by convention.
>
They do not even do so by convention; there are numerous EAPIs in the wild
that are non-numeric.
-A
>
> > Anyway, I think, it is possible to add something like "EAPI=${EAPI:-0}"
> > somewhere at the top of eclass, to don't call "${EAPI:-0}" each time
> when EAPI
> > variable is needed.
>
> Re-assigning EAPI within an eclass seems like a bad idea to me.
>
> A better solution would be to ban ebuilds with no defined EAPI, but
> that's outside the scope of this patch.
>
>
[-- Attachment #2: Type: text/html, Size: 2324 bytes --]
next prev parent reply other threads:[~2018-08-06 20:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-06 18:09 [gentoo-dev] [PATCH] systemd.eclass: set BDEPEND for EAPI 7 Mike Gilbert
2018-08-06 19:13 ` Ulrich Mueller
2018-08-06 19:35 ` Vadim A. Misbakh-Soloviov
2018-08-06 19:51 ` Mike Gilbert
2018-08-06 20:09 ` Alec Warner [this message]
2018-08-06 20:23 ` Toralf Förster
2018-08-09 12:22 ` Michael Orlitzky
2018-08-06 19:51 ` Ulrich Mueller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAAr7Pr9uGEQmMi2_tJS2udJS=M+iKkXF9461iZERx2UooQXP_w@mail.gmail.com' \
--to=antarus@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox