Package: tokyotyrant Version: 1.1.40-4 Severity: serious Hi Örjan/Andreas,
I've tried to rebuild tokyotyrant for Univention Corporate Server, a Debian derived distribution based on Debian stable (currently Lenny, our next release will be based on Squeeze). The version of tokyotyrant in Squeeze and sid fails to build from source when build as non-root (which should be the default): --- (..) LD_LIBRARY_PATH=. ./tcrmgr out -port 0 /tmp/ttserver-test.sock two; \ LD_LIBRARY_PATH=. ./tcrmgr get -port 0 /tmp/ttserver-test.sock three > check.out; \ LD_LIBRARY_PATH=. ./tcrmgr get -port 0 /tmp/ttserver-test.sock four > check.out; \ LD_LIBRARY_PATH=. ./tcrmgr get -port 0 /tmp/ttserver-test.sock five > check.out; \ LD_LIBRARY_PATH=. ./tcrmgr mget -port 0 /tmp/ttserver-test.sock one two three four five > check.out; \ LD_LIBRARY_PATH=. ./tcrmgr misc -port 0 /tmp/ttserver-test.sock putlist six sixth seven seventh; \ LD_LIBRARY_PATH=. ./tcrmgr misc -port 0 /tmp/ttserver-test.sock outlist six; \ LD_LIBRARY_PATH=. ./tcrmgr misc -port 0 /tmp/ttserver-test.sock getlist three four five six > check.out; \ LD_LIBRARY_PATH=. ./tcrmgr list -port 0 -pv /tmp/ttserver-test.sock > check.out; \ LD_LIBRARY_PATH=. ./tcrmgr list -port 0 -pv -fm f /tmp/ttserver-test.sock > check.out; \ rm -rf ulog ; mkdir -p ulog /bin/bash: line 3: start-stop-daemon: command not found make[1]: *** [check] Error 1 make[1]: Leaving directory `/home/jmm/tokyo/tokyotyrant-1.1.40' dh_auto_test: make -j1 check returned exit code 2 make: *** [build] Error 29 dpkg-buildpackage: error: debian/rules build gave error exit status 2 --- start-stop-daemon resides under /sbin/ and is not in the standard path of a regular user. Attached patch absolutises the path, which fixes the build. This also affects stable, so you might want to fix it in a point update. Cheers, Moritz
Fix FTBFS since start-stop-daemon resides under /sbin, which isn't in the standard path when building as non-root. diff -aur tokyotyrant-1.1.40.orig//debian/patches/003-run-service-make-check tokyotyrant-1.1.40/debian/patches/003-run-service-make-check --- tokyotyrant-1.1.40.orig//debian/patches/003-run-service-make-check 2010-05-16 18:46:23.000000000 +0200 +++ tokyotyrant-1.1.40/debian/patches/003-run-service-make-check 2011-02-16 14:43:02.000000000 +0100 @@ -71,11 +71,11 @@ + if [ $(test_start_stop) -eq 1 ]; then \ + $(RUNENV); \ + export LD_LIBRARY_PATH; \ -+ start-stop-daemon -v -S -p $(test_pid) -d `pwd` --exec `pwd`/ttserver \ ++ /sbin/start-stop-daemon -v -S -p $(test_pid) -d `pwd` --exec `pwd`/ttserver \ + -- -host $(test_host) -port $(test_port) \ + -ld -dmn -pid $(test_pid) || exit 1; \ + \ -+ trap "start-stop-daemon -v -K -R TERM/30/KILL/5 -p $(test_pid) && rm -f $(test_pid)" 0; \ ++ trap "/sbin/start-stop-daemon -v -K -R TERM/30/KILL/5 -p $(test_pid) && rm -f $(test_pid)" 0; \ + fi; \ + \ + for i in `seq 5`; do \ Nur in tokyotyrant-1.1.40/debian/patches: 003-run-service-make-check~. diff -aur tokyotyrant-1.1.40.orig//Makefile.in tokyotyrant-1.1.40/Makefile.in --- tokyotyrant-1.1.40.orig//Makefile.in 2011-02-16 14:42:22.000000000 +0100 +++ tokyotyrant-1.1.40/Makefile.in 2011-02-16 14:43:19.000000000 +0100 @@ -176,11 +176,11 @@ if [ $(test_start_stop) -eq 1 ]; then \ $(RUNENV); \ export LD_LIBRARY_PATH; \ - start-stop-daemon -v -S -p $(test_pid) -d `pwd` --exec `pwd`/ttserver \ + /sbin/start-stop-daemon -v -S -p $(test_pid) -d `pwd` --exec `pwd`/ttserver \ -- -host $(test_host) -port $(test_port) \ -ld -dmn -pid $(test_pid) || exit 1; \ \ - trap "start-stop-daemon -v -K -R TERM/30/KILL/5 -p $(test_pid) && rm -f $(test_pid)" 0; \ + trap "/sbin/start-stop-daemon -v -K -R TERM/30/KILL/5 -p $(test_pid) && rm -f $(test_pid)" 0; \ fi; \ \ for i in `seq 5`; do \