rebuild docs
[privoxy.git] / doc / webserver / developer-manual / newrelease.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
5   <title>Releasing a New Version</title>
6   <meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.79">
7   <link rel="HOME" title="Privoxy Developer Manual" href="index.html">
8   <link rel="PREVIOUS" title="Testing Guidelines" href="testing.html">
9   <link rel="NEXT" title="Update the Webserver" href="webserver-update.html">
10   <link rel="STYLESHEET" type="text/css" href="../p_doc.css">
11   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
12 </head>
13 <body class="SECT1" bgcolor="#EEEEEE" text="#000000" link="#0000FF" vlink="#840084" alink="#0000FF">
14   <div class="NAVHEADER">
15     <table summary="Header navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
16       <tr>
17         <th colspan="3" align="center">Privoxy Developer Manual</th>
18       </tr>
19       <tr>
20         <td width="10%" align="left" valign="bottom"><a href="testing.html" accesskey="P">Prev</a></td>
21         <td width="80%" align="center" valign="bottom"></td>
22         <td width="10%" align="right" valign="bottom"><a href="webserver-update.html" accesskey="N">Next</a></td>
23       </tr>
24     </table>
25     <hr align="left" width="100%">
26   </div>
27   <div class="SECT1">
28     <h1 class="SECT1"><a name="NEWRELEASE" id="NEWRELEASE">6. Releasing a New Version</a></h1>
29     <p>When we release versions of <span class="APPLICATION">Privoxy</span>, our work leaves our cozy secret lab and
30     has to work in the cold RealWorld[tm]. Once it is released, there is no way to call it back, so it is very
31     important that great care is taken to ensure that everything runs fine, and not to introduce problems in the very
32     last minute.</p>
33     <p>So when releasing a new version, please adhere exactly to the procedure outlined in this chapter.</p>
34     <p>The following programs are required to follow this process: <tt class="FILENAME">ssh</tt>, <tt class=
35     "FILENAME">gmake</tt> (GNU's version of make), autoconf, git, a web browser.</p>
36     <div class="SECT2">
37       <h2 class="SECT2"><a name="VERSIONNUMBERS" id="VERSIONNUMBERS">6.1. Version numbers</a></h2>
38       <p>First you need to determine which version number the release will have. <span class=
39       "APPLICATION">Privoxy</span> version numbers consist of three numbers, separated by dots, like in X.Y.Z (e.g.
40       3.0.0), where:</p>
41       <ul>
42         <li>
43           <p>X, the version major, is rarely ever changed. It is increased by one if turning a development branch into
44           stable substantially changes the functionality, user interface or configuration syntax. Majors 1 and 2 were
45           <span class="APPLICATION">Junkbuster</span>, and 3 is the first stable <span class=
46           "APPLICATION">Privoxy</span> release.</p>
47         </li>
48         <li>
49           <p>Y, the version minor, represents the branch within the major version. At any point in time, there are two
50           branches being maintained: The stable branch, with an even minor, say, 2N, in which no functionality is being
51           added and only bug-fixes are made, and 2N+1, the development branch, in which the further development of
52           <span class="APPLICATION">Privoxy</span> takes place. This enables us to turn the code upside down and inside
53           out, while at the same time providing and maintaining a stable version. The minor is reset to zero (and one)
54           when the major is incremented. When a development branch has matured to the point where it can be turned into
55           stable, the old stable branch 2N is given up (i.e. no longer maintained), the former development branch 2N+1
56           becomes the new stable branch 2N+2, and a new development branch 2N+3 is opened.</p>
57         </li>
58         <li>
59           <p>Z, the point or sub version, represents a release of the software within a branch. It is therefore
60           incremented immediately after each software release. The point version is reset to zero when the minor
61           changes.</p>
62           <p>Stable branches work a little differently, since there should be little to no development happening in
63           such branches. Remember, only bugfixes, which presumably should have had some testing before being committed.
64           Stable branches will then have their version reported as <tt class="LITERAL">0.0.0</tt>, during that period
65           between releases when changes are being added. This is to denote that this code is <span class=
66           "emphasis"><i class="EMPHASIS">not for release</i></span>. Then as the release nears, the version is bumped
67           according: e.g. <tt class="LITERAL">3.0.1 -&#62; 0.0.0 -&#62; 3.0.2</tt>.</p>
68         </li>
69       </ul>
70       <p>In summary, the main Git trunk is the development branch where new features are being worked on for the next
71       stable series. This should almost always be where the most activity takes place. There is always at least one
72       stable branch from the trunk, e.g now it is <tt class="LITERAL">3.0</tt>, which is only used to release stable
73       versions. Once the initial *.0 release of the stable branch has been done, then as a rule, only bugfixes that
74       have had prior testing should be committed to the stable branch. Once there are enough bugfixes to justify a new
75       release, the version of this branch is again incremented Example: 3.0.0 -&#62; 3.0.1 -&#62; 3.0.2, etc are all
76       stable releases from within the stable branch. 3.1.x is currently the main trunk, and where work on 3.2.x is
77       taking place. If any questions, please post to the devel list <span class="emphasis"><i class=
78       "EMPHASIS">before</i></span> committing to a stable branch!</p>
79       <p>Developers should remember too that if they commit a bugfix to the stable branch, this will more than likely
80       require a separate submission to the main trunk, since these are separate development trees within Git. If you
81       are working on both, then this would require at least two separate check outs (i.e main trunk, <span class=
82       "emphasis"><i class="EMPHASIS">and</i></span> the stable release branch, which is <tt class=
83       "LITERAL">v_3_0_branch</tt> at the moment).</p>
84     </div>
85     <div class="SECT2">
86       <h2 class="SECT2"><a name="BEFORERELEASE" id="BEFORERELEASE">6.2. Before the Release</a></h2>
87       <p>The following <span class="emphasis"><i class="EMPHASIS">must be done by one of the developers</i></span>
88       prior to each new release.</p>
89       <ul>
90         <li>
91           <p>Make sure that everybody who has worked on the code in the last couple of days has had a chance to yell
92           <span class="QUOTE">"no!"</span> in case they have pending changes/fixes in their pipelines. Announce the
93           freeze so that nobody will interfere with last minute changes.</p>
94         </li>
95         <li>
96           <p>Update the code status (CODE_STATUS="xxx") in <tt class="FILENAME">configure.in</tt> to one of "alpha",
97           "beta" or "stable".</p>
98         </li>
99         <li>
100           <p>Rebuild configure and GNUMakefile to make sure the updated values are being used.</p>
101           <table border="0" bgcolor="#E0E0E0" width="90%">
102             <tr>
103               <td>
104                 <pre class="PROGRAMLISTING">  $ autoheader &#38;&#38; autoconf     # rebuild configure
105   $ ./configure                # rebuild GNUmakefile</pre>
106               </td>
107             </tr>
108           </table>
109         </li>
110         <li>
111           <p><b class="COMMAND">make dok-release</b> to update the sgml documentation source files.</p>
112         </li>
113         <li>
114           <p>If action file processing has changed and is not backward-compatible, make sure the
115           "for-privoxy-version=x.y.z" minimum version number in <tt class="FILENAME">default.action.master</tt> has
116           been updated:</p>
117           <table border="0" bgcolor="#E0E0E0" width="90%">
118             <tr>
119               <td>
120                 <pre class="PROGRAMLISTING">  {{settings}}
121   #############################################################################
122   #MASTER# COMMENT: The minimum Privoxy version:
123   for-privoxy-version=3.0.11</pre>
124               </td>
125             </tr>
126           </table>
127         </li>
128         <li>
129           <p>Create the change log:</p>
130           <table border="0" bgcolor="#E0E0E0" width="90%">
131             <tr>
132               <td>
133                 <pre class="PROGRAMLISTING">  $ git tag
134   #   to see the tags
135   $ git log [last release tag]..master &gt; /tmp/log
136   #   get the commit log since the last release
137   $ utils/makeChangeLog /tmp/log &gt; /tmp/change.log
138   #   reformat the commit log</pre>
139               </td>
140             </tr>
141           </table>
142           <p>Edit <tt class="FILENAME">/tmp/change.log</tt> to remove trivial changes and group the changes under
143           general headings like:</p>
144           <table border="0" bgcolor="#E0E0E0" width="90%">
145             <tr>
146               <td>
147                 <pre class="PROGRAMLISTING">  - Bug fixes:
148   - Action file improvements:
149   - Filter file improvements:
150   - General improvements:
151   - Documentation improvements:
152   - Build system improvements:
153   - Code cleanups:
154   - Privoxy-Log-Parser:
155   - Privoxy-Regression-Test:</pre>
156               </td>
157             </tr>
158           </table>
159           <p>Add the contents of <tt class="FILENAME">/tmp/change.log</tt> to the start of <tt class=
160           "FILENAME">ChangeLog</tt> and re-create <tt class="FILENAME">doc/source/changelog.sgml</tt>:</p>
161           <table border="0" bgcolor="#E0E0E0" width="90%">
162             <tr>
163               <td>
164                 <pre class=
165                 "PROGRAMLISTING">  $ utils/changelog2doc.pl /tmp/change.log &gt;| doc/source/changelog.sgml</pre>
166               </td>
167             </tr>
168           </table>
169         </li>
170         <li>
171           <p>All developers should look at the <tt class="FILENAME">ChangeLog</tt> and make sure noteworthy changes are
172           referenced.</p>
173         </li>
174         <li>
175           <p>Update the announcement at <tt class="FILENAME">doc/webserver/announce.txt</tt>.</p>
176         </li>
177         <li>
178           <p>All documentation should be rebuilt:</p>
179           <table border="0" bgcolor="#E0E0E0" width="90%">
180             <tr>
181               <td>
182                 <pre class="PROGRAMLISTING">  $ make man
183   $ make dok
184   $ make dok-man
185   $ make dok-tidy
186   $ make config-file</pre>
187               </td>
188             </tr>
189           </table>Finished docs should be then be committed to Git (for those without the ability to build these). Some
190           docs may require rather obscure processing tools. <tt class="FILENAME">config</tt>, the man page (and the
191           html version of the man page) fall in this category. README, the man page, AUTHORS, and config should all
192           also be committed to Git for other packagers. The formal docs should be uploaded to the webserver. See the
193           section <a href="webserver-update.html" target="_top">"Updating the webserver"</a> in this manual for
194           details.
195         </li>
196         <li>
197           <p><span class="emphasis"><i class="EMPHASIS">Commit all files that were changed in the above
198           steps!</i></span></p>
199         </li>
200         <li>
201           <p>The <i class="CITETITLE">User Manual</i> is also used for context sensitive help for the CGI editor. This
202           is version sensitive, so that the user will get appropriate help for his/her release. So with each release a
203           fresh version should be uploaded to the webserver (this is in addition to the main <i class="CITETITLE">User
204           Manual</i> link from the main page since we need to keep manuals for various versions available). The CGI
205           pages will link to something like <tt class="LITERAL">https://www.privoxy.org/$(VERSION)/user-manual/</tt>.
206           This needs to be updated for each new release and is done with the <span class="QUOTE">"webserver"</span>
207           target.</p>
208         </li>
209         <li>
210           <p>Tag all files in Git with the version number with <span class="QUOTE">"<b class="COMMAND">git tag -s
211           v_X_Y_Z</b>"</span>. Don't use vX_Y_Z, ver_X_Y_Z, v_X.Y.Z (won't work) etc.</p>
212         </li>
213         <li>
214           <p>Push the tag to the remote with <span class="QUOTE">"<b class="COMMAND">git push origin
215           v_X_Y_Z</b>"</span>.</p>
216         </li>
217         <li>
218           <p>On the webserver, copy the user manual to a new top-level directory called <tt class=
219           "FILENAME">X.Y.Z</tt>. This ensures that help links from the CGI pages, which have the version as a prefix,
220           will go into the right version of the manual. If this is a development branch release, also symlink
221           <tt class="FILENAME">X.Y.(Z-1)</tt> to <tt class="FILENAME">X.Y.Z</tt> and <tt class=
222           "FILENAME">X.Y.(Z+1)</tt> to <tt class="FILENAME">.</tt> (i.e. dot).</p>
223         </li>
224       </ul>
225     </div>
226     <div class="SECT2">
227       <h2 class="SECT2"><a name="THERELEASE" id="THERELEASE">6.3. Building and Releasing the Packages</a></h2>
228       <p>Now the individual packages can be built and released. Note that for GPL reasons the first package to be
229       released is always the source tarball.</p>
230       <p>For <span class="emphasis"><i class="EMPHASIS">all</i></span> types of packages, including the source tarball,
231       <span class="emphasis"><i class="EMPHASIS">you must make sure that you build from clean sources by exporting the
232       right version from Git into an empty directory</i></span> (just press return when asked for a password):</p>
233       <table border="0" bgcolor="#E0E0E0" width="100%">
234         <tr>
235           <td>
236             <pre class="PROGRAMLISTING">  mkdir dist # delete or choose different name if it already exists
237   cd dist
238   git clone https://www.privoxy.org/git/privoxy.git
239   cd privoxy
240   git checkout v_X_Y_Z</pre>
241           </td>
242         </tr>
243       </table>
244       <p><span class="emphasis"><i class="EMPHASIS">Do NOT change</i></span> a single bit, including, but not limited
245       to version information after export from Git. This is to make sure that all release packages, and with them, all
246       future bug reports, are based on exactly the same code.</p>
247       <div class="WARNING">
248         <table class="WARNING" border="1" width="100%">
249           <tr>
250             <td align="center"><b>Warning</b></td>
251           </tr>
252           <tr>
253             <td align="left">
254               <p>Every significant release of Privoxy has included at least one package that either had incorrect
255               versions of files, missing files, or incidental leftovers from a previous build process that gave unknown
256               numbers of users headaches to try to figure out what was wrong. PLEASE, make sure you are using pristene
257               sources, and are following the prescribed process!</p>
258             </td>
259           </tr>
260         </table>
261       </div>
262       <p>Please find additional instructions for the source tarball and the individual platform dependent binary
263       packages below. And details on the Sourceforge release process below that.</p>
264       <div class="SECT3">
265         <h3 class="SECT3"><a name="PACK-GUIDELINES" id="PACK-GUIDELINES">6.3.1. Note on Privoxy Packaging</a></h3>
266         <p>Please keep these general guidelines in mind when putting together your package. These apply to <span class=
267         "emphasis"><i class="EMPHASIS">all</i></span> platforms!</p>
268         <ul>
269           <li>
270             <p><span class="APPLICATION">Privoxy</span> <span class="emphasis"><i class="EMPHASIS">requires</i></span>
271             write access to: all <tt class="FILENAME">*.action</tt> files, all logfiles, and the <tt class=
272             "FILENAME">trust</tt> file. You will need to determine the best way to do this for your platform.</p>
273           </li>
274           <li>
275             <p>Please include up to date documentation. At a bare minimum:</p>
276             <table border="0">
277               <tbody>
278                 <tr>
279                   <td><tt class="FILENAME">LICENSE</tt> (top-level directory)</td>
280                 </tr>
281               </tbody>
282             </table>
283             <table border="0">
284               <tbody>
285                 <tr>
286                   <td><tt class="FILENAME">README</tt> (top-level directory)</td>
287                 </tr>
288               </tbody>
289             </table>
290             <table border="0">
291               <tbody>
292                 <tr>
293                   <td><tt class="FILENAME">AUTHORS</tt> (top-level directory)</td>
294                 </tr>
295               </tbody>
296             </table>
297             <table border="0">
298               <tbody>
299                 <tr>
300                   <td><tt class="FILENAME">man page</tt> (top-level directory, Unix-like platforms only)</td>
301                 </tr>
302               </tbody>
303             </table>
304             <table border="0">
305               <tbody>
306                 <tr>
307                   <td><tt class="FILENAME">The User Manual</tt> (doc/webserver/user-manual/)</td>
308                 </tr>
309               </tbody>
310             </table>
311             <table border="0">
312               <tbody>
313                 <tr>
314                   <td><tt class="FILENAME">FAQ</tt> (doc/webserver/faq/)</td>
315                 </tr>
316               </tbody>
317             </table>
318             <p>Also suggested: <tt class="FILENAME">Developer Manual</tt> (doc/webserver/developer-manual) and
319             <tt class="FILENAME">ChangeLog</tt> (top-level directory). <tt class="FILENAME">FAQ</tt> and the manuals
320             are HTML docs.</p>
321             <p>The documentation has been designed such that the manuals are linked to each other from parallel
322             directories, and should be packaged that way. <tt class="FILENAME">privoxy-index.html</tt> can also be
323             included and can serve as a focal point for docs and other links of interest (and possibly renamed to
324             <tt class="FILENAME">index.html</tt>). This should be one level up from the manuals. There is a link also
325             on this page to an HTMLized version of the man page. To avoid 404 for this, it is in Git as <tt class=
326             "FILENAME">doc/webserver/man-page/privoxy-man-page.html</tt>, and should be included along with the
327             manuals. There is also a css stylesheets that can be included for better presentation: <tt class=
328             "FILENAME">p_doc.css</tt>. This should be in the same directory with <tt class=
329             "FILENAME">privoxy-index.html</tt>, (i.e. one level up from the manual directories).</p>
330           </li>
331           <li>
332             <p><tt class="FILENAME">user.action</tt> and <tt class="FILENAME">user.filter</tt> are designed for local
333             preferences. Make sure these do not get overwritten! <tt class="FILENAME">config</tt> should not be
334             overwritten either. This has especially important configuration data in it. <tt class="FILENAME">trust</tt>
335             should be left in tact as well.</p>
336           </li>
337           <li>
338             <p>Other configuration files (<tt class="FILENAME">default.action</tt>, <tt class=
339             "FILENAME">regression-tests.action</tt> and <tt class="FILENAME">default.filter</tt>) should be installed
340             as the new defaults, but all previously installed configuration files should be preserved as backups. This
341             is just good manners :-) These files are likely to change between releases and contain important new
342             features and bug fixes.</p>
343           </li>
344           <li>
345             <p>Please check platform specific notes in this doc, if you haven't done <span class=
346             "QUOTE">"Privoxy"</span> packaging before for other platform specific issues. Conversely, please add any
347             notes that you know are important for your platform (or contact one of the doc maintainers to do this if
348             you can't).</p>
349           </li>
350           <li>
351             <p>Packagers should do a <span class="QUOTE">"clean"</span> install of their package after building it. So
352             any previous installs should be removed first to ensure the integrity of the newly built package. Then run
353             the package for a while to make sure there are no obvious problems, before uploading.</p>
354           </li>
355         </ul>
356       </div>
357       <div class="SECT3">
358         <h3 class="SECT3"><a name="NEWRELEASE-TARBALL" id="NEWRELEASE-TARBALL">6.3.2. Source Tarball</a></h3>
359         <p>First, <span class="emphasis"><i class="EMPHASIS">make sure that you have freshly exported the right version
360         into an empty directory</i></span>. (See "Building and releasing packages" above). Then run from that
361         directory:</p>
362         <table border="0" bgcolor="#E0E0E0" width="100%">
363           <tr>
364             <td>
365               <pre class="PROGRAMLISTING">  autoheader &#38;&#38; autoconf &#38;&#38; ./configure</pre>
366             </td>
367           </tr>
368         </table>
369         <p>Then do:</p>
370         <table border="0" bgcolor="#E0E0E0" width="100%">
371           <tr>
372             <td>
373               <pre class="PROGRAMLISTING">  make tarball-dist</pre>
374             </td>
375           </tr>
376         </table>
377       </div>
378       <div class="SECT3">
379         <h3 class="SECT3"><a name="NEWRELEASE-WINDOWS" id="NEWRELEASE-WINDOWS">6.3.3. Windows</a></h3>
380         <p>Note that the docbook generated files might need some hand editing, so the Windows build makefile does not
381         rebuild the docs.</p>
382         <p>First, <span class="emphasis"><i class="EMPHASIS">make sure that you have freshly exported the right version
383         into an empty directory</i></span>. (See "Building and releasing packages" above).</p>
384         <p>Check that you have the current versions of the <a href=
385         "https://sourceforge.net/projects/nsis/files/NSIS%203/" target="_top">NSIS installer</a>, <a href=
386         "https://ftp.pcre.org/pub/pcre/" target="_top">PCRE library</a>, <a href="https://tls.mbed.org/download"
387         target="_top">MBED TLS library</a>, <a href="https://github.com/google/brotli/releases" target="_top">Brotli
388         library</a>, and that the <span class="emphasis"><i class="EMPHASIS">MAKENSIS</i></span> evar in <tt class=
389         "FILENAME">windows/GNUMakefile</tt> points to the NSIS installer program. (See the <a href=
390         "../user-manual/installation.html#WINBUILD-CYGWIN" target="_top"><span class="emphasis"><i class=
391         "EMPHASIS">Building from Source / Windows</i></span></a> section of the User Manual for details.)</p>
392         <p>Then you can build the package. This is fully automated, and is controlled by <tt class=
393         "FILENAME">windows/GNUmakefile</tt>. All you need to do is:</p>
394         <table border="0" bgcolor="#E0E0E0" width="100%">
395           <tr>
396             <td>
397               <pre class="PROGRAMLISTING">  cd windows
398   make</pre>
399             </td>
400           </tr>
401         </table>
402         <p>Now you can manually rename <tt class="FILENAME">privoxy_setup.exe</tt> to <tt class=
403         "FILENAME">privoxy_setup_X.Y.Z.exe</tt>, and the <tt class="FILENAME">build</tt> directory to <tt class=
404         "FILENAME">privoxy_X.Y.Z</tt>. Create a .zip file of the newly renamed <tt class="FILENAME">privoxy_X.Y.Z</tt>
405         directory, GPG sign the installer and zip file,</p>
406         <table border="0" bgcolor="#E0E0E0" width="100%">
407           <tr>
408             <td>
409               <pre class="PROGRAMLISTING">  gpg --armor --detach --sign <tt class=
410               "FILENAME">privoxy_setup_X.Y.Z.exe</tt>
411   gpg --armor --detach --sign <tt class="FILENAME">privoxy_X.Y.Z.zip</tt></pre>
412             </td>
413           </tr>
414         </table>
415         <p>and upload the files to SourceForge.</p>
416         <p>When releasing the package on SourceForge, use the release notes and Change Log from the source tarball
417         package.</p>
418       </div>
419       <div class="SECT3">
420         <h3 class="SECT3"><a name="NEWRELEASE-DEBIAN" id="NEWRELEASE-DEBIAN">6.3.4. Debian</a></h3>
421         <p>Using git-buildpackage we start with a clone of the last Debian version:</p>
422         <table border="0" bgcolor="#E0E0E0" width="100%">
423           <tr>
424             <td>
425               <pre class="PROGRAMLISTING">  gbp clone https://salsa.debian.org/debian/privoxy.git
426   cd privoxy</pre>
427             </td>
428           </tr>
429         </table>
430         <p>or if the repository is already there</p>
431         <table border="0" bgcolor="#E0E0E0" width="100%">
432           <tr>
433             <td>
434               <pre class="PROGRAMLISTING">  cd privoxy
435   gbp pull</pre>
436             </td>
437           </tr>
438         </table>
439         <p>Now import the newly released upstream tarball via debian/watch file:</p>
440         <table border="0" bgcolor="#E0E0E0" width="100%">
441           <tr>
442             <td>
443               <pre class="PROGRAMLISTING">  gbp import-orig --uscan</pre>
444             </td>
445           </tr>
446         </table>
447         <p>Next update all Debian quilt patches to the new version:</p>
448         <table border="0" bgcolor="#E0E0E0" width="100%">
449           <tr>
450             <td>
451               <pre class="PROGRAMLISTING">  while quilt push; do quilt refresh; done</pre>
452             </td>
453           </tr>
454         </table>
455         <p>If some patch is no longer required (because it is already merged upstream), it can be removed using</p>
456         <table border="0" bgcolor="#E0E0E0" width="100%">
457           <tr>
458             <td>
459               <pre class="PROGRAMLISTING">  quilt delete XX_patchname.patch
460   git rm debian/patches/XX_patchname.patch</pre>
461             </td>
462           </tr>
463         </table>
464         <p>If the patch needs modification, you can apply, edit and update it with</p>
465         <table border="0" bgcolor="#E0E0E0" width="100%">
466           <tr>
467             <td>
468               <pre class="PROGRAMLISTING">  quilt push -f
469   quilt edit some_file
470   quilt refresh</pre>
471             </td>
472           </tr>
473         </table>
474         <p>until</p>
475         <table border="0" bgcolor="#E0E0E0" width="100%">
476           <tr>
477             <td>
478               <pre class="PROGRAMLISTING">  while quilt push; do quilt refresh; done</pre>
479             </td>
480           </tr>
481         </table>
482         <p>succeeds. Then you can</p>
483         <table border="0" bgcolor="#E0E0E0" width="100%">
484           <tr>
485             <td>
486               <pre class="PROGRAMLISTING">  quilt pop -a</pre>
487             </td>
488           </tr>
489         </table>
490         <p>Now add a new entry to the debian/changelog representing the new version:</p>
491         <table border="0" bgcolor="#E0E0E0" width="100%">
492           <tr>
493             <td>
494               <pre class="PROGRAMLISTING">  dch -v 3.0.33-1</pre>
495             </td>
496           </tr>
497         </table>
498         <p>and describe what you did before and don't forget to git commit all changes.</p>
499         <p>Now you can build the package on the local machine using</p>
500         <table border="0" bgcolor="#E0E0E0" width="100%">
501           <tr>
502             <td>
503               <pre class="PROGRAMLISTING">  gbp buildpackage -us -uc</pre>
504             </td>
505           </tr>
506         </table>
507         <p>You should check for warnings using</p>
508         <table border="0" bgcolor="#E0E0E0" width="100%">
509           <tr>
510             <td>
511               <pre class="PROGRAMLISTING">  lintian -iI ../build-area/privoxy_3.0.33-1_amd64.changes</pre>
512             </td>
513           </tr>
514         </table>
515         <p>Maybe rebuild the package in different defined cowbuilder environments like</p>
516         <table border="0" bgcolor="#E0E0E0" width="100%">
517           <tr>
518             <td>
519               <pre class=
520               "PROGRAMLISTING">  sudo cowbuilder --build --basepath /var/cache/pbuilder/base.cow ../build-area/privoxy_3.0.33-1.dsc</pre>
521             </td>
522           </tr>
523         </table>
524         <p>And try to run autopackage testing suite on the result:</p>
525         <table border="0" bgcolor="#E0E0E0" width="100%">
526           <tr>
527             <td>
528               <pre class=
529               "PROGRAMLISTING">  autopkgtest /var/cache/pbuilder/result/privoxy_3.0.33-1_amd64.changes -s -- schroot sid</pre>
530             </td>
531           </tr>
532         </table>
533         <p>Or just push the changes to salsa.debian.org, where a CI pipeline is defined for the package, that builds
534         and tests it.</p>
535         <p>If everything is okay, run cowbuilder with i386 and amd64 environments for current Debian stable release and
536         build privoxy_3.0.33-1_i386.deb and privoxy_3.0.33-1_amd64.deb. Then sign both files:</p>
537         <table border="0" bgcolor="#E0E0E0" width="100%">
538           <tr>
539             <td>
540               <pre class="PROGRAMLISTING">  gpg --detach-sign --armor privoxy_3.0.33-1_i386.deb
541   gpg --detach-sign --armor privoxy_3.0.33-1_amd64.deb</pre>
542             </td>
543           </tr>
544         </table>
545         <p>Create a README file containing the recent block from debian/changelog and upload the two packages, the two
546         signatures and the README to a freshly created folder below
547         https://sourceforge.net/projects/ijbswa/files/Debian/</p>
548         <div class="SECT4">
549           <h4 class="SECT4"><a name="SNAPSHOT-DEBIAN" id="SNAPSHOT-DEBIAN">6.3.4.1. Debian GIT Snapshot</a></h4>
550           <p>For building just a git snapshot build the following workflow may be useful. First create a build
551           environment, for this you may have to run the following commands:</p>
552           <table border="0" bgcolor="#E0E0E0" width="100%">
553             <tr>
554               <td>
555                 <pre class="PROGRAMLISTING">  sudo apt install build-essential devscripts
556   sudo apt-get build-dep privoxy</pre>
557               </td>
558             </tr>
559           </table>
560           <p>After this enter the checked out privoxy git tree and check that all (new) build dependencies are met:</p>
561           <table border="0" bgcolor="#E0E0E0" width="100%">
562             <tr>
563               <td>
564                 <pre class="PROGRAMLISTING">  dpkg-checkbuilddeps</pre>
565               </td>
566             </tr>
567           </table>
568           <p>If something is missing, just add it using</p>
569           <table border="0" bgcolor="#E0E0E0" width="100%">
570             <tr>
571               <td>
572                 <pre class="PROGRAMLISTING">  sudo apt install foobar</pre>
573               </td>
574             </tr>
575           </table>
576           <p>Now you may update debian/changelog, especially the version number using</p>
577           <table border="0" bgcolor="#E0E0E0" width="100%">
578             <tr>
579               <td>
580                 <pre class="PROGRAMLISTING">  dch</pre>
581               </td>
582             </tr>
583           </table>
584           <p>and finally build the package:</p>
585           <table border="0" bgcolor="#E0E0E0" width="100%">
586             <tr>
587               <td>
588                 <pre class="PROGRAMLISTING">  debuild -us -uc -b</pre>
589               </td>
590             </tr>
591           </table>
592           <p>If everything went okay, you may find the resulting Debian package in the parent directory.</p>
593           <p>You may want to clean up the build tree using</p>
594           <table border="0" bgcolor="#E0E0E0" width="100%">
595             <tr>
596               <td>
597                 <pre class="PROGRAMLISTING">  debian/rules clean</pre>
598               </td>
599             </tr>
600           </table>
601           <p>And maybe repair some artefacts using one or both of the following commands:</p>
602           <table border="0" bgcolor="#E0E0E0" width="100%">
603             <tr>
604               <td>
605                 <pre class="PROGRAMLISTING">  git reset --hard
606   git clean -fd</pre>
607               </td>
608             </tr>
609           </table>
610         </div>
611       </div>
612       <div class="SECT3">
613         <h3 class="SECT3"><a name="NEWRELEASE-MACOSX" id="NEWRELEASE-MACOSX">6.3.5. Mac OS X</a></h3>
614         <p>First, <span class="emphasis"><i class="EMPHASIS">make sure that you have freshly exported the right version
615         into an empty directory</i></span>. (See "Building and releasing packages" above).</p>
616         <p>There are three modules available in the CVS repository backups for use on Mac OS X, though technically only
617         two of them generate a release (the other can be used to install from source).</p>
618         <div class="SECT4">
619           <h4 class="SECT4"><a name="OS-X-OSXPACKAGEBUILDER-MODULE" id="OS-X-OSXPACKAGEBUILDER-MODULE">6.3.5.1.
620           OSXPackageBuilder module (Documentation out of date)</a></h4>
621           <p>The OSXPackageBuilder module generates OS X installer packages supporting all Macs running OS X 10.4 and
622           above. Obtain it from CVS as follows into a folder parallel to the exported privoxy source:</p>
623           <table border="0" bgcolor="#E0E0E0" width="100%">
624             <tr>
625               <td>
626                 <pre class=
627                 "PROGRAMLISTING">  cvs -z3 -d:pserver:anonymous@ijbswa.cvs.sourceforge.net:/cvsroot/ijbswa co OSXPackageBuilder</pre>
628               </td>
629             </tr>
630           </table>
631           <p>The module contains complete instructions on its usage in the file <tt class="FILENAME">OS X Package
632           Builder HOWTO.txt</tt>.</p>
633           <p>Once the package(s) have been generated, you can then upload them directly to the Files section of the
634           Sourceforge project in the Macintosh (OS X) folder. Each new version release of Privoxy should have a new
635           subfolder created in which to store its files. Please ensure that the folder contains a readme file that
636           makes it clear which package is for whichversion of OS X.</p>
637         </div>
638         <div class="SECT4">
639           <h4 class="SECT4"><a name="OS-X-OSXSETUP-MODULE" id="OS-X-OSXSETUP-MODULE">6.3.5.2. osxsetup module
640           (DEPRECATED) (Documentation out of date)</a></h4>
641           <p><span class="emphasis"><i class="EMPHASIS">This module is deprecated since the installer it generates
642           places all Privoxy files in one folder in a non-standard location, and supports only Intel Macs running OS X
643           10.6 or higher.</i></span></p>
644           <p>Check out the module from CVS as follows into a folder parallel to the exported privoxy source:</p>
645           <table border="0" bgcolor="#E0E0E0" width="100%">
646             <tr>
647               <td>
648                 <pre class=
649                 "PROGRAMLISTING">  cvs -z3 -d:pserver:anonymous@ijbswa.cvs.sourceforge.net:/cvsroot/ijbswa co osxsetup</pre>
650               </td>
651             </tr>
652           </table>
653           <p>Then run:</p>
654           <table border="0" bgcolor="#E0E0E0" width="100%">
655             <tr>
656               <td>
657                 <pre class="PROGRAMLISTING">  cd osxsetup
658   build</pre>
659               </td>
660             </tr>
661           </table>
662           <p>This will run <tt class="FILENAME">autoheader</tt>, <tt class="FILENAME">autoconf</tt> and <tt class=
663           "FILENAME">configure</tt> as well as <tt class="FILENAME">make</tt>. Finally, it will copy over the necessary
664           files to the ./osxsetup/files directory for further processing by <tt class="FILENAME">PackageMaker</tt>.</p>
665           <p>Bring up PackageMaker with the PrivoxyPackage.pmsp definition file, modify the package name to match the
666           release, and hit the "Create package" button. If you specify ./Privoxy.pkg as the output package name, you
667           can then create the distributable zip file with the command:</p>
668           <table border="0" bgcolor="#E0E0E0" width="100%">
669             <tr>
670               <td>
671                 <pre class="PROGRAMLISTING">  zip -r privoxyosx_setup_x.y.z.zip Privoxy.pkg</pre>
672               </td>
673             </tr>
674           </table>
675           <p>You can then upload this file directly to the Files section of the Sourceforge project in the Macintosh
676           (OS X) folder. Each new version release of Privoxy should have a new subfolder created in which to store its
677           files. Please ensure that the folder contains a readme file that makes it clear which version(s) of OS X the
678           package supports.</p>
679         </div>
680         <div class="SECT4">
681           <h4 class="SECT4"><a name="OS-X-MACSETUP-MODULE" id="OS-X-MACSETUP-MODULE">6.3.5.3. macsetup module
682           (Documentation out of date)</a></h4>
683           <p>The macsetup module is ideal if you wish to build and install Privoxy from source on a single machine.</p>
684           <p>Check out the module from CVS as follows into a folder parallel to the exported privoxy source:</p>
685           <table border="0" bgcolor="#E0E0E0" width="100%">
686             <tr>
687               <td>
688                 <pre class=
689                 "PROGRAMLISTING">  cvs -z3 -d:pserver:anonymous@ijbswa.cvs.sourceforge.net:/cvsroot/ijbswa co macsetup</pre>
690               </td>
691             </tr>
692           </table>
693           <p>The module contains complete instructions on its usage in its <tt class="FILENAME">README</tt> file. The
694           end result will be the exported version of Privoxy installed on the build machine.</p>
695         </div>
696       </div>
697       <div class="SECT3">
698         <h3 class="SECT3"><a name="NEWRELEASE-FREEBSD" id="NEWRELEASE-FREEBSD">6.3.6. FreeBSD</a></h3>
699         <p>Update the www/privoxy port and submit a diff upstream. For details see the <a href=
700         "https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/" target="_top">FreeBSD Porter's
701         Handbook</a>.</p>
702       </div>
703     </div>
704     <div class="SECT2">
705       <h2 class="SECT2"><a name="RELEASING" id="RELEASING">6.4. Uploading and Releasing Your Package</a></h2>
706       <p>After the package is ready, it is time to upload it and go through the release steps. The upload is done at
707       <a href="https://sourceforge.net/projects/ijbswa/upload/" target="_top">SourceForge</a> after logging in.</p>
708       <p>Now just follow the prompts. Be sure to add any appropriate Release notes. You should see your freshly
709       uploaded packages in <span class="QUOTE">"Step 2. Add Files To This Release"</span>. Check the appropriate
710       box(es). Remember at each step to hit the <span class="QUOTE">"Refresh/Submit"</span> buttons! You should now see
711       your file(s) listed in Step 3. Fill out the forms with the appropriate information for your platform, being sure
712       to hit <span class="QUOTE">"Update"</span> for each file. If anyone is monitoring your platform, check the
713       <span class="QUOTE">"email"</span> box at the very bottom to notify them of the new package. This should do
714       it!</p>
715       <p>If you have made errors, or need to make changes, you can go through essentially the same steps, but select
716       <tt class="LITERAL">Edit Release</tt>, instead of <tt class="LITERAL">Add Release</tt>.</p>
717     </div>
718     <div class="SECT2">
719       <h2 class="SECT2"><a name="AFTERRELEASE" id="AFTERRELEASE">6.5. After the Release</a></h2>
720       <p>When all (or: most of the) packages have been uploaded and made available, send an email to the <a href=
721       "mailto:privoxy-announce@lists.privoxy.org" target="_top">announce mailing list</a>, Subject: "Announcing Privoxy
722       X.Y.Z $CODE_STATUS". Be sure to include the <a href="https://sourceforge.net/projects/ijbswa/files/" target=
723       "_top">download location</a>, the release notes and the Changelog. Also, post an updated News item on the project
724       page Sourceforge, and update the Home page and docs linked from the Home page (see below). Other news sites and
725       release oriented sites, such as Freshmeat, should also be notified.</p>
726       <p>Then update the source code for the next version to be released:</p>
727       <ul>
728         <li>
729           <p>Increment the version number and change the code status to "UNRELEASED" in <tt class=
730           "FILENAME">configure.in</tt></p>
731         </li>
732         <li>
733           <p>Rebuild configure (<span class="QUOTE">"<b class="COMMAND">autoheader &#38;&#38; autoconf</b>"</span>) and
734           GNUMakefile (<span class="QUOTE">"<b class="COMMAND">./configure</b>"</span>)</p>
735         </li>
736         <li>
737           <p><span class="QUOTE">"<b class="COMMAND">make dok-release</b>"</span> to update the sgml documentation
738           source files.</p>
739         </li>
740         <li>
741           <p>Commit all your changes.</p>
742         </li>
743       </ul>
744     </div>
745   </div>
746   <div class="NAVFOOTER">
747     <hr align="left" width="100%">
748     <table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
749       <tr>
750         <td width="33%" align="left" valign="top"><a href="testing.html" accesskey="P">Prev</a></td>
751         <td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">Home</a></td>
752         <td width="33%" align="right" valign="top"><a href="webserver-update.html" accesskey="N">Next</a></td>
753       </tr>
754       <tr>
755         <td width="33%" align="left" valign="top">Testing Guidelines</td>
756         <td width="34%" align="center" valign="top">&nbsp;</td>
757         <td width="33%" align="right" valign="top">Update the Webserver</td>
758       </tr>
759     </table>
760   </div>
761 </body>
762 </html>