Skip to contentSkip to conversation

dev-manual: stop advising to produce patches with Quilt

RFC PATCH In review [email protected] 3 participants 6 messages Feb 14, 2023 – Feb 15, 2023

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 dev-manual: stop advising to produce patches with Quilt

From: Michael Opdenacker <[email protected]>

---

Who still wants to produce patches with Quilt instead of Git? Who still wants to accept patches which are not generated by Git or a modern source control system?

Today:
- 1012 patches in Poky were created using Git
- 4 patches were created using Quilt

If this patch is acceptable, I'll also update dev-manual/debugging.rst so that it gives an example based on git, to create a patch for a package to fix.

---
 documentation/dev-manual/debugging.rst |  3 -
 documentation/dev-manual/index.rst     |  1 -
 documentation/dev-manual/quilt.rst     | 89 --------------------------
 3 files changed, 93 deletions(-)
 delete mode 100644 documentation/dev-manual/quilt.rst
documentation/dev-manual/debugging.rst +0 -3
index 9fb159eae6..e36d5a8fc1 100644
@@ -820,9 +820,6 @@ to patch the ``Makefile.am`` file, which is generated from
    $ quilt add Makefile.am
    File Makefile.am added to patch patches/parallelmake.patch
 
-For more information on using Quilt, see the
-":ref:`dev-manual/quilt:using quilt in your workflow`" section.
-
 At this point you need to make the edits to ``Makefile.am`` to add the
 missing dependency. For our example, you have to add the following line
 to the file::
documentation/dev-manual/index.rst +0 -1
index b0bb5576ad..affea1cf46 100644
@@ -18,7 +18,6 @@ Yocto Project Development Tasks Manual
    new-machine
    upgrading-recipes
    temporary-source-code
-   quilt.rst
    development-shell
    python-development-shell
    building
documentation/dev-manual/quilt.rst deleted +0 -89

89 lines not on this page · raw message

Signature · 1 line
2.37.2
#1 lore raw

Hi Michael,

Quoted 10 lines · Michael Opdenacker via lists.yoctoproject.org

From: Michael Opdenacker <[email protected]>

---

Who still wants to produce patches with Quilt instead of Git? Who still wants to accept patches which are not generated by Git or a modern source control system?

Well... Quilt is the tool used to patch most recipes by bitbake AFAIR :) c.f. PATCHTOOL in meta/conf/bitbake.conf. Since they probably have a different conflict resolution, it might still be a good idea to explain how to create patches with quilt? or do we expect to just say "set PATCHTOOL = "git" in your recipe if the patch doesn't apply" ?

Note that the only time I had to use git PATCHTOOL was for patches where there was some binary in there since quilt doesn't support this.

Cheers,
Quentin

#2 lore raw

Hi Quentin

Thanks for the review!

Quoted 7 lines · Quentin Schulz

Hi Michael,

Quoted 4 lines · Michael Opdenacker via lists.yoctoproject.org

From: Michael Opdenacker <[email protected]>

Quoted 8 lines
Quoted 6 lines

---

Who still wants to produce patches with Quilt instead of Git? Who still wants to accept patches which are not generated by Git or a modern source control system?

Well... Quilt is the tool used to patch most recipes by bitbake AFAIR :) c.f. PATCHTOOL in meta/conf/bitbake.conf. Since they probably have a different conflict resolution, it might still be a good idea to explain how to create patches with quilt? or do we expect to just say "set PATCHTOOL = "git" in your recipe if the patch doesn't apply" ?

That's right this is still the default PATCHTOOL. However, how likely are we to have issues with git patches that don't apply with quilt, as less than 1% of the patches currently in use were produced by quilt.

What I mean is that it feels weird to recommend a solution that almost nobody uses any more to create patches for recipes. Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw
In reply to Quentin Schulz
Quoted 14 lines · Quentin Schulz via lists.yoctoproject.org

Hi Michael,

Quoted 10 lines · Michael Opdenacker via lists.yoctoproject.org

From: Michael Opdenacker <[email protected]>

---

Who still wants to produce patches with Quilt instead of Git? Who still wants to accept patches which are not generated by Git or a modern source control system?

Quoted 8 lines

Well... Quilt is the tool used to patch most recipes by bitbake AFAIR :) c.f. PATCHTOOL in meta/conf/bitbake.conf. Since they probably have a different conflict resolution, it might still be a good idea to explain how to create patches with quilt? or do we expect to just say "set PATCHTOOL = "git" in your recipe if the patch doesn't apply" ?

Note that the only time I had to use git PATCHTOOL was for patches where there was some binary in there since quilt doesn't support this.

I think a lot depends on the underlying recipe. If it uses a tarball, quilt will be there, git won't be setup. If the underlying recipe uses git, creating patches with it can be easier.

Personally, I still do use quilt as it is muscle memory. With git you have issues that the indexes can be out of sync due to patches or autoreconf.

I think we should document the git workflow and then let the user choose which direction to go. We should make the pitfalls clear too (index not in sync, no git metadata on a tarball etc.)

Cheers,

Richard

#4 lore raw
In reply to [email protected]
Quoted 17 lines · Michael Opdenacker via lists.yoctoproject.org

From: Michael Opdenacker <[email protected]>

---

Who still wants to produce patches with Quilt instead of Git? Who still wants to accept patches which are not generated by Git or a modern source control system?

Today:
- 1012 patches in Poky were created using Git
- 4 patches were created using Quilt

If this patch is acceptable, I'll also update dev-manual/debugging.rst so that it gives an example based on git, to create a patch for a package to fix.

Quoted 6 lines
---
 documentation/dev-manual/debugging.rst |  3 -
 documentation/dev-manual/index.rst     |  1 -
 documentation/dev-manual/quilt.rst     | 89 --------------------------
 3 files changed, 93 deletions(-)
 delete mode 100644 documentation/dev-manual/quilt.rst

I am 100% against deleting the information on quilt. We do use it in the builds for applying patches and it should therefore be covered in the manual.

I am fine with documenting git and giving the user a choice on which tool to use to generate patches.

Cheers,

Richard

#5 lore raw
Quoted 25 lines · Richard Purdie
Quoted 17 lines · Michael Opdenacker via lists.yoctoproject.org

From: Michael Opdenacker <[email protected]>

---

Who still wants to produce patches with Quilt instead of Git? Who still wants to accept patches which are not generated by Git or a modern source control system?

Today:
- 1012 patches in Poky were created using Git
- 4 patches were created using Quilt

If this patch is acceptable, I'll also update dev-manual/debugging.rst so that it gives an example based on git, to create a patch for a package to fix.

Quoted 6 lines
---
  documentation/dev-manual/debugging.rst |  3 -
  documentation/dev-manual/index.rst     |  1 -
  documentation/dev-manual/quilt.rst     | 89 --------------------------
  3 files changed, 93 deletions(-)

delete mode 100644 documentation/dev-manual/quilt.rst

Quoted 6 lines

I am 100% against deleting the information on quilt. We do use it in the builds for applying patches and it should therefore be covered in the manual.

I am fine with documenting git and giving the user a choice on which tool to use to generate patches.

Thanks for the strong points. I'll see what I can do, but I'm not sure I want to complicate the explanations too much. Thanks again

Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com