Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1011594 > unrolled thread
| Started by | Jürgen Kuri <juergen.kuri@ionos.com> |
|---|---|
| First post | 2020-05-27 13:00 +0200 |
| Last post | 2020-06-02 13:30 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.bugs.dist
Bug#961660: DebHelper dh_bash-completion broken since Stretch OS, Bash Completion scripts not installed anymore into Path according to debian/<package>.bash-completion Jürgen Kuri <juergen.kuri@ionos.com> - 2020-05-27 13:00 +0200
Bug#961660: DebHelper dh_bash-completion broken since Stretch OS, Bash Completion scripts not installed anymore into Path according to debian/<package>.bash-completion "Gabriel F. T. Gomes" <gabriel@inconstante.net.br> - 2020-05-31 20:10 +0200
Bug#961660: DebHelper dh_bash-completion broken since Stretch OS, Bash Completion scripts not installed anymore into Path according to debian/<package>.bash-completion Jürgen Kuri <juergen.kuri@ionos.com> - 2020-06-02 13:30 +0200
| From | Jürgen Kuri <juergen.kuri@ionos.com> |
|---|---|
| Date | 2020-05-27 13:00 +0200 |
| Subject | Bug#961660: DebHelper dh_bash-completion broken since Stretch OS, Bash Completion scripts not installed anymore into Path according to debian/<package>.bash-completion |
| Message-ID | <Ab1WV-6h0-3@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Package: bash-completion
Version: 1:2.8-6
Severity: normal
I have a project for which I build Debian installation packages with the help of pbuilder. The packages are built for Debian OS
* Jessie
* Stretch
* Buster
I have two different bash-completion scripts for two different command line tools for which I have two different installation path instruction files for each command line tool located in debian/:
* debian/fsmd2-mtest.bash-completion
* debian/fsmd2.bash-completion
Inside that two installation instruction files we have the following lines:
$ cat debian/fsmd2.bash-completion
scripts/etc/bash_completion.d/fsmtool2-completion
$ cat debian/fsmd2-mtest.bash-completion
scripts/etc/bash_completion.d/fsmtool2_mtest-completion
The completion scripts are located in the source tre as defined:
$ ls -la scripts/etc/bash_completion.d/
total 16
drwxr-xr-x 2 pbuilder pbuilder 4096 May 18 15:26 .
drwxr-xr-x 4 pbuilder pbuilder 4096 May 18 15:26 ..
-rw-r--r-- 1 pbuilder pbuilder 933 May 18 15:26 fsmtool2-completion
-rw-r--r-- 1 pbuilder pbuilder 980 May 18 15:26 fsmtool2_mtest-completion
When I build the packages for Debian Jessie, everything works as expected, both completion scripts are installed into the path:
$ ls -la /etc/bash_completion.d/
total 24
drwxr-xr-x 2 root root 4096 May 26 16:58 .
drwxr-xr-x 92 root root 4096 May 18 12:12 ..
-rw-r--r-- 1 root root 933 May 18 17:26 fsmtool2-completion
-rw-r--r-- 1 root root 980 May 18 17:26 fsmtool2_mtest-completion
When I build the packages for Debian OS Stretch or Buster, bash-completion does not work for both command line tools any more cause the completion scripts are installed below:
* /usr/share/bash-completion/completions/fsmtool2-completion
* /usr/share/bash-completion/completions/fsmtool2_mtest-completion
I can reproduce it very easily without building the entire project by just invoking the dh_bash-completion helper in the source tree base directory:
$ dh_bash-completion -v
install -d debian/fsmd2/usr/share/bash-completion/completions
installing scripts/etc/bash_completion.d/fsmtool2-completion as fsmtool2-completion
install -p -m0644 ./scripts/etc/bash_completion.d/fsmtool2-completion debian/fsmd2/usr/share/bash-completion/completions/fsmtool2-completion
installing scripts/etc/bash_completion.d/fsmtool2_mtest-completion as fsmtool2_mtest-completion
install -p -m0644 ./scripts/etc/bash_completion.d/fsmtool2_mtest-completion debian/fsmd2-mtest/usr/share/bash-completion/completions/fsmtool2_mtest-completion
[toc] | [next] | [standalone]
| From | "Gabriel F. T. Gomes" <gabriel@inconstante.net.br> |
|---|---|
| Date | 2020-05-31 20:10 +0200 |
| Message-ID | <AcAzf-5Ms-5@gated-at.bofh.it> |
| In reply to | #1011594 |
On 27 May 2020, Jürgen Kuri wrote: > >When I build the packages for Debian Jessie, everything works as expected, both completion scripts are installed into the path: > > $ ls -la /etc/bash_completion.d/ > total 24 > drwxr-xr-x 2 root root 4096 May 26 16:58 . > drwxr-xr-x 92 root root 4096 May 18 12:12 .. > -rw-r--r-- 1 root root 933 May 18 17:26 fsmtool2-completion > -rw-r--r-- 1 root root 980 May 18 17:26 fsmtool2_mtest-completion For some time (I don't know exactly how long, because I only adopted bash-completion about 2 years ago), the default installation path for completion is /usr/share/bash-completion/completions/, as you have noticed. So, I'd say that dh_bash-completion is doing the rigth thing. >When I build the packages for Debian OS Stretch or Buster, bash-completion does not work for both command line tools any more cause the completion scripts are installed below: > > * /usr/share/bash-completion/completions/fsmtool2-completion > * /usr/share/bash-completion/completions/fsmtool2_mtest-completion On the other, you are saying that the completions do not work from this location, and that's puzzling me. Could you provide more details about the problem you are actually getting? Bash-completion is supposed to work with files in this location. Cheers, Gabriel
[toc] | [prev] | [next] | [standalone]
| From | Jürgen Kuri <juergen.kuri@ionos.com> |
|---|---|
| Date | 2020-06-02 13:30 +0200 |
| Message-ID | <Addhf-3Jl-1@gated-at.bofh.it> |
| In reply to | #1012130 |
[Multipart message — attachments visible in raw view] — view raw
On Sun, 31 May 2020 15:00:46 -0300 "Gabriel F. T. Gomes" <gabriel@inconstante.net.br> wrote: > On the other, you are saying that the completions do not work from this > location, and that's puzzling me. Could you provide more details about > the problem you are actually getting? Bash-completion is supposed to > work with files in this location. One detail is, if you invoke the program fsmtool2 or fsmtool2_mtest for which I have the completion scripts, the directory listing of $PWD is shown if I press TAB two times consecutively. As another detail find attached the completion script. Thanks Jürgen
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.bugs.dist
csiph-web