[Pkg-zsh-devel] Bug#890711: Bug#890711: zsh-common: Missing Depends on zsh

Axel Beckert abe at debian.org
Sat Feb 17 21:19:20 UTC 2018


Control: tag -1 + moreinfo

Hi Dima,

Dima Kogan wrote:
> Hi. Currently zsh-common has no Depends on any zsh, which causes
> problems.

I must admit, I'm a little bit surprised.

> During an upgrade I ended up in this situation:
> 
>  $ dpkg -l | grep zsh
>  ii  zsh                             4.3.17-1                         amd64        shell with lots of features
>  ii  zsh-common                      5.4.2-3                          all          architecture independent files for Zsh

Wait. That would have been a dist-upgrade from Wheezy (old-old-stable)
to Testing in one run? Skipping two releases is surely not supported.

Additionally, what did pull in zsh-common? zsh 4.3.17-1 is not yet
split up and has no dependency on zsh-common, not even an unversioned
one. (Which probably means that zsh-common rather would need a
"Conflicts: zsh (<< 5)", but fixing this three releases later seems
ridiculous.)

Besides, zsh 5.4.2-3 has a hard, versioned dependency on zsh-common:

Package: zsh
Version: 5.4.2-3
Depends: zsh-common (= 5.4.2-3), […]

> And together I get weird errors any time I press TAB to invoke
> completion:
> 
>  $ ls [pressed TAB]
>  (eval):setopt:3: no such option: localpatterns
>  (eval):setopt:3: no such option: NO_warnnestedvar

Such errors are IIRC normal during dist-upgrades, even if you have
both, zsh and zsh-common updated, but still old zsh processes running.
As soon as both, zsh and zsh-common are uptodate again, calling "exec
zsh" fixes it.

> This is because here zsh-common was massively newer than zsh. We can add
> 
>  Depends: zsh (= ${binary:Version})
> 
> to the zsh-common definition. Is this too strong?

I really would like to avoid circular dependencies and I also see no
reason for such a dependency. (See above for the reasoning.)

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe at debian.org>, https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



More information about the Pkg-zsh-devel mailing list