[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#895136: marked as done (debian-policy: §9.1.2 - Contains example that is misleadingly different than what the policy mandates)



Your message dated Sat, 07 Apr 2018 16:35:42 +0000
with message-id <E1f4qoY-0002St-KZ@fasolo.debian.org>
and subject line Bug#895136: fixed in debian-policy 4.1.4.1
has caused the Debian Bug report #895136,
regarding debian-policy: §9.1.2 - Contains example that is misleadingly different than what the policy mandates
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
895136: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895136
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: debian-policy
Version: 4.1.4
Severity: normal

Last paragraph of 9.1.2 reads:

"""
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 /etc/staff-group-for-usr-local exists,
/usr/local and subdirectories should have permissions 2775
(group-writable and set-group-id) and be owned by root:staff.
"""

In the middle of 9.1.2, there is the following example of how to do
directory creation in /usr/local:

"""
if [ ! -e /usr/local/share/emacs ]; then
    if mkdir /usr/local/share/emacs 2>/dev/null; then
        if chown root:staff /usr/local/share/emacs; then
            chmod 2775 /usr/local/share/emacs || true
        fi
    fi
fi
"""

The example is way too simple to comply with policy.  A more compliant
example would be:

"""
if [ ! -e /usr/local/share/emacs ]; then
    if mkdir /usr/local/share/emacs 2>/dev/null; then
        if test -e /etc/staff-group-for-usr-local ; then
            if chown root:staff /usr/local/share/emacs; then
                chmod 2775 /usr/local/share/emacs || true
            fi
        elif chown root:staff /usr/local/share/emacs; then
            chmod 2775 /usr/local/share/emacs || true
        fi
    fi
fi
"""

Thanks,
~Niels

--- End Message ---
--- Begin Message ---
Source: debian-policy
Source-Version: 4.1.4.1

We believe that the bug you reported is fixed in the latest version of
debian-policy, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 895136@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sean Whitton <spwhitton@spwhitton.name> (supplier of updated debian-policy package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 07 Apr 2018 09:13:01 -0700
Source: debian-policy
Binary: debian-policy
Architecture: all source
Version: 4.1.4.1
Distribution: unstable
Urgency: medium
Maintainer: Debian Policy Editors <debian-policy@lists.debian.org>
Changed-By: Sean Whitton <spwhitton@spwhitton.name>
Closes: 895136
Description: 
 debian-policy - Debian Policy Manual and related documents
Changes:
 debian-policy (4.1.4.1) unstable; urgency=medium
 .
   * Fix some errors in upgrading checklist.
     Thanks to several people for noticing these.
     Thanks to Jeremy Bicha for a patch.
   * Soften wording in upgrading checklist for removal of get-orig-source
     target.
     Thanks Helmut Grohne for the new wording.
   * Fix sample postinst in 9.1.2 to comply with new required permissions
     for /usr/local (Closes: #895136).
     Thanks to Niels Thykier for noticing the problem, and for the new
     sample script.
     - Reorder 9.1.2 so that details of the permissions requirement appear
       before the sample postinst.
       This ensures that the complexity of the sample postinst makes sense
       to the reader.
Checksums-Sha1: 
 d5fc8ce486af7c5b2fa8297e45feed4e1dadb310 2001 debian-policy_4.1.4.1.dsc
 8748ae98d9be997e21f7661edbc3ccaf3bbba92a 677248 debian-policy_4.1.4.1.tar.xz
 27ea7f496f630e5c5f6570e8985a0f2dc07be099 2387580 debian-policy_4.1.4.1_all.deb
 e493f96c7ce8f5414b5ef7c7788ab8daf7f32000 12126 debian-policy_4.1.4.1_amd64.buildinfo
Checksums-Sha256: 
 5e87b0946a4321e97a7a86ef6a26c861baebe4227a76f184235e5a43b879ecd4 2001 debian-policy_4.1.4.1.dsc
 35f043c70bc88ee1d094ad1877005eb09a21eb6f7a6fa06ba7410ebc07a0618d 677248 debian-policy_4.1.4.1.tar.xz
 131cf8851a98a9465597b179a7d73e9bcb0b4c40a3c7084eb4d9206df22adc46 2387580 debian-policy_4.1.4.1_all.deb
 d331f47b51058142406c37a24210a0bec6d94e9fc3021e49e426256f63f2069a 12126 debian-policy_4.1.4.1_amd64.buildinfo
Files: 
 2d9fb2e0535a63910bae4c6187b9fb6a 2001 doc optional debian-policy_4.1.4.1.dsc
 844b4da94bf58e22f2ec1330e6caf333 677248 doc optional debian-policy_4.1.4.1.tar.xz
 9e029d6c16ffb57444f8afff336f52df 2387580 doc optional debian-policy_4.1.4.1_all.deb
 f01ad92f026eefc9d68805c82cd66503 12126 doc optional debian-policy_4.1.4.1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAlrI74MACgkQaVt65L8G
YkCaFQ/9EmMhNNjb7nuXy3kSEZcW/6ZO29LLHJL3dcm1f2q7Cilk3S56BrAt/Yzl
42ctp++GkAjQYdyeBjf5H+Aze8d3bNTxQ5lAcywCvyptPToQm6Z5vEn1ORXV1TrD
ggbWFzmZASUHWtFcH9pziEC/H75RnX8YIg43QC2SznJxC6PXnwQwFEI5ZivmJ+sC
8mHhFG+4qL7XSEMY6xZ81kG/rDKnFdM6Wiz+dMq6md3THfxKWgvhu0SS93c2pig9
p9ri2g2I+txt3ij+Ih463tfv+ld/9ASRv+Jc3aeKQUU8w1FZQ7eUBh8IZ9+bEAEQ
bKJpWWKhT23xF5D4uqOHo9lvkVPfjVKaauIfGMHgY/wqq5Uq1zhFaLIvdYk5pQm8
KRLO4rH4lovYhN0gU1GHkpGVUYQheCQBepCZFaoE1hH5lTIFECK5AFrkeGtTvndr
htzGLGEA63Eg9wz19+wsSq/99GCNFJiYBB4F2getBom1qoJPkpLQarEUD33vnT6H
GsxYsPAYk/PswHJNw8oxVlRYgVxdHLLzmSnrC976ascwAvPoV2s8JPXAE2544jxe
bZFekGSXMILpqa1t0jEehAKPyOExkWIf3QkrHuoKInTNec0JZo43mHmOb1VlKHHc
1COG+lxCf9vcyQn+3d7mM+2SNLdOiMNxcFl535si3WOBxUa2Uuc=
=4Ewn
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: