Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/HOWTO-RELEASE

raw
1 HOWTO-RELEASE:
2
3 Notes on releasing.
4
5 0. Make sure that you have current FSF releases of autoconf, automake,
6 and libtool packages installed under a common installation prefix
7 and that these tools are in your executable search path prior to
8 any other installed versions. Versions delivered with Linux may be
9 altered so it is best to install official FSF releases. GNU 'm4'
10 1.4.16 is needed in order to avoid bugs in m4. These packages may
11 be downloaded from the following ftp locations:
12
13 m4 - ftp://ftp.gnu.org/pub/gnu/m4
14 autoconf - ftp://ftp.gnu.org/pub/gnu/autoconf
15 automake - ftp://ftp.gnu.org/pub/gnu/automake
16 libtool - ftp://ftp.gnu.org/pub/gnu/libtool
17
18 It is recommended to install m4 before autoconf, since the later
19 requires the former.
20
21 Release builds should only be done on a system with a functioning
22 and correctly set system clock and on a filesystem which accurately
23 records file update times. Use of GNU make is recommended.
24
25 1. Commit any unsaved changes.
26
27 2. Use gnulib's gitlog-to-changelog script to add new (since the last
28 release) entries to the traditional ChangeLog file.
29
30 http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=build-aux/gitlog-to-changelog
31
32 Take note of
33 the most recent change note time stamp and use that as the starting
34 point. Concatenate the old logs to the new logs. The added logs
35 may be used to help produce the release notes (in next step). For
36 example:
37
38 gitlog-to-changelog --since=`head -n 1 ChangeLog | sed -e 's/ .*//g'` --append-dot > ChangeLog.added
39 printf "\n" >> ChangeLog.added
40 cat ChangeLog.added ChangeLog > ChangeLog.new
41 mv ChangeLog.new ChangeLog
42 rm ChangeLog.added
43
44 3. Create doc/releases/vX.X.rst and add it to git with 'git add doc/releases/vX.X.rst'.
45 Update doc/releases/index.rst to point to the new file
46 Take ChangeLog entries and rst-ify in there.
47 Easist thing to do is take doc/releases/vX.(X-1).rst and use it as a template.
48
49 4. Add vX.X.rst file to the list of 'rst_sources' files in the doc/Makefile.am.
50
51 5. Update "Latest Stable Release" in doc/index.rst.
52
53 6. Increment the release version in configure.ac. Put 'alpha' or
54 'beta' after the version, if applicable. For example:
55
56 4.0.0
57 or
58 4.0.0beta7
59
60 Version should be updated in two places: in the second argument of the
61 AC_INIT macro and in LIBTIFF_xxx_VERSION variables.
62
63 7. Update library ELF versioning in configure.ac (LIBTIFF_CURRENT,
64 LIBTIFF_REVISION, and LIBTIFF_AGE). These numbers have nothing to
65 do with the libtiff release version numbers.
66
67 Note that as of libtiff 4.X, proper ELF versioning is used so
68 please follow the rules listed in configure.ac. At a bare minimum,
69 you should increment LIBTIFF_REVISION for each release so that
70 installed library files don't overwrite existing files. If APIs
71 have been added, removed, or interface structures have changed,
72 then more care is required.
73
74 8. Add an entry to Changelog similar to:
75
76 * libtiff 4.0.0 released.
77
78 9. In the source tree do
79
80 ./autogen.sh
81
82 This step may be skipped if you have already been using a
83 maintainer build with current autoconf, automake, and libtool
84 packages. It is only needed when updating tool versions.
85
86 10. It is recommended (but not required) to build outside of the source
87 tree so that the source tree is kept in a pristine state. This
88 also allows sharing the source directory on several networked
89 systems. For example:
90
91 mkdir libtiff-build
92 cd libtiff-build
93 /path/to/libtiff/configure --enable-maintainer-mode
94
95 otherwise do
96
97 ./configure --enable-maintainer-mode
98
99 11. In the build tree do
100
101 make release
102
103 This will update "RELEASE-DATE", "VERSION" in the source tree,
104 and libtiff/tiffvers.h in the build tree.
105
106 12. In the source tree, verify that the version info in RELEASE-DATE,
107 VERSION is right.
108 In the build tree, verify that the version info in
109 libtiff/tiffvers.h is right.
110
111 13. In the build tree do
112
113 make
114 make distcheck
115
116 If 'make distcheck' fails, then correct any issues until it
117 succeeds.
118
119 Two files with names tiff-version.tar.gz and tiff-version.zip will
120 be created in the top level build directory.
121
122 14. In the source tree do
123
124 'git status', 'git add .', 'git commit' and 'git push'
125
126 15. In the source tree, create a signed tag
127
128 git tag -s v4.0.0 -m "Create tag for v4.0.0"
129
130 (or the appropriate name for the release)
131
132 and push it to "origin" (if "origin" points to the official repository)
133
134 git push origin v4.0.0
135
136 16. Sign the release files in the build tree using your private key
137
138 export GPG_TTY=$(tty)
139 for file in tiff-*.tar.gz tiff-*.tar.xz tiff-*.zip ; do \
140 gpg2 --output ${file}.sig --detach-sig $file ; \
141 done
142
143 for file in tiff-*.tar.gz tiff-*.tar.xz tiff-*.zip ; do \
144 gpg2 --verify ${file}.sig $file ; \
145 done
146
147 17. Copy release packages from the build tree to the
148 ftp.remotesensing.org ftp site.
149
150 scp tiff-*.tar.gz tiff-*.tar.gz.sig tiff-*.tar.xz tiff-*.tar.xz.sig tiff-*.zip tiff-*.zip.sig \
151 [email protected]:/osgeo/download/libtiff
152
153 18. Create a gitlab release at https://gitlab.com/libtiff/libtiff/-/releases
154
155 19. Announce to list: [email protected]