Your message dated Fri, 20 Jul 2012 10:17:10 +0000
with message-id <[email protected]>
and subject line Bug#470294: fixed in php-codesniffer 1.3.4-1
has caused the Debian Bug report #470294,
regarding php-codesniffer: Attempts to write to files in /usr when run
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 [email protected]
immediately.)


-- 
470294: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=470294
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: php-codesniffer
Version: 1.0.1-1
Severity: important

*** Please type your report below this line ***

If you try to use the "--config-set" argument to phpcs it tries to write
to a file in /usr. As well as violating policy this breaks having a
read/only /usr.

To fix this I suggest:
* Move CodeSniffer.conf to /etc/php-codesniffer/CodeSniffer.conf
* Alter phpcs to also look for ~/.phpcs/CodeSniffer.conf after reading
  the system wide file
* Alter phpcs to save to the ~/.phpcs... file when needed

(Paths are just an initial suggestion, feel free to choose something
better)

You should also ship the config with a note that it's actual PHP code,
and with comments covering major options (it should also not have a
closing PHP tag, but that's just my taste).

EG:
$ phpcs --config-set default_standard Zend
Warning:
file_put_contents(/usr/share/php/data/PHP_CodeSniffer/CodeSniffer.conf):
failed to open stream: Permission denied in
/usr/share/php/PHP/CodeSniffer.php on line 1554

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php-codesniffer depends on:
ii  php5-cli                      5.2.5-3    command-line interpreter for the p

php-codesniffer recommends no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: php-codesniffer
Source-Version: 1.3.4-1

We believe that the bug you reported is fixed in the latest version of
php-codesniffer, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Goirand <[email protected]> (supplier of updated php-codesniffer 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 19 Jul 2012 15:11:03 +0000
Source: php-codesniffer
Binary: php-codesniffer
Architecture: source all
Version: 1.3.4-1
Distribution: unstable
Urgency: low
Maintainer: PKG-PHP-PEAR <[email protected]>
Changed-By: Thomas Goirand <[email protected]>
Description: 
 php-codesniffer - PHP, CSS and JavaScript coding standard analyzer and checker
Closes: 470294 679251
Changes: 
 php-codesniffer (1.3.4-1) unstable; urgency=low
 .
   * Adopting the package (Closes: #679251).
   * Fixes path of CodeSniffer.conf in /etc with a patch (Closes: #470294).
Checksums-Sha1: 
 ec4aaedc0d107beb8b77d023e2ff685b97cd41f0 1400 php-codesniffer_1.3.4-1.dsc
 e5bb52d7d4ee42def0d0d0dadc7280e031cfa94c 5115 
php-codesniffer_1.3.4-1.debian.tar.gz
 fe3e27c4d3a60d878000453eebed74dfe5a4cf46 457170 php-codesniffer_1.3.4-1_all.deb
Checksums-Sha256: 
 d1dbc5e61585a0e2b76da9423c7c29b62c6a2a4691de812082b8418e96d696c5 1400 
php-codesniffer_1.3.4-1.dsc
 68b83b4a40859eeb1f9c8fdf44608e960c9b42bb3d17330c417acfe3a6ecf36f 5115 
php-codesniffer_1.3.4-1.debian.tar.gz
 2e8cc3f3a3b6ec515340b5411df2b416d9c095827da25080a36adf46a59693e9 457170 
php-codesniffer_1.3.4-1_all.deb
Files: 
 6644fbfe26ff76287bdd5e6779cda6ea 1400 php optional php-codesniffer_1.3.4-1.dsc
 8807cea433f655ad2fc47a6c1e54008a 5115 php optional 
php-codesniffer_1.3.4-1.debian.tar.gz
 2323c3a275de8d0aa209df5a7dea0eea 457170 php optional 
php-codesniffer_1.3.4-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlAJKOUACgkQl4M9yZjvmkmNfQCgnAgSW/Bbi2OTsPN6SC6Wn2mV
73MAoJHG5WdegXjuatscMqL5CXoPA3vt
=py/K
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to