Building packages from launchpad respository

ben lemasurier

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?

Mike Miller

The software used to build Ubuntu source packages in a chroot is called sbuild Install 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 Install 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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Building Python Extension Packages for Launchpad

From Dev

Launchpad: CLI "Copying packages"

From Dev

Building packages from source on Arch linux

From Dev

Building grpc from source using preinstalled packages

From Dev

Error in building snap package on launchpad

From Dev

Why isn't launchpad building my package?

From Dev

How to rename a package while building in Launchpad?

From Dev

How to apply a changelog file to packages in a PPA when building from recipe?

From Dev

Install packages from newer release without building (apt pinning)

From Dev

Install packages from newer release without building (apt pinning)

From Dev

How to apply a changelog file to packages in a PPA when building from recipe?

From Dev

How to create PPA packages for ARM or PowerPC in Launchpad?

From Dev

How to create PPA packages for ARM or PowerPC in Launchpad?

From Dev

PPA hosting packages not built on launchpad build farm

From Dev

How to add the source packages on launchpad to my PPA?

From Dev

Can I upload binary packages to a Launchpad PPA?

From Dev

is it possible to hide packages on launchpad.net?

From Dev

Heroku app seems to be pulling from wrong Git respository/branch

From Dev

Heroku app seems to be pulling from wrong Git respository/branch

From Dev

How to compile a program from launchpad

From Dev

Pinning a specific PPA from Launchpad

From Dev

How to compile a program from launchpad

From Dev

How to clone source from Launchpad?

From Dev

How is installing linux packages via apt-get different from building and compiling from source?

From Dev

How do I use a Launchpad recipe for patching and building an original package?

From Dev

How do I use a Launchpad recipe for patching and building an original package?

From Dev

Building R packages with Packrat and AppVeyor

From Dev

No speex packages for freeswitch building on Ubuntu

From Dev

Automatic building and installing Packages from AUR for Arch Linux inside Docker with yaourt and >makepkg-4.2.0

Related Related

  1. 1

    Building Python Extension Packages for Launchpad

  2. 2

    Launchpad: CLI "Copying packages"

  3. 3

    Building packages from source on Arch linux

  4. 4

    Building grpc from source using preinstalled packages

  5. 5

    Error in building snap package on launchpad

  6. 6

    Why isn't launchpad building my package?

  7. 7

    How to rename a package while building in Launchpad?

  8. 8

    How to apply a changelog file to packages in a PPA when building from recipe?

  9. 9

    Install packages from newer release without building (apt pinning)

  10. 10

    Install packages from newer release without building (apt pinning)

  11. 11

    How to apply a changelog file to packages in a PPA when building from recipe?

  12. 12

    How to create PPA packages for ARM or PowerPC in Launchpad?

  13. 13

    How to create PPA packages for ARM or PowerPC in Launchpad?

  14. 14

    PPA hosting packages not built on launchpad build farm

  15. 15

    How to add the source packages on launchpad to my PPA?

  16. 16

    Can I upload binary packages to a Launchpad PPA?

  17. 17

    is it possible to hide packages on launchpad.net?

  18. 18

    Heroku app seems to be pulling from wrong Git respository/branch

  19. 19

    Heroku app seems to be pulling from wrong Git respository/branch

  20. 20

    How to compile a program from launchpad

  21. 21

    Pinning a specific PPA from Launchpad

  22. 22

    How to compile a program from launchpad

  23. 23

    How to clone source from Launchpad?

  24. 24

    How is installing linux packages via apt-get different from building and compiling from source?

  25. 25

    How do I use a Launchpad recipe for patching and building an original package?

  26. 26

    How do I use a Launchpad recipe for patching and building an original package?

  27. 27

    Building R packages with Packrat and AppVeyor

  28. 28

    No speex packages for freeswitch building on Ubuntu

  29. 29

    Automatic building and installing Packages from AUR for Arch Linux inside Docker with yaourt and >makepkg-4.2.0

HotTag

Archive