Francois Marier: Getting your project included into Free Software distributions
After releasing a new Free Software project to the world, you may be interested to see it included by the main Linux or Free Software distributions. After all this is the easiest way for end-users to download and install your software.
Here are a couple of technical details that will increase the chances that your project will be picked up by a distribution.
Can I distribute this software?The first question that a distribution maintainer will need to answer is this one: can my distribution legally distribute this piece of software?
There are two ways you can help here:
Will it work on my distro?To answer this question, the maintainer will have to install the software and figure out all of the external dependencies that need to be installed at the same time.
Therefore, your tarball should include:
One important detail is to use a sane versioning system. In a nutshell, this means:
Proposing your Package to DistrosOn Debian, the main way that users and upstream developers can suggest packages for inclusion in the archive is through the Debian Bug Tracking system. Bugs are filled against the special wnpp (Work-needed and Prospective Packages) pseudo-package and are titled something like RFP: superfoo -- bringing more foo to the desktop where RFP stands for "Request For Package".
Alternatively, if you are a Debian/Ubuntu user, you may also want to build and maintain the package yourself. In which case, you will need to find a sponsor.
Other distributions have different procedures. Feel free to leave a comment explaining what these may be.
More detailed information on getting packaged for Debian is available on the Debian wiki.
Here are a couple of technical details that will increase the chances that your project will be picked up by a distribution.
Can I distribute this software?The first question that a distribution maintainer will need to answer is this one: can my distribution legally distribute this piece of software?
There are two ways you can help here:
- Make your chosen license clearly visible (normally in a file called COPYING or LICENSE).
- Include a clear copyright statement in your documentation (inside README for example).
Will it work on my distro?To answer this question, the maintainer will have to install the software and figure out all of the external dependencies that need to be installed at the same time.
Therefore, your tarball should include:
- all of the steps (and exact commands) that are necessary to install your software on a standard Free Software distribution
- a list of the external libraries and tools that your software requires to run
One important detail is to use a sane versioning system. In a nutshell, this means:
- Version numbers should always be increasing (e.g. in normal ASCII sorting, 1.0pre1 comes after 1.0).
- Any change to the contents of the tarball should trigger a version bump.
- The difference in version numbers from one version to the next should give an indication of the magnitude (minor v. major) of the change.
- release date
- version number
- summary of the changes since the last version
Proposing your Package to DistrosOn Debian, the main way that users and upstream developers can suggest packages for inclusion in the archive is through the Debian Bug Tracking system. Bugs are filled against the special wnpp (Work-needed and Prospective Packages) pseudo-package and are titled something like RFP: superfoo -- bringing more foo to the desktop where RFP stands for "Request For Package".
Alternatively, if you are a Debian/Ubuntu user, you may also want to build and maintain the package yourself. In which case, you will need to find a sponsor.
Other distributions have different procedures. Feel free to leave a comment explaining what these may be.
More detailed information on getting packaged for Debian is available on the Debian wiki.
In a perfect world, when we design some aspect of our infrastructure,
we'd get it right the first time, and would never have to change our design
once it had been deployed.
Back in this world, however, we regularly have to change things as we
expand our infrastructure. Sometimes we made a mistake originally, other
times new requirements pop up. In either case we will end up doing things
differently in the future than how it was done in the past.
The danger here is that if you only create your new machines or services
differently, you've got effectively two separate and different systems to
maintain. This may not sound like much, until it happens again... and
again... and again... and then suddenly you've got 18 different ways of
setting up backups, depending on how long ago you set it up and (if you're
really unlucky) who did it and what the phase of the moon was at the time.
If you've been here before, you probably remember the pain of having some
disaster happen and needing to fix it NOW NOW NOW, only to wade into the
setup and realise that it's been done in a way that (you thought) died out
six months ago -- and so you don't really remember how it works, and yeah,
the documentation's been updated so many times since then that it doesn't
mention the old way of doing things, and here comes your boss to ask how
long it's going to be until it's all working again...
If you haven't had this experience (yet?), you'll have to trust me when I
say that it's no fun to hit an older, out-of-date system. It's especially
painful because the most common reason you change things is because the
old way sucked. So you turn up at a critical moment to fix something in
a poorly documented and sub-optimally configured system.
Fun, fun, funnity fun.
There are only two ways to avoid this problem: never change the way you do
anything, or else plan your changes so that retrofitting is part
of the plan every time you're modifying an existing service.
Assuming that never changing anything isn't an option, you need to plan to
retrofit. When you're putting together the design for your system change
(you do design your changes, right?) you need to audit what's out
there, determine what's needed to bring it all up to date, and put
together a plan to make that happen. It's like documentation and testing
-- if you don't make an explicit effort to make it happen, it'll never get
done.
That sounds like a lot of work, and it is. Luckily, if you're already
working in a well-maintained infrastructure you should only really have one
existing config to upgrade, which shouldn't be too painful. However, if
you've got a lot of machines to change there's no way around the fact that
they've all got to be changed, and that can take time.
If you accept that you don't want configuration skew, you can start to
think about how to engineer your systems and processes to make it less of
a hassle to keep everything up to date. Putting some extra thought into
how you set things up in the first place so that it's easier to update is
at the heart of this. Automating deployment is an easy way to take some
of the pain away from rolling out new configs, but there's also plenty of
smaller decisions that help with updating configs: putting everything in
revision control, making extensive use of templating and pulling out
common config fragments, and making sure that you've got good notes and
records of what has been done where.
The more you automate your deployment and maintenance, the less pain you
feel when you need to retrofit. With something like
I usually don't like me too comments... But this is something that really disappoints me of my otherwise-favorite development framework. I must
Then, every time you input practically anything into the form, it
does a Javascript submit and does things to the form. For example, when
you enter your credit card number, you get a form back that has blanked out
all but the last four digits of the card number. OK, a little dumb, but
not spectacularly so. Although, when you're a quick typist and have filled
in the next three fields while the web browser was playing footsie with the
slow-as-molasses web server, only to have that data wiped out when the page
refreshes, is a bit of a pest.
Far more annoying is when you start entering your address "for verification
purposes". Here, you get a form resubmit every time, presumably to update
the form based on (for example) your selected country, but not a lot
changes. Even though I picked Australia, I still got a pull-down with all
of the the US states in it. You could short-circuit all this with the
"choose existing address" option, except that (despite me being logged in)
my existing addresses aren't in a select box, but in a separate pop-up
window (which didn't actually display anything after all).
In short, the IEEE's online renewal system is a disgrace, and is an
embarrassment to what is purportedly a technical organisation.