#942372 git-buildpackage: Allow configuring vendor for dch

#942372#5
Date:
2019-10-15 10:58:31 UTC
From:
To:
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

#942372#10
Date:
2019-10-15 13:57:44 UTC
From:
To:
Hey folks,

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