Gentoo Archives: gentoo-portage-dev

From: Mike Gilbert <floppym@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] eapply: Drop -s option for patch.
Date: Fri, 13 Dec 2019 14:06:33
Message-Id: CAJ0EP40XRxYQFb-t6Yx-6DtY53eXZdTJoext5qtXOCgNsfB19Q@mail.gmail.com
In Reply to: Re: [gentoo-portage-dev] [PATCH] eapply: Drop -s option for patch. by "Michał Górny"
1 On Fri, Dec 13, 2019 at 8:52 AM Michał Górny <mgorny@g.o> wrote:
2 >
3 > On Fri, 2019-12-13 at 08:47 -0500, Mike Gilbert wrote:
4 > > On Thu, Dec 12, 2019 at 3:15 PM Ulrich Mueller <ulm@g.o> wrote:
5 > > > > > > > > On Thu, 12 Dec 2019, Mike Gilbert wrote:
6 > > > > I think this should be reverted. It causes too much noise, and
7 > > > > "solves" a problem only very rarely.
8 > > >
9 > > > Now, how many lines of output does this typically produce, compared
10 > > > to the total size of a typical build log? Especially with mgorny's
11 > > > subsequent modification, which suppresses the output unless the patch
12 > > > doesn't apply cleanly.
13 > >
14 > > In most cases, I would be inclined to simply ignore the patch output
15 > > since there's really no need for me to take any action on it.
16 > >
17 > > On the other hand, it makes it more difficult to quickly identify the
18 > > list of patches being applied if there is junk output in the middle of
19 > > the list.
20 > >
21 > > > It was also suggested that we add -F0 in EAPI 8, but that would break
22 > > > the build in those cases that are producing extra output now. I don't
23 > > > think that would be preferable.
24 > >
25 > > I am opposed to including such a change in EAPI 8. It would make
26 > > ebuild maintenance more difficult for everyone, and I don't think the
27 > > potential benefit is worth it.
28 >
29 > ...and why do we consider it correct to apply patches when the context
30 > doesn't match? If our only goal is to make things 'easier' for
31 > 'everyone', then we could just pass -F9999 and ignore all the context.
32 >
33 > Though I don't understand why include any context in the first place if
34 > you don't care about it matching. Sounds like a waste of space to me!
35
36 The patch command defaults to -F2. If that makes no sense, why is it
37 the upstream default?

Replies

Subject Author
Re: [gentoo-portage-dev] [PATCH] eapply: Drop -s option for patch. "Michał Górny" <mgorny@g.o>