I tried your procedure, that's to say: sudo apt-get build-dep xapian-bindings sudo apt-get install php5-dev php5-cli apt-get source xapian-bindings cd xapian-bindings-1.2.* rm debian/control env PHP_VERSIONS=5 debian/rules maint debuild -e PHP_VERSIONS=5 -us -uc cd .. sudo dpkg -i php5-xapian_*.deb Though, it is failing with this error message: dpkg-buildpackage -rfakeroot -D -us -uc dpkg-buildpackage: warning: using a gain-root-command while being root dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): dpkg-buildpackage: source package xapian-bindings dpkg-buildpackage: source version 1.2.3-3 dpkg-buildpackage: source changed by Olly Betts <olly at survex.com> dpkg-source --before-build xapian-bindings-1.2.3 dpkg-buildpackage: host architecture amd64 fakeroot debian/rules clean dh_testdir dh_testroot rm -rf debian/build rm -f config.sub config.guess dh_clean dpkg-source -b xapian-bindings-1.2.3 dpkg-source: info: using source format `3.0 (quilt)' dpkg-source: info: building xapian-bindings using existing ./xapian-bindings_1.2.3.orig.tar.gz dpkg-source: warning: ignoring deletion of file config.guess dpkg-source: warning: ignoring deletion of file config.sub dpkg-source: info: building xapian-bindings in xapian-bindings_1.2.3-3.debian.tar.gz dpkg-source: info: building xapian-bindings in xapian-bindings_1.2.3-3.dsc debian/rules build dh_testdir for python in python2.5 python2.6; do \ set -e; \ /usr/bin/make -C debian/build/$python ; \ make check -C debian/build/$python ; \ done make: *** debian/build/python2.5: No such file or directory. Stop. make: *** [debian/build-stamp] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 debuild: fatal error at line 1325: dpkg-buildpackage -rfakeroot -D -us -uc failed Any idea?
On Mon, Jun 27, 2011 at 11:35:20PM +0200, J?r?me Warnier wrote:> I tried your procedure, that's to say: > > sudo apt-get build-dep xapian-bindings > sudo apt-get install php5-dev php5-cli > apt-get source xapian-bindings > cd xapian-bindings-1.2.* > rm debian/control > env PHP_VERSIONS=5 debian/rules maint > debuild -e PHP_VERSIONS=5 -us -uc > cd .. > sudo dpkg -i php5-xapian_*.deb > > Though, it is failing with this error message: > dpkg-buildpackage -rfakeroot -D -us -uc > dpkg-buildpackage: warning: using a gain-root-command while being rootYou don't need to run the build as root (and therefore shouldn't really - it's best to do as little as root as possible). But I don't think that's the problem here.> dpkg-source: info: building xapian-bindings in xapian-bindings_1.2.3-3.dsc > debian/rules build > dh_testdir > for python in python2.5 python2.6; do \ > set -e; \ > /usr/bin/make -C debian/build/$python ; \ > make check -C debian/build/$python ; \ > done > make: *** debian/build/python2.5: No such file or directory. Stop. > make: *** [debian/build-stamp] Error 2 > dpkg-buildpackage: error: debian/rules build gave error exit status 2 > debuild: fatal error at line 1325: > dpkg-buildpackage -rfakeroot -D -us -uc failedI guess this must be debian stable (i.e. squeeze) from the version number of xapian-bindings. I just tried this on my stable machine (which is up to date with the latest point release) and it builds with the commands given (I'm pretty certain I also tried it originally (before the point release), which is how I spotted the problem with the argument order in the first version I posted). Comparing the output from my build with yours, yours doesn't run the configure target in debian/rules, which suggests to me that you already had the stamp file for it present - i.e. you didn't start from a clean source tree. If you "rm -rf xapian-bindings-1.2.3" and start again from "apt-get source xapian-bindings", does that help? If not, posting the output of this should be helpful: cd xapian-bindings-1.2.3;ls -lR Cheers, Olly