Memory Pool System Release Build Procedure
| author | Richard Brooksby |
| confidentiality | public |
| copyright | See C. Copyright and License |
| date | 2002-06-17 |
| organization | Ravenbrook Limited |
| revision | //info.ravenbrook.com/project/mps/version/1.112/procedure/release-build.rst#1 |
1. Introduction
This is the procedure for building a generic release of the Memory Pool System (an “MPS Kit”) from the version sources.
The intended readership of this document is Ravenbrook development staff. (If you are a user of the MPS, and want to build object code from an MPS Kit, please see the readme.txt file in the kit.)
This document is not confidential.
All relative paths are relative to //info.ravenbrook.com/project/mps/.
2. Creating a version branch
- Make sure you have a version branch from which to make the release. If not, follow the version creation procedure first.
3. Setting up for release
Choose a RELEASE name of the form VERSION.N (for example, 1.111.0), where VERSION is the number of the version you’re releasing, and N is the first unused release number (starting at zero). Look in the index of releases (release/index.html) for existing release numbers for your version:
VERSION=A.BBB RELEASE=$VERSION.N
Ensure that version/$VERSION/readme.txt contains an up-to-date description of the release you intend to build and the correct release name.
Ensure that version/$VERSION/manual/source/release.txt contains a section with an up-to-date description of significant user-visible changes since the previous release.
In version/$VERSION/code/version.c, set MPS_RELEASE to the correct value (see the rules in the comments), and check strings that contain copyright dates, etc.
In configure.ac edit the second argument of AC_INIT to be "release $RELEASE", then open configure for edit and run autoreconf -vif to bring the configure script up to date.
Submit readme.txt, manual/source/release.txt, version.c, configure.ac, configure, and other changed files to Perforce before you continue.
Determine the CHANGELEVEL at which you’re going to make the release. This will usually be the latest submitted changelevel on the version branch; to get it, use p4 changes -m 1:
CHANGELEVEL=$(p4 changes -m 1 version/$VERSION/... | cut -d' ' -f2)
4. Pre-release testing
Sync the version sources to precisely the CHANGELEVEL you determined above, with no extraneous files, by using the following procedure:
p4 opened version/$VERSION/... # should output nothing p4 revert version/$VERSION/... rm -rf version/$VERSION p4 sync -f version/$VERSION/...@$CHANGELEVEL
Note that the revert and sync -f are necessary, otherwise opened files may be left in place, or writeable-on-client files may be omitted; see [RHSK_2008-10-16].
Run the test suite:
(cd version/$VERSION && ./configure && make test)
Check that the test suite passes.
Repeat for all supported platforms. On Windows the sequence of commands to run the test suite are:
cd version\$VERSION\code nmake /f w3i6mv.nmk testrun
On other platforms they are as shown above.
5. MPS Kit Tarball and Zip file
Note
If you are creating a customer-specific variant then vary the release name according to the variant, for example, mps-cet-1.110.0.zip
On a Unix box:
Create a fresh Perforce client workspace containing the following:
LineEnd: local View: //info.ravenbrook.com/project/mps/version/VERSION/... //CLIENT/mps-kit-RELEASE/... //info.ravenbrook.com/project/mps/release/RELEASE/... //CLIENT/release/RELEASE/...Ensure the Perforce client workspace is set for Unix (LF) line endings.
Sync the version sources to CHANGELEVEL by repeating the procedure from step 4.1:
rm -rf mps-kit-RELEASE p4 sync -f @CHANGELEVEL
Create a tarball containing the MPS sources, and open it for add:
mkdir -p release/RELEASE tar czf release/RELEASE/mps-kit-RELEASE.tar.gz mps-kit-RELEASE p4 add release/RELEASE/mps-kit-RELEASE.tar.gz
Ensure the Perforce client workspace is set for Windows (CRLF) line endings.
Sync the version sources again.
Create a zip file containing the MPS sources, and open it for add:
mkdir -p release/RELEASE zip -r release/RELEASE/mps-kit-RELEASE.zip mps-kit-RELEASE p4 add release/RELEASE/mps-kit-RELEASE.zip
Revert any changes to your Perforce client line endings. (You probably want them set to local.)
Submit the release files to Perforce with the comment "MPS: adding the MPS Kit tarball and zip file for release RELEASE."
6. Registering the release
- Edit the index of releases (release/index.html) and add the release to the table, in a manner consistent with previous releases.
- Edit the index of versions (version/index.html) and add the release to the list of releases for VERSION, in a manner consistent with previous releases.
- Submit these changes with the comment “MPS: registered release RELEASE.”
- Edit the main MPS Project index page (index.html), to refer to
the new release:
- update links to “the latest release” or “download” (important);
- consider updating the “project status” section.
- Visit the project updater, select “mps” from the dropdown, and hit “Find releases”.
- Inform the project manager and staff by e-mail to mps-staff@ravenbrook.com. Consider announcing the new release by e-mail to mps-discussion@ravenbrook.com.
A. References
| [RHSK_2008-10-16] | Richard Kistruck; "revert ; rm ; sync -f"; Ravenbrook Limited; 2008-10-16; http://info.ravenbrook.com/mail/2008/10/16/13-08-20/0.txt |
| [Sphinx] | "Sphinx: Python document generator"; http://sphinx-doc.org/ |
B. Document History
| 2002-06-17 | RB | Created based on P4DTI procedure. |
| 2002-06-19 | NB | Fixed up based on experience of release 1.100.0. |
| 2004-03-03 | RB | Fixed the way we determine the release changelevel to avoid possible pending changelists. |
| 2005-10-06 | RHSK | Clarify this procedure is for general MPS Kit releases; correct cp -r to -R. Add: check version.c. |
| 2006-01-19 | RHSK | Correct readership statement, and direct MPS users to the mps-kit readme. |
| 2006-02-16 | RHSK | Use Info-ZIP (free) for Windows archives, not WinZip. |
| 2007-07-05 | RHSK | Releasename now also in w3build.bat. |
| 2008-01-07 | RHSK | Release changelevel was in issue.cgi, now in data.py. |
| 2010‑10‑06 | GDR | Use the project updater to register new releases. |
| 2012‑09‑13 | RB | Don’t copy the readme.txt to the release directory, since it no longer has that dual role; make the ZIP file on a Unix box with the zip utility, since compatibility has improved. |
| 2013-03-08 | GDR | Add testing step. |
| 2012‑09‑24 | RB | Make sure ZIP files contain files with Windows line endings. Use a fresh Perforce client to avoid any possibility of a clash with working files. Different archive name for custom variants. |
| 2013-03-20 | GDR | Ensure that manual HTML is up to date before making a release. |
C. Copyright and License
This document is copyright © 2002–2013 Ravenbrook Limited. All rights reserved. This is an open source license. Contact Ravenbrook for commercial licensing options.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Redistributions in any form must be accompanied by information on how to obtain complete source code for the this software and any accompanying software that uses this software. The source code must either be included in the distribution or be available for no more than the cost of distribution plus a nominal fee, and must be freely redistributable under reasonable conditions. For an executable file, complete source code means the source code for all modules it contains. It does not include source code for modules or files that typically accompany the major components of the operating system on which the executable file runs.
This software is provided by the copyright holders and contributors “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement, are disclaimed. In no event shall the copyright holders and contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.