[Pkg-zsh-devel] Bug#895153: zsh-common: /usr/local/share/zsh/site-functions is owned by root:staff

Sven Joachim svenjoac at gmx.de
Sat Apr 7 21:30:09 UTC 2018


Control: tags -1 + patch

On 2018-04-07 22:36 +0200, Sven Joachim wrote:

> Package: zsh-common
> Version: 5.4.2-4
> Severity: normal
>
> Your package declares compliance with Debian Policy 4.1.4, claiming that
> "no other changes were required", but this is not actually true.
> The upgrading-checklist states
>
> ,----
> | 9.1.2
> |    If "/etc/staff-group-for-usr-local" does not exist, "/usr/local"
> |    and all subdirectories created by packages should have permissions
> |    0755 and be owned by "root:root".  If the file exists, the old
> |    permissions of 2775 and ownership of root:staff should remain.
> `----
>
> The zsh-common postinst script does not respect this policy though,
> using root:staff unconditionally.
>
> ,----
> | mkdir -m2775 -p /usr/local/share/zsh/site-functions && chown root:staff \
> |                /usr/local/share/zsh/site-functions || true
> `----

The attached patch should do the trick, provided zsh gets rebuilt with
debhelper 11.2 (not tested yet).  I left the postrm alone, although I
don't really see why #708106 happened in the first place - the prerm
ought to be enough to remove the directories under /usr/local.

Cheers,
       Sven

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Handle-usr-local-share-zsh-with-dh_usrlocal-Closes-8.patch
Type: text/x-diff
Size: 2133 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-zsh-devel/attachments/20180407/41deb807/attachment.patch>


More information about the Pkg-zsh-devel mailing list