From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] RFC: package patching
Date: Thu, 17 Nov 2011 21:23:05 +0000 [thread overview]
Message-ID: <201111172123.05834.arnout@mind.be> (raw)
In-Reply-To: <CAAXf6LW_qTUwtbdC+QjYnUAd1w5gZ4H55-6+G1Gnt3NV-s4F5w@mail.gmail.com>
On Thursday 17 November 2011 13:05:47 Thomas De Schampheleire wrote:
> How does a version-bumper currently go about? How is he supposed to
> know whether a patch is still valid or not?
I've never bumped a version so I can't be sure, but I expect the procedure
is like this:
1. Bump version number
2. Rename all patches to the new version number
3. make pkg-patch and conflicts or fuzz
4. Remove or modify patches as needed
5. Build and test
> Although you are right that there is no such thing as a generic patch,
> I still feel there is a conceptual difference between:
> * modifications intended for all versions of a package, for example
> modifications that we know will never go upstream because they are
> buildroot-specific, and
Really buildroot-specific patches shouldn't exist. It means that either
the package or buildroot is broken (usually the former). It's more likely
that a patch never goes upstream because upstream just doesn't care
about cross-compilation, or because no buildroot developer pushes it.
> * modifications which are intended for a specific version, for example
> a backport of a change that was already fixed in a later version.
Only in this case I think it makes sense to include a version number in
the patch. But what is actually important in that case is the version
number from which it was backported, not the version number to which
it applies...
With that in mind, I would propose a format like this for backport
patches:
<pkg>-<seqno>-from_<nextversion>-description-of-the-patch
> To remove our reliance on 'luck', I agree it may be best to add
> version numbers to either type of patch. If a package has multiple
> versions, the patch may simply be duplicated with separate version
> numbers .
I think ThomasP meant that it is best to _remove_ the version numbers.
A version bumper will most likely try to take along all patches anyway, so
putting a version number is just increasing the diffstat. Without version
numbers, the diffstat will show much better which patches could be
removed, which ones were added and which ones needed to be modified.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43
next prev parent reply other threads:[~2011-11-17 21:23 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-15 8:33 [Buildroot] RFC: package patching Thomas De Schampheleire
2011-11-15 8:45 ` Peter Korsgaard
2011-11-15 19:14 ` Arnout Vandecappelle
2011-11-15 21:28 ` Thomas Petazzoni
2011-11-16 6:18 ` Sergey Naumov
2011-11-16 6:50 ` Thomas De Schampheleire
2011-11-16 6:44 ` Thomas De Schampheleire
2011-11-16 18:03 ` Thomas Petazzoni
2011-11-17 13:05 ` Thomas De Schampheleire
2011-11-17 21:23 ` Arnout Vandecappelle [this message]
2011-11-17 21:42 ` Thomas Petazzoni
2011-11-18 6:53 ` Thomas De Schampheleire
2011-11-18 7:05 ` Thomas Petazzoni
2011-11-18 7:34 ` Peter Korsgaard
2011-11-18 9:26 ` Thomas De Schampheleire
2011-11-18 12:24 ` Michael S. Zick
2011-11-18 19:44 ` Arnout Vandecappelle
2011-11-18 19:27 ` Arnout Vandecappelle
2011-11-19 9:26 ` Bjørn Forsman
2011-11-19 12:13 ` Arnout Vandecappelle
2011-11-18 16:41 ` Thomas Petazzoni
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=201111172123.05834.arnout@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/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