From: lucas Date: Thu, 25 Jun 2009 20:42:18 +0000 (+0000) Subject: Clarified NMU versioning to reflect existing practices. Closes: #532945 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=developers-reference.git;a=commitdiff_plain;h=a156f6b586bda36650d88e6ba2dd252e9968a0fe;hp=0118327fd29813955cacb89825955bfb6e47576c Clarified NMU versioning to reflect existing practices. Closes: #532945 git-svn-id: svn://anonscm.debian.org/ddp/manuals/trunk/developers-reference@6761 313b444b-1b9f-4f58-a734-7bb04f332e8d --- diff --git a/debian/changelog b/debian/changelog index b5acfdc..6688daa 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,8 +12,9 @@ developers-reference (3.4.2) UNRELEASED; urgency=low also mention dpatch and cdbs' patch system. drop dbs. Closes: #525668. * Added a note in the wanna-build section to mention http://release.debian.org/wanna-build.txt. Closes: #516375. + * Clarified NMU versioning to reflect existing practices. Closes: #532945. - -- Lucas Nussbaum Thu, 25 Jun 2009 22:29:13 +0200 + -- Lucas Nussbaum Thu, 25 Jun 2009 22:39:35 +0200 developers-reference (3.4.1) unstable; urgency=low diff --git a/pkgs.dbk b/pkgs.dbk index 6eaed07..160fa5b 100644 --- a/pkgs.dbk +++ b/pkgs.dbk @@ -1999,18 +1999,33 @@ upload. The first line of this entry must explicitely mention that this upload -The version must be the version of the last maintainer upload, plus +The way to version NMUs differs for native and non-native packages. + + +If the package is a native package (without a debian revision in the version number), +the version must be the version of the last maintainer upload, plus +nmuX, where -X is a counter starting at 1. If +X is a counter starting at 1. +If the last upload was also an NMU, the counter should be increased. For example, -if the current version is 1.5-1, then an NMU would get -version 1.5-1+nmu1. If the current version is -1.5+nmu3 (a native package which has already been NMUed), the -NMU would get version 1.5+nmu4. If a new upstream version +if the current version is 1.5, then an NMU would get +version 1.5+nmu1. + + +If the package is a not a native package, you should add a minor version number +to the debian revision part of the version number (the portion after the last +hyphen). This extra number must start at 1. For example, +if the current version is 1.5-2, then an NMU would get +version 1.5-2.1. If a new upstream version is packaged in the NMU, the debian revision is set to 0, for -example 1.6-0+nmu1. +example 1.6-0.1. + + +In both cases, if the last upload was also an NMU, the counter should +be increased. For example, if the current version is +1.5+nmu3 (a native package which has already been +NMUed), the NMU would get version 1.5+nmu4. . - A special versioning scheme is needed to avoid disrupting the maintainer's work, since using an integer for the Debian revision will potentially