Proper dependencies for bash/fish/zsh completion sub-packages
Hi all, what are the proper dependencies for packages that contain some completion for bash, zsh or fish? Should they Require bash-completion/fish/zsh? I came across this today, as I was wondering why the bash-completion subpackage of kubie did not require the bash-completion package. Of course it makes no sense to install a zsh completion package if I am not using zsh, but should this not be reflected in the subpackage's requirements? For bash it might be even more prominent, because the completion files for kubie are not being used without the bash-completion package itself (if I am understanding the scripts correctly). Thanks in advance and have a nice weekend, everyone! Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
On Freitag, 3. März 2023 21:57:36 CET Johannes Kastl wrote:
Hi all,
what are the proper dependencies for packages that contain some completion for bash, zsh or fish? Should they Require bash-completion/fish/zsh?
shell-completions, and any other add-onn package, should use "Supplements:" E.g. $> zypper info --supplements --provides subversion-bash-completion Provides : subversion-bash-completion = 1.14.2-4.3 Supplements : (subversion and bash-completion) -> if both subversion *and* bash-completion are installed, subversion-bash- completion will also be installed. Regards, Stefan
Hi Stefan, On 03.03.23 at 22:29 Stefan Brüns wrote:
-> if both subversion *and* bash-completion are installed, subversion-bash- completion will also be installed.
But what happens if I install subversion-bash-completion, but do not have bash-completion itself installed? Should this not pull in bash-completion to make it easier for the user? Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
On 04.03.2023 11:25, Johannes Kastl wrote:
Hi Stefan,
On 03.03.23 at 22:29 Stefan Brüns wrote:
-> if both subversion *and* bash-completion are installed, subversion-bash- completion will also be installed.
But what happens if I install subversion-bash-completion, but do not have bash-completion itself installed? Should this not pull in bash-completion to make it easier for the user?
It already requires bash-completion.
Hello Andrei, On 04.03.23 at 12:44 Andrei Borzenkov wrote:
On 04.03.2023 11:25, Johannes Kastl wrote:
Hi Stefan,
On 03.03.23 at 22:29 Stefan Brüns wrote:
-> if both subversion *and* bash-completion are installed, subversion-bash- completion will also be installed.
But what happens if I install subversion-bash-completion, but do not have bash-completion itself installed? Should this not pull in bash-completion to make it easier for the user?
It already requires bash-completion.
I was using subversion as an example. kubie did not have that dependency until yesterday, but there are some other packages that caught my eye were it is also missing. But I take it that this dependency should be present in addition to the Supplements: Stefan mentioned? Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
participants (3)
-
Andrei Borzenkov
-
Johannes Kastl
-
Stefan Brüns