]> git.proxmox.com Git - mirror_smartmontools-debian.git/blame - debian/README.source
Update to Standards-Version 3.9.5, no changes need
[mirror_smartmontools-debian.git] / debian / README.source
CommitLineData
d0f2f2e0
GG
1This package uses quilt to manage all modifications to the upstream
2source. Changes are stored in the source package as diffs in
3debian/patches and applied during the build.
4
5To configure quilt to use debian/patches instead of patches, you want
6either to export QUILT_PATCHES=debian/patches in your environment
7or use this snippet in your ~/.quiltrc:
8
9 for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do
10 if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then
11 export QUILT_PATCHES=debian/patches
12 fi
13 done
14
15To get the fully patched source after unpacking the source package, cd to
16the root level of the source package and run:
17
18 quilt push -a
19
20The last patch listed in debian/patches/series will become the current
21patch.
22
23To add a new set of changes, first run quilt push -a, and then run:
24
25 quilt new <patch>
26
27where <patch> is a descriptive name for the patch, used as the filename in
28debian/patches. Then, for every file that will be modified by this patch,
29run:
30
31 quilt add <file>
32
33before editing those files. You must tell quilt with quilt add what files
34will be part of the patch before making changes or quilt will not work
35properly. After editing the files, run:
36
37 quilt refresh
38
39to save the results as a patch.
40
41Alternately, if you already have an external patch and you just want to
42add it to the build system, run quilt push -a and then:
43
44 quilt import -P <patch> /path/to/patch
45 quilt push -a
46
47(add -p 0 to quilt import if needed). <patch> as above is the filename to
48use in debian/patches. The last quilt push -a will apply the patch to
49make sure it works properly.
50
51To remove an existing patch from the list of patches that will be applied,
52run:
53
54 quilt delete <patch>
55
56You may need to run quilt pop -a to unapply patches first before running
57this command.