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

Quanah Gibson-Mount quanah at symas.com
Wed Dec 8 18:06:06 CET 2021



--On Wednesday, December 8, 2021 5:38 PM +0100 Guido G√ľnther 
<agx at sigxcpu.org> wrote:

> Hi Quanah,
>
> 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.

Ok, I see the option get passed in:

I: forking: pbuilder build --debbuildopts  --debbuildopts  --configfile 
/home/build/.pbuilderrc.ol25 --buildplace 
/var/cache/pbuilder/build/cow.72185 --buildresult /home/bui
ld/git/soldap/25/d10 --mirror http://us.archive.ubuntu.com/ubuntu 
--architecture amd64 --distribution devel --extrapackages ccache --no-targz 
--internal-chrootexec 'chroot /
var/cache/pbuilder/build/cow.72185 cow-shell' 
/home/build/git/soldap/25/d10/symas-openssl_1.1.1l-2buster1.dsc

But it doesn't appear to actually honor the OTHERMIRROR setting:

cat ~/.pbuilderrc.ol25
OTHERMIRROR="deb [trusted=yes] 
http://apito1.rb.symas.net/repo/deb/main/ol25 buster main"


because it's unable to find the package:

The following packages have unmet dependencies:
 pbuilder-satisfydepends-dummy : Depends: symas-buildtools which is a 
virtual package and is not provided by any available package


If I log in directly:
DIST=buster ARCH=amd64 git-pbuilder login

add it to the sources list:

root at ub20build:/# echo "deb [trusted=yes] 
http://apito1.rb.symas.net/repo/deb/main/ol25 buster main" >> 
/etc/apt/sources.list
root at ub20build:/# apt update
Get:1 http://apito1.rb.symas.net/repo/deb/main/ol25 buster InRelease [5717 
B]
Hit:2 http://http.us.debian.org/debian buster InRelease
Get:3 http://apito1.rb.symas.net/repo/deb/main/ol25 buster/main amd64 
Packages [484 B]
root at ub20build:/# apt install symas-buildtools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  symas-buildtools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.


So it appears that while the option is passed in, it doesn't actually do 
anything in regards to it. :/

--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