Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1061450: /usr/bin/dpkg-buildpackage: dpkg-buildpackage does not have tab completion

0 views
Skip to first unread message

Aidan Gallagher

unread,
Jan 24, 2024, 2:20:04 PM1/24/24
to
Package: dpkg-dev
Version: 1.20.12
Severity: wishlist
File: /usr/bin/dpkg-buildpackage
Tags: newcomer
X-Debbugs-Cc: aid...@gmail.com

Hi,

I'm creating a wrapper around dpkg-buildpackage that allows package builds to run in a docker container (https://github.com/aidan-gallagher/debpic).

My package has tab completion for everything however when I added the option to specify dpkg-buildpackage options I realised dpkg-buildpackage doesn't have tab completion.

I assume this is an easy task that is free for picking up?


-- Package-specific info:
System tainted due to merged-usr-via-aliased-dirs.

-- System Information:
Debian Release: 11.7
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-0.deb11.13-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dpkg-dev depends on:
ii binutils 2.35.2-2
ii bzip2 1.0.8-4
ii libdpkg-perl 1.20.12
ii make 4.3-4.1
ii patch 2.7.6-7
ii perl 5.32.1-4+deb11u2
ii tar 1.34+dfsg-1
ii xz-utils 5.2.5-2.1~deb11u1

Versions of packages dpkg-dev recommends:
ii build-essential 12.9
ii fakeroot 1.25.3-1.1
ii gcc [c-compiler] 4:10.2.1-1
ii gcc-10 [c-compiler] 10.2.1-6
ii gnupg 2.2.27-2+deb11u2
ii gpgv 2.2.27-2+deb11u2
ii libalgorithm-merge-perl 0.08-3

Versions of packages dpkg-dev suggests:
ii debian-keyring 2021.07.26

-- no debconf information

Guillem Jover

unread,
Jan 25, 2024, 7:10:03 AM1/25/24
to
Hi!

On Wed, 2024-01-24 at 19:18:15 +0000, Aidan Gallagher wrote:
> Package: dpkg-dev
> Version: 1.20.12
> Severity: wishlist
> File: /usr/bin/dpkg-buildpackage
> Tags: newcomer
> X-Debbugs-Cc: aid...@gmail.com

> I'm creating a wrapper around dpkg-buildpackage that allows package
> builds to run in a docker container
> (https://github.com/aidan-gallagher/debpic).
>
> My package has tab completion for everything however when I added
> the option to specify dpkg-buildpackage options I realised
> dpkg-buildpackage doesn't have tab completion.
>
> I assume this is an easy task that is free for picking up?

I've been working on trying to first integrate the current bash
completion support from the bash-completion upstream, but there are
some compatibility issues that need to be fixed first:

https://github.com/scop/bash-completion/issues/694
https://github.com/guillemj/bash-completion/tree/pu/upstream-dpkg

and here's the integration in dpkg itself:

https://git.hadrons.org/cgit/debian/dpkg/dpkg.git/log/?h=pu/merge-bash-completions

But then I don't think that would affect dpkg-buildpackage. So if you
want to tackle that one, that would be great. I can probably split the
build system support and merge that and leave the tricky parts of the
hand over for later.

If you are talking about zsh, that also works though! :)

Thanks,
Guillem
0 new messages