[pkg-php-pear] Switching php-xml-parser to pkg-php-tools packaging
Mathieu Parent (Debian)
sathieu at debian.org
Wed Feb 8 08:16:29 UTC 2012
2012/2/2 Thomas Goirand <thomas at goirand.fr>:
> Hi Thijs, and I hope Mathieu, if he has time to read,
Hi Thomas and Thijs,
> I've been trying to switch php-xml-parser to use pkg-php-tools, like I
> did with absolutely all the 23 PEAR packages that I maintain in the
> PKG-PHP-PEAR team (some that I don't maintain in the team will probably
> soon be switched to it). In the process, I've been switching it (eg:
> php-xml-parser) to Git as well, since you said it wasn't an issue for
> another PEAR stuff.
>
> Anyway, the issue is that, with upstream package.xml, when I use
> pkg-php-tools, nothing gets packaged at all, the resulting is an empty
> Debian package.
I couldn't reproduce your problem. If I build php-xml-parser with
debian-sid branch at af7b5491, it builds correctly:
$ git checkout debian-sid
$ git reset --hard af7b5491cc04
$ git tag upstream/1.3.4 5da73d6
$ git-buildpackage
dh clean --buildsystem=phppear --with phppear
dh_testdir -O--buildsystem=phppear
dh_auto_clean -O--buildsystem=phppear
dh_clean -O--buildsystem=phppear
gbp:info: php-xml-parser_1.3.4.orig.tar.gz does not exist, creating
from 'upstream/1.3.4'
gbp:info: Exporting 'HEAD' to
'/home/mathieu/src/pkg-php/build-area/php-xml-parser-tmp'
gbp:info: Moving
'/home/mathieu/src/pkg-php/build-area/php-xml-parser-tmp' to
'/home/mathieu/src/pkg-php/build-area/php-xml-parser-1.3.4'
dpkg-buildpackage -rfakeroot -D -us -uc -i -I
dpkg-buildpackage: paquet source php-xml-parser
dpkg-buildpackage: version source 1.3.4-1
dpkg-buildpackage: source changé par Thomas Goirand <zigo at debian.org>
dpkg-source -i -I --before-build php-xml-parser-1.3.4
dpkg-buildpackage: architecture hôte i386
dpkg-source: info: patches are not applied, applying them now
dpkg-source: info: mise en place de 001parser.php_compat_php_5.3.x.diff
fakeroot debian/rules clean
(... log skipped ...)
dpkg-buildpackage: envoi complet (inclusion du code source d'origine)
Now running lintian...
Finished running lintian.
(...)
$ dpkg-deb --contents ../build-area/php-xml-parser_1.3.4-1_all.deb
drwxr-xr-x root/root 0 2012-02-08 09:02 ./
drwxr-xr-x root/root 0 2012-02-08 09:02 ./usr/
drwxr-xr-x root/root 0 2012-02-08 09:02 ./usr/share/
drwxr-xr-x root/root 0 2012-02-08 09:02 ./usr/share/doc/
drwxr-xr-x root/root 0 2012-02-08 09:02 ./usr/share/doc/php-xml-parser/
-rw-r--r-- root/root 2029 2012-01-29 16:15
./usr/share/doc/php-xml-parser/copyright
drwxr-xr-x root/root 0 2012-02-08 09:02
./usr/share/doc/php-xml-parser/XML_Parser/
drwxr-xr-x root/root 0 2012-02-08 09:02
./usr/share/doc/php-xml-parser/XML_Parser/examples/
-rw-r--r-- root/root 87 2012-02-08 09:02
./usr/share/doc/php-xml-parser/XML_Parser/examples/xml_parser_file.xml
-rw-r--r-- root/root 152 2012-02-08 09:02
./usr/share/doc/php-xml-parser/XML_Parser/examples/xml_parser_simple2.xml
-rw-r--r-- root/root 1140 2012-02-08 09:02
./usr/share/doc/php-xml-parser/XML_Parser/examples/xml_parser_simple1.php
-rw-r--r-- root/root 1050 2012-02-08 09:02
./usr/share/doc/php-xml-parser/XML_Parser/examples/xml_parser_file.php
-rw-r--r-- root/root 1362 2012-02-08 09:02
./usr/share/doc/php-xml-parser/XML_Parser/examples/xml_parser_simple2.php
-rw-r--r-- root/root 207 2012-02-08 09:02
./usr/share/doc/php-xml-parser/XML_Parser/examples/xml_parser_simple1.xml
-rw-r--r-- root/root 875 2012-02-08 09:02
./usr/share/doc/php-xml-parser/XML_Parser/examples/xml_parser_funcmode.php
-rw-r--r-- root/root 1336 2012-02-08 09:02
./usr/share/doc/php-xml-parser/XML_Parser/examples/xml_parser_simple_handler.php
-rw-r--r-- root/root 1022 2012-02-08 09:02
./usr/share/doc/php-xml-parser/XML_Parser/examples/xml_parser_handler.php
-rw-r--r-- root/root 3621 2012-02-08 09:02
./usr/share/doc/php-xml-parser/package.xml.gz
-rw-r--r-- root/root 1918 2012-02-08 09:02
./usr/share/doc/php-xml-parser/changelog.gz
-rw-r--r-- root/root 1255 2012-01-29 16:15
./usr/share/doc/php-xml-parser/changelog.Debian.gz
drwxr-xr-x root/root 0 2012-02-08 09:02 ./usr/share/php/
drwxr-xr-x root/root 0 2012-02-08 09:02 ./usr/share/php/XML/
drwxr-xr-x root/root 0 2012-02-08 09:02 ./usr/share/php/XML/Parser/
-rw-r--r-- root/root 9069 2012-02-08 09:02
./usr/share/php/XML/Parser/Simple.php
-rw-r--r-- root/root 21247 2012-02-08 09:02 ./usr/share/php/XML/Parser.php
drwxr-xr-x root/root 0 2012-02-08 09:02 ./usr/share/php/.registry/
-rw-r--r-- root/root 26003 2012-02-08 09:02
./usr/share/php/.registry/xml_parser.reg
drwxr-xr-x root/root 0 2012-02-08 09:02 ./usr/share/php/tests/
drwxr-xr-x root/root 0 2012-02-08 09:02
./usr/share/php/tests/XML_Parser/
drwxr-xr-x root/root 0 2012-02-08 09:02
./usr/share/php/tests/XML_Parser/tests/
-rw-r--r-- root/root 2314 2012-02-08 09:02
./usr/share/php/tests/XML_Parser/tests/005.phpt
-rw-r--r-- root/root 695 2012-02-08 09:02
./usr/share/php/tests/XML_Parser/tests/004b.phpt
-rw-r--r-- root/root 3654 2012-02-08 09:02
./usr/share/php/tests/XML_Parser/tests/AllTests.php
-rw-r--r-- root/root 39 2012-02-08 09:02
./usr/share/php/tests/XML_Parser/tests/test2.xml
-rw-r--r-- root/root 1395 2012-02-08 09:02
./usr/share/php/tests/XML_Parser/tests/003.phpt
-rw-r--r-- root/root 914 2012-02-08 09:02
./usr/share/php/tests/XML_Parser/tests/bug-9328c.phpt
-rw-r--r-- root/root 1307 2012-02-08 09:02
./usr/share/php/tests/XML_Parser/tests/001.phpt
-rw-r--r-- root/root 911 2012-02-08 09:02
./usr/share/php/tests/XML_Parser/tests/bug-9328b.phpt
-rw-r--r-- root/root 694 2012-02-08 09:02
./usr/share/php/tests/XML_Parser/tests/004.phpt
-rw-r--r-- root/root 872 2012-02-08 09:02
./usr/share/php/tests/XML_Parser/tests/bug-9328d.phpt
-rw-r--r-- root/root 39 2012-02-08 09:02
./usr/share/php/tests/XML_Parser/tests/test3.xml
-rw-r--r-- root/root 836 2012-02-08 09:02
./usr/share/php/tests/XML_Parser/tests/bug-9328.phpt
-rw-r--r-- root/root 1323 2012-02-08 09:02
./usr/share/php/tests/XML_Parser/tests/002.phpt
So everything went well and /usr/share/php/XML/Parser/Simple.php is here.
> [...]
Once you have some time ;-), can you try to reproduce your problem
with pkg-php-tools 0.6 and post the build log here?
Cheers
--
Mathieu Parent
For reference:
http://pear.php.net/manual/en/guide.users.concepts.filerole.php
https://pear.php.net/manual/en/guide.developers.package2.dir.php
More information about the pkg-php-pear
mailing list