Package: dgit
Version: 10.1
Severity: normal
X-Debbugs-Cc: mvernon@wikimedia.org, matthew@debian.org
Hi,
I want to build packages from a dgit tree in CI; I spent some time
arranging for e.g. git deborig to work so that I could do:
git-deborig
mk-build-deps
dgit -wg build
And you pointed out that, in fact, I'd be better just using
dpkg-buildpackage -uc -b
In particular, that avoids the need to produce a source package at
all, which in many cases is desirable (in a gitish workflow, they're
not useful). dgit-user(7) does include runes to produce a
source-package-for-sbuild (under "Using sbuild") alongside a note that
this source package should not otherwise be used (and a reference to
#868527).
In fact, while a DD always wants to use some flavour of dgit
build/sbuild/whatever (since a DD will be uploading a source or binary
package), for non-DD-users who don't care about source packages but
just want binaries-from-git, they don't want dgit build at all (since
that will make a source package), but rather dpkg-buildpackage[0].
dgit-user(7) should note this prominently. A bonus point might be to
refer to dcmd(1), since CI often has requirements about where build
artifacts go (in particular, gitlab won't take artifacts from
out-of-tree, so build artifacts will need moving from .., which dcmd
helps with). In bookworm-and-later dpkg-buildpackage has --changes-file.
[this bug report is a summary of an IRC discussion]
Thanks,
Matthew
[0] the result of which may well be a lot of rubbish inside the git
working tree, but that is already discussed in dgit-user(7)