From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] (no subject)
Date: Sat, 29 Dec 2012 15:32:51 +0100 [thread overview]
Message-ID: <20121229153251.6bdfecfe@skate> (raw)
In-Reply-To: <50DEFA7A.7020002@petroprogram.com>
Dear Stefan Fr?berg,
On Sat, 29 Dec 2012 16:13:14 +0200, Stefan Fr?berg wrote:
> Thomas, can you tell a git newbie like me how to make single patch but
> still keeping that Signed-off line in
> each logical file in that single one patch ?
I am not sure to understand your question. I think you're confusing the
SoB line in the Buildroot patch with the SoB line in the patches that
apply on mesa3d, aren't you?
So basically, your final patch should look like this:
=======================================================================
mesa3d: bump to version 8.0.5
Here you explain that you're bumping to 8.0.5, and that it requires new
patches, for this reason and that reason, and blablabla.
Signed-off-by: Stefan Fr?berg <...>
---
Here git will generate the diff-stat of your overall patch
diff --git a/package/x11r7/mesa3d/mesa3d.mk b/package/x11r7/mesa3d/mesa3d.mk
index ...
--- a/package/x11r7/mesa3d/mesa3d.mk
+++ b/package/x11r7/mesa3d/mesa3d.mk
... here your changes to mesa3d.mk
diff --git a/package/x11r7/mesa3d/mesa3d-01-something.patch b/package/x11r7/mesa3d/mesa3d-01-something.patch
index ...
--- /dev/null
+++ b/package/x11r7/mesa3d/mesa3d-01-something.patch
+ mesa3d: fix something
+
+ This is the description of the mesa3d-01-something.patch. You explain
+ what you are doing here.
+
+ Signed-off-by: Stefan Fr?berg <...>
+
+ ... here your mesa3d-01-something.patch ...
diff --git a/package/x11r7/mesa3d/mesa3d-02-something-else.patch b/package/x11r7/mesa3d/mesa3d-02-something-else.patch
index ...
--- /dev/null
+++ b/package/x11r7/mesa3d/mesa3d-02-something-else.patch
+ mesa3d: fix something else
+
+ This is the description of the mesa3d-02-something-else.patch. You explain
+ what you are doing here.
+
+ Signed-off-by: Stefan Fr?berg <...>
+
+ ... here your mesa3d-02-something-else.patch ...
=======================================================================
And that's it. See the recently posted "[Buildroot] [PATCH 20/20]
enlightenment: new package" e-mail. It adds enlightenment.mk and
contains a patch to it.
Basically you need *one* Signed-off-by in the commit log of the Git
patch that applies to Buildroot. And then one Signed-off-by per patch
that you're applying to mesa3d, but those Signed-off-by are *inside*
the patch applied to mesa3d, not in the commit log of the Git patch
applied to Buildroot.
> So far I have done the following:
>
> create branch
>
> make some changes
> git add those_changes
> git commit -s -m "description"
>
> repeat the previous three if necessary
>
> git format-patch -M master
>
> git send-email .......
Yes, that's correct, except that your patches should not be separated,
because they are altogether needed to make mesa3d build correctly. You
have correctly understood the rule that patches should be split as much
as possible in little pieces to ease the review. But you forgot the
rule that the build process should not be broken between patches, even
patches of the same set.
So basically, now you have a branch with 5 commits. So, what you are
going to do is:
1) Got into this branch
git checkout yourbranch
2) Do an interactive rebase of your branch
git rebase -i master
3) A text editor will open, with 5 lines, corresponding to your five
commits. Each line will start with the word "pick". Keep this "pick"
action for the first line, but for the four next lines, change "pick"
to "squash", and exit your text editor.
4) Git will merge your four patches into the first one, leaving at the
end only one patch. In the process, it will open a text editor to
allow you to edit the commit message of the first patch.
And that's it.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2012-12-29 14:32 UTC|newest]
Thread overview: 98+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-29 1:45 [Buildroot] (no subject) Stefan Fröberg
2012-12-29 1:45 ` [Buildroot] [PATCH 1/5] mesa3d: bumped to 8.0.5 Stefan Fröberg
2012-12-29 8:06 ` Thomas Petazzoni
2012-12-29 13:06 ` Stefan Fröberg
2012-12-29 1:45 ` [Buildroot] [PATCH 2/5] " Stefan Fröberg
2012-12-29 8:07 ` Thomas Petazzoni
2012-12-29 1:45 ` [Buildroot] [PATCH 3/5] " Stefan Fröberg
2012-12-29 8:08 ` Thomas Petazzoni
2012-12-29 1:45 ` [Buildroot] [PATCH 4/5] " Stefan Fröberg
2012-12-29 1:45 ` [Buildroot] [PATCH 5/5] " Stefan Fröberg
2012-12-29 8:08 ` Thomas Petazzoni
2012-12-29 7:59 ` [Buildroot] (no subject) Thomas Petazzoni
2012-12-29 14:13 ` Stefan Fröberg
2012-12-29 14:32 ` Thomas Petazzoni [this message]
2012-12-29 14:56 ` Stefan Fröberg
2012-12-29 15:23 ` [Buildroot] (no subject) git format-patch Carsten Schoenert
2012-12-29 15:31 ` Stefan Fröberg
2012-12-29 16:15 ` [Buildroot] Generating patches against packages source code Thomas Petazzoni
2012-12-29 16:54 ` Stefan Fröberg
2012-12-29 17:09 ` Richard Braun
2012-12-29 17:13 ` Thomas Petazzoni
2012-12-29 17:33 ` Richard Braun
2012-12-29 18:03 ` Yann E. MORIN
2012-12-29 18:39 ` Thomas Petazzoni
2012-12-29 19:04 ` Stefan Fröberg
2012-12-29 19:56 ` Yann E. MORIN
2012-12-29 20:18 ` Stefan Fröberg
2012-12-29 19:52 ` Yann E. MORIN
-- strict thread matches above, loose matches on Subject: below --
2025-05-03 13:52 [Buildroot] (no subject) Joseph Zikusooka (ZIK)
2023-03-15 8:51 Luke D. Jones
2023-02-18 10:16 Bagas Sanjaya
2023-02-18 10:17 ` Bagas Sanjaya
2023-01-28 9:41 [Buildroot] [PATCH 1/1] package/oatpp:: new package Alessandro Partesotti
2023-01-31 20:00 ` [Buildroot] (no subject) Alessandro Partesotti
2022-04-04 13:03 Edmundo Ferreira
2020-10-26 21:31 Augustin Thiercelin
2020-06-09 22:41 Norbert Lange
2020-06-05 22:27 Kurdenes
2020-06-05 22:26 Kurdenes
2020-05-06 13:11 Norbert Lange
2019-07-04 12:36 Vered Kalef
2019-01-21 14:35 Bedran Atug
2017-03-02 15:27 Benoît Allard
2016-09-28 12:41 Waldemar Brodkorb
2016-09-28 13:48 ` Thomas Petazzoni
2016-02-21 1:58 Ricardo Martincoski
2015-08-13 14:11 [Buildroot] [PATCH] [autobuild] package/libiio: tests need threads Yann E. MORIN
2015-08-13 19:02 ` Baruch Siach
2015-08-13 19:07 ` [Buildroot] (no subject) Yann E. MORIN
2015-05-09 17:13 Florent Valette
2014-11-30 21:19 Ja Bi
2013-11-20 22:09 chris at zankel.net
2013-11-21 22:26 ` Arnout Vandecappelle
2013-11-20 22:09 chris at zankel.net
2013-11-20 22:09 chris at zankel.net
2013-11-20 22:28 ` Chris Zankel
2012-12-20 3:10 Stefan Fröberg
2012-12-11 14:06 Ted Wood
2012-12-11 14:14 ` Berns
2012-12-11 14:28 ` Ted Wood
2012-07-26 10:56 Zoran Djordjevic
2012-07-26 11:44 ` Thomas Petazzoni
2012-07-16 3:00 Danomi Manchego
2012-07-16 2:59 Danomi Manchego
2012-07-09 9:22 Zoran Djordjevic
2012-07-13 21:06 ` Thomas Petazzoni
2012-05-23 21:02 [Buildroot] [PATCH] New package: freerdp Peter Korsgaard
2012-05-23 21:41 ` [Buildroot] (no subject) Julian Lunz
2012-03-19 19:52 Justin Mark
2012-03-16 10:36 Vellemans, Noel
2012-03-18 15:29 ` Arnout Vandecappelle
2012-03-18 15:56 ` Thomas Petazzoni
2012-03-13 17:02 oilehus at yahoo.com
2012-02-22 12:16 Tobias Arp
2012-02-13 21:05 [Buildroot] Bug/Typo in ffmpeg.mk universeII at gmx.de
2012-02-13 21:28 ` Peter Korsgaard
[not found] ` <20120325133208.166570@gmx.net>
2012-03-25 15:04 ` [Buildroot] (no subject) Peter Korsgaard
2011-05-10 14:22 Mike Williams
2011-05-10 14:37 ` Daniel Nyström
2011-05-09 20:14 Mike Williams
2010-12-31 11:38 [Buildroot] [PATCH 0/6] Toolchain rework take 4 Gustavo Zacarias
2010-12-31 11:38 ` [Buildroot] (no subject) Gustavo Zacarias
2010-12-31 11:39 ` Gustavo Zacarias
2010-07-29 22:44 Dwayne Fontenot
2010-07-30 8:16 ` Peter Korsgaard
2010-06-07 13:08 Paul Jones
2010-02-03 9:47 Tony Mozi
2010-01-09 18:22 Clark Rawlins
2010-01-06 22:07 H Hartley Sweeten
2010-01-19 16:12 ` Peter Korsgaard
2010-01-19 16:41 ` H Hartley Sweeten
2009-12-29 19:37 Terry Forrest
2010-01-19 16:11 ` Peter Korsgaard
2009-12-03 22:34 [Buildroot] [PATCH] gst-plugins-bad: make more dependency-less plugins configurable Sven Neumann
2009-12-08 13:52 ` Peter Korsgaard
2009-12-08 14:21 ` [Buildroot] (no subject) Tom Wagner
2009-12-08 14:36 ` Michael S. Zick
2009-06-28 21:10 nfrench at xtale.biz
2009-06-09 3:42 Richard Ebenal
2008-11-24 12:25 rossella battaglia
2008-03-06 19:45 John Voltz
2008-01-11 16:09 Manuel Sahm
2007-08-19 8:13 Gururaja Hebbar K R
2007-08-20 14:49 ` Bernhard Fischer
2007-01-25 22:44 Ulf Samuelsson
2007-01-28 22:18 ` Bernhard Fischer
2006-07-23 23:52 amit bhosale
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=20121229153251.6bdfecfe@skate \
--to=thomas.petazzoni@free-electrons.com \
--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