public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Steven J. Long" <slong@rathaus.eclipse.co.uk>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Re: [gentoo-kernel] Proper distribution integration of kernel *-sources, patches and configuration.
Date: Thu, 4 Jul 2013 06:27:59 +0100	[thread overview]
Message-ID: <20130704052759.GB13271@rathaus.eclipse.co.uk> (raw)
In-Reply-To: <20130703144256.68e4aef8@TOMWIJ-GENTOO>

Tom Wijsman wrote:
> "Steven J. Long" wrote:
> > If it does [affect the build by default] then it should never be
> > applied, unless the user specifically asks for it, imo, and the
> > resultant kernel is labelled -exp as you suggest.
> 
> Yes, we are going to introduce an experimental USE flag for this.

That's for the over-arching set of patches isn't it? Which takes care of
the labelling.
 
> > > It's just a matter of embedding each + block in the diff with a
> > > config check and updating the counts.
..
> > > I can convert the original developer's patch whenever he updates
> > > it; or on top of that, write a script to generate the original
> > > patch back.

> > Please, just keep a copy of the original patch as well as the modified
> > output from the script, somewhere reasonable to you, if you are doing
> > any editing. Traceability is essential here.
> 
> The need to keep duplicates around is a broken design; if you would
> need to do this, there is something worse going on.

There is indeed: there's major changes to other parts of the kernel tree,
even when the patch's configuration options are set to off, as they are
by default (or must be in the Gentoo experimental config patch.) That's
the reason they were not accepted, as has been discussed earlier in the
thread.

> But yes, some git branches can easily cover the editing part.

I think a lot of these things are checks that should happen before patches
are included, and on every upgrade. So we need to separate out what the
developer/ebuild-maintainer has to do to prepare files/, and what needs
to happen in the ebuild itself.

> > Personally I think it ill-advised, and would prefer simply that the
> > patch were not applied if the above process in your testing prior to
> > usage, showed that it would affect other parts of the build
> > inappropriately, even when configured off. Or it's known to do so,
> > like aufs.
> 
> Maybe, we can hear whether the patch authors want to do something about
> this, so we don't have to convert patches like this; maybe most of them
> are willing to do this without a problem.

The conversation is definitely worth having. Especially if Gentoo runs
automated tests on the patchsets to verify previously "safe" patches
are still safe to apply unconditionally, ie that all changes are #ifdef
or #if guarded.

> Though, there are going to be
> parts that they want to unconditionally apply, which is why we will
> need to wrap those parts with a check.

Indeed; upstream patch authors are not going to suddenly change, especially
with the known-troublesome cases, while there is still the need to make
the patches available to users who would otherwise be applying them
without Gentoo -exp labelling.

> > Unless of course the user specifically requests it. This can be a
> > simple variable with a list of required patches, or whatever.
> 
> With USE=-experimental (which will be the default) they are excluded by
> default, after enabling that the user can exclude patches by setting
> UNIPATCH_EXCLUDE through the package.env mechanism.

I'd feel happier if certain patches, the troublesome ones discussed, had
to be explicity enabled, before the configuration options and the patch
to kernel files took place. Perhaps via UNIPATCH_INCLUDE or USE=aufs.

Regards,
steveL.
-- 
#friendly-coders -- We're friendly, but we're not /that/ friendly ;-)


  parent reply	other threads:[~2013-07-04  5:26 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-01 14:41 [gentoo-dev] Proper distribution integration of kernel *-sources, patches and configuration Tom Wijsman
2013-07-01 15:14 ` Ben de Groot
2013-07-01 15:20 ` [gentoo-dev] Re: [gentoo-kernel] " Jeff Horelick
2013-07-01 18:30   ` Anthony G. Basile
2013-07-01 19:07     ` Tom Wijsman
2013-07-01 19:24     ` Greg KH
2013-07-01 19:40       ` Tom Wijsman
2013-07-01 19:55         ` Fabio Erculiani
2013-07-01 19:59           ` Pacho Ramos
2013-07-01 20:03             ` Fabio Erculiani
2013-07-01 20:06           ` Tom Wijsman
2013-07-01 20:24           ` Christoph Junghans
2013-07-01 20:27             ` Fabio Erculiani
2013-07-01 20:25           ` Rick "Zero_Chaos" Farina
2013-07-01 21:18       ` Anthony G. Basile
2013-07-01 16:20 ` [gentoo-dev] " Rick "Zero_Chaos" Farina
2013-07-01 16:28   ` hasufell
2013-07-01 17:35   ` Tom Wijsman
2013-07-01 17:52     ` Rick "Zero_Chaos" Farina
2013-07-05  0:19       ` Mike Pagano
2013-07-17 21:11         ` Donnie Berkholz
2013-07-01 18:17 ` [gentoo-dev] Re: [gentoo-kernel] " Greg KH
2013-07-01 18:38   ` Markos Chandras
2013-07-01 18:56     ` Tom Wijsman
2013-07-01 19:09       ` Matthew Summers
2013-07-01 19:25         ` Tom Wijsman
2013-07-01 19:33           ` Greg KH
2013-07-01 19:50             ` Tom Wijsman
2013-07-03 10:45               ` [gentoo-dev] " Steven J. Long
2013-07-03 12:42                 ` Tom Wijsman
2013-07-04  2:00                   ` Walter Dnes
2013-07-04  5:37                     ` [gentoo-dev] " Steven J. Long
2013-07-04  7:41                     ` [gentoo-dev] " Tom Wijsman
2013-07-04  5:27                   ` Steven J. Long [this message]
2013-07-04  7:57                     ` [gentoo-dev] " Tom Wijsman
2013-07-05  8:38                       ` Steven J. Long
2013-07-05  9:04                         ` Tom Wijsman
2013-07-09 15:12                           ` Steven J. Long
2013-07-01 20:14         ` Markos Chandras
2013-07-01 20:25           ` Fabio Erculiani
2013-07-01 21:26             ` Anthony G. Basile
2013-07-01 21:30               ` Fabio Erculiani
2013-07-01 21:55                 ` Anthony G. Basile
2013-07-01 20:31           ` Tom Wijsman
2013-07-01 18:45   ` Tom Wijsman
2013-07-01 19:23     ` Greg KH
2013-07-01 19:33       ` Tom Wijsman
2013-07-01 21:17       ` Anthony G. Basile
2013-07-01 21:24         ` Greg KH
2013-07-01 21:53           ` Anthony G. Basile
2013-07-02  8:31             ` gentoo-checkconf script " Michael Weber
2013-07-03 11:40               ` [gentoo-dev] Re: gentoo-checkconf script " Steven J. Long
2013-07-01 21:55           ` [gentoo-dev] " Tom Wijsman
2013-07-02  1:36       ` Richard Yao
2013-07-02  1:44         ` Richard Yao
2013-07-02  1:56         ` Greg KH
2013-07-02  3:29           ` Richard Yao
2013-07-02  3:40             ` Richard Yao
2013-07-02 19:39             ` Greg KH
2013-07-02  3:31           ` Richard Yao
2013-07-02  7:36 ` [gentoo-dev] " Sergei Trofimovich
2013-07-02  8:21   ` Fabio Erculiani
2013-07-02  8:37     ` Michael Weber
2013-07-02  8:52       ` Michael Weber
2013-07-02 18:16     ` Sergei Trofimovich
2013-07-03 13:06       ` Tom Wijsman
2013-07-03 13:52         ` Sergei Trofimovich
2013-07-03 15:18           ` Tom Wijsman
2013-07-03 16:10             ` Sergei Trofimovich
2013-07-02 10:08   ` Tom Wijsman
2013-07-02 21:48 ` Tomáš Pružina

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=20130704052759.GB13271@rathaus.eclipse.co.uk \
    --to=slong@rathaus.eclipse.co.uk \
    --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