diff options
Diffstat (limited to 'debian/README.source')
-rw-r--r-- | debian/README.source | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 00000000..f9bb7c69 --- /dev/null +++ b/debian/README.source | |||
@@ -0,0 +1,55 @@ | |||
1 | ------------------------------------------------------ | ||
2 | Quick Guide To Patching This Package For The Impatient | ||
3 | ------------------------------------------------------ | ||
4 | |||
5 | 1. Make sure you have quilt installed | ||
6 | 2. Unpack the package as usual with "dpkg-source -x" | ||
7 | 3. Run the "patch" target in debian/rules | ||
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" | ||
10 | (see quilt(1)). | ||
11 | 6. Write the patch with "quilt refresh" (see quilt(1)) | ||
12 | 7. Run the "clean" target in debian/rules | ||
13 | |||
14 | Alternatively, instead of using quilt directly, you can drop the patch in to | ||
15 | debian/patches and add the name of the patch to debian/patches/series. | ||
16 | |||
17 | While building from git, dpkg-source can complain about symlinks vs. | ||
18 | normal files mismatches. To work around this issue, before uploading, | ||
19 | and without committing: | ||
20 | |||
21 | find -type l | while read dest; do src=$(readlink -f $dest); rm $dest; cp $src $dest; done | ||
22 | |||
23 | ------------------------------------ | ||
24 | Guide To The X Strike Force Packages | ||
25 | ------------------------------------ | ||
26 | |||
27 | The X Strike Force team maintains X packages in git repositories on | ||
28 | git.debian.org in the pkg-xorg subdirectory. Most upstream packages | ||
29 | are actually maintained in git repositories as well, so they often | ||
30 | just need to be pulled into git.debian.org in a "upstream-*" branch. | ||
31 | Otherwise, the upstream sources are manually installed in the Debian | ||
32 | git repository. | ||
33 | |||
34 | The .orig.tar.gz upstream source file could be generated using this | ||
35 | "upstream-*" branch in the Debian git repository but it is actually | ||
36 | copied from upstream tarballs directly. | ||
37 | |||
38 | Due to X.org being highly modular, packaging all X.org applications | ||
39 | as their own independent packages would have created too many Debian | ||
40 | packages. For this reason, some X.org applications have been grouped | ||
41 | into larger packages: xutils, xutils-dev, x11-apps, x11-session-utils, | ||
42 | x11-utils, x11-xfs-utils, x11-xkb-utils, x11-xserver-utils. | ||
43 | Most packages, including the X.org server itself and all libraries | ||
44 | and drivers are, however maintained independently. | ||
45 | |||
46 | The Debian packaging is added by creating the "debian-*" git branch | ||
47 | which contains the aforementioned "upstream-*" branch plus the debian/ | ||
48 | repository files. | ||
49 | When a patch has to be applied to the Debian package, two solutions | ||
50 | are involved: | ||
51 | * If the patch is available in one of the upstream branches, it | ||
52 | may be git'cherry-picked into the Debian repository. In this | ||
53 | case, it appears directly in the .diff.gz. | ||
54 | * Otherwise, the patch is added to debian/patches/ which is managed | ||
55 | with quilt as documented in /usr/share/doc/quilt/README.source. | ||