dev-manual: stop advising to produce patches with Quilt
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
@@ -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
@@ -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
Hi Michael,
Quoted 10 lines · Michael Opdenacker via lists.yoctoproject.org
From: Michael Opdenacker <[email protected]>
Signed-off-by 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
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]>
Signed-off-by 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
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]>
Signed-off-by 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
Quoted 17 lines · Michael Opdenacker via lists.yoctoproject.org
From: Michael Opdenacker <[email protected]>
Signed-off-by 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 QuiltIf this patch is acceptable, I'll also update
dev-manual/debugging.rstso 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
Quoted 25 lines · Richard Purdie
Quoted 17 lines · Michael Opdenacker via lists.yoctoproject.org
From: Michael Opdenacker <[email protected]>
Signed-off-by 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 QuiltIf this patch is acceptable, I'll also update
dev-manual/debugging.rstso 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