[php-maint] Bug#670242: php-db: Warnings about static calls to non-static methods from common.php
TreeBoy
debbugs at petethetree.co.uk
Thu Apr 26 14:26:56 UTC 2012
Package: php-db
Followup-For: Bug #670242
Dear Thomas,
I'm glad to be able to say that I have built the package by downloading DB-1.7.14.tgz, renaming it tp php-db-1.7.14.tar.gz and then running:
dpkg-buildpackage -us -uc
This produced the following output which I hope is correct:
$ dpkg-buildpackage -us -uc
dpkg-buildpackage: source package php-db
dpkg-buildpackage: source version 1.7.14-1
dpkg-buildpackage: source changed by Thomas Goirand <zigo at debian.org>
dpkg-buildpackage: host architecture amd64
dpkg-source --before-build php-db
dpkg-source: info: patches are not applied, applying them now
dpkg-source: info: applying static-function-for-isError-and-isManip
fakeroot debian/rules clean
dh clean --buildsystem=phppear --with phppear
dh_testdir -O--buildsystem=phppear
dh_auto_clean -O--buildsystem=phppear
dh_clean -O--buildsystem=phppear
dpkg-source -b php-db
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building php-db using existing ./php-db_1.7.14.orig.tar.gz
dpkg-source: info: building php-db in php-db_1.7.14-1.debian.tar.gz
dpkg-source: info: building php-db in php-db_1.7.14-1.dsc
debian/rules build
dh build --buildsystem=phppear --with phppear
dh_testdir -O--buildsystem=phppear
dh_auto_configure -O--buildsystem=phppear
dh_auto_build -O--buildsystem=phppear
dh_auto_test -O--buildsystem=phppear
fakeroot debian/rules binary
dh binary --buildsystem=phppear --with phppear
dh_testroot -O--buildsystem=phppear
dh_prep -O--buildsystem=phppear
dh_installdirs -O--buildsystem=phppear
dh_auto_install -O--buildsystem=phppear
warning: pear/DB requires package "pear/PEAR" (version >= 1.0b1)
install ok: channel://pear.php.net/DB-1.7.14
PHP Notice: Undefined index: changelog in /usr/share/pkg-php-tools/scripts/phppkginfo on line 244
PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /usr/share/pkg-php-tools/scripts/phppkginfo on line 245
PHP Warning: array_reverse() expects parameter 1 to be array, null given in /usr/share/pkg-php-tools/scripts/phppkginfo on line 248
PHP Warning: Invalid argument supplied for foreach() in /usr/share/pkg-php-tools/scripts/phppkginfo on line 249
dh_install -O--buildsystem=phppear
dh_installdocs -O--buildsystem=phppear
dh_installchangelogs -O--buildsystem=phppear
dh_installexamples -O--buildsystem=phppear
dh_installman -O--buildsystem=phppear
dh_installcatalogs -O--buildsystem=phppear
dh_installcron -O--buildsystem=phppear
dh_installdebconf -O--buildsystem=phppear
dh_installemacsen -O--buildsystem=phppear
dh_installifupdown -O--buildsystem=phppear
dh_installinfo -O--buildsystem=phppear
dh_pysupport -O--buildsystem=phppear
dh_pysupport: This program is deprecated, you should use dh_python2 instead. Migration guide: http://deb.li/dhs2p
dh_installinit -O--buildsystem=phppear
dh_installmenu -O--buildsystem=phppear
dh_installmime -O--buildsystem=phppear
dh_installmodules -O--buildsystem=phppear
dh_installlogcheck -O--buildsystem=phppear
dh_installlogrotate -O--buildsystem=phppear
dh_installpam -O--buildsystem=phppear
dh_installppp -O--buildsystem=phppear
dh_installudev -O--buildsystem=phppear
dh_installwm -O--buildsystem=phppear
dh_installxfonts -O--buildsystem=phppear
dh_installgsettings -O--buildsystem=phppear
dh_bugfiles -O--buildsystem=phppear
dh_ucf -O--buildsystem=phppear
dh_lintian -O--buildsystem=phppear
dh_gconf -O--buildsystem=phppear
dh_icons -O--buildsystem=phppear
dh_perl -O--buildsystem=phppear
dh_usrlocal -O--buildsystem=phppear
dh_phppear -O--buildsystem=phppear
dh_link -O--buildsystem=phppear
dh_compress -O--buildsystem=phppear
dh_fixperms -O--buildsystem=phppear
dh_installdeb -O--buildsystem=phppear
dh_gencontrol -O--buildsystem=phppear
dpkg-gencontrol: warning: package php-db: unused substitution variable ${phppear:Debian-Depends}
dpkg-gencontrol: warning: package php-db: unused substitution variable ${phppear:summary}
dpkg-gencontrol: warning: package php-db: unused substitution variable ${phppear:description}
dpkg-gencontrol: warning: package php-db: unused substitution variable ${phppear:channel}
dh_md5sums -O--buildsystem=phppear
dh_builddeb -O--buildsystem=phppear
dpkg-deb: building package `php-db' in `../php-db_1.7.14-1_all.deb'.
dpkg-genchanges >../php-db_1.7.14-1_amd64.changes
dpkg-genchanges: including full source code in upload
dpkg-source --after-build php-db
dpkg-source: info: unapplying static-function-for-isError-and-isManip
dpkg-buildpackage: full upload (original source is included)
I then installed the package which has now removed the problem.
Bear in mind that my script is not too advanced at the moment: it merely does a username and sha1 lookup and then a list of a single table, without using prepared statements or anything, so I cannot call this a complete coverage test, but it has removed the problem I originally reported.
Many thanks for your help.
Peter
-- System Information:
Debian Release: wheezy/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages php-db depends on:
ii php-pear 5.4.1~rc1-1
php-db recommends no packages.
php-db suggests no packages.
-- no debconf information
More information about the pkg-php-maint
mailing list