[git-buildpackage] Different mirrors with pbuilder and dist?
Guido Günther
agx at sigxcpu.org
Wed Dec 8 17:38:47 CET 2021
Hi Quanah,
On Wed, Dec 08, 2021 at 08:22:19AM -0800, Quanah Gibson-Mount wrote:
> That doesn't appear to do what I need. What I need is:
>
> pbuilder image buster1 -> has othermirror "REPOA"
> pbuilder image buster2 -> has othermirror "REPOB"
>
> Currently I can set up a single system that has pbuilder's for buster,
> bullseye, bionic, and focal that all point at REPOA. Then I can have a
> second system that has pbuilder's for buster, bullseye, bionic, and focal
> that all point at REPOB.
>
> Alternatively, what would be best, is if I could pass (from gbp) an
> "othermirror" option like:
>
> gbp buildpackage --othermirror="repoa"
>
> Even better, is if I could set the othermirror in gbp.conf, since I have a
> branch for REPOA builds and a branch for REPOB builds. Then I could just
> run:
I think you want
--git-pbuilder-options=
then which allow you to pass options through to pbuilder. There's an
example in the manpage that show how to use a different pbuilderrc. This
option can also be specified as `pbuilder-options` in gbp.conf.
Cheers,
-- Guido
>
> gbp buildpackage
>
> from the appropriate branch, and the correct mirror would be added to the
> image just for use during the build, which is all I really need it do do.
>
> I'm able to do something like this with git buildpackage-rpm, where I can
> point mock at custom images in the [buildpackage-rpm] section in .gbp.conf
> via the "dist" parameter. This allows me to have one "dist" that uses repoA
> and another "dist" that uses repoB, meaning I can use a single server with
> mock installed to do all the builds.
>
> --Quanah
>
> --
>
> Quanah Gibson-Mount
> Product Architect
> Symas Corporation
> Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
> <http://www.symas.com>
>
More information about the git-buildpackage
mailing list