X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=developers-reference.sgml;h=02eb0cc32358cb50e40844907d55719661246860;hb=f28d5e9547049afa872a1f0d246d169bc9d3365a;hp=63a91b9085d26bb1e4f9737e4f6dba244787237d;hpb=770042b07cc441a9a737efd52258c0845423f391;p=developers-reference.git diff --git a/developers-reference.sgml b/developers-reference.sgml index 63a91b9..02eb0cc 100644 --- a/developers-reference.sgml +++ b/developers-reference.sgml @@ -7,7 +7,7 @@ %dynamicdata; - + @@ -31,7 +31,7 @@ -copyright © 2004—2006 Andreas Barth +copyright © 2004—2007 Andreas Barth copyright © 1998—2003 Adam Di Carlo @@ -144,6 +144,11 @@ 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. +

+One pitfall could be a too-generic local part in your mailadress: +Terms like mail, admin, root, master should be avoided, please +see for details. + Debian mentors and sponsors

@@ -158,7 +163,7 @@ 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 +are people who are official Debian Developers, and who are willing to criticize and upload your packages for you. -

-Our CVS server is located on cvs.debian.org. + The VCS servers

-If you need to use a publicly accessible CVS -server, for instance, to help coordinate work on a package between -many different developers, you can request a CVS area on the server. -

-Generally, cvs.debian.org offers a combination of local CVS -access, anonymous client-server read-only access, and full -client-server access through ssh. Also, the CVS area can -be accessed read-only via the Web at . +If you need to use a Version Control System for any of your Debian work, +you can use one the existing repositories hosted on Alioth or you can +request a new project and ask for the VCS repository of your choice. +Alioth supports CVS (alioth.debian.org), Subversion +(svn.debian.org), Arch (tla/baz, both on arch.debian.org), Bazaar +(bzr.debian.org), Mercurial (hg.debian.org) and Git (git.debian.org). +Checkout if you plan +to maintain packages in a VCS repository. See for +information on the services provided by Alioth.

-To request a CVS area, send a request via email to -&email-debian-admin;. Include the name of the requested CVS area, -the Debian account that should own the CVS root area, and why you need it. +Historically, Debian first used cvs.debian.org to host CVS +repositories. But that service is deprecated in favor of Alioth. +Only a few projects are still using it. chroots to different distributions

On some machines, there are chroots to different distributions available. -You can use them like +You can use them like this: vore% dchroot unstable @@ -810,7 +815,8 @@ 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. @@ -821,8 +827,8 @@ in an identical manner. What we describe below for stable is equally applicable to the unstable and testing distributions.

-dists/stable contains three directories, namely main, -contrib, and non-free. +dists/stable contains three directories, namely +main, contrib, and non-free.

In each of the areas, there is a directory for the source packages (source) and a directory for each supported architecture @@ -886,8 +892,8 @@ fields of packages. 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 +In the first days, the Linux kernel was only available for Intel +i386 (or greater) platforms, and so was Debian. But as Linux became more and more popular, the kernel was ported to other architectures, too.

@@ -930,7 +936,7 @@ outside of Debian, there is just one .tar.gz file which contains the sources of the program. If a package is distributed elsewhere too, the .orig.tar.gz file stores the so-called upstream source code, that is the source code that's -distributed from the upstream maintainer (often the author of +distributed by the upstream maintainer (often the author of the software). In this case, the .diff.gz contains the changes made by the Debian maintainer.

@@ -953,10 +959,11 @@ contained in /debian, which is a common location (another is /pub/debian).

A distribution comprises Debian source and binary packages, and the -respective Sources and Packages index files, containing -the header information from all those packages. The former are kept in the -pool/ directory, while the latter are kept in the dists/ -directory of the archive (for backwards compatibility). +respective Sources and Packages index files, +containing the header information from all those packages. The former are +kept in the pool/ directory, while the latter are kept in the +dists/ directory of the archive (for backwards +compatibility). Stable, testing, and unstable @@ -984,21 +991,18 @@ new packages have been installed. See .

After a period of development, once the release manager deems fit, the 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 -is frozen even further. -Details of the handling of the testing distribution are published -by the Release Team on debian-devel-announce. -After the open issues are solved to the satisfaction of the Release Team, -the distribution is released. -Releasing means -that testing is renamed to stable, -and a new copy is created for the new testing, -and the previous stable is renamed to oldstable -and stays there until it is finally archived. -On archiving, the contents are moved to &archive-host;). +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 is +frozen even further. Details of the handling of the testing distribution +are published by the Release Team on debian-devel-announce. After the +open issues are solved to the satisfaction of the Release Team, the +distribution is released. Releasing means that testing is +renamed to stable, and a new copy is created for the new +testing, and the previous stable is renamed to +oldstable and stays there until it is finally archived. On +archiving, the contents are moved to &archive-host;).

This development cycle is based on the assumption that the unstable distribution becomes stable after passing a @@ -1080,8 +1084,8 @@ An alternative to experimental is to use your personal web space on people.debian.org.

When uploading to unstable a package which had bugs fixed in experimental, -please consider using the option -v to dpkg-buildpackage -to finally get them closed. +please consider using the option -v to +dpkg-buildpackage to finally get them closed. Release code names

@@ -1089,7 +1093,7 @@ 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, `hamm'; Debian 2.1, `slink'; Debian 2.2, `potato'; Debian 3.0, `woody'; Debian 3.1, "sarge"; -Debian (number needs to be determined), "etch". +Debian 4.0, "etch". There is also a ``pseudo-distribution'', called `sid', which is the current `unstable' distribution; since packages are moved from `unstable' to `testing' as they approach stability, `sid' itself is never released. @@ -1161,18 +1165,18 @@ This directory is scanned every few minutes by a daemon called remaining and correctly signed *.changes-files are moved together with their corresponding files to the unchecked directory. -This directory is not visible for most Developers, as ftp-master is restricted; -it is scanned every 15 minutes by -the katie script, which verifies the integrity of the uploaded -packages and their cryptographic signatures. -If the package is considered ready to be installed, it -is moved into the accepted directory. If this is the first upload of -the package (or it has new binary packages), -it is moved to the new directory, where it waits -for approval by the ftpmasters. If the package contains files to be installed -"by hand" it is moved to the byhand directory, where it waits -for manual installation by the ftpmasters. Otherwise, if any error has been detected, -the package is refused and is moved to the reject directory. +This directory is not visible for most Developers, as ftp-master is +restricted; it is scanned every 15 minutes by the katie +script, which verifies the integrity of the uploaded packages and their +cryptographic signatures. If the package is considered ready to be +installed, it is moved into the accepted directory. If this +is the first upload of the package (or it has new binary packages), it is +moved to the new directory, where it waits for approval by +the ftpmasters. If the package contains files to be installed "by hand" +it is moved to the byhand directory, where it waits for +manual installation by the ftpmasters. Otherwise, if any error has been +detected, the package is refused and is moved to the reject +directory.

Once the package is accepted, the system sends a confirmation mail to the maintainer and closes all the bugs marked as fixed by the upload, @@ -1181,13 +1185,13 @@ accessible at until it is really installed in the Debian archive. This happens only once a day -(and is also called `dinstall run' for historical reasons); +(and is also called the `dinstall run' for historical reasons); the package is then removed from incoming and installed in the pool along with all the other packages. Once all the other updates (generating new -Packages and Sources index files for example) have been -made, a special script is called to ask all the primary mirrors to update -themselves. +Packages and Sources index files for example) +have been made, a special script is called to ask all the primary mirrors +to update themselves.

The archive maintenance software will also send the OpenPGP/GnuPG signed .changes file that you uploaded to the appropriate mailing @@ -1216,8 +1220,8 @@ the currently working way.

The unchecked directory has a special DELAYED subdirectory. It is itself subdivided in nine directories -called 1-day to 9-day. Packages which are uploaded to -one of those directories will be moved to the real unchecked +called 1-day to 9-day. Packages which are +uploaded to one of those directories will be moved to the real unchecked directory after the corresponding number of days. This is done by a script which is run each day and which moves the packages between the directories. Those which are in "1-day" are @@ -1286,10 +1290,10 @@ libdbd-mysql-perl | 1.2216-2.0.1 | testing | alpha libdbd-mysql-perl | 1.2219-1 | unstable | source, alpha, arm, hppa, i386, ia64, m68k, mips, mipsel, powerpc, s390, sparc

-In this example, you can see that the version in unstable differs from -the version in testing and that there has been a binary-only NMU of the -package for the alpha architecture. Each version of the package has been -recompiled on most of the architectures. +In this example, you can see that the version in unstable differs +from the version in testing and that there has been a binary-only +NMU of the package for the alpha architecture. Each version of the package +has been recompiled on most of the architectures. The Package Tracking System

@@ -1331,11 +1335,16 @@ to sourcepackage@&pts-host;. In order to prevent spam, all messages sent to these addresses must contain the X-PTS-Approved header with a non-empty value. + contact + +Mails sent to the maintainer through the *@packages.debian.org email +aliases. + summary -(This is a planned expansion.) -The regular summary emails about the package's status (bug statistics, -porting overview, progression in testing, ...). +Regular summary emails about the package's status. +Currently, only progression in testing is sent. +

@@ -1350,8 +1359,10 @@ track how your package gets recompiled for all architectures. cvs -CVS commit notifications, if the package has a CVS repository and the -maintainer has set up forwarding commit notifications to the PTS. +VCS commit notifications, if the package has a VCS repository and the +maintainer has set up forwarding of commit notifications to the PTS. The +"cvs" name is historic, in most cases commit notifications will come +from some other VCS like subversion or git. ddtp @@ -1381,9 +1392,9 @@ various commands to pts@qa.debian.org. unsubscribe <sourcepackage> [<email>] - Removes a previous subscription to the source package sourcepackage - using the specified email address or the sender address if the second - argument is left out. + Removes a previous subscription to the source package + sourcepackage using the specified email address or the sender + address if the second argument is left out. unsubscribeall [<email>] @@ -1403,17 +1414,23 @@ various commands to pts@qa.debian.org. bts: mails coming from the Debian Bug Tracking System bts-control: reply to mails sent to &email-bts-control; - summary: automatic summary mails about the state of a package - cvs: notification of CVS commits + summary: automatic summary mails about the state of a + package + contact: mails sent to the maintainer through the + *@packages.debian.org aliases + cvs: notification of VCS commits ddtp: translations of descriptions and debconf templates - derivatives: changes made on the package by derivative distributions + derivatives: changes made on the package by derivative + distributions upload-source: announce of a new source upload that - has been accepted - upload-binary: announce of a new binary-only upload (porting) + has been accepted + upload-binary: announce of a new binary-only upload + (porting) katie-other: other mails from ftpmasters (override disparity, etc.) - default: all the other mails (those which aren't "automatic") - + default: all the other mails (those which aren't + "automatic") + keyword <sourcepackage> [<email>] @@ -1464,26 +1481,31 @@ on the dpkg package: X-Loop: dpkg@&pts-host; X-PTS-Package: dpkg X-PTS-Keyword: upload-source -X-Unsubscribe: echo 'unsubscribe dpkg' | mail pts@qa.debian.org +List-Unsubscribe: <mailto:pts@qa.debian.org?body=unsubscribe+dpkg> - Forwarding CVS commits in the PTS + Forwarding VCS commits in the PTS

-If you use a publicly accessible CVS repository for maintaining +If you use a publicly accessible VCS repository for maintaining your Debian package, you may want to forward the commit notification to the PTS so that the subscribers (and possible co-maintainers) can closely follow the package's evolution.

-Once you set up the CVS repository to generate commit notifications, +Once you set up the VCS repository to generate commit notifications, you just have to make sure it sends a copy of those mails to sourcepackage_cvs@&pts-host;. Only the people who accept the cvs keyword will receive these notifications. +Note that the mail need to be sent from a debian.org machine, +otherwise you'll have to add the X-PTS-Approved: 1 header. +

+For Subversion repositories, the usage of svnmailer is recommended. +See for an example on how to do it. The PTS web interface

The PTS has a web interface at that puts -together a lot of information about each source package. It features many useful -links (BTS, QA stats, contact information, DDTP translation status, +together a lot of information about each source package. It features many +useful links (BTS, QA stats, contact information, DDTP translation status, buildd logs) and gathers much more information from various places (30 latest changelog entries, testing status, ...). It's a very useful tool if you want to know what's going on with a specific source @@ -1500,11 +1522,13 @@ indefinitely) and news items in the "latest news" section.

Static news items can be used to indicate: -the availability of a project hosted on Alioth for co-maintaining the package +the availability of a project hosted on Alioth for co-maintaining the package a link to the upstream web site a link to the upstream bug tracker the existence of an IRC channel dedicated to the software -any other available resource that could be useful in the maintenance of the package +any other available resource that could be useful in the maintenance +of the package Usual news items may be used to announce that: @@ -1512,7 +1536,8 @@ Usual news items may be used to announce that: final packages are expected for next week the packaging is about to be redone from scratch backports are available -the maintainer is on vacation (if they wish to publish this information) +the maintainer is on vacation (if they wish to publish this + information) a NMU is being worked on something important will affect the package @@ -1521,10 +1546,10 @@ Both kinds of news are generated in a similar manner: you just have to send an email either to pts-static-news@qa.debian.org or to pts-news@qa.debian.org. The mail should indicate which package is concerned by having the name of the source package in a -X-PTS-Package mail header or in a Package pseudo-header (like the -BTS reports). If a URL is available in the X-PTS-Url mail header or in -the Url pseudo-header, then the result is a link to that URL instead -of a complete news item. +X-PTS-Package mail header or in a Package pseudo-header +(like the BTS reports). If a URL is available in the X-PTS-Url +mail header or in the Url pseudo-header, then the result is a +link to that URL instead of a complete news item.

Here are a few examples of valid mails used to generate news items in the PTS. The first one adds a link to the cvsweb interface of debian-cd @@ -1539,8 +1564,8 @@ Url: http://cvs.debian.org/debian-cd/

The second one is an announcement sent to a mailing list which is also sent -to the PTS so that it is published on the PTS web page of the package. Note the -use of the BCC field to avoid answers sent to the PTS by mistake. +to the PTS so that it is published on the PTS web page of the package. +Note the use of the BCC field to avoid answers sent to the PTS by mistake. From: Raphael Hertzog <hertzog@debian.org> To: debian-gtk-gnome@lists.debian.org @@ -1571,27 +1596,34 @@ distribution, testing status and much more including links to any other useful information.

It is a good idea to look up your own data regularly so that -you don't forget any open bug, and so that you don't forget which -packages are under your responsibility. +you don't forget any open bugs, and so that you don't forget which +packages are your responsibility. - Debian *Forge: Alioth + Debian's GForge installation: Alioth

-Alioth is a fairly new Debian service, based on a slightly modified version -of the GForge software (which evolved from SourceForge). This software -offers developers access to easy-to-use tools such as bug trackers, patch +Alioth is a Debian service based on a slightly modified version of the +GForge software (which evolved from SourceForge). This software offers +developers access to easy-to-use tools such as bug trackers, patch manager, project/task managers, file hosting services, mailing lists, CVS repositories etc. All these tools are managed via a web interface.

It is intended to provide facilities to free software projects backed or led by Debian, facilitate contributions from external developers to projects started by Debian, and help projects whose goals are the promotion of Debian -or its derivatives. +or its derivatives. It's heavily used by many Debian teams and provides +hosting for all sorts of VCS repositories.

All Debian developers automatically have an account on Alioth. They can activate it by using the recover password facility. External developers can request guest accounts on Alioth.

-For more information please visit . +For more information please visit the following links: + + + + + + Goodies for Developers

@@ -1632,14 +1664,23 @@ You should set the subject of the bug to ``ITP: foo -- short description'', substituting the name of the new package for foo. The severity of the bug report must be set to wishlist. If you feel it's necessary, send a copy to -&email-debian-devel; by putting the address in the X-Debbugs-CC: header -of the message (no, don't use CC:, because that way the message's subject -won't indicate the bug number). +&email-debian-devel; by putting the address in the X-Debbugs-CC: +header of the message (no, don't use CC:, because that way the +message's subject won't indicate the bug number).

Please include a Closes: bug#nnnnn entry in the changelog of the new package in order for the bug report to be automatically closed once the new package is installed in the archive (see ). +

+When closing security bugs include CVE numbers as well as the +"Closes: #nnnnn". +This is useful for the security team to track vulnerabilities. +If an upload is made to fix the bug before the advisory ID is known, +it is encouraged to modify the historical changelog entry with the next +upload. Even in this case, please include all available pointers to +background information in the original changelog entry. +

There are a number of reasons why we ask maintainers to announce their intentions: @@ -1662,7 +1703,9 @@ line of testers). We should encourage these people. The announcements give maintainers and other interested parties a better feel of what is going on, and what is new, in the project. - +

+Please see +for common rejection reasons for a new package. Recording changes in the package

@@ -1732,8 +1775,8 @@ Remove the package, then reinstall it. Copy the source package in a different directory and try unpacking it and rebuilding it. This tests if the package relies on existing files outside of -it, or if it relies on permissions being preserved on the files shipped inside -the .diff.gz file. +it, or if it relies on permissions being preserved on the files shipped +inside the .diff.gz file. @@ -1777,9 +1820,9 @@ 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.

-Please notice that, in non-native packages, permissions on files that are not -present in the .orig.tar.gz will not be preserved, as diff does not store file -permissions in the patch. +Please notice that, in non-native packages, permissions on files that are +not present in the .orig.tar.gz will not be preserved, as diff does not +store file permissions in the patch. Picking a distribution @@ -1803,9 +1846,12 @@ at the same time. Special case: uploads to the stable distribution

-Uploading to stable means that the package will be placed into the -stable-proposed-updates directory of the Debian archive for further -testing before it is actually included in stable. +Uploading to stable means that the package will transfered to the +p-u-new-queue for review by the stable release managers, and +if approved will be installed in +stable-proposed-updates directory of the Debian archive. +From there, it will be included in stable with the next point +release.

Extra care should be taken when uploading to stable. Basically, a package should only be uploaded to stable if one of the following happens: @@ -1834,9 +1880,9 @@ packages (by messing with Provides or shlibs files), possibly making those other packages uninstallable, is strongly discouraged.

The Release Team (which can be reached at &email-debian-release;) will -regularly evaluate the uploads in stable-proposed-updates and decide if -your package can be included in stable. Please be clear (and -verbose, if necessary) in your changelog entries for uploads to +regularly evaluate the uploads To stable-proposed-updates and +decide if your package can be included in stable. Please be clear +(and verbose, if necessary) in your changelog entries for uploads to stable, because otherwise the package won't be considered for inclusion.

@@ -1847,7 +1893,8 @@ uploaded package fits the needs of the next point release. Special case: uploads to testing/testing-proposed-updates

-Please see the information in the testing section for details. +Please see the information in the testing section +for details. Uploading a package @@ -1873,17 +1920,12 @@ process of uploading packages into Debian. For removing packages, please see the README file in that ftp directory, and the Debian package . - Uploading to non-US -

-Note: non-us was discontinued with release of sarge. - - Delayed uploads

Delayed uploads are done for the moment via the delayed queue at gluck. The upload-directory is gluck:~tfheen/DELAYED/[012345678]-day. -0-day is uploaded approximately one hour before dinstall runs. +0-day is uploaded multiple times per day to ftp-master.

With a fairly recent dput, this section @@ -1900,7 +1942,8 @@ prescription found in applies here as well. Security uploads

-Do NOT upload a package to the security upload queue (oldstable-security, +Do NOT upload a package to the security upload queue +(oldstable-security, stable-security, etc.) without prior authorization from the security team. If the package does not exactly meet the team's requirements, it will cause many problems and delays in dealing with the unwanted upload. @@ -1912,7 +1955,7 @@ The scp queues on ftp-master, and security are mostly unusable due to the login restrictions on those hosts.

The anonymous queues on ftp.uni-erlangen.de and ftp.uk.debian.org are -currently down. Work is underway to resurrect those. +currently down. Work is underway to resurrect them.

The queues on master.debian.org, samosa.debian.org, master.debian.or.jp, and ftp.chiark.greenend.org.uk are down permanently, and will not be @@ -1967,7 +2010,7 @@ for your next upload, or else you may wish to make a change in the override file.

To alter the actual section that a package is put in, you need to -first make sure that the debian/control in your package +first make sure that the debian/control file in your package is accurate. Next, send an email &email-override; or submit a bug against ftp.debian.org requesting that the section or priority for your package be changed from the old section or @@ -1999,7 +2042,7 @@ and tags, marking bugs as forwarded, and other issues. Operations such as reassigning bugs to other packages, merging separate bug reports about the same issue, or reopening bugs when they are prematurely closed, are handled using the so-called control mail server. -All of the commands available in this server are described in the +All of the commands available on this server are described in the . Monitoring bugs @@ -2037,7 +2080,7 @@ contact the submitter and to record your mail within the bug log (that means you don't need to send a copy of the mail to 123@&bugs-host;).

-If you get a bug which mentions "FTBFS", that means "Fails to build +If you get a bug which mentions "FTBFS", this means "Fails to build from source". Porters frequently use this acronym.

Once you've dealt with a bug report (e.g. fixed it), mark it as @@ -2089,7 +2132,8 @@ If this situation is unacceptable, you (or the submitter) may want to require a decision of the technical committee by reassigning the bug to tech-ctte (you may use the clone command of the BTS if you wish to keep it reported against your package). Before -doing so, please read the . +doing so, please read the . If the bug is real but it's caused by another package, just reassign the bug to the right package. If you don't know which package it should @@ -2117,7 +2161,7 @@ details on the technicalities of the merge command and its relative, the unmerge command, see the BTS control server documentation. The bug submitter may have forgotten to provide some information, in which -case you have to ask them the required information. You may use the +case you have to ask them for the required information. You may use the moreinfo tag to mark the bug as such. Moreover if you can't reproduce the bug, you tag it unreproducible. Anyone who can reproduce the bug is then invited to provide more information @@ -2131,8 +2175,9 @@ upstream problem, you have to forward it to the upstream author. Forwarding a bug is not enough, you have to check at each release if the bug has been fixed or not. If it has, you just close it, otherwise you have to remind the author about it. If you have the required skills -you can prepare a patch that fixes the bug and that you send at the -same time to the author. Make sure to send the patch to the BTS and to +you can prepare a patch that fixes the bug and +send it to the author at the same time. +Make sure to send the patch to the BTS and to tag the bug as patch. If you have fixed a bug in your local copy, or if a fix has been @@ -2155,6 +2200,7 @@ you should not close a bug until the package which fixes the bug has been accepted into the Debian archive. Therefore, once you get notification that your updated package has been installed into the archive, you can and should close the bug in the BTS. +Also, the bug should be closed with the correct version.

However, it's possible to avoid having to manually close bugs after the upload — just list the fixed bugs in your debian/changelog @@ -2179,25 +2225,30 @@ how bug closing changelogs are identified: We prefer the closes: #XXX syntax, as it is the most concise entry and the easiest to integrate with the text of the changelog. -

-If an upload is identified as Non-maintainer upload (NMU) -(and that is the case if the name of the person who commits this change -is not exactly the same as any one of Maintainer or Uploader, -except if the maintainer is the qa group), -than the bug is only tagged fixed instead of being closed. -If a maintainer upload is targetted to experimental, -than the tag fixed-in-experimental is added to the bug; -for NMUs, the tag fixed is used. -(The special rule for experimental is expected to change -as soon as version-tracking is added to the bug tracking system.) +Unless specified different by the -v-switch to +dpkg-buildpackage, only the bugs closed in the +most recent changelog entry are closed (basically, exactly +the bugs mentioned in the changelog-part +in the .changes file are closed). +

+Historically, uploads identified as +Non-maintainer upload (NMU) +were tagged fixed instead of being closed, +but that practice was ceased with the advent of version-tracking. +The same applied to the tag fixed-in-experimental.

If you happen to mistype a bug number or forget a bug in the changelog entries, don't hesitate to undo any damage the error caused. To reopen -wrongly closed bugs, send an reopen XXX command to +wrongly closed bugs, send a reopen XXX command to the bug tracking system's control address, &email-bts-control;. To close any remaining bugs that were fixed by your upload, email the .changes file to XXX-done@&bugs-host;, -where XXX is your bug number. +where XXX is the bug number, and +put "Version: YYY" and an empty line as the first two lines +of the body of the email, +where YYY is the first version +where the bug has been fixed. +

Bear in mind that it is not obligatory to close bugs using the changelog as described above. If you simply want to close bugs that @@ -2216,7 +2267,7 @@ For general information on how to write your changelog entries, see Due to their sensitive nature, security-related bugs must be handled carefully. The Debian Security Team exists to coordinate this activity, keeping track of outstanding security problems, helping -maintainers with security problems or fix them themselves, sending +maintainers with security problems or fixing them themselves, sending security advisories, and maintaining security.debian.org. @@ -2226,13 +2277,13 @@ security advisories, and maintaining security.debian.org. When you become aware of a security-related bug in a Debian package, whether or not you are the maintainer, collect pertinent information about the problem, and promptly contact the security team at -&email-security-team; as soon as possible. DO NOT UPLOAD any -packages for stable; the security team will do that. +&email-security-team; as soon as possible. DO NOT UPLOAD +any packages for stable; the security team will do that. Useful information includes, for example: - What versions of the package are known to be affected by the + Which versions of the package are known to be affected by the bug. Check each version that is present in a supported Debian release, as well as testing and unstable. @@ -2261,7 +2312,7 @@ case depends on the nature of the problem and corresponding fix, and whether it is already a matter of public knowledge.

-There are a few ways developers can learn of a security problem: +There are several ways developers can learn of a security problem: they notice it on a public forum (mailing list, web site, etc.) @@ -2281,7 +2332,7 @@ There are a few ways developers can learn of a security problem: If the problem is severe, it is preferable to share the information with other vendors and coordinate a release. The security team keeps - contacts with the various organizations and individuals and can take + in contact with the various organizations and individuals and can take care of that. @@ -2392,8 +2443,9 @@ Be sure to verify the following items: Target the right distribution in your - debian/changelog. For stable this is stable-security and for - testing this is testing-security, and for the previous + debian/changelog. For stable this is + stable-security and for testing this is + testing-security, and for the previous stable release, this is oldstable-security. Do not target distribution-proposed-updates or stable! @@ -2407,7 +2459,8 @@ Be sure to verify the following items: the same bug was fixed, as this is very helpful when verifying that the bug is fixed in the next stable release. If a CVE identifier has not yet been assigned, the security team will - request one so that it can be included in the package and in the advisory. + request one so that it can be included in the package and in the + advisory. Make sure the version number is proper. It must be greater than the current package, but less than package versions in later @@ -2415,15 +2468,15 @@ Be sure to verify the following items: --compare-versions. Be careful not to re-use a version number that you have already used for a previous upload. For testing, there must be - a higher version in unstable. If there is none yet (for example, - if testing and unstable have the same version) you must upload a - new version to unstable first. + a higher version in unstable. If there is none yet (for + example, if testing and unstable have the same + version) you must upload a new version to unstable first. Do not make source-only uploads if your package has any binary-all packages (do not use the -S option to - dpkg-buildpackage). The buildd infrastructure will - not build those. This point applies to normal package uploads as - well. + dpkg-buildpackage). The buildd + infrastructure will not build those. This point applies to normal + package uploads as well. Unless the upstream source has been uploaded to security.debian.org before (by a previous security update), build @@ -2432,9 +2485,9 @@ Be sure to verify the following items: security.debian.org with the same upstream version, you may upload without upstream source (dpkg-buildpackage -sd). - Be sure to use the exact same *.orig.tar.gz as used in the - normal archive, otherwise it is not possible to move the security - fix into the main archives later. + Be sure to use the exact same *.orig.tar.gz as used + in the normal archive, otherwise it is not possible to move the + security fix into the main archives later. Build the package on a clean system which only has packages installed from the distribution you @@ -2478,9 +2531,8 @@ be fixes for security problems that cannot be disclosed yet.

If a member of the security team accepts a package, it will be -installed on security.debian.org as well as the proper -distribution-proposed-updates on ftp-master or in the non-US -archive. +installed on security.debian.org as well as proposed for the proper +distribution-proposed-updates on ftp-master. Moving, removing, renaming, adopting, and orphaning @@ -2488,7 +2540,7 @@ archive.

Some archive manipulation operations are not automated in the Debian upload process. These procedures should be manually followed by -maintainers. This chapter gives guidelines in what to do in these +maintainers. This chapter gives guidelines on what to do in these cases. Moving packages @@ -2504,9 +2556,13 @@ 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). 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. +name="Debian Policy Manual"> for details). +You must ensure that you include the .orig.tar.gz in your upload +(even if you are not uploading a new upstream version), +or it will not appear in the new section together with the rest of the +package. 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 @@ -2529,7 +2585,18 @@ 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 +There is one exception when an explicit removal request is not necessary: +If a (source or binary) package is an orphan, it will be removed +semi-automatically. +For a binary-package, this means if there is no longer any source package +producing this binary package; +if the binary package is just no longer produced on some architectures, +a removal request is still necessary. +For a source-package, this means that all binary packages it refers to +have been taken over by another source package. +

+In your removal request, you have to detail the reasons justifying the +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. @@ -2538,19 +2605,28 @@ Usually you only ask for the removal of a package maintained by yourself. If you want to remove another package, you have to get the approval of its maintainer.

+Further information relating to these and other package removal related +topics may be found at and . +

If in doubt concerning whether a package is disposable, email &email-debian-devel; asking for opinions. Also of interest is the apt-cache program from the apt package. When invoked as apt-cache showpkg package, the program will show details for package, including reverse depends. +Other useful programs include +apt-cache rdepends, +apt-rdepends and +grep-dctrl. Removal of orphaned packages is discussed on &email-debian-qa;.

Once the package has been removed, the package's bugs should be handled. They should either be reassigned to another package in the case where the actual code has evolved into another package (e.g. libfoo12 was removed because libfoo13 supersedes it) or closed if the -software is simply no more part of Debian. +software is simply no longer part of Debian. Removing packages from Incoming

@@ -2588,8 +2664,8 @@ mirror network. 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. +If you can no longer maintain a package, you need to inform others, +and see that the package is marked as orphaned. You should set the package maintainer to Debian QA Group &orphan-address; and submit a bug report against the pseudo package wnpp. The bug report should be @@ -2604,15 +2680,15 @@ won't indicate the bug number).

If you just intend to give the package away, but you can keep maintainership for the moment, then you should instead submit -a bug against wnpp and title it RFA: package -- -short description. +a bug against wnpp and title it RFA: +package -- short description. RFA stands for Request For Adoption.

More information is on the . Adopting a package

-A list of packages in need of a new maintainer is available at in the +A list of packages in need of a new maintainer is available in the . If you wish to take over maintenance of any of the packages listed in the WNPP, please take a look at the aforementioned @@ -2759,7 +2835,8 @@ package, using the `binary-arch' target in debian/rules. If you are working on a Debian machine for your porting efforts and you need to sign your upload locally for its acceptance in the archive, you can run debsign on your .changes file to have -it signed conveniently, or use the remote signing mode of dpkg-sig. +it signed conveniently, or use the remote signing mode of +dpkg-sig. @@ -2859,7 +2936,7 @@ blessing or status, so buyer beware. Porting infrastructure and automation

-There is infrastructure and several tools to help automate the package +There is infrastructure and several tools to help automate package porting. This section contains a brief overview of this automation and porting to these tools; see the package documentation or references for full information.

@@ -2898,10 +2975,9 @@ cannot yet be auto-built) and work on it. most porting efforts are either using it currently or planning to use it in the near future. The actual automated builder is packaged as sbuild, see its description in . -The complete buildd system also collects a number of as yet unpackaged -components which are currently very useful and in use continually, -such as andrea and -wanna-build. +The complete buildd system also collects a number of as +yet unpackaged components which are currently very useful and in use +continually, such as andrea and wanna-build.

Some of the data produced by buildd which is generally useful to porters is available on the web at andrea (source dependencies) and We are quite proud of this system, since it has so many possible uses. Independent development groups can use the system for different sub-flavors of Debian, which may or may not really be of -general interest (for instance, a flavor of Debian built with gcc -bounds checking). It will also enable Debian to recompile entire -distributions quickly. +general interest (for instance, a flavor of Debian built with +gcc bounds checking). It will also enable Debian to +recompile entire distributions quickly.

-The buildds admins of each arch can be contacted by the mail address +The buildds admins of each arch can be contacted at the mail address $arch@buildd.debian.org. When your package is not portable @@ -2962,8 +3038,8 @@ Packages-arch-specific without making it fail to build on unsupported architectures: A porter or any other person trying to build your package might accidently upload it without noticing it doesn't work. -If in the past some binary packages were uploaded on unsupported architectures, -request their removal by filing a bug against +If in the past some binary packages were uploaded on unsupported +architectures, request their removal by filing a bug against ftp.debian.org @@ -2981,7 +3057,7 @@ that too is strictly speaking a binary NMU. See for some more information.

The main reason why NMUs are done is when a -developer needs to fix another developer's packages in order to +developer needs to fix another developer's package in order to address serious problems or crippling bugs or when the package maintainer is unable to release a fix in a timely fashion. @@ -3007,7 +3083,7 @@ NMUs which fix important, serious or higher severity bugs are encouraged and accepted. You should endeavor to reach the current maintainer of the package; they might be just about to upload a fix for the problem, or have a better -solution present. +solution.

NMUs should be made to assist a package's maintainer in resolving bugs. Maintainers should be thankful for that help, and NMUers should respect @@ -3096,7 +3172,9 @@ work. It also has the benefit of making it visually clear that a package in the archive was not made by the official maintainer.

If there is no debian-revision component in the version -number then one should be created, starting at `0.1'. If it is +number then one should be created, starting at `0.1' (but in case +of a debian native package still upload it as native package). +If it is absolutely necessary for someone other than the usual maintainer to make a release based on a new upstream version then the person making the release should start with the debian-revision value @@ -3111,11 +3189,11 @@ If you upload a package to testing or stable, sometimes, you need to Source NMUs must have a new changelog entry

-A non-maintainer doing a source NMU must create a changelog entry, +Anyone who is 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. +email address of the person who uploaded it in the log entry +and the NMU version number in it.

By convention, source NMU changelog entries start with the line @@ -3137,24 +3215,14 @@ 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, -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 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. +Bugs fixed by source NMUs used to be tagged fixed instead of closed, +but since version tracking is in place, such bugs are now also +closed with the NMU version.

Also, after doing an NMU, you have to send -that information to the existing bugs that are fixed by your NMU, +the information to the existing bugs that are fixed by your NMU, including the unified diff. -Alternatively you can open a new bug and include a +Historically, it was custom to open a new bug and include a patch showing all the changes you have made. The normal maintainer will either apply the patch or employ an alternate method of fixing the problem. Sometimes bugs are fixed independently @@ -3174,7 +3242,7 @@ please reopen the relevant bug reports.

Source NMU packages are built normally. Pick a distribution using the same rules as found in , follow the other -prescriptions in . +instructions in .

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 @@ -3196,7 +3264,7 @@ entry of your next upload.

In any case, you should not be upset by the NMU. An NMU is not a personal attack against the maintainer. It is a proof that -someone cares enough about the package and that they were willing to help +someone cares enough about the package that they were willing to help you in your work, so you should be thankful. You may also want to ask them if they would be interested in helping you on a more frequent basis as co-maintainer or backup maintainer @@ -3209,31 +3277,18 @@ package to see if it has been orphaned. The current list of orphaned packages which haven't had their maintainer set correctly is available at . If you perform an NMU on an improperly orphaned package, please set the maintainer to ``Debian QA Group -<packages@qa.debian.org>''. Also, the bugs are closed in that case, -and not only marked fixed. +<packages@qa.debian.org>''. 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 +Only official, registered Debian Developers can do binary or source +NMUs. A Debian Developer is someone who has their key in the Debian key ring. Non-developers, however, are encouraged to download the source package and start hacking on it to fix problems; however, rather than doing an NMU, they should just submit worthwhile patches to the Bug Tracking System. Maintainers almost always appreciate quality patches and bug reports. - How dak detects NMUs -

-Whether an upload is treated as an NMU or as a maintainer upload by -the archive scripts and the bugtracking system (see ) is not decided by looking at the version -number (see ). Instead, an upload is handled as -an NMU if the maintainer address in the .changes file is not -binary the same as the address in the Maintainer field, or -any of the addresses the Uploaders field, of the dsc -file, and also if the maintainer address is not special (i.e. it is -not set to the QA Group address). - Terminology

There are two new terms used throughout this section: ``binary-only NMU'' @@ -3260,7 +3315,7 @@ compile for their target architecture; that would be considered a source NMU rather than a binary-only NMU. As you can see, we don't distinguish in terminology between porter NMUs and non-porter NMUs.

-Both classes of NMUs, source and binary-only, can be lumped by the +Both classes of NMUs, source and binary-only, can be lumped under the term ``NMU''. However, this often leads to confusion, since most people think ``source NMU'' when they think ``NMU''. So it's best to be careful: always use ``binary NMU'' or ``binNMU'' for binary-only @@ -3273,7 +3328,7 @@ NMUs. "Collaborative maintenance" is a term describing the sharing of Debian package maintenance duties by several people. This collaboration is almost always a good idea, since it generally results in higher quality and -faster bug fix turnaround time. It is strongly recommended that +faster bug fix turnaround times. It is strongly recommended that packages with a priority of Standard or which are part of the base set have co-maintainers.

@@ -3290,7 +3345,8 @@ quite easy: Setup the co-maintainer with access to the sources you build the package from. Generally this implies you are using a network-capable version control system, such as CVS or -Subversion.

+Subversion. Alioth (see ) provides such +tools, amongst others.

@@ -3308,9 +3364,32 @@ Using the PTS (), the co-maintainers should subscribe themselves to the appropriate source package.

-

-Collaborative maintenance can often be further eased with the use of -tools on Alioth (see ). +

+Another form of collaborative maintenance is team maintenance, which is +recommended if you maintain several packages with the same group of +developers. In that case, the Maintainer and Uploaders field of each +package must be managed with care. It is recommended to choose between +one of the two following schemes: + + +

+Put the team member mainly responsible for the package in the Maintainer +field. In the Uploaders, put the mailing list address, and the team members +who care for the package. + + +

+Put the mailing list address in the Maintainer field. In the Uploaders +field, put the team members who care for the package. +In this case, you must make sure the mailing list accept bug reports +without any human interaction (like moderation for non-subscribers). + + +

+In any case, it is a bad idea to automatically put all team members in +the Uploaders field. It clutters the Developer's Package Overview listing +(see ) with packages one doesn't really care for, and +creates a false sense of good maintenance. @@ -3350,8 +3429,8 @@ urgency uploaded since the previous testing transition is taken into account. Those delays may be doubled during a freeze, or testing transitions may be switched off altogether; -It must have the same number or fewer release-critical bugs than the version currently available -in testing; +It must have the same number or fewer release-critical bugs than the +version currently available in testing; It must be available on all architectures on which it has previously been built in unstable. may be of interest to @@ -3361,8 +3440,8 @@ It must not break any dependency of a package which is already available in testing; The packages on which it depends must either be available in testing -or they must be accepted into testing at the same time (and they will -if they fulfill all the necessary criteria); +or they must be accepted into testing at the same time (and they +will be if they fulfill all the necessary criteria);

To find out whether a package is progressing into testing or not, see the @@ -3390,7 +3469,8 @@ are not considered by britney. out-of-date

- + For the testing migration script, "outdated" means: There are different versions in unstable for the release architectures (except for the architectures in fuckedarches; fuckedarches is a list of architectures @@ -3433,17 +3513,24 @@ if you maintain glibc or so.)

Sometimes, a package is removed to allow another package in: This happens only to allow another package to go in if it's ready in every other -sense. Suppose e.g. that a conflicts with the new version of -b; then a may be removed to allow b in. +sense. Suppose e.g. that a cannot be installed with the new +version of b; then a may be removed to allow b +in.

Of course, there is another reason to remove a package from testing: It's just too buggy (and having a single RC-bug is enough to be in this state). +

+Furthermore, if a package has been removed from unstable, +and no package in testing depends on it any more, +then it will automatically be removed. + circular dependencies

-A situation which is not handled very well by britney is if package a -depends on the new version of package b, and vice versa. +A situation which is not handled very well by britney is if package +a depends on the new version of package b, and vice +versa.

An example of this is:

@@ -3486,8 +3573,9 @@ If you are interested in details, this is how britney works: The packages are looked at to determine whether they are valid candidates. This gives the "update excuses". The most common reasons why a package is not considered are too young, RC-bugginess, and out of -date on some arches. For this part, the release managers have hammers -of any size to force britney to consider a package. (Also, the base +date on some arches. For this part of britney, +the release managers have hammers +of various sizes to force britney to consider a package. (Also, the base freeze is coded in that part of britney.) (There is a similar thing for binary-only updates, but this is not described here. If you're interested in that, please peruse the code.) @@ -3512,25 +3600,24 @@ id="http://ftp-master.debian.org/testing/hints/">. Direct updates to testing

-The testing distribution is fed with packages from unstable according to the rules -explained above. However, in some cases, it is necessary to upload -packages built only for testing. For that, you may want to -upload to testing-proposed-updates. +The testing distribution is fed with packages from unstable according to +the rules explained above. However, in some cases, it is necessary to +upload packages built only for testing. For that, you may want to upload +to testing-proposed-updates.

-Keep in mind that packages uploaded there are not automatically processed, they -have to go through the hands of the release manager. So you'd better have a good -reason to upload there. In order to know what a good reason is in the -release managers' eyes, you should read the instructions that they regularly -give on &email-debian-devel-announce;. +Keep in mind that packages uploaded there are not automatically processed, +they have to go through the hands of the release manager. So you'd better +have a good reason to upload there. In order to know what a good reason is +in the release managers' eyes, you should read the instructions that they +regularly give on &email-debian-devel-announce;.

-You should not upload to testing-proposed-updates when you can update your -packages through unstable. If you can't (for example because you have a -newer development version in unstable), you may use this facility, -but it is recommended that you ask for authorization from -the release manager first. -Even if a package is -frozen, updates through unstable are possible, if the upload via unstable -does not pull in any new dependencies. +You should not upload to testing-proposed-updates when you can +update your packages through unstable. If you can't (for example +because you have a newer development version in unstable), you may use +this facility, but it is recommended that you ask for authorization from +the release manager first. Even if a package is frozen, updates through +unstable are possible, if the upload via unstable does not pull in any new +dependencies.

Version numbers are usually selected by adding the codename of the testing distribution and a running number, like 1.2sarge1 for the first upload @@ -3562,32 +3649,55 @@ release team at &email-debian-release; and ask them to approve your upload. What are release-critical bugs, and how do they get counted?

-All bugs of some higher severities are by default considered release-critical; currently, these are critical, grave, and serious bugs. +All bugs of some higher severities are by default considered +release-critical; currently, these are critical, grave, and serious bugs.

-Such bugs are presumed to have an impact on the chances that the package will be released with the stable release of Debian: in general, if a package has open release-critical bugs filed on it, it won't get into "testing", and consequently won't be released in "stable". +Such bugs are presumed to have an impact on the chances that the package +will be released with the stable release of Debian: in general, if a +package has open release-critical bugs filed on it, it won't get into +"testing", and consequently won't be released in "stable".

-The unstable bug count are all release-critical bugs -without either any release-tag (such as potato, woody) or with release-tag sid; +The unstable bug count are all release-critical bugs without either any +release-tag (such as potato, woody) or with release-tag sid; also, only if they are neither fixed nor set to sarge-ignore. The "testing" bug count for a package is considered to be roughly the bug count of unstable count at the last point when the "testing" version equalled the "unstable" version.

-This will change post-sarge, as soon as we have versions in the bug tracking system. +This will change post-sarge, as soon as we have versions in the bug +tracking system. - How could installing a package into "testing" possibly break other packages? + How could installing a package into "testing" possibly + break other packages?

-The structure of the distribution archives is such that they can only contain one version of a package; a package is defined by its name. So when the source package acmefoo is installed into "testing", along with its binary packages acme-foo-bin, acme-bar-bin, libacme-foo1 and libacme-foo-dev, the old version is removed. +The structure of the distribution archives is such that they can only +contain one version of a package; a package is defined by its name. So +when the source package acmefoo is installed into "testing", along with +its binary packages acme-foo-bin, acme-bar-bin, libacme-foo1 and +libacme-foo-dev, the old version is removed.

-However, the old version may have provided a binary package with an old soname of a library, such as libacme-foo0. Removing the old acmefoo will remove libacme-foo0, which will break any packages which depend on it. +However, the old version may have provided a binary package with an old +soname of a library, such as libacme-foo0. Removing the old acmefoo will +remove libacme-foo0, which will break any packages which depend on it.

-Evidently, this mainly affects packages which provide changing sets of binary packages in different versions (in turn, mainly libraries). However, it will also affect packages upon which versioned dependencies have been declared of the ==, <=, or << varieties. +Evidently, this mainly affects packages which provide changing sets of +binary packages in different versions (in turn, mainly libraries). +However, it will also affect packages upon which versioned dependencies +have been declared of the ==, <=, or << varieties.

-When the set of binary packages provided by a source package change in this way, all the packages that depended on the old binaries will have to be updated to depend on the new binaries instead. Because installing such a source package into "testing" breaks all the packages that depended on it in "testing", some care has to be taken now: all the depending packages must be updated and ready to be installed themselves so that they won't be broken, and, once everything is ready, manual intervention by the release manager or an assistant is normally required. +When the set of binary packages provided by a source package change in +this way, all the packages that depended on the old binaries will have to +be updated to depend on the new binaries instead. Because installing such +a source package into "testing" breaks all the packages that depended on +it in "testing", some care has to be taken now: all the depending packages +must be updated and ready to be installed themselves so that they won't be +broken, and, once everything is ready, manual intervention by the release +manager or an assistant is normally required.

-If you are having problems with complicated groups of packages like this, contact debian-devel or debian-release for help. +If you are having problems with complicated groups of packages like this, +contact debian-devel or debian-release for help. @@ -3621,13 +3731,12 @@ The rationale for using helper scripts in debian/rules is that they let maintainers use and share common logic among many packages. Take for instance the question of installing menu entries: you need to put the file into /usr/lib/menu (or -/usr/lib/menu for executable binary menufiles, if this is needed), -and add commands to the -maintainer scripts to register and unregister the menu entries. Since -this is a very common thing for packages to do, why should each -maintainer rewrite all this on their own, sometimes with bugs? Also, -supposing the menu directory changed, every package would have to be -changed. +/usr/lib/menu for executable binary menufiles, if this is +needed), and add commands to the maintainer scripts to register and +unregister the menu entries. Since this is a very common thing for +packages to do, why should each maintainer rewrite all this on their own, +sometimes with bugs? Also, supposing the menu directory changed, every +package would have to be changed.

Helper scripts take care of these issues. Assuming you comply with the conventions expected by the helper script, the helper takes care @@ -3701,7 +3810,7 @@ documentation and examples (in /usr/share/doc/dpatch). A single source package will often build several binary packages, either to provide several flavors of the same software (e.g., the vim source package) or to make several small -packages instead of a big one (e.g., if the user can install only the +packages instead of a big one (e.g., so the user can install only the subset needed, and thus save some disk space).

The second case can be easily managed in debian/rules. @@ -3714,8 +3823,8 @@ inter-package dependencies set right in debian/control.

The first case is a bit more difficult since it involves multiple recompiles of the same software but with different configuration -options. The vim source package is an example of how to manage -this using an hand-crafted debian/rules file. +options. The vim source package is an example of how to +manage this using an hand-crafted debian/rules file. @@ -3898,6 +4007,59 @@ until that is available. /^ Homepage: [^ ]*$/, as this allows packages.debian.org to parse it correctly.

+ + + Version Control System location +

+There are additional fields for the location of the Version Control System +in debian/control. + XS-Vcs-Browser +

+Value of this field should be a http:// URL pointing to a +web-browsable copy of the Version Control System repository used to +maintain the given package, if available. +

+The information is meant to be useful for the final user, willing to +browse the latest work done on the package (e.g. when looking for the +patch fixing a bug tagged as pending in the bug tracking +system). + XS-Vcs-* +

+Value of this field should be a string identifying unequivocally the +location of the Version Control System repository used to maintain the +given package, if available. * identify the Version Control +System; currently the following systems are supported by the package +tracking system: arch, bzr (Bazaar), cvs, +darcs, git, hg (Mercurial), mtn +(Monotone), svn (Subversion). It is allowed to specify different +VCS fields for the same package: they will all be shown in the PTS web +interface. +

+The information is meant to be useful for a user knowledgeable in the +given Version Control System and willing to build the current version of +a package from the VCS sources. Other uses of this information might +include automatic building of the latest VCS version of the given +package. To this end the location pointed to by the field should better +be version agnostic and point to the main branch (for VCSs supporting +such a concept). Also, the location pointed to should be accessible to +the final user; fulfilling this requirement might imply pointing to an +anonymous access of the repository instead of pointing to an +SSH-accessible version of the same. +

+In the following example, an instance of the field for a Subversion +repository of the vim package is shown. Note how the +URL is in the svn:// scheme (instead of svn+ssh://) and +how it points to the trunk/ branch. The use of the +XS-Vcs-Browser field described above is also shown. + + Source: vim + Section: editors + Priority: optional + <snip> + XS-Vcs-Svn: svn://svn.debian.org/svn/pkg-vim/trunk/packages/vim + XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim + + @@ -3968,14 +4130,15 @@ tracking system.

It is an old tradition to acknowledge bugs fixed in non-maintainer uploads in the first changelog entry of the proper maintainer upload. -Please use the option -v to dpkg-buildpackage -to close the relevant bug report. +As we have version tracking now, +it is enough to keep the NMUed changelog entries and +just mention this fact in your own changelog entry. Common errors in changelog entries

-The following examples demonstrate some common errors or example of +The following examples demonstrate some common errors or examples of bad style in changelog entries.

@@ -4200,14 +4363,14 @@ Debconf templates may be translated. Debconf, along with its sister package po-debconf offers a simple framework for getting templates translated by translation teams or even individuals.

-Please use gettext-based templates. Install po-debconf on your -development system and read its documentation ("man po-debconf" is a -good start). +Please use gettext-based templates. Install po-debconf +on your development system and read its documentation ("man po-debconf" is +a good start).

Avoid changing templates too often. Changing templates text induces more work to translators which will get their translation "fuzzied". If you plan changes to your original templates, please contact -translators. Most active translators are very reactive and getting +translators. Most active translators are very responsive and getting their work included along with your modified templates will save you additional uploads. If you use gettext-based templates, the translator's name and e-mail addresses are mentioned in the po files @@ -4241,7 +4404,8 @@ To unfuzzy translations, you can proceed the following way: Put all incomplete PO files out of the way. You can check the -completeness by using (needs the gettext package installed): +completeness by using (needs the gettext package +installed): for i in debian/po/*po; do echo -n $i: ; msgfmt -o /dev/null --statistics $i; done @@ -4285,15 +4449,18 @@ Just give facts. You should avoid the use of first person ("I will do this..." or "We recommend..."). The computer is not a person and the Debconf templates do not speak for the Debian developers. You should use neutral -construction and often the passive form. Those of you who already +construction. Those of you who already wrote scientific publications, just write your templates like you would write a scientific paper. +However, try using action voice if still possible, like +"Enable this if ..." +instead of +"This can be enabled if ...". Be gender neutral

The world is made of men and women. Please use gender-neutral -constructions in your writing. This is not Political Correctness, this -is showing respect to all humanity. +constructions in your writing. Templates fields definition @@ -4317,7 +4484,7 @@ soon as is possible. boolean:

-A true/false choice. Remember: true/false, NOT YES/NO... +A true/false choice. Remember: true/false, not yes/no... select:

@@ -4346,17 +4513,13 @@ This type is now considered obsolete: don't use it. error:

-THIS TEMPLATE TYPE IS NOT HANDLED BY DEBCONF YET. -

-It has been added to cdebconf, the C version of debconf, first used in -the Debian Installer. -

-Please do not use it unless debconf supports it. -

-This type is designed to handle error message. It is mostly similar to +This type is designed to handle error messages. It is mostly similar to the "note" type. Frontends may present it differently (for instance, the dialog frontend of cdebconf draws a red screen instead of the usual blue one). +

+It is recommended to use this type for any message that needs user +attention for a correction of any kind. Description: short and extended description @@ -4388,9 +4551,12 @@ The extended description should use complete sentences. Paragraphs should be kept short for improved readability. Do not mix two ideas in the same paragraph but rather use another paragraph.

-Don't be too verbose. Some debconf interfaces cannot deal very well -with descriptions of more than about 20 lines, so try to keep it below -this limit. +Don't be too verbose. User tend to ignore too long screens. +20 lines are by experience a border you shouldn't cross, +because that means that in the classical dialog interface, +people will need to scroll, and lot of people just don't do that. +

+The extended description should never include a question.

For specific rules depending on templates type (string, boolean, etc.), please read below. @@ -4424,10 +4590,9 @@ Below are specific instructions for properly writing the Description String/password templates

- The short description is a prompt and NOT a title. Avoid - question style prompts ("IP Address?") in favour of - "opened" prompts ("IP address:"). - The use of colons is recommended. + The short description is a prompt and not a title. + Avoid question style prompts ("IP Address?") in favour of "opened" + prompts ("IP address:"). The use of colons is recommended. The extended description is a complement to the short description. In the extended part, explain what is being asked, rather than ask @@ -4444,8 +4609,6 @@ Below are specific instructions for properly writing the Description question is rather long (remember that translations are often longer than original versions) - The extended description should NOT include a question. - Again, please avoid referring to specific interface widgets. A common mistake for such templates is "if you answer Yes"-type constructions. @@ -4454,7 +4617,8 @@ Below are specific instructions for properly writing the Description Select/Multiselect

- The short description is a prompt and NOT a title. Do NOT use useless + The short description is a prompt and not a title. + Do not use useless "Please choose..." constructions. Users are clever enough to figure out they have to choose something...:) @@ -4473,13 +4637,14 @@ Below are specific instructions for properly writing the Description The extended description is what will be displayed as a more detailed explanation of the note. Phrases, no terse writing style. - DO NOT ABUSE DEBCONF. Notes are the most common way to abuse + Do not abuse debconf. + Notes are the most common way to abuse debconf. As written in debconf-devel manual page: it's best to use them only for warning about very serious problems. The NEWS.Debian or README.Debian files are the appropriate location for a lot of notes. If, by reading this, you consider converting your Note type templates - to entries in NEWS/Debian or README.Debian, plus consider keeping existing - translations for the future. + to entries in NEWS/Debian or README.Debian, plus consider keeping + existing translations for the future. @@ -4526,12 +4691,13 @@ confusing: the translators may put their own choice Do NOT use empty default field. If you don't want to use default values, do not use Default at all.

-If you use po-debconf (and you SHOULD, see 2.2), consider making this -field translatable, if you think it may be translated. +If you use po-debconf (and you should, see 2.2), consider +making this field translatable, if you think it may be translated.

If the default value may vary depending on language/country (for instance the default value for a language choice), consider using the -special "_DefaultChoice" type documented in ). +special "_DefaultChoice" type documented in ). @@ -4644,9 +4810,9 @@ should retrieve the source package.

Policy specifies that documentation should be shipped in HTML format. We also recommend shipping documentation in PDF and plain text format if -convenient and if output of reasonable quality is possible. However, it is generally -not appropriate to ship plain text versions of documentation whose source -format is HTML.

+convenient and if output of reasonable quality is possible. However, it +is generally not appropriate to ship plain text versions of documentation +whose source format is HTML.

Major shipped manuals should register themselves with doc-base on installation. See the @@ -4751,16 +4917,16 @@ LOCPATH=$LOCALE_PATH LC_ALL=$LOCALE_NAME.$LOCALE_CHARSET date Make transition packages deborphan compliant

-Deborphan is a program for helping users to detect which packages can safely be -removed from the system, i.e. the ones that have no packages depending on -them. The default operation is to search only within the libs and oldlibs -sections, to hunt down unused libraries. But when passed the right argument, -it tries to catch other useless packages. +Deborphan is a program for helping users to detect which packages can +safely be removed from the system, i.e. the ones that have no packages +depending on them. The default operation is to search only within the libs +and oldlibs sections, to hunt down unused libraries. But when passed the +right argument, it tries to catch other useless packages.

-For example, with --guess-dummy, deborphan tries to search all transitional packages -which were needed for upgrade but which can now safely be removed. For that, -it looks for the string "dummy" or "transitional" in their short -description. +For example, with --guess-dummy, deborphan tries to search all +transitional packages which were needed for upgrade but which can now +safely be removed. For that, it looks for the string "dummy" or +"transitional" in their short description.

So, when you are creating such a package, please make sure to add this text to your short description. If you are looking for examples, just run: @@ -4814,7 +4980,8 @@ the following: It unpacks the tarball in an empty temporary directory by doing -zcat path/to/<packagename>_<upstream-version>.orig.tar.gz | tar xf - + +zcat path/to/<packagename>_<upstream-version>.orig.tar.gz | tar xf - + If, after this, the temporary directory contains nothing but one @@ -4870,11 +5037,9 @@ A repackaged .orig.tar.gz

must contain detailed information how -the repackaged source was obtained, and how this can be reproduced, in -README.Debian-source or a similar file. This file should -be in the diff.gz part of the Debian source package, -usually in the debian directory, not in the -repackaged orig.tar.gz. It is also a good idea to provide a +the repackaged source was obtained, and how this can be reproduced +in the debian/copyright. +It is also a good idea to provide a get-orig-source target in your debian/rules file that repeats the process, as described in the Policy Manual, $(file).uuencoded + +uudecode-file: + perl -ne 'print(unpack "u", $$_);' $(file).uuencoded > $(file) + . The file would then be decoded and copied to its place during the build process. Thus the change will be visible quite easy. @@ -4958,6 +5135,56 @@ build process.

+ + Best practices for debug packages +

+A debug package is a package with a name ending in "-dbg", that contains +additional information that gdb can use. Since Debian binaries are +stripped by default, debugging information, including function names and +line numbers, is otherwise not available when running gdb on Debian binaries. +Debug packages allow users who need this additional debugging information to +install it, without bloating a regular system with the information. +

+It is up to a package's maintainer whether to create a debug package or +not. Maintainers are encouraged to create debug packages for library +packages, since this can aid in debugging many programs linked to a +library. In general, debug packages do not need to be added for all +programs; doing so would bloat the archive. But if a maintainer finds +that users often need a debugging version of a program, it can be +worthwhile to make a debug package for it. Programs that are core +infrastructure, such as apache and the X server are also good candidates +for debug packages. +

+Some debug packages may contain an entire special debugging build of a +library or other binary, but most of them can save space and build time +by instead containing separated debugging symbols that gdb can find and +load on the fly when debugging a program or library. The convention in +Debian is to keep these symbols in /usr/lib/debug/path, +where path is the path to the executable or library. For example, +debugging symbols for /usr/bin/foo go in +/usr/lib/debug/usr/bin/foo, and +debugging symbols for /usr/lib/libfoo.so.1 go in +/usr/lib/debug/usr/lib/libfoo.so.1. +

+The debugging symbols can be extracted from an object file using +"objcopy --only-keep-debug". Then the object file can be stripped, and +"objcopy --add-gnu-debuglink" used to specify the path to the debugging +symbol file. explains in detail how this +works. +

+The dh_strip command in debhelper supports creating debug packages, and +can take care of using objcopy to separate out the debugging symbols for +you. If your package uses debhelper, all you need to do is call +"dh_strip --dbg-package=libfoo-dbg", and add an entry to debian/control +for the debug package. +

+Note that the Debian package should depend on the package that it +provides debugging symbols for, and this dependency should be versioned. +For example: + + +Depends: libfoo-dbg (= ${binary:Version}) + @@ -5023,10 +5250,10 @@ out all the bugs you submitted, you just have to visit Reporting lots of bugs at once (mass bug filing)

Reporting a great number of bugs for the same problem on a great -number of different packages — i.e., more than 10 — is a deprecated -practice. Take all possible steps to avoid submitting bulk bugs at -all. For instance, if checking for the problem can be automated, add -a new check to lintian so that an error or warning +number of different packages — i.e., more than 10 — is a +deprecated practice. Take all possible steps to avoid submitting bulk +bugs at all. For instance, if checking for the problem can be automated, +add a new check to lintian so that an error or warning is emitted.

If you report more than 10 bugs on the same topic at once, it is @@ -5037,6 +5264,12 @@ developers to verify that the bug is a real problem. In addition, it will help prevent a situation in which several maintainers start filing the same bug report simultaneously.

+Please use the programms dd-list and +if appropriate whodepends +(from the package devscripts) +to generate a list of all affected packages, and include the +output in your mail to &email-debian-devel;. +

Note that when sending lots of bugs on the same subject, you should send the bug report to maintonly@&bugs-host; so that the bug report is not forwarded to the bug distribution mailing @@ -5061,11 +5294,12 @@ time, you can look for co-maintainers (see ). Bug squashing parties

From time to time the QA group organizes bug squashing parties to get rid of -as many problems as possible. They are announced on &email-debian-devel-announce; -and the announcement explains which area will be the focus of the party: -usually they focus on release critical bugs but it may happen that they -decide to help finish a major upgrade (like a new perl version -which requires recompilation of all the binary modules). +as many problems as possible. They are announced on +&email-debian-devel-announce; and the announcement explains which area +will be the focus of the party: usually they focus on release critical +bugs but it may happen that they decide to help finish a major upgrade +(like a new perl version which requires recompilation of all the binary +modules).

The rules for non-maintainer uploads differ during the parties because the announcement of the party is considered prior notice for NMU. If @@ -5117,18 +5351,20 @@ haven't registered out of the system, so to speak. On the other hand, it is also possible that they just need a reminder.

There is a simple system (the MIA database) in which information about -maintainers who are deemed Missing In Action are recorded. When a member of the +maintainers who are deemed Missing In Action is recorded. +When a member of the QA group contacts an inactive maintainer or finds more information about one, this is recorded in the MIA database. This system is available in /org/qa.debian.org/mia on the host qa.debian.org, and can be queried with a tool known as mia-query. Use mia-query --help to see how to query the database. If you find that no information has been recorded -about an inactive maintainer already, or that you can add more information, +about an inactive maintainer yet, or that you can add more information, you should generally proceed as follows.

-The first step is to politely contact the maintainer, and wait for a -response for a reasonable time. It is quite hard to define "reasonable +The first step is to politely contact the maintainer, +and wait a reasonable time for a response. +It is quite hard to define "reasonable time", but it is important to take into account that real life is sometimes very hectic. One way to handle this would be to send a reminder after two weeks. @@ -5141,7 +5377,7 @@ about the maintainer in question as possible. This includes: The "echelon" information available through the , - which indicates when the developer last has posted to + which indicates when the developer last posted to a Debian mailing list. (This includes uploads via debian-*-changes lists.) Also, remember to check whether the maintainer is marked as "on vacation" in the database. @@ -5158,35 +5394,36 @@ about the maintainer in question as possible. This includes: non-Debian mailing lists or news groups.

-A bit of a problem are packages which were sponsored — the maintainer is not -an official Debian developer. The echelon information is not available for -sponsored people, for example, so you need to find and contact the Debian -developer who has actually uploaded the package. Given that they signed the -package, they're responsible for the upload anyhow, and are likely to know what -happened to the person they sponsored. +A bit of a problem are packages which were sponsored — the +maintainer is not an official Debian developer. The echelon information is +not available for sponsored people, for example, so you need to find and +contact the Debian developer who has actually uploaded the package. Given +that they signed the package, they're responsible for the upload anyhow, +and are likely to know what happened to the person they sponsored.

It is also allowed to post a query to &email-debian-devel;, asking if anyone is aware of the whereabouts of the missing maintainer. Please Cc: the person in question.

Once you have gathered all of this, you can contact &email-mia;. -People on this alias will use the information you provided in order to +People on this alias will use the information you provide in order to decide how to proceed. For example, they might orphan one or all of the -packages of the maintainer. If a packages has been NMUed, they might prefer -to contact the NMUer before orphaning the package — perhaps the person who -has done the NMU is interested in the package. +packages of the maintainer. If a package has been NMUed, they might prefer +to contact the NMUer before orphaning the package — perhaps the +person who has done the NMU is interested in the package.

One last word: please remember to be polite. We are all volunteers and cannot dedicate all of our time to Debian. Also, you are not aware of the circumstances of the person who is involved. Perhaps they might be -seriously ill or might even had died — you do not know who may be on the -receiving side. Imagine how a relative will feel if they read the e-mail -of the deceased and find a very impolite, angry and accusing message! +seriously ill or might even have died — you do not know who may be +on the receiving side. Imagine how a relative will feel if they read the +e-mail of the deceased and find a very impolite, angry and accusing +message!

On the other hand, although we are volunteers, we do have a responsibility. -So you can stress the importance of the greater good — if a maintainer does -not have the time or interest anymore, they should "let go" and give the -package to someone with more time. +So you can stress the importance of the greater good — if a +maintainer does not have the time or interest anymore, they should "let +go" and give the package to someone with more time.

If you are interested in working in the MIA team, please have a look at the README file in /org/qa.debian.org/mia on qa.debian.org where the technical @@ -5215,10 +5452,10 @@ id="&url-sponsors;">.

--> 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. -(Note that if the sponsored package is new, the ftpmasters will also have to -inspect it before letting it in.) +— 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. (Note that if the sponsored package is new, the ftpmasters will +also have to inspect it before letting it in.)

Sponsoring merely by signing the upload or just recompiling is definitely not recommended. You need to build the source @@ -5249,15 +5486,15 @@ that need to be made. It often takes several rounds of back-and-forth email before the package is in acceptable shape. Being a sponsor means being a mentor.

-Once the package meets Debian standards, build and sign it with -dpkg-buildpackage -kKEY-ID +Once the package meets Debian standards, build and sign it with +dpkg-buildpackage -kKEY-ID before uploading it to the incoming directory. Of course, you can also use any part of your KEY-ID, as long as it's unique in your secret keyring.

The Maintainer field of the control file and the -changelog should list the person who did the packaging, i.e., the -sponsoree. The sponsoree will therefore get all the BTS mail about the +changelog should list the person who did the packaging, i.e., +the sponsoree. The sponsoree will therefore get all the BTS mail about the package.

If you prefer to leave a more evident trace of your sponsorship job, you @@ -5280,31 +5517,33 @@ Application Managers"> at the Debian web site. Internationalizing, translating, being internationalized and being translated

-Debian supports an ever-increasing number of natural languages. Even if you are -a native English speaker and do not speak any other language, it is part of your -duty as a maintainer to be aware of issues of internationalization (abbreviated -i18n because there are 18 letters between the 'i' and the 'n' in -internationalization). Therefore, even if you are ok with English-only -programs, you should read most of this chapter. +Debian supports an ever-increasing number of natural languages. Even if +you are a native English speaker and do not speak any other language, it +is part of your duty as a maintainer to be aware of issues of +internationalization (abbreviated i18n because there are 18 letters +between the 'i' and the 'n' in internationalization). Therefore, even if +you are ok with English-only programs, you should read most of this +chapter.

According to from Tomohiro KUBOTA, "I18N (internationalization) -means modification of a software or related technologies so that a software can -potentially handle multiple languages, customs, and so on in the world." while -"L10N (localization) means implementation of a specific language for an already -internationalized software." +name="Introduction to i18n"> from Tomohiro KUBOTA, "I18N +(internationalization) means modification of a software or related +technologies so that a software can potentially handle multiple languages, +customs, and so on in the world." while "L10N (localization) means +implementation of a specific language for an already internationalized +software."

-l10n and i18n are interconnected, but the difficulties related to each of them are very -different. It's not really difficult to allow a program to change the language -in which texts are displayed based on user settings, but it is very time -consuming to actually translate these messages. On the other hand, setting the -character encoding is trivial, but adapting the code to use several character -encodings is a really hard problem. +l10n and i18n are interconnected, but the difficulties related to each of +them are very different. It's not really difficult to allow a program to +change the language in which texts are displayed based on user settings, +but it is very time consuming to actually translate these messages. On the +other hand, setting the character encoding is trivial, but adapting the +code to use several character encodings is a really hard problem.

-Setting aside the i18n problems, where no general guideline can be given, there is -actually no central infrastructure for l10n within Debian which could be -compared to the dbuild mechanism for porting. So most of the work has to be -done manually. +Setting aside the i18n problems, where no general guideline can be given, +there is actually no central infrastructure for l10n within Debian which +could be compared to the dbuild mechanism for porting. So most of the work +has to be done manually. How translations are handled within Debian @@ -5313,42 +5552,44 @@ Handling translation of the texts contained in a package is still a manual task, and the process depends on the kind of text you want to see translated.

For program messages, the gettext infrastructure is used most of the time. -Most of the time, the translation is handled upstream within projects like the -, the or the . +Most of the time, the translation is handled upstream within projects like +the , the or the . The only centralized resource within Debian is the , where you can find some statistics about the translation files -found in the actual packages, but no real infrastructure to ease the translation -process. +statistics">, where you can find some statistics about the translation +files found in the actual packages, but no real infrastructure to ease the +translation process.

-An effort to translate the package descriptions started long ago, even if very -little support is offered by the tools to actually use them (i.e., only APT can use -them, when configured correctly). Maintainers don't need to do -anything special to support translated package descriptions; +An effort to translate the package descriptions started long ago, even if +very little support is offered by the tools to actually use them (i.e., +only APT can use them, when configured correctly). Maintainers don't need +to do anything special to support translated package descriptions; translators should use the .

-For debconf templates, maintainers should use the po-debconf package to ease the -work of translators, who could use the DDTP to do their work (but the French and -Brazilian teams don't). Some statistics can be found both on the DDTP site -(about what is actually translated), and on the site (about what is integrated in the packages).

-For web pages, each l10n team has access to the relevant CVS, and the statistics -are available from the Central Debian translation statistics site. +For web pages, each l10n team has access to the relevant CVS, and the +statistics are available from the Central Debian translation statistics +site.

-For general documentation about Debian, the process is more or less the same -than for the web pages (the translators have access to the CVS), but there are -no statistics pages. +For general documentation about Debian, the process is more or less the +same as for the web pages (the translators have access to the CVS), but +there are no statistics pages.

-For package-specific documentation (man pages, info documents, other formats), -almost everything remains to be done. +For package-specific documentation (man pages, info documents, other +formats), almost everything remains to be done.

-Most notably, the KDE project handles -translation of its documentation in the same way as its program messages. +Most notably, the KDE project handles translation of its documentation in +the same way as its program messages.

There is an effort to handle Debian-specific man pages within a . I18N & L10N FAQ for maintainers

-This is a list of problems that maintainers may face concerning i18n and l10n. -While reading this, keep in mind that there is no real consensus on these -points within Debian, and that this is only advice. If you have a better idea -for a given problem, or if you disagree on some points, feel free to provide -your feedback, so that this document can be enhanced. +This is a list of problems that maintainers may face concerning i18n and +l10n. While reading this, keep in mind that there is no real consensus on +these points within Debian, and that this is only advice. If you have a +better idea for a given problem, or if you disagree on some points, feel +free to provide your feedback, so that this document can be enhanced. How to get a given text translated

-To translate package descriptions or debconf templates, you have nothing to do; -the DDTP infrastructure will dispatch the material to translate to volunteers -with no need for interaction from your part. +To translate package descriptions or debconf templates, you have nothing +to do; the DDTP infrastructure will dispatch the material to translate to +volunteers with no need for interaction from your part.

-For all other material (gettext files, man pages, or other documentation), the -best solution is to put your text somewhere on the Internet, and ask on debian-i18n -for a translation in different languages. Some translation team members are -subscribed to this list, and they will take care of the translation and of the -reviewing process. Once they are done, you will get your translated document from them -in your mailbox. +For all other material (gettext files, man pages, or other documentation), +the best solution is to put your text somewhere on the Internet, and ask +on debian-i18n for a translation in different languages. Some translation +team members are subscribed to this list, and they will take care of the +translation and of the reviewing process. Once they are done, you will get +your translated document from them in your mailbox. How to get a given translation reviewed

From time to time, individuals translate some texts in your package -and will ask you for inclusion of the translation in the package. This can become problematic if -you are not fluent in the given language. It is a good idea to send the -document to the corresponding l10n mailing list, asking for a review. Once it -has been done, you should feel more confident in the quality of the -translation, and feel safe to include it in your package. +and will ask you for inclusion of the translation in the package. This can +become problematic if you are not fluent in the given language. It is a +good idea to send the document to the corresponding l10n mailing list, +asking for a review. Once it has been done, you should feel more confident +in the quality of the translation, and feel safe to include it in your +package. How to get a given translation updated

@@ -5394,10 +5636,11 @@ the translation with your new changes. Keep in mind that this task takes time; at least one week to get the update reviewed and all.

-If the translator is unresponsive, you may ask for help on the corresponding -l10n mailing list. If everything fails, don't forget to put a warning in the -translated document, stating that the translation is somehow outdated, and that -the reader should refer to the original document if possible. +If the translator is unresponsive, you may ask for help on the +corresponding l10n mailing list. If everything fails, don't forget to put +a warning in the translated document, stating that the translation is +somehow outdated, and that the reader should refer to the original +document if possible.

Avoid removing a translation completely because it is outdated. Old documentation is often better than no documentation at all for non-English @@ -5418,10 +5661,10 @@ collaborate with your team and the package maintainer. How to help the translation effort

-Choose what you want to translate, make sure that nobody is already working on -it (using your debian-l10n-XXX mailing list), translate it, get it reviewed by -other native speakers on your l10n mailing list, and provide it to the -maintainer of the package (see next point). +Choose what you want to translate, make sure that nobody is already +working on it (using your debian-l10n-XXX mailing list), translate it, get +it reviewed by other native speakers on your l10n mailing list, and +provide it to the maintainer of the package (see next point). How to provide a translation for inclusion in a package

@@ -5430,32 +5673,33 @@ list) before providing it for inclusion. It will save time for everyone, and avoid the chaos resulting in having several versions of the same document in bug reports.

-The best solution is to file a regular bug containing the translation against -the package. Make sure to use the 'PATCH' tag, and to not use a severity higher -than 'wishlist', since the lack of translation never prevented a program from -running. +The best solution is to file a regular bug containing the translation +against the package. Make sure to use the 'PATCH' tag, and to not use a +severity higher than 'wishlist', since the lack of translation never +prevented a program from running. Best current practice concerning l10n

As a maintainer, never edit the translations in any way (even to reformat the -layout) without asking to the corresponding l10n mailing list. You risk for -example to break the encoding of the file by doing so. Moreover, what you -consider as an error can be right (or even needed) in the given language. +layout) without asking on the corresponding l10n mailing list. You risk for +example breaksing the encoding of the file by doing so. Moreover, what you +consider an error can be right (or even needed) in the given language. -As a translator, if you find an error in the original text, make sure to report -it. Translators are often the most attentive readers of a given text, and if -they don't report the errors they find, nobody will. +As a translator, if you find an error in the original text, make sure to +report it. Translators are often the most attentive readers of a given +text, and if they don't report the errors they find, nobody will. In any case, remember that the major issue with l10n is that it requires -several people to cooperate, and that it is very easy to start a flamewar about -small problems because of misunderstandings. So if you have problems with your -interlocutor, ask for help on the corresponding l10n mailing list, on -debian-i18n, or even on debian-devel (but beware, l10n discussions very often -become flamewars on that list :) +several people to cooperate, and that it is very easy to start a flamewar +about small problems because of misunderstandings. So if you have problems +with your interlocutor, ask for help on the corresponding l10n mailing +list, on debian-i18n, or even on debian-devel (but beware, l10n +discussions very often become flamewars on that list :) -In any case, cooperation can only be achieved with mutual respect. +In any case, cooperation can only be achieved with mutual +respect. @@ -5566,12 +5810,12 @@ written in Python rather than Perl.

debdiff

-debdiff (from the devscripts package, ) -compares file lists and control files of two packages. It is a simple -regression test, as it will help you notice if the number of binary -packages has changed since the last upload, or if something has changed -in the control file. Of course, some of the changes it reports will be -all right, but it can help you prevent various accidents. +debdiff (from the devscripts package, ) compares file lists and control files of two packages. +It is a simple regression test, as it will help you notice if the number +of binary packages has changed since the last upload, or if something has +changed in the control file. Of course, some of the changes it reports +will be all right, but it can help you prevent various accidents.

You can run it over a pair of binary packages: