aboutsummaryrefslogtreecommitdiffstats
path: root/README.maintainer
blob: bbba7d2816bfb3d405ea86cae18c1b0c2a44b540 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
Release Reminders
=================

 * When making a release, always remember to run large file tests and
   image comparison tests (--enable-test-compare-images
   --with-large-file-test-path=/path).  For a major release, consider
   running a spelling checker over the source code to catch errors in
   variable names, strings, and comments.  Use ispell -p ispell-words.

 * Consider running tests with latest gcc and/or valgrind.  To do
   this, replace, build with debugging and without shared libraries.
   In build, create z and move each executable into z.  Then create a
   script called exec-z that contains:

   #!/bin/sh
   exec valgrind --suppressions=/tmp/a.supp -q \
      `dirname $0`/z/`basename $0` ${1+"$@"}

   Symlink exec-z to each executable.  /tmp/a.supp can be populated
   with suppressions for libraries, for example:

   {
      zlib1
      Memcheck:Cond
      fun:inflateReset2
      fun:inflateInit2_
   }

   You can generate these by running valgrind with --gen-suppressions=yes.

 * Check all open issues in the sourceforge trackers.

 * If any interfaces were added or changed, check C API to see whether
   changes are appropriate there as well.

 * Increment shared library version information as needed
   (libqpdf/build.mk)

 * Update release notes in manual -- look at diffs and ChangeLog

 * Add a release entry to ChangeLog

 * Make sure version numbers are consistent in the following
   locations:

     configure.ac
     qpdf.spec
     libqpdf/QPDF.cc
     manual/qpdf-manual.xml

   make_dist verifies this consistency.

 * Update release date in manual/qpdf-manual.xml.  Remember to ensure
   that the entities at the top of the document are consistent with
   the release notes for both version and release date.

 * Check TODO file to make sure all planned items for the release are
   done or retargeted.

 * Each year, update copyright notices.  Just search for Copyright.
   Last updated: 2012.

 * To construct a source distribution from a pristine checkout,
   make_dist does the following:

    ./autogen.sh
    ./configure --enable-doc-maintenance --enable-werror
    make build_manual
    make distclean

 * To create a source release, do an export from the version control
   system to a directory called qpdf-version.  For example, from this
   directory:

   rm -rf /tmp/qpdf-x.y.z
   git archive --prefix=qpdf-x.y.z/ HEAD . | (cd /tmp; tar xf -)

   From the parent of that directory, run make_dist with the directory
   as an argument.  Remember to have fop in your path.  For internally
   testing releases, you can run make_dist with the --no-tests option.

 * To create a source release of external libs, do an export from the
   version control system into a directory called qpdf-external-libs
   and just make a zip file of the result called
   qpdf-external-libs-src.zip.  See the README.txt file there for
   information on creating binary external libs releases.

 * To create Windows binary releases, extract the qpdf source
   distribution in Windows (MSYS + MINGW, MSVC).  From the extracted
   directory, extract the binary distribution of the external
   libraries.  Run ./make_windows_releases from there.  You will need
   to have zip in your path.

 * Remember to copy README-what-to-download.txt separately onto the
   download area.

 * Remember to update the web page including putting new documentation
   in the "files" subdirectory of the website on sourceforge.net.
   Linearize the PDF version of the manual when copying it there.

 * Create a tag in the version control system, and make backups of the
   actual releases.  With git, use git tag -s to create a signed tag:

   git tag -s release-qpdf-$version HEAD -m'qpdf $version'

 * When releasing on sourceforge, external-libs distributions go in
   external-libs/yyyymmdd, and qpdf distributions go in qpdf/vvv.
   Make the source package the default for all but Windows, and make
   the 32-bit mingw build the default for Windows.


General Build Stuff
===================

QPDF uses autoconf and libtool but does not use automake.  The only
files distributed with the qpdf source distribution that are not
controlled are "configure", "libqpdf/qpdf/qpdf-config.h.in",
"aclocal.m4", and some documentation.  See above for the steps
required to prepare a source distribution.

A small handful of additional files have been taken from autotools
programs.  These should probably be updated from time to time.

 * config.guess, config.sub, ltmain.sh, and the m4 directory: these
   were created by running libtoolize -c.  To update, run libtoolize
   -f -c or remove the files and rerun libtoolize.

 * Other files copied as indicated:

   cp /usr/share/automake-1.11/install-sh .
   cp /usr/share/automake-1.11/mkinstalldirs .

The entire contents of the m4 directory came from libtool.m4.  If we
had some additional local parts, we could also add those to the m4
directory.  In order for this to work, it is necessary to run "aclocal
-I m4" before running autoheader and autoconf.

If building or editing documentation, configure with
--enable-doc-maintenance.  This will ensure that all tools or files
required to validate and build documentation are available.

If you want to run make maintainer-clean or make distclean and you
haven't run ./configure, you can pass CLEAN=1 to make on the command
line to prevent it from complaining about configure not having been
run.