1 Check-Script: patch-systems
2 Author: Marc Brockschmidt <he@debian.org>
6 Info: This script checks for various possible problems when using patch systems
9 Tag: dpatch-build-dep-but-no-patch-list
11 Info: Using dpatch requires you to explicitly list all patches you want
12 to apply in debian/patches/00list. This package build-depends on dpatch,
13 but does not provide a patch list.
15 You should either remove the dpatch build dependency or add a patch
18 Tag: dpatch-index-references-non-existent-patch
20 Info: In the 00list file listing all your dpatches, you referenced a file
21 that does not exist. This will lead to a fatal error when calling dpatch.
23 Tag: dpatch-missing-description
25 Info: dpatch files should carry a description of the function of the included
26 patch. Description lines start with "## DP:".
28 Tag: quilt-build-dep-but-no-series-file
30 Info: Using quilt requires you to explicitly list all patches you want
31 to apply in debian/patches/series. This package build-depends on quilt,
32 but does not provide a patch list.
34 You should either remove the quilt build dependency or add a series
37 Tag: quilt-series-but-no-build-dep
39 Info: The package contains a debian/patches/series file usually used by
40 quilt to apply patches at build time, but quilt is not listed in the
43 You should either remove the series file if it's effectively not useful
44 or add quilt to the build-dependencies if quilt is used during the build
47 If you don't need quilt during build but only during maintenance work,
48 then you can override this warning.
50 Tag: quilt-patch-with-non-standard-options
52 Info: The quilt series file contains non-standard options to apply some of
53 the listed patches. Quilt uses '-p1' by default if nothing is specified
54 after the name of the patch and the current series file specify something
55 else for some of the patches listed.
57 For compatibility with the source "3.0 (quilt)" source package format,
58 you should avoid using any option at all and make sure that your patches
59 apply with "-p1". This can be done by refreshing all patches like this:
60 quilt pop -a; while quilt push; do quilt refresh -pab; done
62 Tag: quilt-series-references-non-existent-patch
64 Info: In the series file listing all your quilt patches, you referenced a
65 file that does not exist. This will lead to a fatal error when calling quilt.
67 Tag: patch-modifying-debian-files
69 Info: A patch stored in debian/patches/ should never modify files
70 in the debian directory (even when it's only creating new files) because
71 the debian directory is always directly provided by the Debian packaging.
72 And you shouldn't have to modify what you choose to provide in the first
75 If the patch provides a new file (say a manual page), place that file
76 in the upstream directory hierarchy as if it was ready to be submitted.
78 Tag: patch-system-but-direct-changes-in-diff
80 Info: The package uses a patch-system, but the Debian diff.gz contains changes
81 made on files without being separated out in a patch.
83 Tag: more-than-one-patch-system
85 Info: The build-dependencies list more than one patch system and it's
86 unlikely that you need both at the same time.
88 Currently lintian knows only dpatch and quilt.