Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I pull down a bzr branch using

bzr branch lp:ubuntu/<package name>

I get one set of source files. However, when i go

apt-get source <package name>

I get another. The command

debuild

will not work on the first, but it will on the second, and this is the recommended way of building packages from source on Ubuntu, and I think Debian as well (see this question).

If I want to submit a patch to Ubuntu, the easiest way is us bzr to branch the code and then push it back out once I'm done, something that obviously won't work with the apt-get source method since the list of downloaded files are different.

How am I supposed to pull source code down, test a patch, then push it back out? Right now, it seems like I have to test the changes using the apt-get source method before pulling down a branch with bar branch and completely redoing the changes there.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

In order to build from a bazaar branch, the command you are looking for is bzr builddeb or bzr builddeb -S for a source package. This is part of the bzr-builddeb Install bzr-builddeb package.

For further information you should check out the Ubuntu Distributed Development documentation and bzr-builddeb's documentation located at:

/usr/share/doc/bzr-builddeb/user_manual/index.html

Specifically:

/usr/share/doc/bzr-builddeb/user_manual/building.html

The bazaar branch and the package in the archive retrieved with apt-get source should have the same contents. The only reason that I can think of as to why they might differ is if the package importer is failing for the specific package you are interested in. There is a site tracking which packages are failing to import.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.