Bug#942372: git-buildpackage: Allow configuring vendor for dch

2019-10-15 Thread Matthijs Kooijman
Hey folks,

> It is possible to override these defaults by passing `--vendor` to dch,
> so it would be good if a value could be configured in gbp that is passed
> to `dch --vendor`. Ideally, the value could be configured globally, or
> per-package, I think.

I found the `dch-opt` configuration as a way to do this with the current
git-buildpackage version. E.g. in `~/.gbp.conf`:

[dch]
dch-opt = --vendor=debian

Alternatively, you can set the DEB_VENDOR environment variable to
(globally) change the default vendor that dpkg-vendor returns (as
documented in dpkg-vendor(1)).

I guess that pretty solves this request, though a dedicated option (or a
mention in the manpage) might still make it easier for people to figure
out how to do this.

Gr.

Matthijs


signature.asc
Description: PGP signature


Bug#942372: git-buildpackage: Allow configuring vendor for dch

2019-10-15 Thread Matthijs Kooijman
Package: git-buildpackage
Version: 0.9.14
Severity: normal

Hi,

I'm running gbp on an Ubuntu system to build packages for Debian. By
default, dch (and thus also gbp dch) uses distribution and version
number defaults for Ubuntu, rather than Debian (based on the results of
dpkg-vendor).

It is possible to override these defaults by passing `--vendor` to dch,
so it would be good if a value could be configured in gbp that is passed
to `dch --vendor`. Ideally, the value could be configured globally, or
per-package, I think.

There might be other tools that need to be told about the vendor, but I
have not found them so far.

Gr.

Matthijs