public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ulrich Mueller <ulm@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] [PATCH] eutils.eclass: Show death notice only when user patches were really applied
Date: Mon, 22 Aug 2016 13:16:28 +0200	[thread overview]
Message-ID: <22458.57100.705640.712139@a1i15.kph.uni-mainz.de> (raw)
In-Reply-To: <143d120d-0628-e255-2428-b27ec3f4f4ac@gentoo.org>

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

>>>>> On Mon, 22 Aug 2016, Thomas Deutschmann wrote:

> On 2016-08-22 09:30, Ulrich Mueller wrote:
>> I wonder if extending an obsolete feature is worth the effort.
>> In EAPI 6, epatch_user has been replaced by eapply_user.

> Well, I created the patch in November 2015 but never submitted it.
> Yesterday someone in #gentoo-dev also asked about that
> false-positive warning...

> Yes, EAPI >=6 doesn't have this problem anymore. But many system
> packages won't migrate to EAPI=6 very soon. So this irritating
> warning will stay for the next years if we don't fix it. And because
> it is an easy fix... isn't it?

Sure, it is an easy fix. However, it is not without cost, as it adds
another variable to global scope of all ebuilds inheriting eutils.
Even in EAPI 6 where epatch_user will not be used.

>>> +		: $(( EPATCH_N_APPLIED_PATCHES++ ))
>> 
>> Why not simply:
>> (( EPATCH_N_APPLIED_PATCHES++ ))

> When I created the patch I tried to use the same coding style. See

>> : $(( count++ ))

> two lines above.

git blame point to the following commit:
2975c21ee (Mike Frysinger 2010-01-09 20:06:24 +0000  595) : $(( count++ ))

Looks like this was missed during eclass review back then. (I cannot
find anything in the mailing list archives, though. Can anyone provide
a pointer?)

> Can I keep this or should I change?

*shrug* It's a tiny issue.

Ulrich

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

  reply	other threads:[~2016-08-22 11:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-21 22:14 [gentoo-dev] [PATCH] eutils.eclass: Show death notice only when user patches were really applied Thomas Deutschmann
2016-08-22  7:30 ` Ulrich Mueller
2016-08-22 10:11   ` Thomas Deutschmann
2016-08-22 11:16     ` Ulrich Mueller [this message]
2016-08-22 11:48       ` Michał Górny
2016-08-22 17:29 ` [gentoo-dev] [PATCH v2] " Thomas Deutschmann
2016-08-23 17:25   ` [gentoo-dev] [PATCH v3] " Thomas Deutschmann
2016-08-23 17:25     ` Thomas Deutschmann
2016-08-31 16:46       ` Thomas Deutschmann

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=22458.57100.705640.712139@a1i15.kph.uni-mainz.de \
    --to=ulm@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