On Mon, 20 Jun 2016 11:12:14 +0200 Antonio Ospite <a...@ao2.it> wrote: > Package: lintian > Version: 2.5.45 > Followup-For: Bug #818962 > > Hi, > Hello,
> any news about this issue? I was not subscribed to this bug (this should be automatic when mailing a bug IMO), but this lintian error annoys me often. Please review the attached patch. Regards Mathieu Parent
From acf30fa4b0b955779229d4d8ccc5ad2a6a48e7e6 Mon Sep 17 00:00:00 2001 From: Mathieu Parent <mathieu.par...@nantesmetropole.fr> Date: Thu, 3 Mar 2016 10:50:36 +0100 Subject: [PATCH] There is now a php-cli package --- checks/scripts.desc | 11 +++++------ data/scripts/versioned-interpreters | 2 +- t/tests/legacy-scripts/debian/debian/rules | 4 ++-- t/tests/legacy-scripts/tags | 2 +- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/checks/scripts.desc b/checks/scripts.desc index 12a642b..cd7dfb4 100644 --- a/checks/scripts.desc +++ b/checks/scripts.desc @@ -220,13 +220,12 @@ Info: Packages that use mawk scripts must depend on the mawk package. Tag: php-script-but-no-phpX-cli-dep Severity: important Certainty: certain -Info: Packages with PHP scripts must depend on a phpX-cli package such as - php5-cli. Note that a dependency on a php-cgi package (such as php5-cgi) - is needlessly strict and forces the user to install a package that isn't - needed. +Info: Packages with PHP scripts must depend on the php-cli package. + Note that a dependency on a php-cgi package (such as php7.0-cgi) is needlessly + strict and forces the user to install a package that isn't needed. . - In some cases a weaker relationship, such as Suggests or Recommends, will - be more appropriate. + In some cases a weaker relationship, such as Suggests or Recommends, will be + more appropriate. . Lintian can only recognize phpX-cli dependencies for values of X that it knows are available in the archive. You will get this warning if you diff --git a/data/scripts/versioned-interpreters b/data/scripts/versioned-interpreters index fff44c2..3b2fa00 100644 --- a/data/scripts/versioned-interpreters +++ b/data/scripts/versioned-interpreters @@ -73,7 +73,7 @@ guile => /usr/bin, guile-([\d.]+), guile-$1, 1.6 1.8, jruby => /usr/bin, jruby([\d.]+), jruby$1, 1.0 1.1 1.2 lua => /usr/bin, lua([\d.]+), lua$1, 40 50 5.1 5.2 octave => /usr/bin, octave([\d.]+), octave$1, 3.0 3.2 -php => /usr/bin, php(\d+), php$1-cli, 5, @NO_DEFAULT_DEPS@ +php => /usr/bin, php([\d.]+), php$1-cli, 7.0, php-cli pike => /usr/bin, pike([\d.]+), pike$1 | pike$1-core, 7.6 7.8, @NO_DEFAULT_DEPS@ python => /usr/bin, python([\d.]+), python$1:any | python$1-minimal:any, 2.7, @SKIP_UNVERSIONED@ ruby => /usr/bin, ruby([\d.]+), ruby$1, 1.8 1.9, @SKIP_UNVERSIONED@ diff --git a/t/tests/legacy-scripts/debian/debian/rules b/t/tests/legacy-scripts/debian/debian/rules index 25b6f9e..a615bd6 100755 --- a/t/tests/legacy-scripts/debian/debian/rules +++ b/t/tests/legacy-scripts/debian/debian/rules @@ -63,8 +63,8 @@ binary-indep: install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other install -m 755 phpfoo $(tmp)/usr/share/scripts/ - sed 's/php$$/php5/' phpfoo > $(tmp)/usr/share/scripts/php5foo - chmod 755 $(tmp)/usr/share/scripts/php5foo + sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo + chmod 755 $(tmp)/usr/share/scripts/php7.0foo echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in chmod 644 $(tmp)/usr/share/scripts/foobar.in diff --git a/t/tests/legacy-scripts/tags b/t/tests/legacy-scripts/tags index 3f2854c..d229820 100644 --- a/t/tests/legacy-scripts/tags +++ b/t/tests/legacy-scripts/tags @@ -13,7 +13,7 @@ E: scripts: init.d-script-has-unterminated-lsb-section etc/init.d/lsb-broken:15 E: scripts: missing-dep-for-interpreter jruby => jruby | jruby1.0 | jruby1.1 | jruby1.2 (usr/bin/jruby-broken) E: scripts: missing-dep-for-interpreter lefty => graphviz (usr/bin/lefty-foo) E: scripts: package-installs-python-bytecode usr/lib/python2.3/site-packages/test.pyc -E: scripts: php-script-but-no-phpX-cli-dep usr/share/scripts/php5foo +E: scripts: php-script-but-no-phpX-cli-dep usr/share/scripts/php7.0foo E: scripts: php-script-but-no-phpX-cli-dep usr/share/scripts/phpfoo E: scripts: python-script-but-no-python-dep usr/bin/py2foo E: scripts: python-script-but-no-python-dep usr/bin/pyfoo -- 2.8.1