<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
- "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
+ "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+ <!ENTITY % commondata SYSTEM "common.ent" > %commondata;
+]>
<chapter id="pkgs">
<title>Managing Packages</title>
<para>
<title>New packages</title>
<para>
If you want to create a new package for the Debian distribution, you should
-first check the <ulink url="http://www.debian.org/devel/wnpp/">Work-Needing and
+first check the <ulink url="&url-wnpp;">Work-Needing and
Prospective Packages (WNPP)</ulink> list. Checking the WNPP list ensures that
no one is already working on packaging that software, and that effort is not
-duplicated. Read the <ulink url="http://www.debian.org/devel/wnpp/">WNPP web
+duplicated. Read the <ulink url="&url-wnpp;">WNPP web
pages</ulink> for more information.
</para>
<para>
-- <replaceable>short description</replaceable>'', substituting the name of the
new package for <replaceable>foo</replaceable>. The severity of the bug report
must be set to <emphasis>wishlist</emphasis>. If you feel it's necessary, send
-a copy to <email>debian-devel@lists.debian.org</email> by putting the address
+a copy to <email>debian-devel@&lists-host;</email> by putting the address
in the <literal>X-Debbugs-CC:</literal> header of the message (no, don't use
<literal>CC:</literal>, because that way the message's subject won't indicate
the bug number).
</listitem>
</itemizedlist>
<para>
-Please see <ulink url="http://ftp-master.debian.org/REJECT-FAQ.html"></ulink>
+Please see <ulink url="http://&ftp-master-host;/REJECT-FAQ.html"></ulink>
for common rejection reasons for a new package.
</para>
</section>
</para>
<para>
The Release Team (which can be reached at
-<email>debian-release@lists.debian.org</email>) will regularly evaluate the
+<email>debian-release@&lists-host;</email>) will regularly evaluate the
uploads To <emphasis>stable-proposed-updates</emphasis> and decide if your
package can be included in <emphasis>stable</emphasis>. Please be clear (and
verbose, if necessary) in your changelog entries for uploads to
<title>Uploading to <literal>ftp-master</literal></title>
<para>
To upload a package, you should upload the files (including the signed changes
-and dsc-file) with anonymous ftp to <literal>ftp-master.debian.org</literal> in
+and dsc-file) with anonymous ftp to <literal>&ftp-master-host;</literal> in
the directory <ulink
-url="ftp://ftp-master.debian.org/pub/UploadQueue/">/pub/UploadQueue/</ulink>.
+url="ftp://&ftp-master-host;&upload-queue;">&upload-queue;</ulink>.
To get the files processed there, they need to be signed with a key in the
debian keyring.
</para>
To alter the actual section that a package is put in, you need to first make
sure that the <filename>debian/control</filename> file in your package is
accurate. Next, send an email <email>override-change@debian.org</email> or
-submit a bug against <systemitem role="package">ftp.debian.org</systemitem>
+submit a bug against <systemitem role="package">&ftp-debian-org;</systemitem>
requesting that the section or priority for your package be changed from the
old section or priority to the new one. Be sure to explain your reasoning.
</para>
For more information about <emphasis>override files</emphasis>, see
<citerefentry> <refentrytitle>dpkg-scanpackages</refentrytitle>
<manvolnum>1</manvolnum> </citerefentry> and <ulink
-url="http://www.debian.org/Bugs/Developer#maintincorrect"></ulink>.
+url="&url-bts-devel;#maintincorrect"></ulink>.
</para>
<para>
Note that the <literal>Section</literal> field describes both the section as
well as the subsection, which are described in <xref
linkend="archive-sections"/> . If the section is main, it should be omitted.
The list of allowable subsections can be found in <ulink
-url="http://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections"></ulink>.
+url="&url-debian-policy;ch-archive.html#s-subsections"></ulink>.
</para>
</section>
<title>Handling bugs</title>
<para>
Every developer has to be able to work with the Debian <ulink
-url="http://www.debian.org/Bugs/">bug tracking system</ulink>. This includes
+url="&url-bts;">bug tracking system</ulink>. This includes
knowing how to file bug reports properly (see <xref linkend="submit-bug"/> ),
how to update them and reorder them, and how to process and close them.
</para>
<para>
The bug tracking system's features are described in the <ulink
-url="http://www.debian.org/Bugs/Developer">BTS documentation for
+url="&url-bts-devel;">BTS documentation for
developers</ulink>. This includes closing bugs, sending followup messages,
assigning severities and tags, marking bugs as forwarded, and other issues.
</para>
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 on this server are described in the <ulink
-url="http://www.debian.org/Bugs/server-control">BTS control server
+url="&url-bts-control;">BTS control server
documentation</ulink>.
</para>
<section id="bug-monitoring">
<title>Monitoring bugs</title>
<para>
If you want to be a good maintainer, you should periodically check the <ulink
-url="http://www.debian.org/Bugs/">Debian bug tracking system (BTS)</ulink> for
+url="&url-bts;">Debian bug tracking system (BTS)</ulink> for
your packages. The BTS contains all the open bugs against your packages. You
can check them by browsing this page:
-<literal>http://bugs.debian.org/<replaceable>yourlogin</replaceable>@debian.org</literal>.
+<literal>http://&bugs-host;/<replaceable>yourlogin</replaceable>@debian.org</literal>.
</para>
<para>
Maintainers interact with the BTS via email addresses at
-<literal>bugs.debian.org</literal>. Documentation on available commands can be
-found at <ulink url="http://www.debian.org/Bugs/"></ulink>, or, if you have
+<literal>&bugs-host;</literal>. Documentation on available commands can be
+found at <ulink url="&url-bts;"></ulink>, or, if you have
installed the <systemitem role="package">doc-debian</systemitem> package, you
can look at the local files <filename>/usr/share/doc/debian/bug-*</filename>.
</para>
</para>
<screen>
# ask for weekly reports of bugs in my packages
-0 17 * * fri echo index maint <replaceable>address</replaceable> | mail request@bugs.debian.org
+&cron-bug-report;
</screen>
<para>
Replace <replaceable>address</replaceable> with your official Debian maintainer
<para>
When responding to bugs, make sure that any discussion you have about bugs is
sent both to the original submitter of the bug, and to the bug itself (e.g.,
-<email>123@bugs.debian.org</email>). If you're writing a new mail and you
+<email>123@&bugs-host;</email>). If you're writing a new mail and you
don't remember the submitter email address, you can use the
-<email>123-submitter@bugs.debian.org</email> email to contact the submitter
+<email>123-submitter@&bugs-host;</email> email to contact the submitter
<emphasis>and</emphasis> to record your mail within the bug log (that means you
-don't need to send a copy of the mail to <email>123@bugs.debian.org</email>).
+don't need to send a copy of the mail to <email>123@&bugs-host;</email>).
</para>
<para>
If you get a bug which mentions FTBFS, this means Fails to build from source.
<para>
Once you've dealt with a bug report (e.g. fixed it), mark it as
<emphasis>done</emphasis> (close it) by sending an explanation message to
-<email>123-done@bugs.debian.org</email>. If you're fixing a bug by changing
+<email>123-done@&bugs-host;</email>. If you're fixing a bug by changing
and uploading the package, you can automate bug closing as described in <xref
linkend="upload-bugfix"/> .
</para>
<para>
You should <emphasis>never</emphasis> close bugs via the bug server
<literal>close</literal> command sent to
-<email>control@bugs.debian.org</email>. If you do so, the original submitter
+<email>control@&bugs-host;</email>. If you do so, the original submitter
will not receive any information about why the bug was closed.
</para>
</section>
As a package maintainer, you will often find bugs in other packages or have
bugs reported against your packages which are actually bugs in other packages.
The bug tracking system's features are described in the <ulink
-url="http://www.debian.org/Bugs/Developer">BTS documentation for Debian
+url="&url-bts-devel;">BTS documentation for Debian
developers</ulink>. Operations such as reassigning, merging, and tagging bug
reports are described in the <ulink
-url="http://www.debian.org/Bugs/server-control">BTS control server
+url="&url-bts-control;">BTS control server
documentation</ulink>. This section contains some guidelines for managing your
own bugs, based on the collective Debian developer experience.
</para>
technical committee by reassigning the bug to <systemitem
role="package">tech-ctte</systemitem> (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 <ulink url="http://www.debian.org/devel/tech-ctte">recommended
+read the <ulink url="&url-devel-docs;tech-ctte">recommended
procedure</ulink>.
</para>
</listitem>
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 be reassigned to,
you should ask for help on <link linkend="irc-channels">IRC</link> or
-on <email>debian-devel@lists.debian.org</email>. Please make sure that the
+on <email>debian-devel@&lists-host;</email>. Please make sure that the
maintainer(s) of the package the bug is reassigned to know why you reassigned
it.
</para>
<para>
If the bug is related to the packaging, you just fix it. If you are not able
to fix it yourself, then tag the bug as <literal>help</literal>. You can also
-ask for help on <email>debian-devel@lists.debian.org</email> or
-<email>debian-qa@lists.debian.org</email>. If it's an upstream problem, you
+ask for help on <email>debian-devel@&lists-host;</email> or
+<email>debian-qa@&lists-host;</email>. If it's an 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
close the bugs for you. For example:
</para>
<screen>
--cannon (3.1415) unstable; urgency=low
+acme-cannon (3.1415) unstable; urgency=low
* Frobbed with options (closes: Bug#98339)
* Added safety to prevent operator dismemberment, closes: bug#98765,
don't hesitate to undo any damage the error caused. To reopen wrongly closed
bugs, send a <literal>reopen <replaceable>XXX</replaceable></literal> command
to the bug tracking system's control address,
-<email>control@bugs.debian.org</email>. To close any remaining bugs that were
+<email>control@&bugs-host;</email>. To close any remaining bugs that were
fixed by your upload, email the <filename>.changes</filename> file to
-<email>XXX-done@bugs.debian.org</email>, where <replaceable>XXX</replaceable>
+<email>XXX-done@&bugs-host;</email>, where <replaceable>XXX</replaceable>
is the bug number, and put Version: YYY and an empty line as the first two
lines of the body of the email, where <replaceable>YYY</replaceable> 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 don't have anything to
do with an upload you made, do it by emailing an explanation to
-<email>XXX-done@bugs.debian.org</email>. Do <emphasis
+<email>XXX-done@&bugs-host;</email>. Do <emphasis
role="strong">not</emphasis> close bugs in the changelog entry of a version if
the changes in that version of the package don't have any bearing on the bug.
</para>
Security advisories are only issued for the current, released stable
distribution, and <emphasis>not</emphasis> for testing or unstable. When
released, advisories are sent to the
-<email>debian-security-announce@lists.debian.org</email> mailing list and
-posted on <ulink url="http://www.debian.org/security/">the security web
+<email>debian-security-announce@&lists-host;</email> mailing list and
+posted on <ulink url="http://&www-debian-org;/security/">the security web
page</ulink>. Security advisories are written and posted by the security team.
However they certainly do not mind if a maintainer can supply some of the
information for them, or write part of the text. Information that should be in
Sometimes a package will change its section. For instance, a package from the
`non-free' section might be GPL'd in a later version, in which case the package
should be moved to `main' or `contrib'.<footnote><para> See the <ulink
-url="http://www.debian.org/doc/debian-policy/">Debian Policy Manual</ulink> for
+url="&url-debian-policy;">Debian Policy Manual</ulink> for
guidelines on what section a package belongs in. </para> </footnote>
</para>
<para>
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 <ulink
-url="http://www.debian.org/doc/debian-policy/">Debian Policy Manual</ulink> for
+url="&url-debian-policy;">Debian Policy Manual</ulink> for
details). You must ensure that you include the
<filename>.orig.tar.gz</filename> in your upload (even if you are not uploading
a new upstream version), or it will not appear in the new section together with
<para>
If for some reason you want to completely remove a package (say, if it is an
old compatibility library which is no longer required), you need to file a bug
-against <literal>ftp.debian.org</literal> asking that the package be removed;
+against <literal>&ftp-debian-org;</literal> asking that the package be removed;
as all bugs, this bug should normally have normal severity. Make sure you
indicate which distribution the package should be removed from. Normally, you
can only have packages removed from <emphasis>unstable</emphasis> and
<para>
Further information relating to these and other package removal related topics
may be found at <ulink url="http://wiki.debian.org/ftpmaster_Removals"></ulink>
-and <ulink url="http://qa.debian.org/howto-remove.html"></ulink>.
+and <ulink url="&url-debian-qa;howto-remove.html"></ulink>.
</para>
<para>
If in doubt concerning whether a package is disposable, email
-<email>debian-devel@lists.debian.org</email> asking for opinions. Also of
+<email>debian-devel@&lists-host;</email> asking for opinions. Also of
interest is the <command>apt-cache</command> program from the <systemitem
role="package">apt</systemitem> package. When invoked as <literal>apt-cache
showpkg <replaceable>package</replaceable></literal>, the program will show
details for <replaceable>package</replaceable>, including reverse depends.
Other useful programs include <literal>apt-cache rdepends</literal>,
<command>apt-rdepends</command> and <command>grep-dctrl</command>. Removal of
-orphaned packages is discussed on <email>debian-qa@lists.debian.org</email>.
+orphaned packages is discussed on <email>debian-qa@&lists-host;</email>.
</para>
<para>
Once the package has been removed, the package's bugs should be handled. They
When you make a mistake naming your package, you should follow a two-step
process to rename it. First, set your <filename>debian/control</filename> file
to replace and conflict with the obsolete name of the package (see the <ulink
-url="http://www.debian.org/doc/debian-policy/">Debian Policy Manual</ulink> for
+url="&url-debian-policy;">Debian Policy Manual</ulink> for
details). Once you've uploaded the package and the package has moved into the
-archive, file a bug against <literal>ftp.debian.org</literal> asking to remove
+archive, file a bug against <literal>&ftp-debian-org;</literal> asking to remove
the package with the obsolete name. Do not forget to properly reassign the
package's bugs at the same time.
</para>
<para>
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 <literal>Debian QA Group <packages@qa.debian.org></literal> and submit
+to <literal>Debian QA Group <&pts-host;></literal> and submit
a bug report against the pseudo package <systemitem
role="package">wnpp</systemitem>. The bug report should be titled <literal>O:
<replaceable>package</replaceable> -- <replaceable>short
orphaned. The severity of the bug should be set to
<emphasis>normal</emphasis>; if the package has a priority of standard or
higher, it should be set to important. If you feel it's necessary, send a copy
-to <email>debian-devel@lists.debian.org</email> by putting the address in the
+to <email>debian-devel@&lists-host;</email> 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).
</para>
<emphasis>Request For Adoption</emphasis>.
</para>
<para>
-More information is on the <ulink url="http://www.debian.org/devel/wnpp/">WNPP
+More information is on the <ulink url="&url-wnpp;">WNPP
web pages</ulink>.
</para>
</section>
<title>Adopting a package</title>
<para>
A list of packages in need of a new maintainer is available in the <ulink
-url="http://www.debian.org/devel/wnpp/">Work-Needing and Prospective Packages
+url="&url-wnpp;">Work-Needing and Prospective Packages
list (WNPP)</ulink>. If you wish to take over maintenance of any of the
packages listed in the WNPP, please take a look at the aforementioned page for
information and procedures.
mailing list. If the discussion doesn't end with a positive conclusion, and
the issue is of a technical nature, consider bringing it to the attention of
the technical committee (see the <ulink
-url="http://www.debian.org/devel/tech-ctte">technical committee web
+url="&url-devel-docs;tech-ctte">technical committee web
page</ulink> for more information).
</para>
<para>
package. It is a unique and essential activity. In fact, porters do most of
the actual compiling of Debian packages. For instance, for a single
<emphasis>i386</emphasis> binary package, there must be a recompile for each
-architecture, which amounts to 12 more builds.
+architecture, which amounts to &number-of-arches; more builds.
</para>
<section id="kind-to-porters">
<title>Being kind to porters</title>
assistance (see <xref linkend="dpkg-depcheck"/> ).
</para>
<para>
-See the <ulink url="http://www.debian.org/doc/debian-policy/">Debian Policy
+See the <ulink url="&url-debian-policy;">Debian Policy
Manual</ulink> for instructions on setting build dependencies.
</para>
</listitem>
<para>
Don't set architecture to a value other than ``all'' or ``any'' unless you
really mean it. In too many cases, maintainers don't follow the instructions
-in the <ulink url="http://www.debian.org/doc/debian-policy/">Debian Policy
+in the <ulink url="&url-debian-policy;">Debian Policy
Manual</ulink>. Setting your architecture to ``i386'' is usually incorrect.
</para>
</listitem>
<title>Mailing lists and web pages</title>
<para>
Web pages containing the status of each port can be found at <ulink
-url="http://www.debian.org/ports/"></ulink>.
+url="&url-debian-ports;"></ulink>.
</para>
<para>
Each port of Debian has a mailing list. The list of porting mailing lists can
-be found at <ulink url="http://lists.debian.org/ports.html"></ulink>. These
+be found at <ulink url="&url-debian-port-lists;"></ulink>. These
lists are used to coordinate porters, and to connect the users of a given port
with the porters.
</para>
<para>
Some of the data produced by <systemitem role="package">buildd</systemitem>
which is generally useful to porters is available on the web at <ulink
-url="http://buildd.debian.org/"></ulink>. This data includes nightly updated
+url="&url-buildd;"></ulink>. This data includes nightly updated
information from <command>andrea</command> (source dependencies) and
<systemitem role="package">quinn-diff</systemitem> (packages needing
recompilation).
it must be included in <filename>packages-arch-specific</filename>, a list used
by the <command>wanna-build</command> script. The current version is available
as <ulink
-url="http://cvs.debian.org/srcdep/Packages-arch-specific?cvsroot=dak"></ulink>;
+url="&url-cvsweb;srcdep/Packages-arch-specific?cvsroot=dak"></ulink>;
please see the top of the file for whom to contact for changes.
</para>
</listitem>
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 <systemitem
-role="package">ftp.debian.org</systemitem>
+role="package">&ftp-debian-org;</systemitem>
</para>
</section>
Unless you know the maintainer is still active, it is wise to check the 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 <ulink
-url="http://qa.debian.org/orphaned.html"></ulink>. If you perform an NMU on an
+url="&url-debian-qa-orphaned;"></ulink>. If you perform an NMU on an
improperly orphaned package, please set the maintainer to ``Debian QA Group
-<packages@qa.debian.org>''.
+<&pts-host;>''.
</para>
</section>
<filename>debian/control</filename> file.
</para>
<screen>
-: John Buzz <jbuzz@debian.org>, Adam Rex <arex@debian.org>
+Uploaders: John Buzz <jbuzz@debian.org>, Adam Rex <arex@debian.org>
</screen>
</listitem>
<listitem>
<para>
To find out whether a package is progressing into testing or not, see the
testing script output on the <ulink
-url="http://www.debian.org/devel/testing">web page of the testing
+url="&url-devel-docs;testing">web page of the testing
distribution</ulink>, or use the program <command>grep-excuses</command> which
is in the <systemitem role="package">devscripts</systemitem> package. This
utility can easily be used in a <citerefentry>
The <filename>update_excuses</filename> file does not always give the precise
reason why the package is refused; you may have to find it on your own by
looking for what would break with the inclusion of the package. The <ulink
-url="http://www.debian.org/devel/testing">testing web page</ulink> gives some
+url="&url-devel-docs;testing">testing web page</ulink> gives some
more information about the usual problems which may be causing such troubles.
</para>
<para>
</para>
<para>
Currently, this requires some manual hinting from the release team. Please
-contact them by sending mail to <email>debian-release@lists.debian.org</email>
+contact them by sending mail to <email>debian-release@&lists-host;</email>
if this happens to one of your packages.
</para>
</section>
</para>
<para>
If you want to see more details, you can look it up on
-merkel:/org/ftp.debian.org/testing/update_out/ (or there in
+merkel:/org/&ftp-debian-org;/testing/update_out/ (or there in
~aba/testing/update_out to see a setup with a smaller packages file). Via web,
it's at <ulink
-url="http://ftp-master.debian.org/testing/update_out_code/"></ulink>
+url="http://&ftp-master-host;/testing/update_out_code/"></ulink>
</para>
<para>
The hints are available via <ulink
-url="http://ftp-master.debian.org/testing/hints/"></ulink>.
+url="http://&ftp-master-host;/testing/hints/"></ulink>.
</para>
</section>
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@lists.debian.org</email>.
+give on <email>debian-devel-announce@&lists-host;</email>.
</para>
<para>
You should not upload to <emphasis>testing-proposed-updates</emphasis> when you
<listitem>
<para>
After uploading and successful build on all platforms, contact the release team
-at <email>debian-release@lists.debian.org</email> and ask them to approve your
+at <email>debian-release@&lists-host;</email> and ask them to approve your
upload.
</para>
</listitem>