Changes between Version 65 and Version 66 of BuildingDebianPackages
- Timestamp:
- 12/11/11 17:44:53 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingDebianPackages
v65 v66 24 24 === Install source code === 25 25 26 Depending on which version of bcfg2 you want build, you can obtain the source code from [wiki:Download] or from the project's Subversion26 Depending on which version of bcfg2 you want build, you can obtain the source code from [wiki:Download] or from the project's git 27 27 repository. To create a local anonymous working copy of the latest version of the bcfg2 source code, use a command like the following: 28 28 … … 42 42 The basic format of the package version string to use is this: 43 43 44 {{{<UPSTREAM VER>~<UPSTREAM PRE-VER>+ r<UPSTREAM SVN REV>-0.1+<LOCAL VER>}}}45 46 '''NOTE: The ' ~', '+', and '-' characters have significance in determining when one package is newer than another. The following format is believed to do the right thing in all common situations.'''44 {{{<UPSTREAM VER>~<UPSTREAM PRE-VER>+<GIT-ID>-0.1+<LOCAL VER>}}} 45 46 '''NOTE: The '+', and '-' characters have significance in determining when one package is newer than another. The following format is believed to do the right thing in all common situations.''' 47 47 48 48 The components of the package version string are explained below: … … 50 50 `<UPSTREAM VER>`:: 51 51 This is the version of the Bcfg source code you are working from. It will likely be something like `0.9.6` or `1.0`. 52 ` ~<UPSTREAM PRE-VER>`::53 If you are using a published pre-release of Bcfg2, it will have a name like `pre1` or `rc1`. Use that string here, otherwise drop this component and the preceding tilde (`~`) characterfrom the package version string.54 `+< UPSTREAM SVN REV>`::55 If you are building from a local working copy of the Subversion repository, it is useful to include the repository revision in the package version. It will be a number like '5464'.If you are building from a downloaded copy of the source, drop this component (including the preceding plus-sign (`+`) from the package version string.52 `<UPSTREAM PRE-VER>`:: 53 If you are using a published pre-release of Bcfg2, it will have a name like `pre1` or `rc1`. Use that string here, otherwise drop this component from the package version string. 54 `+<GIT-ID>`:: 55 If you are building from a local working copy of the git repository, it is useful to include the revision in the package version. If you are building from a downloaded copy of the source, drop this component (including the preceding plus-sign (`+`) from the package version string. 56 56 `+<LOCAL VER>`:: 57 57 This is a locally relevant name like your last name or your domain name, plus the digit `1`. For example, if your family name is ''Smith'', you could use `smith1`. If you work for ''Example Inc'', you could use `example1`. … … 59 59 Here are some examples: 60 60 61 * If you are building packages for revision 5463 of the Subversion trunk, and the latest published version is 1.0pre5, the version string should be `1.0~pre5+r5463-0.1+example1`.62 * If you are building packages for the published 1.0 rc1 version, the version string should be `1.0 ~rc1-0.1+example1`.61 * If you are building packages for revision 6c681bd from git, and the latest published version is 1.2.0rc1, the version string should be `1.2.0rc1+6c681bd-0.1+example1`. 62 * If you are building packages for the published 1.0 rc1 version, the version string should be `1.0rc1-0.1+example1`. 63 63 * If you are building packages for the published 1.0 version, the version string should be `1.0-0.1+example1`. 64 64 65 If you are working on a Subversionworking copy of 1.0 pre5 and have the `devscripts` package installed, the following command is a convenient way to create a well formatted changelog entry:66 67 {{{ 68 REV=$( svn info|grep '^Revision' |cut -d' ' -f2)69 debchange --force-bad-version --preserve --newversion "1.0~pre5+ r${REV}-0.1+example1" SVNrevision $REV65 If you are working on a git working copy of 1.0 pre5 and have the `devscripts` package installed, the following command is a convenient way to create a well formatted changelog entry: 66 67 {{{ 68 REV=$(git log --oneline | head -n 1 | cut -d' ' -f1) 69 debchange --force-bad-version --preserve --newversion "1.0~pre5+${REV}-0.1+example1" git revision $REV 70 70 }}} 71 71