X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=doc%2Fwebserver%2Fdeveloper-manual%2Fnewrelease.html;h=77b2fe440351575d2e9e05fbcaeff2d7d51eb561;hp=81cad14783769eb2954e17f0ed16395b2e1a6d3b;hb=659cbbc13f413ed0c5dacd4d03060f48eb500011;hpb=321944b1997539a18dc73184c01a81f6b89acb65 diff --git a/doc/webserver/developer-manual/newrelease.html b/doc/webserver/developer-manual/newrelease.html index 81cad147..77b2fe44 100644 --- a/doc/webserver/developer-manual/newrelease.html +++ b/doc/webserver/developer-manual/newrelease.html @@ -1,11 +1,11 @@ +
Next | 8. Releasing a New Version6. Releasing a New Version
$ autoheader && autoconf # rebuild configure + $ ./configure # rebuild GNUmakefile |
make dok-release to update the sgml documentation source files.
If If action file processing has changed and is not backward-compatible, + make sure the "for-privoxy-version=x.y.z" minimum version number in + default.action has changed since last - release (i.e. software release or standalone actions file release), - bump up its version info to A.B in this line: +>default.action.master has been updated: +
{{settings}} + ############################################################################# + #MASTER# COMMENT: The minimum Privoxy version: + for-privoxy-version=3.0.11 |
Create the change log:
$ git tag + # to see the tags + $ git log [last release tag]..master > /tmp/log + # get the commit log since the last release + $ utils/makeChangeLog /tmp/log > /tmp/change.log + # reformat the commit log |
-
{+add-header{X-Actions-File-Version: A.B} -filter -no-popups}- Bug fixes: + - Action file improvements: + - Filter file improvements: + - General improvements: + - Documentation improvements: + - Build system improvements: + - Code cleanups: + - Privoxy-Log-Parser: + - Privoxy-Regression-Test: |
Add the contents of /tmp/change.log to the + start of ChangeLog and re-create + doc/source/changelog.sgml: +
$ utils/changelog2doc.pl /tmp/change.log >| doc/source/changelog.sgml |
All developers should look at the ChangeLog and + make sure noteworthy changes are referenced.
- Then change the version info in doc/webserver/actions/index.php, - line: '$required_actions_file_version = "A.B";' +> Update the announcement at doc/webserver/announce.txt.
If the HTML documentation is not in sync with the SGML sources - you need to regenerate and upload it to the webserver. (If in - doubt, just do it.) See the Section "Updating the webserver" in - this manual for details. +> All documentation should be rebuilt: +
$ make man + $ make dok + $ make dok-man + $ make dok-tidy + $ make config-file |
Commit all files that were changed in the above steps! +
The User Manual is also used for context + sensitive help for the CGI editor. This is version sensitive, so that + the user will get appropriate help for his/her release. So with + each release a fresh version should be uploaded to the webserver + (this is in addition to the main User Manual + link from the main page since we need to keep manuals for various + versions available). The CGI pages will link to something like + https://www.privoxy.org/$(VERSION)/user-manual/. This + needs to be updated for each new release and is done with the + "webserver" target.
Tag all files in CVS with the version number with +> Tag all files in Git with the version number with "cvs tag v_X_Y_Zgit tag -s v_X_Y_Z". Don't use vX_Y_Z, ver_X_Y_Z, v_X.Y.Z (won't work) etc. @@ -272,12 +508,14 @@ CLASS="COMMAND" >
If the release was in a development branch, increase the point version - from even to odd (X.Y.(Z+1)) again in configure.in and - commit your change. +> Push the tag to the remote with + "git push origin v_X_Y_Z".
Now the individual packages can be built and released. Note that for GPL reasons the first package to be released is always the source tarball.
For For all types of packages, including the source tarball, - you must make sure that you build from clean sources by exporting - the right version from CVS into an empty directory:. + the right version from Git into an empty directory (just press return when + asked for a password):
Do NOT change a single bit, including, but not limited to - version information after export from CVS. This is to make sure that + version information after export from Git. This is to make sure that all release packages, and with them, all future bug reports, are based on exactly the same code.
Please find additional instructions for the source tarball and the - individual platform dependent binary packages below. -
First, make sure that you have freshly exported the right - version into an empty directory. (See "Building and releasing - packages" above). Then run: -
cd current - autoheader && autoconf && ./configureWarning |
Then do: -
make tarball-dist |
To upload the package to Sourceforge, simply issue -
make tarball-uploadEvery significant release of Privoxy has included at least one + package that either had incorrect versions of files, missing files, + or incidental leftovers from a previous build process that gave + unknown numbers of users headaches to try to figure out what was + wrong. PLEASE, make sure you are using pristene sources, and are + following the prescribed process! + |
Go to the displayed URL and release the file publicly on Sourceforge. - For the change log field, use the relevant section of the - ChangeLog file. -
Please find additional instructions for the source tarball and the + individual platform dependent binary packages below. And details + on the Sourceforge release process below that. +
In following text, replace Please keep these general guidelines in mind when putting together + your package. These apply to dist - with either "rh" for Red Hat or "suse" for SuSE. -
First, make sure that you have freshly exported the right - version into an empty directory. (See "Building and releasing - packages" above). -
all platforms! +As the only exception to not changing anything after export from CVS, - now examine the file privoxy-
Privoxy dist.specrequires - and make sure that the version information and the RPM release number are - correct. The RPM release numbers for each version start at one. Hence it must - be reset to one if this is the first RPM for - dist which is built from version - X.Y.Z. Check the - file - list if unsure. Else, it must be set to the highest already available RPM - release number for that version plus one. -
*.action files, all + logfiles, and the trust file. You will + need to determine the best way to do this for your platform. +Then run: -
Please include up to date documentation. At a bare minimum: +
cd current - autoheader && autoconf && ./configure | LICENSE (top-level directory)
+
Then do -
make dist-dist | README (top-level directory)
+
To upload the package to Sourceforge, simply issue -
make dist-upload rpm_packagerev | AUTHORS (top-level directory)
+
man page (top-level directory, Unix-like + platforms only) + |
The User Manual (doc/webserver/user-manual/) + |
FAQ (doc/webserver/faq/) + |
Also suggested: Developer Manual -
ChangeLog + (top-level directory). FAQ and the manuals are + HTML docs. +where rpm_packagerev is the - RPM release number as determined above. - Go to the displayed URL and release the file publicly on Sourceforge. - Use the release notes and change log from the source tarball package. +> The documentation has been designed such that the manuals are linked + to each other from parallel directories, and should be packaged + that way. privoxy-index.html can also be + included and can serve as a focal point for docs and other links of + interest (and possibly renamed to index.html). + This should be one level up from the manuals. There is a link also + on this page to an HTMLized version of the man page. To avoid 404 for + this, it is in Git as + doc/webserver/man-page/privoxy-man-page.html, + and should be included along with the manuals. There is also a + css stylesheets that can be included for better presentation: + p_doc.css. This should be in the same directory + with privoxy-index.html, (i.e. one level up from + the manual directories). +
user.action and user.filter + are designed for local preferences. Make sure these do not get overwritten! + config should not be overwritten either. This + has especially important configuration data in it. + trust should be left in tact as well. +
Other configuration files (default.action, + regression-tests.action and + default.filter) should be installed as the new + defaults, but all previously installed configuration files should be + preserved as backups. This is just good manners :-) These files are + likely to change between releases and contain important new features + and bug fixes. +
Please check platform specific notes in this doc, if you haven't + done "Privoxy" packaging before for other platform + specific issues. Conversely, please add any notes that you know + are important for your platform (or contact one of the doc + maintainers to do this if you can't).
Packagers should do a "clean" install of their + package after building it. So any previous installs should be + removed first to ensure the integrity of the newly built package. + Then run the package for a while to make sure there are no + obvious problems, before uploading. +
First, First, make sure that you have freshly exported the right version into an empty directory. (See "Building and releasing - packages" above). Then get the OS/2 Setup module: -
cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa co os2setupautoheader && autoconf && ./configure |
You will need a mix of development tools. - The main compilation takes place with IBM Visual Age C++. - Some ancillary work takes place with GNU tools, available from - various sources like hobbes.nmsu.edu. - Specificially, you will need autoheader, - autoconf and sh tools. - The packaging takes place with WarpIN, available from various sources, including - its home page: xworkplace. -
Change directory to the os2setup directory. - Edit the os2build.cmd file to set the final executable filename. - For example, -
installExeName='privoxyos2_setup_X.Y.Z.exe'make tarball-dist |
Next, edit the IJB.wis file so the release number matches - in the Note that the docbook generated files might need some hand editing, + so the Windows build makefile does not rebuild the docs. +
First, make sure that you have freshly exported the right + version into an empty directory. (See "Building and releasing + packages" above). +
Check that you have the current versions of the + NSIS installer, + PCRE library, + MBED TLS library, + Brotli library, + and that the MAKENSIS evar in + PACKAGEID section: -
windows/GNUMakefile + points to the NSIS installer program. (See the + Building from Source / Windows + section of the User Manual for details.) +
PACKAGEID="Privoxy Team\Privoxy\Privoxy Package\X\Y\Z"cd windows + make |
You're now ready to build. Run: -
os2buildgpg --armor --detach --sign privoxy_setup_X.Y.Z.exe + gpg --armor --detach --sign privoxy_X.Y.Z.zip |
You will find the WarpIN-installable executable in the - ./files directory. Upload this anonymously to - uploads.sourceforge.net/incoming, create a release - for it, and you're done. Use the release notes and Change Log from the - source tarball package. -
and upload the files to SourceForge. +When releasing the package on SourceForge, use the release notes + and Change Log from the source tarball package. +
Login to Sourceforge's compilefarm via ssh: -
ssh cf.sourceforge.netgbp clone https://salsa.debian.org/debian/privoxy.git + cd privoxy |
Choose the right operating system (not the Debian one). - When logged in, make sure that you have freshly exported the right - version into an empty directory. (See "Building and releasing - packages" above). Then run: -
or if the repository is already there +cd privoxy + gbp pull |
cd current - autoheader && autoconf && ./configuregbp import-orig --uscan |
Then run -
Next update all Debian quilt patches to the new version: +while quilt push; do quilt refresh; done |
gmake solaris-distquilt delete XX_patchname.patch + git rm debian/patches/XX_patchname.patch |
which creates a gzip'ed tar archive. Sadly, you cannot use make - solaris-upload on the Sourceforge machine (no ncftpput). You now have - to manually upload the archive to Sourceforge's ftp server and release - the file publicly. Use the release notes and Change Log from the - source tarball package. -
quilt push -f + quilt edit some_file + quilt refresh |
You should ensure you have the latest version of Cygwin (from - http://www.cygwin.com/). - Run the following commands from within a Cygwin bash shell. +> until
while quilt push; do quilt refresh; done |
First, make sure that you have freshly exported the right - version into an empty directory. (See "Building and releasing - packages" above). Then get the Windows setup module: +> succeeds. Then you can
quilt pop -a |
cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa co winsetupdch -v 3.0.34-1 |
Then you can build the package. This is fully automated, and is - controlled by winsetup/GNUmakefile. - All you need to do is: +> and describe what you did before and don't forget to git commit all + changes.
cd winsetup - makegbp buildpackage -us -uc |
Now you can manually rename privoxy_setup.exe to - privoxy_setup_X_Y_Z.exe, and upload it to - SourceForge. When releasing the package on SourceForge, use the release notes - and Change Log from the source tarball package. +> You should check for warnings using
First, make sure that you have freshly exported the right - version into an empty directory. (See "Building and releasing - packages" above). Then, run: -
cd current - autoheader && autoconf && ./configurelintian -iI ../build-area/privoxy_3.0.34-1_amd64.changes |
Then do FIXME. -
First, make sure that you have freshly exported the right - version into an empty directory. (See "Building and releasing - packages" above). Then get the Mac OSX setup module: -
cvs -z3 -d:pserver:anonymous@cvs.ijbswa.sourceforge.net:/cvsroot/ijbswa co osxsetupsudo cowbuilder --build --basepath /var/cache/pbuilder/base.cow ../build-area/privoxy_3.0.34-1.dsc |
Then run: -
cd osxsetup - buildautopkgtest /var/cache/pbuilder/result/privoxy_3.0.34-1_amd64.changes -s -- schroot sid |
This will run autoheader, autoconf and - configure as well as make. - Finally, it will copy over the necessary files to the ./osxsetup/files directory - for further processing by PackageMaker. -
Bring up PackageMaker with the PrivoxyPackage.pmsp definition file, modify the package - name to match the release, and hit the "Create package" button. - If you specify ./Privoxy.pkg as the output package name, you can then create - the distributable zip file with the command: -
Or just push the changes to salsa.debian.org, where a CI pipeline is + defined for the package, that builds and tests it. +
zip -r privoxyosx_setup_x.y.z.zip Privoxy.pkggpg --detach-sign --armor privoxy_3.0.34-1_i386.deb + gpg --detach-sign --armor privoxy_3.0.34-1_amd64.deb |
You can then upload privoxyosx_setup_x.y.z.zip anonymously to - uploads.sourceforge.net/incoming, - create a release for it, and you're done. Use the release notes - and Change Log from the source tarball package. -
Create a README file containing the recent block from debian/changelog + and upload the two packages, the two signatures and the README to a + freshly created folder below + https://sourceforge.net/projects/ijbswa/files/Debian/ +Login to Sourceforge's compilefarm via ssh: -
ssh cf.sourceforge.netsudo apt install build-essential devscripts + sudo apt-get build-dep privoxy |
Choose the right operating system. - When logged in, make sure that you have freshly exported the right - version into an empty directory. (See "Building and releasing - packages" above). Then run: -
cd current - autoheader && autoconf && ./configuredpkg-checkbuilddeps |
Then run: -
gmake freebsd-distsudo apt install foobar |
which creates a gzip'ed tar archive. Sadly, you cannot use make - freebsd-upload on the Sourceforge machine (no ncftpput). You now have - to manually upload the archive to Sourceforge's ftp server and release - the file publicly. Use the release notes and Change Log from the - source tarball package. -
First, make sure that you have freshly exported the right - version into an empty directory. (See "Building and releasing - packages" above). Then run: -
cd current - autoheader && autoconf && ./configuredch |
Then do FIXME. -
First, make sure that you have freshly exported the right - version into an empty directory. (See "Building and releasing - packages" above). Then run: -
cd current - autoheader && autoconf && ./configuredebuild -us -uc -b |
Then do FIXME. -
Login to Sourceforge's compilefarm via ssh: -
If everything went okay, you may find the resulting Debian package in + the parent directory. +
ssh cf.sourceforge.netdebian/rules clean |
Choose the right operating system. - When logged in, make sure that you have freshly exported the right - version into an empty directory. (See "Building and releasing - packages" above). Then run: -
cd current - autoheader && autoconf && ./configuregit reset --hard + git clean -fd |
Then run: -
First, make sure that you have freshly exported the right + version into an empty directory. (See "Building and releasing + packages" above). +
make aix-distgit clone ssh://git@git.privoxy.org:23/git/OSXPackageBuilder.git |
which creates a gzip'ed tar archive. Sadly, you cannot use make - aix-upload on the Sourceforge machine (no ncftpput). You now have - to manually upload the archive to Sourceforge's ftp server and release - the file publicly. Use the release notes and Change Log from the - source tarball package. -
The module contains complete instructions on its usage in the file + OS X Package Builder HOWTO.txt. +Once the package(s) have been generated, you can then upload them + directly to the Files section of the Sourceforge project in the + Macintosh (OS X) folder. Each new version release of Privoxy should + have a new subfolder created in which to store its files. Please + ensure that the folder contains a readme file that makes it clear + which package is for which version of OS X. +
Update the www/privoxy port and submit a diff upstream. + For details see the FreeBSD Porter's Handbook. +
After the package is ready, it is time to upload it - to SourceForge, and go through the release steps. The upload - is done via FTP: -
Upload to: After the package is ready, it is time to upload it + and go through the release steps. The upload + is done at + ftp://upload.sourceforge.net/incoming -
user: anonymous -
password: ijbswa-developers@lists.sourceforge.net -
Once this done go to http://sourceforge.net/project/admin/editpackages.php?group_id=11118, - making sure you are logged in. Find your target platform in the - second column, and click Add Release. You will - then need to create a new release for your package, using the format - of $VERSION ($CODE_STATUS), e.g. 2.9.14 - (beta). + after logging in.
Now just follow the prompts. Be sure to add any appropriate Release - notes. You should see your freshly uploaded packages in + notes. You should see your freshly uploaded packages in "Step 2. Add Files To This Release". Check the - appropriate box(es). Remember at each step to hit the +>. Check the + appropriate box(es). Remember at each step to hit the "Refresh/Submit" buttons! You should now see your - file(s) listed in Step 3. Fill out the forms with the appropriate +> buttons! You should now see your + file(s) listed in Step 3. Fill out the forms with the appropriate information for your platform, being sure to hit "Update" - for each file. If anyone is monitoring your platform, check the + for each file. If anyone is monitoring your platform, check the "email" box at the very bottom to notify them of +> box at the very bottom to notify them of the new package. This should do it!
If you have made errors, or need to make changes, you can go through +> If you have made errors, or need to make changes, you can go through essentially the same steps, but select Edit Release, +>, instead of Add Release8.5. After the Release6.5. After the Release
When all (or: most of the) packages have been uploaded and made available, - send an email to the announce - mailing list, Subject: "Version X.Y.Z available for download". Be sure to +>announce mailing + list, Subject: "Announcing Privoxy X.Y.Z $CODE_STATUS". Be sure to include the download - location, the release notes and the change log. +> download location, the release notes and the Changelog. Also, post an + updated News item on the project page Sourceforge, and update the Home + page and docs linked from the Home page (see below). Other news sites + and release oriented sites, such as Freshmeat, should also be notified. +
Then update the source code for the next version to be released:
Increment the version number and change the code status to "UNRELEASED" + in configure.in +
Rebuild configure ("autoheader && autoconf") + and GNUMakefile ("./configure") +
"make dok-release" to update the sgml documentation source files. +
Commit all your changes. +