I'd like to build a package directly from the upstream (launchpad) repository. I've read the various packaging guides and I'm still not sure what the best practice is.
Essentially, how do I build a package from launchpad, handling dependencies and chrooted build environments just like the build bots do?
The software used to build Ubuntu source packages in a chroot is called sbuild . Some introduction to setting up and using sbuild is given in the SimpleSbuild wiki article.
There are many ways to download a source package and to set up an sbuild chroot, but the ubuntu-dev-tools package includes a couple of very useful scripts for accomplishing exactly what you want.
Assuming you are running Ubuntu 14.04 LTS, you can set up a chroot and build the bash
package for example, with
sudo apt-get install sbuild ubuntu-dev-tools
mk-sbuild trusty
pull-lp-source -d bash trusty
sbuild -A -d trusty bash_4.3-7ubuntu1.5.dsc
where the filename of the source package given to the sbuild
command will of course change with updates and new releases.
The mk-sbuild
command need only be run one time, the minimal chroot is cached on your system and can be reused for building any number of source packages.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments