Debian Codegraph @

debian/README.source

raw
1 The tar upstream developers prefer to document using the 'info' format, but
2 unfortunately the info docs are under a license Debian considers non-free. As
3 a result, we deliver a DFSG-compliant tar package in main, and a tar-doc
4 package in non-free.
5
6 Here is how the git repository for packaging is organized:
7
8 upstream "real" upstream sources
9 pristine-tar deltas for recreating tarballs from git repos
10 dfsg-orig branch for DFSG-compliant upstream
11 dfsg-debian branch for Debian packaging of DFSG-compliant parts
12 doc-orig branch for non-free upstream
13 doc-debian branch for Debian packaging of non-free parts
14
15 And here's a command log showing how upstream release 1.33 was incorporated,
16 which may be used as a pattern for processing future releases:
17
18 git checkout upstream
19 pristine-tar commit /tmp/tar-1.33.tar.xz
20 rm -r *
21 tar xv --strip-components=1 -f /tmp/tar-1.33.tar.xz
22 git add *
23 git commit -a -m "Import upstream version 1.33"
24
25 git checkout dfsg-orig
26 git merge upstream # ignore warnings about doc/*
27 ./cleanup-script.sh
28 git commit -a -m "Elide non-DFSG compliant upstream components"
29 git tag upstream/1.33+dfsg
30
31 git checkout dfsg-debian
32 git merge dfsg-orig
33 dch -v 1.33+dfsg-1
34 git commit -a
35
36 # check patches
37 quilt push -a
38 rm -r .pc
39 git checkout .
40 # update patches that don't apply cleanly due to release-induced fuzz
41 quilt push -f gcc-10-warnings.diff
42 # manually apply gnu/selinux-at.h.rej changes to changed upstream file
43 rm gnu/selinux-at.h.rej
44 quilt refresh gcc-10-warnings.diff
45 quilt pop -a
46 rm -r .pc
47 git commit -a
48
49 gbp buildpackage --git-no-pristine-tar --changes-option=-S \
50 --git-upstream-branch=dfsg-orig \
51 --git-upstream-tag=upstream/1.33+dfsg
52 pristine-tar commit ../build-area/tar_1.33+dfsg.orig.tar.xz dfsg-orig
53 git tag debian/1.33+dfsg-1
54
55 git checkout doc-orig
56 git merge upstream # ignore all the warnings
57 ./cleanup-script.sh
58 git commit -a -m "Prepare upstream tarball for tar-doc"
59 tar cvJf /tmp/tar-doc_1.33.orig.tar.xz COPYING doc
60 pristine-tar commit /tmp/tar-doc_1.33.orig.tar.xz
61
62 git checkout doc-debian
63 git merge doc-orig
64 dch -v 1.33-1
65 git commit -a
66 gbp buildpackage
67 git tag non-free/1.33-1
68 cd ../build-area
69
70 debsign tar_1.33+dfsg-1_amd64.changes
71 debsign tar-doc_1.33-1_amd64.changes
72 dput tar_1.33+dfsg-1_amd64.changes
73 dput tar-doc_1.33-1_amd64.changes
74