[Pkg-rust-maintainers] Bug#995230: ripgrep: add autocompletion for bash

Florian Ernst florian_ernst at gmx.net
Sun Feb 20 13:25:00 GMT 2022


On Tue, Sep 28, 2021 at 10:43:53AM +0200, Laurent Cheylus wrote:
> during build of ripgrep, a script (rg.bash) is generated via clap tool
> for autocompletion (see [...]
> This script is not included in Debian package v13.0.0-2. Please add it
> to be installed as /usr/share/bash-completion/completions/rg.

In commit 7f0d6ae of rust-team/debcargo-conf the corresponding "--with
bash-completion" was dropped, most presumably by accident. As such bash
autocompletion was missing ever since 13.0.0-1. Readding that part
brings back the missing file:

| diff -Nru rust-ripgrep-13.0.0/debian/rules rust-ripgrep-13.0.0/debian/rules
| --- rust-ripgrep-13.0.0/debian/rules    2021-08-31 22:06:04.000000000 +0200
| +++ rust-ripgrep-13.0.0/debian/rules    2022-02-20 13:48:27.000000000 +0100
| @@ -1,6 +1,6 @@
|  #!/usr/bin/make -f
|  %:
| -       dh $@ --buildsystem cargo
| +       dh $@ --buildsystem cargo --with bash-completion
| 
|  execute_after_dh_testdir:
|         find . ! -newermt "jan 01, 2000" -exec touch {} +

and then after rebuilding the binary package

| $ debdiff ripgrep_13.0.0-2_amd64.deb ripgrep_13.0.0-2.1_amd64.deb
| [The following lists of changes regard files as different if they have
| different names, permissions or owners.]
| 
| Files in second .deb but not in first
| -------------------------------------
| -rw-r--r--  root/root   /usr/share/bash-completion/completions/rg
| drwxr-xr-x  root/root   /usr/share/bash-completion/
| drwxr-xr-x  root/root   /usr/share/bash-completion/completions/
| 
| Control files: lines which differ (wdiff format)
| [...]

Cheers,
Flo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20220220/e1fc40ea/attachment.sig>


More information about the Pkg-rust-maintainers mailing list