Package: php-codesniffer
Version: 2.5.1-1
Severity: serious
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu xenial ubuntu-patch

Hi folks,

The php-codesniffer package uses code from the xml PHP extension
(simplexml_load_string).  In php7.0 in unstable, the xml extension has now
been split into a separate binary package.  This makes php-codesniffer fail
to run unless this additional package is installed.

In Ubuntu, I've applied the attached patch to fix this.  Please consider
applying it in Debian as well.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org
diff -Nru php-codesniffer-2.5.1/debian/control php-codesniffer-2.5.1/debian/control
--- php-codesniffer-2.5.1/debian/control	2016-02-14 00:34:40.000000000 -0800
+++ php-codesniffer-2.5.1/debian/control	2016-02-28 22:23:15.000000000 -0800
@@ -5,6 +5,7 @@
 Uploaders: David Prévot <taf...@debian.org>
 Build-Depends: debhelper (>= 8),
                phpunit (>= 3.6) <!nocheck !stage1>,
+               php-xml,
                pkg-php-tools (>= 1.1~)
 Build-Depends-Indep: php-pear
 Standards-Version: 3.9.7
@@ -14,7 +15,7 @@
 
 Package: php-codesniffer
 Architecture: all
-Depends: ${misc:Depends}, ${phppear:Debian-Depends}
+Depends: ${misc:Depends}, ${phppear:Debian-Depends}, php-xml
 Recommends: ${phppear:Debian-Recommends}
 Breaks: ${phppear:Debian-Breaks}
 Description: PHP, CSS and JavaScript coding standard analyzer and checker

Reply via email to