PHP bindings fail on Ubuntu for xapian-bindings-1.2.21

Olly Betts olly at survex.com
Sat Mar 26 23:04:08 GMT 2016


On Sat, Mar 26, 2016 at 04:51:35PM -0500, Yannick Warnier wrote:
> On an Ubuntu 15.10, following the docs at
> https://trac.xapian.org/wiki/FAQ/PHP%20Bindings%20Package
> 
> When
> 
>  running debuild -e PHP_VERSIONS=5 -us -uc
> 
> I get (sorry for the French):
> 
> 
> "
> dpkg-buildpackage -rfakeroot -D -us -uc
> dpkg-buildpackage: paquet source xapian-bindings
> dpkg-buildpackage: version source 1.2.21-2.1
> dpkg-buildpackage: distribution source unstable
> dpkg-buildpackage: source changé par Matthias Klose <doko at debian.org>
>  dpkg-source --before-build xapian-bindings-1.2.21
> dpkg-buildpackage: architecture hôte amd64
>  fakeroot debian/rules clean
> dh_testdir
> dh_testroot
> dh_autotools-dev_restoreconfig
> dh_clean
>  dpkg-source -b xapian-bindings-1.2.21
> dpkg-source: info: utilisation du format source « 3.0 (quilt) »
> dpkg-source: erreur: fichier binaire non souhaité :
> debian/build/python2.7/python/xapian/__init__.pyo
> dpkg-source: erreur: fichier binaire non souhaité :
> debian/build/python2.7/python/xapian/__init__.pyc
> dpkg-source: erreur: 2 fichiers binaires non souhaités ont été
> détectés (il est nécessaire de les ajouter dans
> debian/source/include-binaries pour autoriser leur inclusion).
> dpkg-buildpackage: erreur: dpkg-source -b xapian-bindings-1.2.21 a
> produit une erreur de sortie de type 29
> debuild: fatal error at line 1374:
> dpkg-buildpackage -rfakeroot -D -us -uc failed
> "

Assuming you did:

echo php > debian/bindings-to-package

Then the python bindings shouldn't be getting built at all.  I guess
Ubuntu's additional changes to the package have broken this mechanism -
sadly there's not much I can do to prevent them doing that.  Your best
option is probably to start from the packages here:

https://launchpad.net/~xapian-backports/+archive/ubuntu/ppa

Or take them from debian unstable and also do:

echo wily > debian/codename

(Or whatever the codename is for the Ubuntu version you're building
for).

> On a Debian Wheezy, the sources are still at xapian-bindings-1.2.12
> and I get the following:
> 
> "
> make  check-TESTS
> make[4]: Entering directory
> `/home/ywarnier/xapian-bindings-1.2.12/debian/build/php5/php'
> /bin/bash: line 5:   313 Segmentation fault      /usr/bin/php5 -n -d
> safe_mode=off -d enable_dl=on -d extension_dir='/home/ywarnier/xapian-bindings-1.2.12/debian/build/php5/php/.libs'
> -d include_path='php5:../../../../php/php5' ${dir}$tst
> FAIL: smoketest.php
> =======================================
> 1 of 1 test failed

That's probably this bug:

https://trac.xapian.org/ticket/652

It was fixed in 1.2.19, which only seems to manifest for PHP >= 5.4.

If you don't want to subclass C++ classes in PHP, just skip the
testsuite when building the package (the FAQ entry describes how to).

Cheers,
    Olly



More information about the Xapian-discuss mailing list