Bug#1061450: dpkg-dev: Please add bash completion for dpkg-buildpackage

Guillem Jover <[email protected]> Mon, 20 Jul 2026 13:01:44 +0200
Newsgroups gmane.linux.debian.devel.dpkg.bugs
Message-ID <al4AGH88sNs6pESm__47830.7161409006$1784545407$gmane$org@thunder.hadrons.org>
Hi!

On Sun, 2026-07-19 at 23:57:28 +0800, Cheng Li wrote:
> Apologies for the slow reply =E2=80=94 work has been keeping me busy thes=
e past
> few weeks.

No worries!

> I see the transfer has landed in the meantime: bash-completion deprecated
> its dpkg completions, and the import plus the dpkg-source rework are now
> on dpkg main. Nice!

Yes, although I'm still working on the --help output improvements, which
in some cases affect the bash-completion parsing of available options
=66rom a program. But I don't think this should affect dpkg-buildpackage
for now, except for the missing =3D for options with arguments, which I'll
be working on either for this release or next.

> Since scripts/completion/bash/ only has dpkg-source so far, I'd like to
> take dpkg-buildpackage as discussed =E2=80=94 bash only, following the st=
yle and
> layout of the dpkg-source file on main. If you've already started on it
> locally, sorry for the delay, just tell me and I'll pick another program
> instead.

Sure, work on dpkg-buildpackage would be much appreciated. I only have a
couple of incomplete local commits to try to handle dselect's --color
options, but otherwise nothing else, no.

> Would you prefer a merge request on Salsa, or a patch to this bug?

MRs are disabled on salsa (for multiple reasons), so a patch series here
for preservation purposes and if you want a branch somewhere would work.

Thanks,
Guillem