Daniel Burrows: HOWTO get and compile the apt source repository using bzr

Getting apt
Compiling
Installing a build of the
apt's source code is managed using bzr. Very fine
tutorials and documentation on
bzr exist on the Web; I'll give a brief rundown of some useful
commands here, but you should read bzr-specific documentation to get
a complete understanding of it. bzr is available in the Debian
repositories, and likely other distributions have a package of it as
well.
The master apt branch for Debian is available at
http://bzr.debian.org/apt/debian-sid. Yes, that looks like an empty
directory if you view it with a Web browser, but it really contains
the source tree. To retrieve it, run:
That will download the repository to the directorybzr branch http://bzr.debian.org/apt/debian-sid apt-debian-sid
apt-debian-sid.
It takes a long time to download a fresh copy of the code, so be
patient. When bzr branch finishes running, you have a new private
copy of the source tree to work with. You can commit changes with
bzr commit, download updates with bzr merge, see what you've
changed with bzr diff, and copy your changes to a public location
with bzr push. Read the bzr manpage and user's
manual for full documentation on how to use bzr.
Other public repositories of apt code include:
- My own tree, at http://algebraicthunk.net/~dburrows/bzr/apt.
- Email me at
Daniel_Burrows@alumni.brown.eduand I'll add your tree to this list.
Compiling
apt from its repository
To compile apt, you'll need the following packages on Debian:
g++makelibdb4.4-devgettextlibcurl4-gnutls-devorlibcurl3-gnutls-devxmlto
apt without installing it by running
make. xmlto is not listed in the Build-Depends line of apt,
but you won't be able to produce manpages without it. In particular,
you'll need it to produce a Debian package (see below).
Installing a build of the
apt repository
The easiest way to install a custom build of apt out of a repository
checkout is to build a Debian package from the checkout. Install the
following packages:
- dpkg-dev
- debhelper
apt
repository:
This will compile apt and produce severaldpkg-buildpackage -rfakeroot -us -uc
.deb packages in the
parent directory of the repository. To install the generated
packages, I recommend first installing the devscripts package and
then running debi. You can also install the .deb packages by hand
by running dpkg -i FILENAME.deb (...).
Warning: installing an interim build of apt is likely to break
all the packages that depend on it, such as aptitude and
synaptic; interim builds might also be buggy and do strange things
to your system. You should not install an unreleased version of apt
unless you are sure that you can fix any problems that you encounter
as a result of doing so.
Well, after many failed attempts, here I am on my problematic HP laptop with a USB key mounted, a
...is continuing to neglect our key packages. We have ridiculous numbers of maintainers on some of them.
Mentioning dpkg right now is probably not appropriate but there have been not more than 4 people active on it (including Ian Jackson despite the recent events). Just look at its bugs database.
APT is maintained by Michael Vogt and Otavio Salvador, both involved in (too?) many other parts of the distribution. Just look at its bugs database.
aptitude is maintained by Daniel Burrows alone (my help for l10n doesn't really count). Just look at its bugs database.
Despite the tremendous work of the XSF, X.Org bugs decrease quite slowly and I don't doubt that in case one of the current 3-4 people who are very hard-working on it are swaped by real life, we'd be in trouble.
I could find dozens of these, probably. In the same time, we're still seeing tons of ITPs for different pieces of junk^W software which I really wonder about us needing them.
We should maybe reconsider the implicit encouragements we are giving to new applicants to maintain "their" package. We'd probably better encourage them to *adopt* an existing package and rank these by order of priority or popcon score.
Stop having that damn archive growing and expand the outbounds of the Debian galaxy. We'd better take care of the inside black hole.
If you're attending the excellent