From: Andreas Sturmlechner <asturm@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] [PATCH v3 1/2] xdg.eclass: add EAPI 8 support
Date: Wed, 11 Aug 2021 14:40:50 +0200 [thread overview]
Message-ID: <2036961.9o76ZdvQCi@tuxbook> (raw)
In-Reply-To: <207455ff-2d55-6ec4-6e7a-e04aa5ba08a0@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 921 bytes --]
On Mittwoch, 11. August 2021 13:54:19 CEST Florian Schmaus wrote:
> On 10/08/2021 10.31, Andreas Sturmlechner wrote:
> > On Montag, 9. August 2021 20:32:07 CEST Florian Schmaus wrote:
> >> +if ${_DEFINE_XDG_SRC_PREPARE}; then
> >
> > You don't need an extra variable for that:
> >
> > if [[ ${EAPI} == [567] ]]; then
>
> Thanks for the suggestion, but I prefer the current approach.
>
> It avoids that someone later drops support for EAPI 5 and forgets
> adjusting all the cases where it is mentioned. I think your other
> suggestion, that dropping EAPI 4 in xdg_src_prepare() when removing
> support for EAPI 4 was forgotten, somehow reinforces my point. :)
Not really. Having to search for EAPI in the code is obvious when cleaning up
EAPI, and is standard across many eclasses. If you miss that, you could just
as well have _DEFINE_XDG_SRC_PREPARE linger on below after cleaning up the
initialisation.
Regards
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 618 bytes --]
prev parent reply other threads:[~2021-08-11 12:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-15 11:19 [gentoo-dev] [PATCH] xdg.eclass: add EAPI 8 support Florian Schmaus
2021-07-15 12:03 ` Ulrich Mueller
2021-07-15 13:22 ` Mart Raudsepp
2021-07-15 13:00 ` Ionen Wolkens
2021-07-15 13:23 ` Ulrich Mueller
2021-07-15 13:29 ` Ionen Wolkens
2021-07-15 18:17 ` Mike Gilbert
2021-07-21 15:08 ` [gentoo-dev] [PATCH v2] " Florian Schmaus
2021-07-21 16:37 ` Ulrich Mueller
2021-08-03 11:40 ` Mart Raudsepp
2021-08-09 18:32 ` [gentoo-dev] [PATCH v3 1/2] " Florian Schmaus
2021-08-09 18:32 ` [gentoo-dev] [PATCH v3 2/2] xdg.eclass: drop support for EAPI 4 Florian Schmaus
2021-08-10 18:21 ` Andreas Sturmlechner
2021-08-10 8:31 ` [gentoo-dev] [PATCH v3 1/2] xdg.eclass: add EAPI 8 support Andreas Sturmlechner
2021-08-11 11:54 ` Florian Schmaus
2021-08-11 12:40 ` Andreas Sturmlechner [this message]
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=2036961.9o76ZdvQCi@tuxbook \
--to=asturm@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