[Pkg-zsh-devel] Bug#768079: zsh: fails to configure if /bin is a symlink to /usr/bin

Marco d'Itri md at linux.it
Wed Jan 6 05:10:43 UTC 2016


On Dec 26, Felipe Sateler <fsateler at debian.org> wrote:

> So, I dug up a bit, and the /usr/bin/zsh slave's purpose was to
> preserve the /usr/bin path when zsh was moved from /usr to /. Since
> this is a slave link that will be updated whenever the master link is
> updated (so /bin/zsh and /usr/bin/zsh should always point to the same
> place) and nobody else is using this name[1], I propose that the
> alternative is simply dropped, and have a symlink from /usr/bin/zsh
> point to /bin/zsh. Then that link can be omitted when /bin is a
> symlink to /usr/bin.
> 
> Please find attached an (untested) patch that does that.
Your patch does not work because it would unconditionally remove 
/usr/bin/zsh even if it were still needed because another package 
providing /bin/zsh is still installed.
It also checks in preinst that /usr/bin/ksh is not a broken link, 
because I suppose that this could happen and then without this check 
the script would fail.

Please let me know if this patch is acceptable, I have similar ones for 
mksh and ksh.

-- 
ciao,
Marco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: usrmerge-ksh.diff
Type: text/x-diff
Size: 1698 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-zsh-devel/attachments/20160106/ec686020/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 648 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-zsh-devel/attachments/20160106/ec686020/attachment.sig>


More information about the Pkg-zsh-devel mailing list