[git-buildpackage] Different mirrors with pbuilder and dist?

Guido Günther agx at sigxcpu.org
Wed Dec 8 10:27:04 CET 2021


Hi Quanah,
On Tue, Dec 07, 2021 at 03:43:31PM -0800, Quanah Gibson-Mount wrote:
> I have two versions of a piece of software I build for each distribution I
> build on.  Currently I do this by having two different VMs with
> git-buildpackage and pbuilder, and then create an image for each dist
> (buster, bullseye, bionic, and focal) on each of them, but with a different
> OTHERMIRRORS setting.
> 
> I'd like to get this down to a single server, but I can't find a way to get
> pbuilder to either:
> 
> a) Use different OTHERMIRRORS at build time with the existing dist image
> 
> b) Have multiple images of a given dist with different OTHERMIRROR values
> 
> Anyone have any hints? :)

Given recent deboostrap (e.g. from Debian bookwork) you should be able
to use all of them from Debian:

For bullseye, buster (all Debian based):

DIST=buster git-pbuilder create
DIST=bullseye git-pbuilder create

For bionic, focal, ... (ubuntu based):

sudo apt install ubuntu-archive-keyring
DIST=bionic git-pbuilder create --mirror=http://us.archive.ubuntu.com/ubuntu --components="main universe"
DIST=focal git-pbuilder create --mirror=http://us.archive.ubuntu.com/ubuntu --components="main universe"

then e.g.:

gbp buildpackage --git-dist=bionic

Cheers,
 -- Guido

> 
> Thanks!
> 
> --Quanah
> 
> --
> 
> Quanah Gibson-Mount
> Product Architect
> Symas Corporation
> Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
> <http://www.symas.com>
> _______________________________________________
> git-buildpackage mailing list
> git-buildpackage at lists.sigxcpu.org
> http://lists.sigxcpu.org/mailman/listinfo/git-buildpackage


More information about the git-buildpackage mailing list