Home Page

Tips page

University Page


Debian & Linux

Some works

About me

Del.icio.us Bookmarks

BOINC Combined Statistics

Site Statistics

Contact me sending an e-mail (antispam defense activated)


hacker emblem



View Sandro Tosi's profile on LinkedIn

This is my Google PageRank

Package a software with version xx.yy-z

Package a software with version xx.yy-z

 Sandro Tosi, 13 August 2006

Debian Policy states that "The upstream_version may contain only alphanumerics[33] and the characters . + - :" and "If there is no debian_revision then hyphens are not allowed;", so xx.yy-z is a valid upstream version (for a non-native package), but how to handle this while start packaging that piece of code?

Ok, we have the upstream archive as foobar-xx.yy-z.tar.bz2; extract it in a dir called foobar-xx.yy-z and cd into it.

Execute the command

dh_make -f ../foobar-xx.yy-z.tar.bz2

but sadly, dh_make generates this:

Package Name    : foobar-xx.yy
Version         : z

which is wrong!

In order to correct this, you have to correct just a couple of files:


change the first line from 

foobar-xx.yy (z-1) unstable; urgency=low


foobar (xx.yy-z-1) unstable; urgency=low



Source: foobar-xx.yy
Package: foobar-xx.yy


Source: foobar
Package: foobar

Now you have to rename ../foobar-xx.yy_z.orig.tar.gz into ../foobar_xx.yy-z.orig.tar.gz .

And that's all: you can test this generating the source package of this very preliminary version of a debian package:

debuild -S -uc -us