Gentoo Archives: gentoo-portage-dev

From: Michael 'veremitz' Everitt <gentoo@×××××××.xyz>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] eapply: Drop -s option for patch.
Date: Fri, 13 Dec 2019 22:04:40
Message-Id: c2238c06-6954-a05b-f3d8-fbc8cd914d0d@veremit.xyz
In Reply to: Re: [gentoo-portage-dev] [PATCH] eapply: Drop -s option for patch. by "Michał Górny"
1 On 13/12/19 21:59, Michał Górny wrote:
2 > On Fri, 2019-12-13 at 21:56 +0000, Michael 'veremitz' Everitt wrote:
3 >> On 13/12/19 21:42, Michał Górny wrote:
4 >>> On Fri, 2019-12-13 at 16:37 -0500, Mike Gilbert wrote:
5 >>>> On Fri, Dec 13, 2019 at 3:36 PM Michał Górny <mgorny@g.o> wrote:
6 >>>>> Just like 'many of the proposals lately', developers are going to be
7 >>>>> the ones disabling it (because they don't care), and users will be the
8 >>>>> ones enabling it (because they do care), just to learn that developers
9 >>>>> don't care and go complaining to the mailing lists that users dare
10 >>>>> report issues they don't care about.
11 >>>> I care if the patch is actually broken, which the warning doesn't
12 >>>> really tell me. It's just not a very reliable indicator, and will
13 >>>> produce false-positives frequently.
14 >>>>
15 >>> You can also take less context into the patch and use -F0. Then you'll
16 >>> have the same effect, no warnings to bother you and no pretending that
17 >>> the patch applies when it doesn't.
18 >>>
19 >> Is there any mileage in having a similar scheme to which we already apply
20 >> '-p' increments to the -F variable?
21 >> eg.
22 >> 1) attempt patch with -F0
23 >> 2) if (1) fails, attempt with -F2/3 & display 'yellow' warning & QA notice
24 > That is precisely what my patch does and what people are complaining
25 > about.
26 Ah, apologies for the failure to grok.
27
28 Tangentially, but also brought up on the thread, I'm actually even
29 moderately concerned about the ghost seds that may never apply. Topic for
30 another thread though I feel.
31 >> 3) if (2) fails, attempt with, say, -F10 & display big fat 'red' warning
32 >> and QA notice
33 > That makes no sense as it exceeds context provided in most patches.
34 >
35 Fair .. hadn't thought of that - depends very much if you're using unified
36 diffs, which I believe we largely are.

Attachments

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