Differences between revisions 1 and 2
Revision 1 as of 2009-01-15 02:47:10
Size: 2077
Editor: ?timrichardson
Comment:
Revision 2 as of 2009-01-15 02:51:44
Size: 1956
Editor: ?timrichardson
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
||<tablestyle="width: 100%;" style="border: 0px hidden">~-[:DebianWiki/EditorGuide#translation:Translation(s)]: none-~||<style="text-align: right;border: 0px hidden"> (!) [:/Discussion:Discussion]|| ||<tablewidth="100%" tablestyle=""style="border: 0px hidden ;">~-[:DebianWiki/EditorGuide#translation:Translation(s)]: none-~ ||<style="border: 0px hidden ; text-align: right;"> (!) ["/Discussion"] ||
Line 4: Line 4:
Using quilt in Debian source packages. This page is aimed at people who want to make some changes to a Debian source package which is already using quilt. The intention is not to explain quilt, but to offer some Debian specific tips  Using quilt in Debian source packages. This page is aimed at people who want to make some changes to a Debian source package which is already using quilt. The intention is not to explain quilt, but to offer some Debian specific tips
Line 6: Line 6:
## If your page gets really long, uncomment this Table of Contents  ## If your page gets really long, uncomment this Table of Contents
Line 8: Line 8:
Line 12: Line 11:
=== Environment variables ===
consider adding these lines to .bashrc or run them before using quilt
Line 13: Line 14:
=== Environment variables ===
consider adding these lines to .bashrc
or run them before using quilt
{{{
export QUILT_PATCHES=debian/patches}}}
{{{
 export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"}}}
== Basic quilt tasks ==
'''Making a new patch '''
Line 17: Line 21:
{{export QUILT_PATCHES=debian/patches}}
{{export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"}}
The source code unpacked by apt-get source does not have patches applied.
Line 20: Line 23:
== Title 2 ==
[[Basic quilt tasks: Making a new patch]]
'''First step: apply existing patches to the source '''
Line 23: Line 25:
The source code unpacked by apt-get source
does not have patches applied.
{{{quilt push -a}}} to "push" all existing patches onto the source tree (when you build a package, this is done by the build scripts)
Line 26: Line 27:
[[First step: apply existing patches to the source ]] '''Creating a new patch:'''
Line 28: Line 29:
{{quilt push -a}}
to "push" all existing patches onto the source tree (when you build a package, this is done by the build scripts)

[[Creating a new patch:]]
 
{{quilt new myPatch.diff # this is the patch name}}
{{quilt add README # you have to do that for all files you modify before you change them; one quilt patch can change multiple files}}
 . {{{quilt new myPatch.diff # this is the patch name}}} {{{quilt add README # you have to do that for all files you modify before you change them; one quilt patch can change multiple files}}}
Line 37: Line 32:
[[Updating a patch with changes made to its files]]
{{quilt refresh #you can do this as often as you like}}
'''Updating a patch with changes made to its files'''
 {{{quilt refresh #you can do this as often as you like}}}
Line 40: Line 35:
[[Finish your editing]]
{{ quilt pop -a #this unapplies all patches so that the source returns to the downloaded condition }}



   
'''Finish your editing'''
{{{ quilt pop -a #this un-applies all patches so that the source returns to the downloaded condition }}}
Line 50: Line 39:
## You can add other _helpful_ links here.
##See also:
## If this page belongs to an existing Category, add it below.
## CategorySomething | CategoryAnother
 . CategoryPortal | CategorySoftware

[:DebianWiki/EditorGuide#translation:Translation(s)]: none

(!) ["/Discussion"]


  • Using quilt in Debian source packages. This page is aimed at people who want to make some changes to a Debian source package which is already using quilt. The intention is not to explain quilt, but to offer some Debian specific tips

Using quilt with Debian source packages

Situation: you have downloaded a Debian source package which uses quilt and want to fix a bug and then submit a patch to the maintainers.

Environment variables

consider adding these lines to .bashrc or run them before using quilt

export QUILT_PATCHES=debian/patches

 export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"

Basic quilt tasks

Making a new patch

The source code unpacked by apt-get source does not have patches applied.

First step: apply existing patches to the source

quilt push -a to "push" all existing patches onto the source tree (when you build a package, this is done by the build scripts)

Creating a new patch:

  • quilt new myPatch.diff # this is the patch name quilt add README # you have to do that for all files you modify before you change them; one quilt patch can change multiple files

Now, make you changes to the files added to the patch: edit it, or replace it with an already modified file stored in a different directory.

Updating a patch with changes made to its files

  • quilt refresh #you can do this as often as you like

Finish your editing  quilt pop -a #this un-applies all patches so that the source returns to the downloaded condition