Hi everyone,
On 02/22/2016 03:45 PM, Danny Edel wrote: > I have prepared a patch, and verified it against a jessie-backports > cowbuilder, but I'm not merging it into master without checking in > with you this time : ) Interesting. On a current jessie (plain + git/master-testsuite-enabled's build-deps from bpo) I get an error about python3.4's unittest not recognizing arguments from PYBUILD_TEST_ARGS - see attached build.log. Which version of libpython3.4-stdlib ends up being used within your chroot? (mine is 3.4.2-1) > My motivation for activating the testsuite is to ensure that the > libraries in Debian are compatible with the ones upstream expects -- > this will get more relevant for stable-backports, once sid is 1-2 years > different from stable. > In general, I'd rather get errors at build time than from users after > they upgrade their machine, and running the upstream test suite seems > like a good start into this direction. Sure, big bold +1! Daniel
dpkg-buildpackage: source package borgbackup dpkg-buildpackage: source version 1.0.0~rc1-2 dpkg-buildpackage: source distribution unstable dpkg-buildpackage: source changed by Gianfranco Costamagna <locutusofb...@debian.org> dpkg-source --before-build borg dpkg-buildpackage: host architecture amd64 dpkg-source: info: applying privacy/0001-Remove-codecov.io-and-travis-ci.org-badges.patch dpkg-source: info: applying privacy/0002-README.rst-Replace-img-src-with-text-link.patch dpkg-source: info: applying 0003-disable-llfuse-tests-on-Debian.patch fakeroot debian/rules clean dh clean --with python3,sphinxdoc --buildsystem=pybuild dh_testdir -O--buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild I: pybuild base:170: python3.4 setup.py clean your setuptools is too old (<12) setuptools_scm functionality is degraded running clean removing '/home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build' (and everything under it) 'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-3.4' does not exist -- can't clean it dh_clean -O--buildsystem=pybuild debian/rules build dh build --with python3,sphinxdoc --buildsystem=pybuild dh_testdir -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild I: pybuild base:170: python3.4 setup.py config your setuptools is too old (<12) setuptools_scm functionality is degraded running config dh_auto_build -O--buildsystem=pybuild I: pybuild base:170: /usr/bin/python3 setup.py build your setuptools is too old (<12) setuptools_scm functionality is degraded running build running build_py creating /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/helpers.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/fuse.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/hash_sizes.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/upgrader.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/remote.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/lrucache.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/key.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/xattr.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/platform.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/archive.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/_version.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/shellpattern.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/__main__.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/archiver.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/locking.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/logger.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/__init__.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/cache.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg copying borg/repository.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg creating /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite copying borg/testsuite/helpers.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite copying borg/testsuite/compress.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite copying borg/testsuite/upgrader.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite copying borg/testsuite/lrucache.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite copying borg/testsuite/key.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite copying borg/testsuite/xattr.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite copying borg/testsuite/platform.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite copying borg/testsuite/archive.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite copying borg/testsuite/shellpattern.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite copying borg/testsuite/archiver.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite copying borg/testsuite/hashindex.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite copying borg/testsuite/crypto.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite copying borg/testsuite/locking.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite copying borg/testsuite/logger.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite copying borg/testsuite/__init__.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite copying borg/testsuite/chunker.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite copying borg/testsuite/repository.py -> /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/testsuite running build_ext cythoning borg/compress.pyx to borg/compress.c building 'borg.compress' extension creating build creating build/temp.linux-x86_64-3.4 creating build/temp.linux-x86_64-3.4/borg x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include -I/usr/include -I/usr/include/python3.4m -c borg/compress.c -o build/temp.linux-x86_64-3.4/borg/compress.o x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -Wl,-z,now -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/borg/compress.o -llz4 -o /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/compress.cpython-34m.so cythoning borg/crypto.pyx to borg/crypto.c building 'borg.crypto' extension x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include -I/usr/include -I/usr/include/python3.4m -c borg/crypto.c -o build/temp.linux-x86_64-3.4/borg/crypto.o x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -Wl,-z,now -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/borg/crypto.o -lcrypto -o /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/crypto.cpython-34m.so cythoning borg/chunker.pyx to borg/chunker.c building 'borg.chunker' extension x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c borg/chunker.c -o build/temp.linux-x86_64-3.4/borg/chunker.o In file included from borg/chunker.c:238:0: borg/_chunker.c: In function âchunker_processâ: borg/_chunker.c:211:44: warning: pointer targets in passing argument 1 of âPyMemoryView_FromMemoryâ differ in signedness [-Wpointer-sign] return PyMemoryView_FromMemory(c->data + c->position, c->remaining, PyBUF_READ); ^ In file included from /usr/include/python3.4m/Python.h:84:0, from borg/chunker.c:16: /usr/include/python3.4m/memoryobject.h:24:24: note: expected âchar *â but argument is of type âuint8_t *â PyAPI_FUNC(PyObject *) PyMemoryView_FromMemory(char *mem, Py_ssize_t size, ^ In file included from borg/chunker.c:238:0: borg/_chunker.c:243:36: warning: pointer targets in passing argument 1 of âPyMemoryView_FromMemoryâ differ in signedness [-Wpointer-sign] return PyMemoryView_FromMemory(c->data + old_last, n, PyBUF_READ); ^ In file included from /usr/include/python3.4m/Python.h:84:0, from borg/chunker.c:16: /usr/include/python3.4m/memoryobject.h:24:24: note: expected âchar *â but argument is of type âuint8_t *â PyAPI_FUNC(PyObject *) PyMemoryView_FromMemory(char *mem, Py_ssize_t size, ^ x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -Wl,-z,now -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/borg/chunker.o -o /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/chunker.cpython-34m.so cythoning borg/hashindex.pyx to borg/hashindex.c building 'borg.hashindex' extension x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c borg/hashindex.c -o build/temp.linux-x86_64-3.4/borg/hashindex.o x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -Wl,-z,now -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/borg/hashindex.o -o /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/hashindex.cpython-34m.so cythoning borg/platform_linux.pyx to borg/platform_linux.c building 'borg.platform_linux' extension x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c borg/platform_linux.c -o build/temp.linux-x86_64-3.4/borg/platform_linux.o x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -Wl,-z,now -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/borg/platform_linux.o -lacl -o /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build/borg/platform_linux.cpython-34m.so debian/rules override_dh_auto_test make[1]: Entering directory '/home/dhrdev/tmp/borg' fakeroot dh_auto_test I: pybuild base:170: cd /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build; python3.4 -m unittest discover -v --cov=borg --cov-config=../.coveragerc --pyargs borg.testsuite usage: python3.4 -m unittest discover [-h] [-v] [-q] [-f] [-c] [-b] [-s START] [-p PATTERN] [-t TOP] python3.4 -m unittest discover: error: unrecognized arguments: --cov=borg --cov-config=../.coveragerc --pyargs E: pybuild pybuild:256: test: plugin distutils failed with: exit code=2: cd /home/dhrdev/tmp/borg/.pybuild/pythonX.Y_3.4/build; python3.4 -m unittest discover -v --cov=borg --cov-config=../.coveragerc --pyargs borg.testsuite dh_auto_test: pybuild --test -i python{version} -p 3.4 --dir . returned exit code 13 debian/rules:37: recipe for target 'override_dh_auto_test' failed make[1]: *** [override_dh_auto_test] Error 13 make[1]: Leaving directory '/home/dhrdev/tmp/borg' debian/rules:23: recipe for target 'build' failed make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2