6
6
2. Unpack the package as usual with "dpkg-source -x"
7
7
3. Run the "patch" target in debian/rules
8
8
4. Create a new patch with "quilt new" (see quilt(1))
9
5. Edit all the files you want to include in the patch with "quilt edit"
9
5. Edit all the files you want to include in the patch with "quilt edit"
11
11
6. Write the patch with "quilt refresh" (see quilt(1))
12
12
7. Run the "clean" target in debian/rules
14
Alternatively, instead of using quilt directly, you can drop the patch in to
14
Alternatively, instead of using quilt directly, you can drop the patch in to
15
15
debian/patches and add the name of the patch to debian/patches/series.
17
17
------------------------------------
47
47
case, it appears directly in the .diff.gz.
48
48
* Otherwise, the patch is added to debian/patches/ which is managed
49
49
with quilt as documented in /usr/share/doc/quilt/README.source.
51
quilt is actually invoked by the Debian X packaging through a larger
52
set of scripts called XSFBS. XSFBS brings some other X specific
53
features such as managing dependencies and conflicts due to the video
54
and input driver ABIs.
55
XSFBS itself is maintained in a separate repository at
56
git://git.debian.org/pkg-xorg/xsfbs.git
57
and it is pulled inside the other Debian X repositories when needed.
59
The XSFBS patching system requires a build dependency on quilt. Also
60
a dependency on $(STAMP_DIR)/patch has to be added to debian/rules
61
so that the XSFBS patching occurs before the actual build. So the
62
very first target of the build (likely the one running autoreconf)
63
should depend on $(STAMP_DIR)/patch. It should also not depend on
64
anything so that parallel builds are correctly supported (nothing
65
should probably run while patching is being done). And finally, the
66
clean target should depend on the xsfclean target so that patches
67
are unapplied on clean.
69
When the upstream sources contain some DFSG-nonfree files, they are
70
listed in text files in debian/prune/ in the "debian-*" branch of
71
the Debian repository. XSFBS' scripts then take care of removing
72
these listed files during the build so as to generate a modified
73
DFSG-free .orig.tar.gz tarball.