building packages

Asked by Shiny Sebastian

Hi,

I would like to create my own OpenStack packages for testing and development purposes. I have read your doc at http://wiki.openstack.org/LifeWithBzrAndLaunchpad. But it has no links on how to build a package. My servers are running, Ubuntu 10.04. It would be great if you could add documentation or give pointers regarding this.

Thanks
Shiny

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Shiny Sebastian
Solved:
Last query:
Last reply:
Revision history for this message
Soren Hansen (soren) said :
#1

The packages we build an put in our PPA (which is also available for
Ubuntu 10.04 (Lucid), by the way) are built by taking a tarball from

   http://nova.openstack.org/tarballs/

and adding this branch on top of it

   https://code.launchpad.net/~openstack-ubuntu-packagers/ubuntu/natty/nova/ubuntu/

and then the usual dpkg-buildpackage stuff.

--
Soren Hansen
Ubuntu Developer    http://www.ubuntu.com/
OpenStack Developer http://www.openstack.org/

Revision history for this message
Shiny Sebastian (shinys) said :
#2

Thanks Soren. It worked for me.

But there is a small issue wrt the package version. I downloaded nova-2011.1~bzr440.tar.gz and the branch from the links you gave me. However when I create packages they show me bzr425 as version number as below:

# dpkg -l | grep nova
ii nova-api 2011.1~bzr425-0ubuntu1 OpenStack Compute - Nova - API frontend
ii nova-common 2011.1~bzr425-0ubuntu1 OpenStack Compute - Nova - common files
ii nova-compute 2011.1~bzr425-0ubuntu1 OpenStack Compute - Nova - compute node
. . . . . . .

This I suppose is because debian/changelog has the string 2011.1~bzr425-0ubuntu1.

So technically is there any difference between the nova packages for a particular version uploaded at https://launchpad.net/~nova-core/+archive/trunk/ and the ones created through tarballs and branch from the links you mentioned?

Shiny

Revision history for this message
Soren Hansen (soren) said :
#3

The only difference is that I add a changelog entry from a script, so
functionally, it should be the exact same.

--
Soren Hansen
Ubuntu Developer    http://www.ubuntu.com/
OpenStack Developer http://www.openstack.org/

Revision history for this message
Shiny Sebastian (shinys) said :
#4

Cool ! Thanks a lot Soren, It helped.