Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o, Mike Gilbert <floppym@g.o>
Cc: Michael Orlitzky <mjo@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH v2] eapply: Output verbosely only if patch fails to apply with -F0
Date: Sat, 14 Dec 2019 08:58:46
Message-Id: d648eea12fe5f91899e62968efa56de457c8be05.camel@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH v2] eapply: Output verbosely only if patch fails to apply with -F0 by Ulrich Mueller
1 On Fri, 2019-12-13 at 23:49 +0100, Ulrich Mueller wrote:
2 > > > > > > On Fri, 13 Dec 2019, Mike Gilbert wrote:
3 > > > > It also triggers pointless bug reports. Please remove this.
4 > > >
5 > > > I don't like that eqawarn either (see above).
6 > > >
7 > > > OTOH, users shouldn't normally have "qa" in PORTAGE_ELOG_CLASSES,
8 > > > so they won't see the warning?
9 > > Here's a bug report filed by a user, which is what prompted me to
10 > > reply on this thread in the first place.
11 > > https://bugs.gentoo.org/702608
12 >
13 > Well then, trivial patch included below.
14 >
15 >
16 > From 81000b32d330a1cc41a4541f7e4264918eb7e6c5 Mon Sep 17 00:00:00 2001
17 > From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@g.o>
18 > Date: Fri, 13 Dec 2019 23:41:23 +0100
19 > Subject: [PATCH] eapply: Drop QA warning for fuzz factor.
20 > MIME-Version: 1.0
21 > Content-Type: text/plain; charset=UTF-8
22 > Content-Transfer-Encoding: 8bit
23 >
24 > This didn't add any information beyond what is already present in the
25 > output of patch. Developers will know how to interpret its output, and
26 > users won't see the warning anyway with the standard configuration.
27 >
28 > Signed-off-by: Ulrich Müller <ulm@g.o>
29 > ---
30 > bin/phase-helpers.sh | 2 --
31 > 1 file changed, 2 deletions(-)
32 >
33 > diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
34 > index b5691bd70..020862ba0 100644
35 > --- a/bin/phase-helpers.sh
36 > +++ b/bin/phase-helpers.sh
37 > @@ -1004,8 +1004,6 @@ if ___eapi_has_eapply; then
38 > if ${patch_cmd} "${all_opts[@]}" --dry-run -s -F0 \
39 > < "${f}" &>/dev/null; then
40 > all_opts+=( -s -F0 )
41 > - else
42 > - eqawarn " ${f}: patch failed to apply without a fuzz factor, please rebase"
43 > fi
44 >
45 > ${patch_cmd} "${all_opts[@]}" < "${f}"
46
47 Actually, I added that because of your comment that people should be
48 rebasing patches rather than removing context.
49
50 --
51 Best regards,
52 Michał Górny

Attachments

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

Replies