X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=developers-reference.sgml;h=1f483c92f914f9ef559f2a35f0b66b75b8a19804;hb=a455d8afed2b90f95d38396d9df252e7d9ca7609;hp=0c7c09b4ac8204a83ef62896ef9842666f25b6b9;hpb=cae66cec74d26468dd4f4c31516ed617a9f9a616;p=developers-reference.git diff --git a/developers-reference.sgml b/developers-reference.sgml index 0c7c09b..1f483c9 100644 --- a/developers-reference.sgml +++ b/developers-reference.sgml @@ -4,14 +4,18 @@ %versiondata; %commondata; - - - + + + + + FIXME: "> + ]>

The procedures discussed within include how to become a maintainer (); how to upload new packages (); and how to handle bug reports ().

The resources discussed in this reference include the mailing lists -and servers (); a discussion of the structure of the -Debian archive (); explanation of the different -servers which accept package uploads (); and a -discussion of resources which can help maintainers with the quality of -their packages (). +() and servers (); a +discussion of the structure of the Debian archive (); explanation of the different servers which accept +package uploads (); and a discussion of +resources which can help maintainers with the quality of their +packages ().

It should be clear that this reference does not discuss the technical details of the Debian package nor how to generate Debian packages. @@ -89,13 +96,14 @@ generally agreed-upon best practices. Thus, it is what is called a Applying to Become a Maintainer - Getting started + Getting started

-So, you've read all the documentation, you understand what everything -in the hello example package is for, and you're about to -Debianize your favourite piece of software. How do you actually -become a Debian developer so that your work can be incorporated into -the Project? +So, you've read all the documentation, you've gone through the , +understand what everything in the hello example +package is for, and you're about to Debianize your favorite piece of +software. How do you actually become a Debian developer so that your +work can be incorporated into the Project?

Firstly, subscribe to &email-debian-devel; if you haven't already. Send the word subscribe in the Subject of an email @@ -112,71 +120,69 @@ id="mentors"> for details. The IRC channel #debian on the Linux People IRC network (e.g., irc.debian.org) can also be helpful. +

+When you know how you want to contribute to &debian-formal;, you +should get in contact with existing Debian maintainers who are working +on similar tasks. That way, you can learn from experienced developers. +For example, if you are interested in packaging existing software for +Debian you should try to get a sponsor. A sponsor will work together +with you on your package and upload it to the Debian archive once he +is happy with the packaging work you have done. You can find a sponsor +by mailing the &email-debian-mentors; mailing list, describing your +package and yourself and asking for a sponsor (see +for more information on sponsoring). On the other hand, if you are +interested in porting Debian to alternative architectures or kernels +you can subscribe to port specific mailing lists and ask there how to +get started. Finally, if you are interested in documentation or +Quality Assurance (QA) work you can join maintainers already working on +these tasks and submit patches and improvements. + Registering as a Debian developer

-Before you decide to register with the Debian Project, you will need -to read the . Registering as a developer means that you agree with and -pledge to uphold the Debian Social Contract; it is very important that -maintainers are in accord with the essential ideas behind Debian -GNU/Linux. Reading the . It describes exactly the +preparations you have to do before you can register to become a Debian +developer. + +For example, before you apply, you have to to read the . +Registering as a developer means that you agree with and pledge to +uphold the Debian Social Contract; it is very important that +maintainers are in accord with the essential ideas behind +&debian-formal;. Reading the would also be a good idea.

The process of registering as a developer is a process of verifying -your identity and intentions. As the number of people working on -Debian GNU/Linux has grown to over &number-of-maintainers; people and -our systems are used in several very important places we have to be -careful about being compromised. Therefore, we need to verify new -maintainers before we can give them accounts on our servers and -let them upload packages. -

-Registration requires that the following information be sent in -appropriate steps described at -after the initial contact to &email-new-maintainer: +your identity and intentions, and checking your technical skills. As +the number of people working on &debian-formal; has grown to over +&number-of-maintainers; people and our systems are used in several +very important places we have to be careful about being compromised. +Therefore, we need to verify new maintainers before we can give them +accounts on our servers and let them upload packages. +

+Before you actually register you should have shown that you can do +competent work and will be a good contributor. You can show this by +submitting patches through the Bug Tracking System or having a package +sponsored by an existing maintainer for a while. Also, we expect that +contributors are interested in the whole project and not just in +maintaining their own packages. If you can help other maintainers by +providing further information on a bug or even a patch, then do so! +

+Registration requires that you are familiar with Debian's philosophy +and technical documentation. Furthermore, you need a GnuPG key which +has been signed by an existing Debian maintainer. If your GnuPG key +is not signed yet, you should try to meet a Debian maintainer in +person to get your key signed. There's a which should help you find +a maintainer close to you (If you cannot find a Debian maintainer +close to you, there's an alternative way to pass the ID check. You +can send in a photo ID signed with your GnuPG key. Having your GnuPG +key signed is the preferred way, however. See the + for more +information about these two options.) - - -Your name. - -Your preferred login name on master (eight characters or -less), as well as the email address at which you'd prefer to be -subscribed to &email-debian-private; (typically this will be either -your primary mail address or your new debian.org address). - -A phone number where we can call you. Remember that the new -maintainer team usually calls during evening hours to save on long -distance tolls. Please do not give a work number, unless you are -generally there in the evening. - -A statement of intention, that is, what package(s) you intend to work -on, which Debian port you will be assisting, or how you intend to -contribute to Debian. - -A statement that you have read and agree to uphold the . - -Some mechanism by which we can verify your real-life identity. For -example, any of the following mechanisms would suffice: - - -An OpenPGP key signed by any well-known signature, such as: - - -Any current Debian developer you have met in real life. - -Any formal certification service (such as Verisign, etc.) that -verifies your identity. A certification that verifies your email -address, and not your identity, is not sufficient. - - -Alternatively, you may identify yourself with a scanned (or physically -mailed) copy of any formal documents certifying your identity (such as -a birth certificate, national ID card, U.S. Driver's License, etc.). -If emailed, please sign the mail with your OpenPGP key. - -

If you do not have an OpenPGP key yet, generate one. Every developer needs a OpenPGP key in order to sign and verify package uploads. You @@ -187,7 +193,7 @@ or high-powered spy techniques. See for more information on maintaining your public key.

Debian uses the GNU Privacy Guard (package -gnupg version 1 or better as its baseline standard. +gnupg version 1 or better) as its baseline standard. You can use some other implementation of OpenPGP as well. Note that OpenPGP is a open standard based on . @@ -200,58 +206,46 @@ much less secure. Your key must be signed with at least your own user ID; this prevents user ID tampering. gpg does this automatically.

-Also remember that one of the names on your key must match the email -address you list as the official maintainer for your packages. For -instance, I set the maintainer of the -developers-reference package to ``Adam Di Carlo -<aph@debian.org>''; therefore, one of the user IDs on my key is -that same value, ``Adam Di Carlo <aph@debian.org>''. -

If your public key isn't on public key servers such as &pgp-keyserv;, please read the documentation available locally in &file-keyservs;. That document contains instructions on how to put your key on the public key servers. The New Maintainer Group will put your public key on the servers if it isn't already there.

-Due to export restrictions by the United States government some Debian -packages, including gnupg, are located on ftp sites -outside of the United States. You can find the current locations of -those packages at . -

Some countries restrict the use of cryptographic software by their citizens. This need not impede one's activities as a Debian package maintainer however, as it may be perfectly legal to use cryptographic products for authentication, rather than encryption purposes (as is -the case in France). The Debian Project does not require the use of +the case in France). &debian-formal; does not require the use of cryptography qua cryptography in any manner. If you live in a country where use of cryptography even for authentication is forbidden then please contact us so we can make special arrangements.

-Once you have all your information ready, and your public key is -available on public key servers, send a message to -&email-new-maintainer; to register as an offical Debian developer so -that you will be able to upload your packages. This message must -contain your name and your valid e-mail address. All the information -discussed above is required after your Application Manager is -assigned. Application Manager is your agent in the registration -process, and you can always ask him about the status of your -application. You can check the as well. +To apply as a new maintainer, you need an existing Debian maintainer +to verify your application (an advocate). After you have +contributed to Debian for a while, and you want to apply to become a +registered developer, an existing developer with whom you +have worked over the past months has to express his belief that you +can contribute to Debian successfully. +

+When you have found an advocate, have your GnuPG key signed and have +already contributed to Debian for a while, you're ready to apply. +You can simply register on our . After you have signed up, your advocate +has to confirm your application. When your advocate has completed +this step you will be assigned an Application Manager who will +go with you through the necessary steps of the New Maintainer process. +You can always check your status on the .

For more details, please consult at the Debian web site. -

-Once this information is received and processed, you should be -contacted with information about your new Debian maintainer account. -If you don't hear anything within a month, please send a followup -message asking if your original application was received. Do -not re-send your original application, that will just confuse -the New Maintainer Group. Please be patient, especially near release -points; mistakes do occasionally happen, and people do sometimes run -out of volunteer time. +Maintainer's Corner"> at the Debian web site. Make sure that you +are familiar with the necessary steps of the New Maintainer process +before actually applying. If you are well prepared, you can save +a lot of timer later on. - Debian Mentors + Debian mentors and sponsors

The mailing list &email-debian-mentors; has been set up for novice maintainers who seek help with initial packaging and other @@ -260,11 +254,21 @@ to that list (see for details).

Those who prefer one-on-one help (e.g., via private email) should also post to that list and an experienced developer will volunteer to help. +

+In addition, if you have some packages ready for inclusion in Debian, +but are waiting for your new maintainer application to go through, you +might be able find a sponsor to upload your package for you. Sponsors +are people who are official Debian maintainers, and who are willing to +criticize and upload your packages for you. Those who are seeking a +sponsor can request one at . +

+If you wish to be a mentor and/or sponsor, more information is +available in . Debian Developer's Duties - Maintaining Your Debian Information + Maintaining your Debian information

There's a LDAP database containing many informations concerning all developers, you can access it at . You can @@ -277,9 +281,9 @@ is not accessible to the public, for more details about this database, please read its online documentation that you can find at .

-You have to keep the information available there up to date. +You have to keep the information available there up-to-date. - Maintaining Your Public Key + Maintaining your public key

Be very careful with your private keys. Do not place them on any public servers or multiuser machines, such as @@ -288,7 +292,7 @@ Read the documentation that comes with your software; read the .

If you add signatures to your public key, or add user identities, you -can update the debian keyring by sending your key to the key server at +can update the debian key ring by sending your key to the key server at &keyserver-host;. If you need to add a completely new key, or remove an old key, send mail to &email-debian-keyring;. The same key extraction routines discussed in apply. @@ -296,14 +300,20 @@ key extraction routines discussed in apply. You can find a more in-depth discussion of Debian key maintenance in the documentation for the debian-keyring package. - Going On Vacation Gracefully + + Voting +

+&FIXME; + + + Going on vacation gracefully

Most developers take vacations, and usually this means that they can't work for Debian and they can't be reached by email if any problem occurs. The other developers need to know that you're on vacation so that they'll do whatever is needed when such a problem occurs. Usually this means that other developers are allowed to NMU (see ) your package if a -big problem (release critical bugs, security update, ...) occurs while +big problem (release critical bugs, security update, etc.) occurs while you're on vacation.

In order to inform the other developers, there's two things that you should do. @@ -318,7 +328,7 @@ available in the Debian LDAP database and mark yourself as ``on vacation'' (this information is only accessible to debian developers). Don't forget to remove the ``on vacation'' flag when you come back! - Coordination With Upstream Developers + Coordination with upstream developers

A big part of your job as Debian maintainer will be to stay in contact with the upstream developers. Debian users will sometimes report bugs @@ -332,14 +342,14 @@ submit patches to fix upstream bugs, and you should evaluate and forward these patches upstream.

If you need to modify the upstream sources in order to build a policy -conformant package, then you should propose a nice fix to the upstream +compliant package, then you should propose a nice fix to the upstream developers which can be included there, so that you won't have to modify the sources of the next upstream version. Whatever changes you need, always try not to fork from the upstream sources. - Managing Release Critical Bugs + Managing release-critical bugs

-Release Critical Bugs (RCB) are all bugs that have severity +Release-critical bugs (RCB) are all bugs that have severity critical, grave or serious. Those bugs can delay the Debian release and/or can justify the removal of a package at freeze time. That's why @@ -356,35 +366,8 @@ from the QA group may want to do a Non-Maintainer Upload (see usual before they do their NMU if they have seen no recent activity from you in the BTS). - Quality Assurance Effort -

-Even though there is a dedicated group of people for Quality -Assurance, QA duties are not reserved solely for them. You can -participate in this effort by keeping your packages as bug-free as -possible, and as lintian-clean (see ) as -possible. If you do not find that possible, then you should consider -orphaning some of your packages (see ). Alternatively, you may ask the help of other people -in order to catch up the backlog of bugs that you have (you can ask -for help on &email-debian-qa; or &email-debian-devel;). - Dealing with unreachable maintainers -

-If you notice that a package is lacking maintenance, you should -make sure the maintainer is active and will continue to work on -their packages. Try contacting them yourself. -

-If you do not get a reply after a few weeks you should collect all -useful information about this maintainer. Start by logging in to -the -and doing a full search to check whether the maintainer is on vacation -and when they were last seen. Collect any important package names -they maintain and any Release Critical bugs filled against them. -

-Send all this information to &email-debian-qa;, in order to let the -QA people do whatever is needed. - - Retiring Gracefully + Retiring

If you choose to leave the Debian project, you should make sure you do the following steps: @@ -400,8 +383,9 @@ emailing to &email-debian-keyring;. - Mailing Lists, Servers, and Other Machines -

+ + Resources for Debian Developers +

In this chapter you will find a very brief road map of the Debian mailing lists, the main Debian servers, and other Debian machines which may be available to you as a developer. @@ -427,8 +411,8 @@ The following are the core Debian mailing lists: &email-debian-devel;, &email-debian-policy;, &email-debian-user;, &email-debian-private;, &email-debian-announce;, and &email-debian-devel-announce;. All developers are expected to be subscribed to at least -&email-debian-private; and &email-debian-devel-announce;. There are -other mailing lists are available for a variety of special topics; see +&email-debian-devel-announce;. There are +other mailing lists available for a variety of special topics; see for a list. Cross-posting (sending the same message to multiple lists) is discouraged.

@@ -437,7 +421,10 @@ discussions amongst Debian developers. It is meant to be used for posts which for whatever reason should not be published publically. As such, it is a low volume list, and users are urged not to use &email-debian-private; unless it is really necessary. Moreover, do -not forward email from that list to anyone. +not forward email from that list to anyone. Archives of this +list are not available on the web for obvious reasons, but you can see +them using your shell account master.debian.org and looking +in the ~debian/archive/debian-private directory.

&email-debian-email; is a special mailing list used as a grab-bag for Debian related correspondence such as contacting upstream authors @@ -452,6 +439,13 @@ Online archives of mailing lists are available at . + + Documentation +

+&FIXME; + + + Debian servers

Debian servers are well known servers which serve critical functions @@ -488,7 +482,7 @@ full, suspicious activity, or whatever, send an email to

The ftp-master server, ftp-master.debian.org (or auric.debian.org), holds the canonical copy of the Debian -archive (excluding the non-U.S. packages). Generally, package uploads +archive (excluding the non-US packages). Generally, package uploads go to this server; see .

Problems with the Debian FTP archive generally need to be reported as @@ -537,7 +531,16 @@ To request a CVS area, send a request via email to Debian account should own the CVS root area, and why you need it. - Mirrors of Debian servers + The Developers Database +

+The Developers Database, at , is an LDAP +directory for managing Debian developer attributes. You can use this +resource to search the list of Debian developers. For information on +keeping your entry the developer database up-to-date, see . + + + Mirrors of Debian servers

The web and FTP servers have several mirrors available. Please do not put heavy load on the canonical FTP or web servers. Ideally, the @@ -559,7 +562,7 @@ interested in helping Debian. As such, developers generally do not have accounts on these machines. - Other Debian Machines + Other Debian developer machines

There are other Debian machines which may be made available to you. You can use these for Debian-related purposes as you see fit. Please @@ -574,20 +577,18 @@ id="&url-devel-machines;">. - The Debian Archive - - Overview + The Debian archive

-The Debian GNU/Linux distribution consists of a lot of Debian packages +The &debian-formal; distribution consists of a lot of packages (.deb's, currently around &number-of-pkgs;) and a few -additional files (documentation, installation disk images, etc.). +additional files (such documentation and installation disk images).

Here is an example directory tree of a complete Debian archive:

&sample-dist-dirtree;

As you can see, the top-level directory contains two directories, -dists/ and pool/. The latter is a ``pool'' in which the +dists/ and pool/. The latter is a “pool” in which the packages actually are, and which is handled by the archive maintenance database and the accompanying programs. The former contains the distributions, stable, testing and unstable. @@ -614,19 +615,20 @@ The binary-* and source directories are divided further into subsections. - Sections + Sections

The main section of the Debian archive is what makes up the -official Debian GNU/Linux distribution. -The main section is official because it fully complies with -all our guidelines. The other two sections do not, to different degrees; -as such, they are not officially part of Debian GNU/Linux. +official &debian-formal; distribution. The +main section is official because it fully complies with all +our guidelines. The other two sections do not, to different degrees; +as such, they are not officially part of +&debian-formal;.

Every package in the main section must fully comply with the (DFSG) and with all other policy requirements as described in the . The DFSG is -our definition of ``free software.'' Check out the Debian Policy +our definition of “free software.” Check out the Debian Policy Manual for details.

Packages in the contrib section have to comply with the DFSG, @@ -656,7 +658,7 @@ many on the CD-ROMs as he's allowed to. (Since this varies greatly from vendor to vendor, this job can't be done by the Debian developers.) - Architectures + Architectures

In the first days, the Linux kernel was only available for the Intel i386 (or greater) platforms, and so was Debian. But when Linux became @@ -673,7 +675,7 @@ also have ports underway to non-Linux kernel. Aside from alpha, powerpc, sparc, hurd-i386, and arm, as of this writing.

-Debian GNU/Linux 1.3 is only available as i386. Debian 2.0 +&debian-formal; 1.3 is only available as i386. Debian 2.0 shipped for i386 and m68k architectures. Debian 2.1 ships for the i386, m68k, alpha, and sparc architectures. Debian 2.2 adds support for the @@ -684,11 +686,11 @@ available at the . - Subsections + Subsections

The sections main, contrib, and non-free are split into subsections to simplify the installation -process and the maintainance of the archive. Subsections are not +process and the maintenance of the archive. Subsections are not formally defined, except perhaps the `base' subsection. Subsections simply exist to simplify the organization and browsing of available packages. Please check the current Debian distribution to @@ -699,7 +701,7 @@ Note however that with the introduction of package pools (see the top-level will eventually cease to exist. They will be kept in the packages' `Section' header fields, though. - Packages + Packages

There are two types of Debian packages, namely source and binary packages. @@ -722,7 +724,7 @@ with checksums (md5sums) and some additional info about the package (maintainer, version, etc.). - Distribution directories + Distribution directories

The directory system described in the previous chapter is itself contained within distribution directories. Each @@ -742,9 +744,9 @@ the header information from all those packages. The former are kept in the directory of the archive (because of backwards compatibility). - Stable, testing, unstable, and sometimes frozen + Stable, testing, and unstable

-There is always a distribution called stable (residing in +There are always distributions called stable (residing in dists/stable), one called testing (residing in dists/testing), and one called unstable (residing in dists/unstable). This reflects the development process of the @@ -756,54 +758,52 @@ distribution). Every Debian developer can update his or her packages in this distribution at any time. Thus, the contents of this distribution change from day-to-day. Since no special effort is done to make sure everything in this distribution is working properly, it is -sometimes ``unstable.'' +sometimes literally unstable.

Packages get copied from unstable to testing if they satisfy certain criteria. To get into testing distribution, a -package needs to be in the archive for two weeks and not have any release -critical bugs. After that period, it will propagate into testing -as soon as anything it depends on is also added. This process is automatic. +package needs to be in the archive for two weeks and not have any +release critical bugs. After that period, it will propagate into +testing as soon as anything it depends on is also added. This +process is automatic. You can see some notes on this system as well +as update_excuses (describing which packages are valid +candidates, which are not, and why not) at .

After a period of development, once the release manager deems fit, the -testing distribution is renamed to frozen. Once -that has been done, no changes are allowed to that distribution except -bug fixes; that's why it's called ``frozen.'' After another month or -a little longer, depending on the progress, the frozen distribution +testing distribution is frozen, meaning that the policies +which control how packages move from unstable to testing are +tightened. Packages which are too buggy are removed. No changes are +allowed into testing except for bug fixes. After some time +has elapsed, depending on progress, the testing distribution goes into a `deep freeze', when no changes are made to it except those -needed for the installation system. This is called a ``test cycle'', and it -can last up to two weeks. There can be several test cycles, until the -distribution is prepared for release, as decided by the release manager. -At the end of the last test cycle, the frozen distribution is -renamed to stable, overriding the old stable distribution, -which is removed at that time. +needed for the installation system. This is called a “test cycle”, +and it can last up to two weeks. There can be several test cycles, +until the distribution is prepared for release, as decided by the +release manager. At the end of the last test cycle, the +testing distribution is renamed to stable, +overriding the old stable distribution, which is removed at +that time (although it can be found at &archive-host;).

This development cycle is based on the assumption that the unstable distribution becomes stable after passing a -period of testing as frozen. Even once a distribution is -considered stable, a few bugs inevitably remain &mdash that's why the stable -distribution is updated every now and then. However, these updates are -tested very carefully and have to be introduced into the archive -individually to reduce the risk of introducing new bugs. You can find -proposed additions to stable in the proposed-updates -directory. Those packages in proposed-updates that pass -muster are periodically moved as a batch into the stable distribution -and the revision level of the stable distribution is incremented -(e.g., `1.3' becomes `1.3r1', `2.0r2' becomes `2.0r3', and so forth). +period of being in testing. Even once a distribution is +considered stable, a few bugs inevitably remain &mdash that's why the +stable distribution is updated every now and then. However, these +updates are tested very carefully and have to be introduced into the +archive individually to reduce the risk of introducing new bugs. You +can find proposed additions to stable in the +proposed-updates directory. Those packages in +proposed-updates that pass muster are periodically moved as a +batch into the stable distribution and the revision level of the +stable distribution is incremented (e.g., ‘3.0’ becomes ‘3.0r1’, +‘2.2r4’ becomes ‘2.0r5’, and so forth).

Note that development under unstable continues during the -``freeze'' period, since the unstable distribution remains in -place when the testing is moved to frozen. -Another wrinkle is that when the frozen distribution is -offically released, the old stable distribution is completely removed -from the Debian archives (although they do live on at -archive-host;). -

-In summary, there is always a stable, a testing and an -unstable distribution available, and a frozen distribution -shows up for a couple of months from time to time. - +freeze period, since the unstable distribution remains in +place in parallel with testing. - Experimental + Experimental

The experimental distribution is a specialty distribution. It is not a full distribution in the same sense as `stable' and @@ -842,7 +842,7 @@ An alternative to experimental is to use your personal web space on people.debian.org (klecker.debian.org). - Release code names + Release code names

Every released Debian distribution has a code name: Debian 1.1 is called `buzz'; Debian 1.2, `rex'; Debian 1.3, `bo'; Debian 2.0, @@ -875,14 +875,19 @@ determined by their code names and not their release status (e.g., `slink'). These names stay the same during the development period and after the release; symbolic links, which can be changed easily, indicate the currently released stable distribution. That's why the -real distribution directories use the code names, while symbolic -links for stable, testing, unstable, and -frozen point to the appropriate release directories. +real distribution directories use the code names, while +symbolic links for stable, testing, and +unstable point to the appropriate release directories. - Package uploads + Managing Packages +

+This chapter contains information related to creating, uploading, +maintaining, and porting packages. + + Package uploads - Announcing new packages + New packages

If you want to create a new package for the Debian distribution, you should first check the + Adding an entry to debian/changelog +

+Changes that you make to the package need to be recorded in the +debian/changelog. These changes should provide a concise +description of what was changed, why (if it's in doubt), and note if +any bugs were closed. They also record when the package was +completed. This file will be installed in +/usr/share/doc/package/changelog.Debian.gz, or +/usr/share/doc/package/changelog.gz for native +packages. +

+The debian/changelog file conform to a certain structure, +with a number of different fields. One field of note, the +distribution, is described in . More +information about the structure of this file can be found in +the Debian Policy section titled "debian/changelog". +

+Changelog entries can be used to automatically close Debian bugs when +the package is installed into the archive. See . +

+It is conventional that the changelog entry notating of a package that +contains a new upstream version of the software looks like this: + + * new upstream version + +

+There are tools to help you create entries and finalize the +changelog for release — see +and . + + - Checking the package prior to upload + Checking the package prior to upload

Before you upload your package, you should do basic testing on it. At a minimum, you should try the following activities (you'll need to @@ -966,7 +1004,7 @@ Remove the package, then reinstall it. - Generating the changes file + Generating the changes file

When a package is uploaded to the Debian FTP archive, it must be accompanied by a .changes file, which gives directions to the @@ -984,7 +1022,7 @@ automatically using the Description field, see . - The original source tarball + The original source tarball

The first time a version is uploaded which corresponds to a particular upstream version, the original source tar file should be uploaded and @@ -995,35 +1033,26 @@ files, and will not need to be re-uploaded. By default, dpkg-genchanges and dpkg-buildpackage will include the original source tar file if and only if the Debian revision part of the source version -number is 0 or 1, indicating a new upstream version. This behaviour +number is 0 or 1, indicating a new upstream version. This behavior may be modified by using -sa to always include it or -sd to always leave it out.

If no original source is included in the upload, the original source tar-file used by dpkg-source when constructing the .dsc file and diff to be uploaded must be -byte-for-byte identical with the one already in the archive. If there -is some reason why this is not the case, the new version of the -original source should be uploaded, possibly by using the -sa -flag. +byte-for-byte identical with the one already in the archive. - Picking a distribution + Picking a distribution

The Distribution field, which originates from the first line of the debian/changelog file, indicates which distribution the package is intended for.

-There are four possible values for this field: `stable', `unstable', -`frozen', and `experimental'. Normally, packages are uploaded into +There are three possible values for this field: `stable', `unstable', +and `experimental'. Normally, packages are uploaded into unstable.

-These values can be combined, but only a few combinations make sense. -If Debian has been frozen, and you want to get a bug-fix release into -frozen, you would set the distribution to `frozen unstable'. -See for more information on uploading to -frozen. -

You should avoid combining `stable' with others because of potential problems with library dependencies (for your package and for the package built by the build daemons for other architecture). @@ -1033,6 +1062,7 @@ upload to stable. It never makes sense to combine the experimental distribution with anything else. + + - Uploading to stable + Uploading to stable

Uploading to stable means that the package will be placed into the proposed-updates directory of the Debian archive for further @@ -1084,7 +1116,7 @@ Extra care should be taken when uploading to stable. Basically, a package should only be uploaded to stable if one of the following happens: a security problem (e.g. a Debian security advisory) - a truely critical functionality problem + a truly critical functionality problem the package becomes uninstallable a released architecture lacks the package @@ -1092,7 +1124,7 @@ package should only be uploaded to stable if one of the following happens: It is discouraged to change anything else in the package that isn't important, because even trivial fixes can cause bugs later on. Uploading new upstream versions to fix security problems is deprecated; applying the -specific patch from the new upstream version to the old one ("backporting" +specific patch from the new upstream version to the old one ("back-porting" the patch) is the right thing to do in most cases.

Packages uploaded to stable need to be compiled on systems running @@ -1112,61 +1144,72 @@ inclusion. - Uploading a package + Uploading a package - Uploading to ftp-master + Uploading to ftp-master

To upload a package, you need a personal account on ftp-master.debian.org, which you should have as an official maintainer. If you use scp or rsync to transfer the files, place them into &us-upload-dir;; if you use anonymous FTP to upload, place them into -/pub/UploadQueue/. +/pub/UploadQueue/. Please note that you should transfer +the changes file last. Otherwise, your upload may be rejected because the +archive maintenance software will parse the changes file and see that not +all files have been uploaded. If you don't want to bother with transferring +the changes file last, you can simply copy your files to a temporary +directory on ftp-master and then move them to +&us-upload-dir;.

Note: Do not upload to ftp-master packages -containing software that is export-controlled by the United States -government, nor to the overseas upload queues on chiark or -erlangen. This prohibition covers almost all cryptographic -software, and even sometimes software that contains ``hooks'' to -cryptographic software, such as electronic mail readers that support -PGP encryption and authentication. Uploads of such software should go -to non-us (see ). If you are not -sure whether U.S. export controls apply to your package, post a +containing software that is patent-restricted by the United States +government, nor any cryptographic packages which belong to +contrib or non-free. If you can't upload it to +ftp-master, then neither can you upload it to the overseas +upload queues on chiark or erlangen. Uploads of +such software should go to non-us (see ). If you are not sure whether U.S. patent +controls or cryptographic controls apply to your package, post a message to &email-debian-devel; and ask.

-You may also find the Debian package dupload useful -when uploading packages. This handy program is distributed with +You may also find the Debian packages dupload or +dput useful +when uploading packages. These handy program are distributed with defaults for uploading via ftp to ftp-master, -chiark, and erlangen. It can also be configured to +chiark, and erlangen. They can also be configured to use ssh or rsync. See and for more information. +section="1">, and for more information.

After uploading your package, you can check how the archive maintenance software will process it by running dinstall on your changes file: dinstall -n foo.changes - Uploading to non-US (pandora) + Uploading to non-US (pandora)

As discussed above, export controlled software should not be uploaded -to ftp-master. Instead, use scp or rsync -to copy the package to non-us.debian.org, placing -the files in &non-us-upload-dir;. By default, you can -use the same account/password that works on ftp-master. -If you use anonymous FTP to upload, place the files into -/pub/UploadQueue/. -

-The program dupload comes with support for uploading to -non-us; please refer to the documentation that comes with -the program for details. +to ftp-master. Instead, upload the package to +non-us.debian.org, placing the files in +&non-us-upload-dir; (both and can be used also, with the right invocation). By default, +you can use the same account/password that works on +ftp-master. If you use anonymous FTP to upload, place the +files into /pub/UploadQueue/.

You can check your upload the same way it's done on ftp-master, with: dinstall -n foo.changes

Note that U.S. residents or citizens are subject to restrictions on -export of cryptographic software. As of this writing, U.S. citizens are -allowed to export some cryptographic software, subject to notification -rules by the U.S. Department of Commerce. +export of cryptographic software. As of this writing, U.S. citizens +are allowed to export some cryptographic software, subject to +notification rules by the U.S. Department of Commerce. However, this +restriction has been waived for software which is already available +outside the U.S. Therefore, any cryptographic software which belongs +in the main section of the Debian archive and does not depend +on any package outside of main (e.g., does not depend on +anything in non-US/main) can be uploaded to ftp-master +or its queues, described above.

Debian policy does not prevent upload to non-US by U.S. residents or citizens, but care should be taken in doing so. It is recommended that @@ -1174,18 +1217,19 @@ developers take all necessary steps to ensure that they are not breaking current US law by doing an upload to non-US, including consulting a lawyer.

-For packages in non-US main or contrib, developers should at least -follow the . Maintainers of non-US/non-free packages should -further consult these of non-free software. +For packages in non-US/main, non-US/contrib, +developers should at least follow the . Maintainers of +non-US/non-free packages should further consult the of non-free software.

This section is for information only and does not constitute legal advice. Again, it is strongly recommended that U.S. citizens and residents consult a lawyer before doing uploads to non-US. - Uploads via chiark + Uploads via chiark

If you have a slow network connection to ftp-master, there are alternatives. One is to upload files to Incoming via a @@ -1202,7 +1246,7 @@ The program dupload comes with support for uploading to program for details. - Uploads via erlangen + Uploads via erlangen

Another upload queue is available in Germany: just upload the files via anonymous FTP to . @@ -1211,7 +1255,7 @@ The upload must be a complete Debian upload, as you would put it into ftp-master's Incoming, i.e., a .changes files along with the other files mentioned in the .changes. The queue daemon also checks that the .changes is correctly -PGP-signed by a Debian developer, so that no bogus files can find +signed with GnuPG or OpenPGP by a Debian developer, so that no bogus files can find their way to ftp-master via this queue. Please also make sure that the Maintainer field in the .changes contains your e-mail address. The address found there is used for all @@ -1233,7 +1277,7 @@ The program dupload comes with support for uploading to the program for details. - Other Upload Queues + Other upload queues

Another upload queue is available which is based in the US, and is a good backup when there are problems reaching ftp-master. You can @@ -1245,13 +1289,13 @@ anonymous FTP to . - Announcing package uploads + Announcing package uploads

When a package is uploaded, an announcement should be posted to one of the ``debian-changes'' lists. This is now done automatically by the archive maintenance software when it runs (usually once a day). You just need to use a recent dpkg-dev (>= 1.4.1.2). The mail generated by -the archive maintenance software will contain the PGP/GPG signed +the archive maintenance software will contain the OpenPGP/GnuPG signed .changes files that you uploaded with your package. Previously, dupload used to send those announcements, so please make sure that you configured your dupload not to @@ -1261,14 +1305,14 @@ send those announcements (check its documentation and look for If a package is released with the Distribution: set to `stable', the announcement is sent to &email-debian-changes;. If a package is released with Distribution: set to `unstable', -`experimental', or `frozen' (when present), the announcement will be +or `experimental', the announcement will be posted to &email-debian-devel-changes; instead.

The dupload program is clever enough to determine where the announcement should go, and will automatically mail the announcement to the right list. See . - + Notification that a new package has been installed

The Debian archive maintainers are responsible for handling package @@ -1290,7 +1334,7 @@ The installation notification also includes information on what section the package was inserted into. If there is a disparity, you will receive a separate email notifying you of that. Read on below. - The override file + The override file

The debian/control file's Section and Priority fields do not actually specify where the file will @@ -1321,16 +1365,16 @@ name="dpkg-scanpackages" section="8">, &file-bts-mailing;, and - Non-Maintainer Uploads (NMUs) + Non-Maintainer Uploads (NMUs)

Under certain circumstances it is necessary for someone other than the official package maintainer to make a release of a package. This is called a non-maintainer upload, or NMU.

-Debian porters, who compile packages for different architectures, do -NMUs as part of their normal porting activity (see ). Another reason why NMUs are done is when a Debian -developers needs to fix another developers' packages in order to +Debian porters, who compile packages for different architectures, +occasionally do binary-only NMUs as part of their porting activity +(see ). Another reason why NMUs are done is when a +Debian developers needs to fix another developers' packages in order to address serious security problems or crippling bugs, especially during the freeze, or when the package maintainer is unable to release a fix in a timely fashion. @@ -1339,7 +1383,7 @@ This chapter contains information providing guidelines for when and how NMUs should be done. A fundamental distinction is made between source and binary-only NMUs, which is explained in the next section. - Terminology + Terminology

There are two new terms used throughout this section: ``binary-only NMU'' and ``source NMU''. These terms are used with specific technical @@ -1354,8 +1398,7 @@ Source NMUs always involves changes to the source (even if it is just a change to debian/changelog). This can be either a change to the upstream source, or a change to the Debian bits of the source. Note, however, that source NMUs may also include -architecture-dependent packages, as well as an updated Debian diff -(or, more rarely, new upstream source as well). +architecture-dependent packages, as well as an updated Debian diff.

A binary-only NMU is a recompilation and upload of a binary package for a given architecture. As such, it is usually part of a porting @@ -1374,7 +1417,7 @@ we refer to any type of non-maintainer upload NMUs, whether source and binary, or binary-only. - Who can do an NMU + Who can do an NMU

Only official, registered Debian maintainers can do binary or source NMUs. An official maintainer is someone who has their key in the @@ -1385,10 +1428,10 @@ to the Bug Tracking System. Maintainers almost always appreciate quality patches and bug reports. - When to do a source NMU + When to do a source NMU

Guidelines for when to do a source NMU depend on the target -distribution, i.e., stable, unstable, or frozen. Porters have +distribution, i.e., stable, unstable, or experimental. Porters have slightly different rules than non-porters, due to their unique circumstances (see ).

@@ -1400,12 +1443,12 @@ maintainer cannot provide a fixed package fast enough or if he/she cannot be reached in time, a security officer may upload a fixed package (i.e., do a source NMU).

-During the release freeze (see ), NMUs which -fix serious or higher severity bugs are encouraged and accepted. -Even during this window, however, you should endeavor to reach the -current maintainer of the package; they might be just about to upload -a fix for the problem. As with any source NMU, the guidelines found -in need to be followed. +During the release cycle (see ), NMUs which fix +serious or higher severity bugs are encouraged and accepted. Even +during this window, however, you should endeavor to reach the current +maintainer of the package; they might be just about to upload a fix +for the problem. As with any source NMU, the guidelines found in need to be followed.

Bug fixes to unstable by non-maintainers are also acceptable, but only as a last resort or with permission. Try the following steps first, @@ -1438,7 +1481,7 @@ id="nmu-guidelines">. - How to do a source NMU + How to do a source NMU

The following applies to porters insofar as they are playing the dual role of being both package bug-fixers and package porters. If a @@ -1457,7 +1500,7 @@ However, aesthetic changes must not be made in a non-maintainer upload. - Source NMU version numbering + Source 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 @@ -1489,82 +1532,71 @@ this, you'll have to invoke dpkg-buildpackage with the -sa switch to force the build system to pick up the new source package (normally it only looks for Debian revisions of '0' or '1' — it's not yet clever enough to know about `0.1'). -

-Remember, porters who are simply recompiling a package for a different -architecture do not need to renumber. Porters should use new version -numbers if and only if they actually have to modify the source package -in some way, i.e., if they are doing a source NMU and not a binary -NMU. - + Source NMUs must have a new changelog entry

A non-maintainer doing a source 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.

+number in it.

By convention, source NMU changelog entries start with the line * Non-maintainer upload -

+ - Source NMUs and the Bug Tracking System + Source NMUs and the Bug Tracking System

Maintainers other than the official package maintainer should make as few changes to the package as possible, and they should always send a patch as a unified context diff (diff -u) detailing their changes to the Bug Tracking System.

-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 not a porter and 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 -debhelper), there must still be a changelog entry; -therefore, there will be a patch. If you are a porter, you are -probably just doing a binary-only NMU. (Note: this leaves out in the cold -porters who have to do recompiles — chalk it up as a weakness in how -we maintain our archive.) +What if you are simply recompiling the package? If you just need to +recompile it for a single architecture, then you may do a binary-only +NMU as described in which doesn't require any +patch to be sent. If you want the package to be recompiled for all +architectures, then you do a source NMU as usual and you will have to +send a patch.

If the source NMU (non-maintainer upload) fixes some existing bugs, -the bugs in the Bug Tracking System which are fixed need to be -notified but not actually closed by the -non-maintainer. Technically, only the official package maintainer or -the original bug submitter are allowed to close bugs. However, the -person making the non-maintainer release must send a short message to -the relevant bugs explaining that the bugs have been fixed by the NMU. -Using control@bugs.debian.org, the party doing the NMU -should also set the severity of the bugs fixed in the NMU to `fixed'. -This ensures that everyone knows that the bug was fixed in an NMU; -however the bug is left open until the changes in the NMU are -incorporated officially into the package by the official package -maintainer. Also, open a bug with the patches needed to fix the -problem, or make sure that one of the other (already open) bugs has -the patches. -

-The normal maintainer will either apply the patch or employ an -alternate method of fixing the problem. Sometimes bugs are fixed -independently 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, the maintainer needs to ensure that the -new upstream version really fixes each problem that was fixed in the -non-maintainer release. +these bugs should be tagged fixed in the Bug Tracking +System rather than closed. By convention, only the official package +maintainer or the original bug submitter are allowed to close bugs. +Fortunately, Debian's archive system recognizes NMUs and thus marks +the bugs fixed in the NMU appropriately if the person doing the NMU +has listed all bugs in the changelog with the Closes: +bug#nnnnn syntax (see for +more information describing how to close bugs via the changelog). +Tagging the bugs fixed ensures that everyone knows that the +bug was fixed in an NMU; however the bug is left open until the +changes in the NMU are incorporated officially into the package by +the official package maintainer. +

+Also, after doing an NMU, you have to open a new bug and include a +patch showing all the changes you have made. Alternatively you can send +that information to the existing bugs that are fixed by your NMU. +The normal maintainer will either apply the patch or employ an alternate +method of fixing the problem. Sometimes bugs are fixed independently +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, the maintainer needs to ensure that the new upstream version +really fixes each problem that was fixed in the non-maintainer release.

In addition, the normal maintainer should always retain the entry in the changelog file documenting the non-maintainer upload. - Building source NMUs + Building source NMUs

Source NMU packages are built normally. Pick a distribution using the same rules as found in . Just as described in , a normal changes file, etc., will be built. In -fact, all the prescriptions from apply, including -the need to announce the NMU to the proper lists. +fact, all the prescriptions from apply.

Make sure you do not change the value of the maintainer in the debian/control file. Your name as given in the NMU entry of @@ -1574,7 +1606,7 @@ changes file. - Porting and Being Ported + Porting and Being Ported

Debian supports an ever-increasing number of architectures. Even if you are not a porter, and you don't use any architecture but one, it @@ -1587,11 +1619,11 @@ is different from the original architecture of the package maintainer's binary package. It is a unique and essential activity. In fact, porters do most of the actual compiling of Debian packages. For instance, for a single i386 binary package, there must be -a recompile for each architecture, which is amounts to +a recompile for each architecture, which amounts to &number-of-arches; more builds. - Being Kind to Porters + Being kind to porters

Porters have a difficult and unique task, since they are required to deal with a large volume of packages. Ideally, every source package @@ -1618,7 +1650,7 @@ are set properly. The best way to validate this is to use the debootstrap package to create an unstable chroot environment. Within that chrooted environment, install the build-essential package and any package -dependancies mention in Build-Depends and/or +dependencies mention in Build-Depends and/or Build-Depends-Indep. Finally, try building your package within that chrooted environment.

@@ -1655,43 +1687,46 @@ although you are probably asking for trouble, since different architectures sometimes standardize on different compilers. Make sure your debian/rules contains separate ``binary-arch'' and -``binary-indep'' targets, as the Debian Packaging Manual requires. +``binary-indep'' targets, as the Debian Policy Manual requires. Make sure that both targets work independently, that is, that you can call the target without having called the other before. To test this, try to run dpkg-buildpackage -b. - Guidelines for Porter Uploads + Guidelines for porter uploads

If the package builds out of the box for the architecture to be ported to, you are in luck and your job is easy. This section applies to -that case; it describes how to build and upload your binary-only NMU so +that case; it describes how to build and upload your binary package so that it is properly installed into the archive. If you do have to patch the package in order to get it to compile for the other architecture, you are actually doing a source NMU, so consult instead.

-In a binary-only NMU, no real changes are being made to the source. You do +For a porter upload, no changes are being made to the source. You do not need to touch any of the files in the source package. This includes debian/changelog.

The way to invoke dpkg-buildpackage is as -dpkg-buildpackage -B -eporter-email. Of course, +dpkg-buildpackage -B -mporter-email. Of course, set porter-email to your email address. This will do a -binary-only build of only the architecture-dependant portions of the +binary-only build of only the architecture-dependent portions of the package, using the `binary-arch' target in debian/rules. - - Recompilation Binary-Only NMU Versioning + + Recompilation or binary-only NMU

-Sometimes you need to recompile a package against other packages which -have been updated, such as libraries. You do have to bump the version -number in this case, so that the version comparison system can -function properly. Even so, these are considered binary-only NMUs -— there is no need in this case to trigger all other -architectures to consider themselves out of date or requiring -recompilation. +Sometimes the initial porter upload is problematic because the environment +in which the package was built was not good enough (outdated or obsolete +library, bad compiler, ...). Then you may just need to recompile it in +an updated environment. However, you do have to bump the version number in +this case, so that the old bad package can be replaced in the Debian archive +(katie refuses to install new packages if they don't have a +version number greater than the currently available one). Despite the +required modification of the changelog, these are called binary-only NMUs +— there is no need in this case to trigger all other architectures +to consider themselves out of date or requiring recompilation.

Such recompilations require special ``magic'' version numbering, so that the archive maintenance tools recognize that, even though there is a @@ -1707,7 +1742,7 @@ latest version was ``3.4-2.1'', your NMU should have a version number of ``3.4-2.1.1''. - + When to do a source NMU if you are a porter

Porters doing a source NMU generally follow the guidelines found in @@ -1715,15 +1750,20 @@ Porters doing a source NMU generally follow the guidelines found in the wait cycle for a porter's source NMU is smaller than for a non-porter, since porters have to cope with a large quantity of packages. -

Again, the situation varies depending on the distribution they are -uploading to. Crucial fixes (i.e., changes need to get a source +uploading to. + +

However, if you are a porter doing an NMU for `unstable', the above guidelines for porting should be followed, with two variations. -Firstly, the acceptable waiting period &mdash the time between when the +Firstly, the acceptable waiting period — the time between when the bug is submitted to the BTS and when it is OK to do an NMU — is seven days for porters working on the unstable distribution. This period can be shortened if the problem is critical and imposes hardship on @@ -1751,14 +1791,14 @@ the waiting period. Of course, such locations have no official blessing or status, so buyer, beware. - Tools for Porters + Tools for porters

There are several tools available for the porting effort. This section contains a brief introduction to these tools; see the package documentation or references for full information. - + quinn-diff

quinn-diff is used to locate the differences from @@ -1767,7 +1807,7 @@ packages need to be ported for architecture Y, based on architecture X. - + buildd

The buildd system is used as a distributed, @@ -1799,7 +1839,7 @@ bounds checking). It will also enable Debian to recompile entire distributions quickly. - + dpkg-cross

dpkg-cross is a tool for installing libraries and @@ -1811,7 +1851,7 @@ enhanced to support cross-compiling. - + Moving, Removing, Renaming, Adopting, and Orphaning Packages

@@ -1820,7 +1860,7 @@ upload process. These procedures should be manually followed by maintainers. This chapter gives guidelines in what to do in these cases. - Moving packages + Moving packages

Sometimes a package will change its section. For instance, a package from the `non-free' section might be GPL'd in a later version, @@ -1833,27 +1873,37 @@ belongs in. If you need to change the section for one of your packages, change the package control information to place the package in the desired section, and re-upload the package (see the for details). Carefully examine the -installation log sent to you when the package is installed into the -archive. If for some reason the old location of the package remains, -file a bug against ftp.debian.org asking that the old -location be removed. Give details on what you did, since it might be -a bug in the archive maintenance software. +name="Debian Policy Manual"> for details). If your new section is +valid, it will be moved automatically. If it does not, then contact +the ftpmasters in order to understand what happened.

If, on the other hand, you need to change the subsection of one of your packages (e.g., ``devel'', ``admin''), the procedure is slightly different. Correct the subsection as found in the control -file of the package, and reupload that. Also, you'll need to get the +file of the package, and re-upload that. Also, you'll need to get the override file updated, as described in . - Removing packages + Removing packages

If for some reason you want to completely remove a package (say, if it -is an old compatibility library which is not longer required), you +is an old compatibility library which is no longer required), you need to file a bug against ftp.debian.org asking that the package be removed. Make sure you indicate which distribution the -package should be removed from. +package should be removed from. Normally, you can only have packages +removed from unstable and experimental. Packages +are not removed from testing directly. Rather, they will be +removed automatically after the package has been removed from +unstable and no package in testing depends on it. +

+You also have to detail the reasons justifying that request. This is to +avoid unwanted removals and to keep a trace of why a package has been +removed. For example, you can provide the name of the package that +supersedes the one to be removed. +

+Usually you only ask the removal of a package maintained by yourself. +If you want to remove another package, you have to get the approval +of its last maintainer.

If in doubt concerning whether a package is disposable, email &email-debian-devel; asking for opinions. Also of interest is the @@ -1862,14 +1912,18 @@ package. When invoked as apt-cache showpkg package, the program will show details for package, including reverse depends. - Removing packages from Incoming + Removing packages from Incoming

-If you decide to remove a package from Incoming, it is nice -but not required to send a notification of that to the appropriate -announce list (either &email-debian-changes; or -&email-debian-devel-changes;). +In the past, it was possible to remove packages from incoming. +With the introduction of the New Incoming system this is no longer +possible. Instead, you have to upload a new revision of your package with +a higher version as the package you want to replace. Both versions will be +installed in the archive but only the higher version will actually be +available in unstable since the previous version will immediately +be replaced by the higher. However, if you do proper testing of your +packages, the need to replace a package should not occur too often anyway. - Replacing or renaming packages + Replacing or renaming packages

Sometimes you made a mistake naming the package and you need to rename it. In this case, you need to follow a two-step process. First, set @@ -1880,7 +1934,7 @@ that package, and the package has moved into the archive, file a bug against ftp.debian.org asking to remove the package with the obsolete name. - Orphaning a package + Orphaning a package

If you can no longer maintain a package, you need to inform the others about that, and see that the package is marked as orphaned. @@ -1903,7 +1957,7 @@ case, as described above. Read instructions on the for more information. - Adopting a package + Adopting a package

A list of packages in need of a new maintainer is available at in the Handling Bugs + Handling package bugs +

+Often as a package maintainer, you find bugs in other packages or else +have bugs reported to your packages which need to be reassigned. The + can tell you how +to do this. Some information on filing bugs can be found in . - Monitoring bugs + Monitoring bugs

If you want to be a good maintainer, you should periodically check the for your @@ -1941,49 +2001,48 @@ Maintainers interact with the BTS via email addresses at bugs.debian.org. Documentation on available commands can be found at , or, if you have installed the doc-debian package, you can look at the local files -/usr/doc/debian/bug-*. +&file-bts-docs;.

Some find it useful to get periodic reports on open bugs. You can add a cron job such as the following if you want to get a weekly email outlining all the open bugs against your packages: # ask for weekly reports of bugs in my packages -0 17 * * fri echo "index maint maintainer-address" | mail request@bugs.debian.org +&cron-bug-report; -Replace maintainer-address with you official Debian +Replace address with your official Debian maintainer address. - Submitting Bugs -

-Often as a package maintainer, you find bugs in other packages or else -have bugs reported to your packages which need to be reassigned. The - can tell you how -to do this. -

-We encourage you to file bugs when there are problems. Try to submit -the bug from a normal user account at which you are likely to receive -mail. Do not submit bugs as root. -

-Make sure the bug is not already filed against a package. Try to do a -good job reporting a bug and redirecting it to the proper location. -For extra credit, you can go through other packages, merging bugs -which are reported more than once, or setting bug severities to -`fixed' when they have already been fixed. Note that when you are -neither the bug submitter nor the package maintainer, you should -not actually close the bug (unless you secure permission from the -maintainer). - - Responding to Bugs + Responding to bugs

Make sure that any discussions you have about bugs are sent both to the original submitter of the bug, and the bug itself (e.g., 123@bugs.debian.org).

-You should never close bugs via the bug server `close' +You should never close bugs via the bug server close command sent to &email-bts-control;. If you do so, the original -submitter will not receive any feedback on why the bug was closed. +submitter will not receive any information about why the bug was +closed. + + Bug housekeeping +

+As a package maintainer, you will often find bugs in other packages or +have bugs reported against your packages which are actually bugs in +other packages. The document the technical operation of the BTS, such as +how to file, reassign, merge, and tag bugs. This section contains +some guidelines for managing your own bugs, based on the collective +Debian developer experience. +

+Filing bugs for problems that you find in other packages is one of +the "civic obligations" of maintainership, see +for details. +

+&FIXME;Talk about tags, forwarding bugs, or else break it into +different sections... - When bugs are closed by new uploads + + When bugs are closed by new uploads

If you fix a bug in your packages, it is your responsibility as the package maintainer to close the bug when it has been fixed. However, @@ -2002,7 +2061,7 @@ acme-cannon (3.1415) unstable; urgency=low * Frobbed with options (closes: Bug#98339) * Added safety to prevent operator dismemberment, closes: bug#98765, bug#98713, #98714. - * Added manpage. Closes: #98725. + * Added man page. Closes: #98725. Technically speaking, the following Perl regular expression is what is @@ -2011,8 +2070,9 @@ used: /closes:\s*(?:bug)?\#\s*\d+(?:,\s*(?:bug)?\#\s*\d+)*/ig -The author prefers the (closes: Bug#XXX) syntax, -since it stands out from the rest of the changelog entries. +The author prefers the closes: #XXX) syntax, as +one of the most concise and easiest to integrate with the text of the +changelog.

If you want to close bugs the old fashioned, manual way, it is usually sufficient to mail the .changes file to @@ -2020,7 +2080,7 @@ sufficient to mail the .changes file to bug number. - Lintian reports + Lintian reports

You should periodically get the new lintian from `unstable' and check over all your packages. Alternatively you can @@ -2031,7 +2091,39 @@ latest version of the distribution (usually from 'unstable') using the latest lintian. - Reporting lots of bugs at once + + Beyond Packaging +

+Debian is about a lot more than just packaging software and +maintaining those packages. This chapter contains information about +ways, often really critical ways, to contribute to Debian beyond +simply creating and maintaining packages. +

+As a volunteer organization, Debian relies on the discretion of its +members in choosing what they want to work on, and choosing what is +the most critical thing to spend their time on. + + + Bug Reporting +

+We encourage you to file bugs as you find them in Debian packages. In +fact, Debian developers are often the first line testers. Finding and +reporting bugs in other developer's packages improves the quality of +Debian. +

+Try to submit the bug from a normal user account at which you are +likely to receive mail. Do not submit bugs as root. +

+Make sure the bug is not already filed against a package. Try to do a +good job reporting a bug and redirecting it to the proper location. +For extra credit, you can go through other packages, merging bugs +which are reported more than once, or setting bug severities to +`fixed' when they have already been fixed. Note that when you are +neither the bug submitter nor the package maintainer, you should +not actually close the bug (unless you secure permission from the +maintainer). + + Reporting lots of bugs at once

Reporting a great number of bugs for the same problem on a great number of different packages &mdash i.e., more than 10 &mdash is a deprecated @@ -2053,19 +2145,56 @@ that the bug report is not forwarded to the bug distribution mailing list. - - Interaction with Prospective Developers + Quality Assurance effort +

+Even though there is a dedicated group of people for Quality +Assurance, QA duties are not reserved solely for them. You can +participate in this effort by keeping your packages as bug-free as +possible, and as lintian-clean (see ) as +possible. If you do not find that possible, then you should consider +orphaning some of your packages (see ). Alternatively, you may ask the help of other people +in order to catch up the backlog of bugs that you have (you can ask +for help on &email-debian-qa; or &email-debian-devel;). + Dealing with unreachable maintainers

-This chapter describes procedures that existing Debian developers should -follow when it comes to dealing with wannabe developers. +If you notice that a package is lacking maintenance, you should +make sure the maintainer is active and will continue to work on +his packages. Try contacting him yourself. +

+If you do not get a reply after a few weeks you should collect all +useful information about this maintainer. Start by logging into +the +and doing a full search to check whether the maintainer is on vacation +and when he was last seen. Collect any important package names +he maintains and any Release Critical bugs filled against them. +

+Send all this information to &email-debian-qa;, in order to let the +QA people do whatever is needed. + + + + + + Interacting with prospective Debian developers +

+Debian's success depends on it's ability to attract and retain new and +talented volunteers. If you are an experienced developer, we +recommend that you get involved with the process of bringing in new +developers. This section describes how to help new prospective +developers. + - Sponsoring packages + Sponsoring packages

Sponsoring a package means uploading a package for a maintainer who is not able to do it on their own, a new maintainer applicant. Sponsoring a package also means accepting responsibility for it.

+If you wish to volunteer as a sponsor, you can sign up at . +

New maintainers usually have certain difficulties creating Debian packages — this is quite understandable. That is why the sponsor is there, to check the package and verify that it is good enough for inclusion in Debian. @@ -2080,25 +2209,30 @@ changelog and the control file, the upload can still be traced to you.

If you are an application manager for a prospective developer, you can also be their sponsor. That way you can also verify the how the applicant is -handling the `Tasks and Skills' part of their application. +handling the 'Tasks and Skills' part of their application. + - Advocating new developers + Advocating new developers

See the page about at the Debian web site. - Handling new maintainer applications + Handling new maintainer applications

Please see at the Debian web site. - Overview of Debian Maintainer Tools + Overview of Debian Maintainer Tools

This section contains a rough overview of the tools available to -maintainers. These tools are meant to help convenience developers and -free their time for critical tasks. +maintainers. The following is by no means complete or definitive, but +just a guide to some of the more popular tools. +

+Debian maintainer tools are meant to help convenience developers and +free their time for critical tasks. As Larry Wall says, there's more +than one way to do it.

Some people prefer to use high-level package maintenance tools and some do not. Debian is officially agnostic on this issue; any tool @@ -2109,7 +2243,8 @@ endorse any particular tool to the exclusion of a competing tool.

Most of the descriptions of these packages come from the actual package descriptions themselves. Further information can be found in -the package documentation itself. +the package documentation itself. You can also see more info with the +command apt-cache show package_name. @@ -2137,14 +2272,18 @@ id="upload-checking"> and .

debconf provides a consistent interface to configuring packages interactively. It is user interface -intedependant, allowing end-users to configure packages with a +independent, allowing end-users to configure packages with a text-only interface, an HTML interface, or a dialog interface. New interfaces can be added modularly.

+You can find documentation for this package in the +debconf-doc package. +

Many feel that this system should be used for all packages requiring interactive configuration. debconf is not currently required by Debian Policy, however, that may change in the future. +

@@ -2156,10 +2295,14 @@ building binary Debian packages. Programs are included to install various files into your package, compress files, fix file permissions, integrate your package with the Debian menu system.

-Unlike debmake, debhelper is -broken into several small, granular commands which act in a consistent -manner. As such, it allows a greater granularity of control than -debmake. +Unlike some approaches, debhelper is broken into +several small, granular commands which act in a consistent manner. As +such, it allows a greater granularity of control than some of the +other "debian/rules tools". +

+There are a number of little debhelper add-on +packages, too transient to document. You can see the list of most of +them by doing apt-cache search ^dh-. @@ -2178,16 +2321,18 @@ The consensus is that debmake is now deprecated in favor of debhelper. However, it's not a bug to use debmake. + yada

-yada is a new packaging helper tool with a slightly -different philosophy. It uses a debian/packages file to -auto-generate other necessary files in the debian/ -subdirectory. +yada is another packaging helper tool. It uses a +debian/packages file to auto-generate +debian/rules and other necessary files in the +debian/ subdirectory.

-Note that yada is still quite new and possibly not -yet as robust as other systems. +Note that yada is called "essentially unmaintained" +by it's own maintainer, Charles Briscoe-Smith. As such, it can be +considered deprecated. @@ -2218,20 +2363,45 @@ a version control system. dupload

-dupload is a package and a script to automagically +dupload is a package and a script to automatically upload Debian packages to the Debian archive, to log the upload, and to send mail about the upload of a package. You can configure it for new upload locations or methods. + + dput +

+The dput package and script does much the same +thing as dupload, but in a different way. It has +some features over dupload, such as the ability to +check the GnuPG signature and checksums before uploading, and the +possibility of running dinstall in dry-run mode after the +upload. + + fakeroot

fakeroot simulates root privileges. This enables you to build packages without being root (packages usually want to install files with root ownership). If you have -fakeroot installed, you can say, i.e., -dpkg-buildpackage -rfakeroot as a user. +fakeroot installed, you can build packages as a +user: dpkg-buildpackage -rfakeroot. + + + + debootstrap +

+The debootstrap package and script allows you to +"bootstrap" a Debian base system into any part of your file-system. +By "base system", we mean the bare minimum of packages required to +operate and install the rest of the system. +

+Having a system like this can be useful in many ways. For instance, +you can chroot into it if you want to test your build +depends. Or, you can test how your package behaves when installed +into a bare base system. @@ -2239,10 +2409,21 @@ install files with root ownership). If you have

devscripts is a package containing a few wrappers and tools which you may find helpful for maintaining your Debian -packages. Example scripts include debchange, which will -manipulate your debian/changelog file from the -command-line, and debuild, which is a wrapper around -dpkg-buildpackage. +packages. Example scripts include debchange and +dch, which manipulate your debian/changelog +file from the command-line, and debuild, which is a +wrapper around dpkg-buildpackage. + + + + + dpkg-dev-el +

+dpkg-dev-el is an Emacs lisp package which provides +assistance when editing some of the files in the debian +directory of your package. For instance, when editing +debian/changelog, there are handy functions for +finalizing a version and listing the package's current bugs. @@ -2250,8 +2431,17 @@ command-line, and debuild, which is a wrapper around

debget is a package containing a convenient script which can be helpful in downloading files from the Debian archive. -You can use it to download source packages, for instance. +You can use it to download source packages, for instance (although +apt-get source package does pretty much the same +thing). + +