public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Andrew Savchenko <bircoph@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] [PATCH] subversion.eclass: support for EAPI 6
Date: Mon, 22 Aug 2016 16:26:35 +0300	[thread overview]
Message-ID: <20160822162635.a5f536e3e82c0629a9dfa5cf@gentoo.org> (raw)
In-Reply-To: <CAGDaZ_pt=ncTuuNrdBxSrJxm0n91SdUGJ7Jj8SGaUsE+QwW-QA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2695 bytes --]

On Sat, 20 Aug 2016 09:42:51 -0700 Raymond Jennings wrote:
> Just an FYI, games-emulation/dosbox tripped over this recently.

It should not call subversion_src_prepare() in EAPI 6 ebuild.
Please file a bug for this issue for dosbox maintainers. I can't
help you here.

> On Sat, Aug 6, 2016 at 7:05 AM, Andrew Savchenko <bircoph@gentoo.org> wrote:
> 
> > Hi,
> >
> > On Sat, 30 Jul 2016 12:34:07 +0300 Andrew Savchenko wrote:
> > > On Sat, 30 Jul 2016 07:37:08 +0200 Michał Górny wrote:
> > > > > @@ -116,7 +123,8 @@ ESVN_PROJECT="${ESVN_PROJECT:-${PN/-svn}}"
> > > > >
> > > > >  # @ECLASS-VARIABLE: ESVN_BOOTSTRAP
> > > > >  # @DESCRIPTION:
> > > > > -# bootstrap script or command like autogen.sh or etc..
> > > > > +# Bootstrap script or command like autogen.sh or etc..
> > > > > +# Removed in EAPI 6 and later.
> > > > >  ESVN_BOOTSTRAP="${ESVN_BOOTSTRAP:-}"
> > > > >
> > > > >  # @ECLASS-VARIABLE: ESVN_PATCHES
> > > > > @@ -127,6 +135,8 @@ ESVN_BOOTSTRAP="${ESVN_BOOTSTRAP:-}"
> > > > >  #
> > > > >  # Patches are searched both in ${PWD} and ${FILESDIR}, if not found
> > in either
> > > > >  # location, the installation dies.
> > > > > +#
> > > > > +# Removed in EAPI 6 and later, use PATCHES instead.
> > > > >  ESVN_PATCHES="${ESVN_PATCHES:-}"
> > > >
> > > > It would be a good idea to check if the variables are set and die if
> > > > they are, so people don't accidentally use them.
> > >
> > > Impossible to implement. These variables (as well as all other
> > > ESVN_* variables) are usually set after subversion eclass is
> > > inherited. And even if I'll duplicate this check in all available
> > > functions (which is ridiculous by itself), it still will not help,
> > > since several functions are removed from EAPI 6 and people may
> > > rely on default behaviour of src_prepare() alone.
> > >
> > > > >  # @ECLASS-VARIABLE: ESVN_RESTRICT
> > > > > @@ -355,7 +365,10 @@ subversion_fetch() {
> > > > >  # @FUNCTION: subversion_bootstrap
> > > > >  # @DESCRIPTION:
> > > > >  # Apply patches in ${ESVN_PATCHES} and run ${ESVN_BOOTSTRAP} if
> > specified.
> > > > > +# Removed in EAPI 6 and later.
> > > > >  subversion_bootstrap() {
> > > > > + has "${EAPI:-0}" 6 && die "${FUNCNAME[1]} is removed from
> > subversion.eclass in EAPI 6 and later"
> > > > > +
> > > >
> > > > Reverse the logic. This will require updating in every EAPI while it is
> > > > rather unlikely the next EAPIs will return to previous behavior.
> > >
> > > Done.
> >
> > No further comments for a week => in the tree now.
> > Thank you for review.
> >
> > Best regards,
> > Andrew Savchenko
> >


Best regards,
Andrew Savchenko

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

      reply	other threads:[~2016-08-22 13:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-29 15:31 [gentoo-dev] [PATCH] subversion.eclass: support for EAPI 6 Andrew Savchenko
2016-07-29 15:42 ` Michał Górny
2016-07-29 19:36   ` Andrew Savchenko
2016-07-30  5:37     ` Michał Górny
2016-07-30  9:34       ` Andrew Savchenko
2016-08-06 14:05         ` Andrew Savchenko
2016-08-20 16:42           ` Raymond Jennings
2016-08-22 13:26             ` Andrew Savchenko [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=20160822162635.a5f536e3e82c0629a9dfa5cf@gentoo.org \
    --to=bircoph@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