#1075960 cowbuilder: stop passing obsolete --mirror and --distribution parameters to pbuilder to silence superfluous pbuilder warning "W: --override-config is not set; not updating apt.conf Read the manpage for details."

Package:
cowbuilder
Source:
cowbuilder
Description:
pbuilder running on cowdancer
Submitter:
Date:
2024-07-08 12:21:04 UTC
Severity:
normal
#1075960#5
Date:
2024-07-08 12:07:00 UTC
From:
To:
Dear maintainer,

even though I will be writing a lot about pbuilder, I am pretty sure
that this is a cowbuilder issue.

When running cowbuilder there is a warning:

 > W: --override-config is not set; not updating apt.conf Read the
manpage for details.

This warning is coming from pbuilder. I located the related pbuilder
source code. Quote:

pbuilder-checkparams:
pbuilder-modules:

Now, why is this a cowbuilder issue? Because cowbuilder passes
'--mirror' and '--distribution' parameters to pbuilder. When the user
does not pass these parameters to cowbuilder, then...

Not using '--mirror' results in cowbuilder automatically passing to
pbuilder:
--mirror http://you-have-broken-debconf-configuration.example.com/

Not using '--distribution' results in cowbuilder automatically passing
to pbuilder:
--distribution sid

Passing these parameters to pbuilder seems to be hardcoded in cowbuilder
source code file 'cowbuilder.c'.

I don't know how it was in the past but it seems nowadays hardcoding
passing these parameters from cowbuilder to pbuilder is no longer useful
and only producing a superfluous warning.

Cheers,
Patrick