From: aph Date: Thu, 19 Nov 1998 22:49:02 +0000 (+0000) Subject: more work on the NMU/porters chapter X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=c5332e7cb9d9b7d7ee0fd904e86888365cb8692c;p=developers-reference.git more work on the NMU/porters chapter git-svn-id: svn://anonscm.debian.org/ddp/manuals/trunk/developers-reference@728 313b444b-1b9f-4f58-a734-7bb04f332e8d --- diff --git a/developers-reference.sgml b/developers-reference.sgml index 87d1cfe..f769a2d 100644 --- a/developers-reference.sgml +++ b/developers-reference.sgml @@ -11,6 +11,7 @@ - talk about CVS access, other ways to submit problems - add information on how you can contribute w/o being an official developer + - "official port maintainer" ? (cf. glibc-pre2.1) --> @@ -1038,7 +1039,11 @@ how NMUs should be done. Who can do an NMU

-Only an official Debian developers can do an NMU. +Only official Debian maintainers can do NMUs. +Non-developers, however, are encouraged to download the source +package and start hacking on it to fix problems. Maintainers almost +always appreciate quality patches and bug reports. Of course there +are many other ways that not-yet-official volunteers can help. @@ -1121,16 +1126,35 @@ period. How to do an NMU -

-When someone other than the usual maintainer releases a package they -should add a new minor version number to the foo_1.1-3.dsc. The upstream -version is `1.1' and the Debian revision is `3'. The next NMU would -add a new minor number `.1' to the Debian revision; the new source -control file would be foo_1.1-3.1.dsc. + +This section applies to NMUs, but not, necessarily, to porters. +A distinction is made between a +The following applies to porters insofar as they are playing the dual +role of being both NMU bug-fixers, and porters. So, if a porter has +to change the Debian source archive, automatically their upload is an +NMU and is subject to its rule. If a porter is simply uploading a +port, the rules are different; see . + +NMU version numbering +

+Whenever you have made a change to a package, no matter +how trivial, the version number needs to change. This enables our +packing system to actually work. +

+If you are doing a non-maintainer upload (NMU), you should add a new +minor version number to the foo_1.1-3.dsc. The upstream version is `1.1' and +the Debian revision is `3'. The next NMU would add a new minor number +`.1' to the Debian revision; the new source control file would be +foo_1.1-3.1.dsc.

The Debian revision minor number is needed to avoid `stealing' one of the package maintainer's version numbers, which might @@ -1148,41 +1172,60 @@ you'll have to invoke dpkg-buildpackage with the - +Remember, porters who are simply recompiling a package for a different +architecture do not need to renumber. Porters should use new NMU +version numbers if and only if they actually have to modify the source +package in some way. + +NMUs must create a changelog entry +

+A non-maintainer doing an NMU must create a changelog entry, +describing which bugs are fixed by the NMU, and generally why the NMU +was required and what it fixed. The changelog entry will have the +non-maintainer's email address in the log entry and the NMU version +number in it. + +NMUs must send patches, if any, to the BTS +

Maintainers other than the usual package maintainer should make as few changes to the package as possible, and they should always send a -unified context diff ( -If the non-maintainer upload (as known as an ``NMU'') fixes some -existing bugs, the bug reports should not be closed. Technically, -only the official package maintainer or the original bug submitter are -allowed to close bugs. However, the person making the non-maintainer -release should send a short message to the bug tracking system to all -the fixed bugs explaining that they have been fixed. Using +patch as a unified context diff ( +What if you are simply recompiling the package? In this case, the +process is different for porters than it is for non-porters, as +mentioned above. If you are doing an NMU that simply requires a +recompile (i.e., a new shared library is available to be linked +against, a bug was fixed in +If the NMU (non-maintainer upload) fixes some existing bugs, the bugs +which are fixed need to be -The normal maintainer should do at least one of the following: - - -apply the diff, - -read the diff and decide on each part of it themselves, or - -if the maintainer decides not to apply the patch but to release a new -version, read the description of the changes to the next upstream -version and ensure that they fix each problem that was fixed in the -non-maintainer release. - +The normal maintainer will either apply the patch or employ an +alternate method of fixing the problem. Sometimes bugs are fixed +independantly upstream; which is another good reason to back out an +NMU's patch. If the maintainer decides not to apply the NMU's patch +but to release a new version, read the description of the changes to +the next upstream version and ensure that they fix each problem that +was fixed in the non-maintainer release.

In addition, the normal maintainer should Guidelines for Porters + + Moving, Removing, Renaming, Adopting, and Orphaning Packages