Differences between revisions 5 and 6
Revision 5 as of 2009-03-16 03:35:54
Size: 2373
Editor: anonymous
Comment: converted to 1.6 markup
Revision 6 as of 2009-06-03 17:07:34
Size: 2395
Comment: Add CRLFto take care of "{{{" (for code syntax)
Deletions are marked like this. Additions are marked like this.
Line 13: Line 13:
{{{export QUILT_PATCHES=debian/patches}}}

{{{
export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"}}}
{{{
export QUILT_PATCHES=debian/patches
export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
}}}
Line 22: Line 23:
{{{quilt push -a}}} to "push" all existing patches onto the source tree (when you build a package, this is done by the build scripts) {{{
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 29:
{{{quilt new myPatch.diff # this is the patch name}}} {{{
quilt new myPatch.diff # this is the patch name
}}}
Line 28: Line 33:
{{{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 add README # you have to do that for all files you modify before you change them; one quilt patch can change multiple files
}}}
Line 36: Line 43:
{{{quilt refresh #you can do this as often as you like}}} {{{
quilt refresh #you can do this as often as you like
}}}
Line 40: Line 49:
{{{ quilt pop -a #this un-applies all patches so that the source returns to the downloaded condition }}} {{{
quilt pop -a #this un-applies all patches so that the source returns to the downloaded condition
}}}
Line 50: Line 61:
{{{ quilt push myPatch.diff}}} {{{
quilt push myPatch.diff
}}}
Line 54: Line 67:
{{{ quilt refresh myPatch.diff #note: command line completion may save you some typing }}} {{{
quilt refresh myPatch.diff #note: command line completion may save you some typing
}}}
Line 56: Line 71:
{{{ quilt pop -a}}} {{{
quilt pop -a
}}}

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. Otherwise, run them in your shell or terminal 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 changes to the source

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

Basic quilt tasks: Editing an existing patch

quilt supports multiple patches, but you are only ever change one of them.

This is the patch last pushed.

To edit an existing patch, start by pushing it

quilt push myPatch.diff

Now edit it, and when ready

quilt refresh myPatch.diff   #note: command line completion may save you some typing

quilt pop -a