Discussion:
Bug#934137: securesystemslib ftbfs in sid
Add Reply
Holger Levsen
2019-08-11 18:40:01 UTC
Reply
Permalink
Hi Lukas,

so I reviewed
https://mentors.debian.net/debian/pool/main/p/python-securesystemslib/python-securesystemslib_0.11.3-1.dsc
and wanted to upload it, thus I tried to build it in pbuilder and sadly
it failes like this:

I: Running cd /build/python-securesystemslib-0.11.3/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin" HOME="/nonexistent" dpkg-buildpackage -us -uc -rfakeroot
dpkg-buildpackage: info: source package python-securesystemslib
dpkg-buildpackage: info: source version 0.11.3-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Lukas Puehringer <***@nyu.edu>
dpkg-buildpackage: info: host architecture amd64
dpkg-source --before-build .
fakeroot debian/rules clean
dh clean --with python3 --buildsystem=pybuild
dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:217: python3.7 setup.py clean
running clean
removing '/build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build' (and everything under it)
'build/bdist.linux-amd64' does not exist -- can't clean it
'build/scripts-3.7' does not exist -- can't clean it
dh_autoreconf_clean -O--buildsystem=pybuild
dh_clean -O--buildsystem=pybuild
dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building python-securesystemslib using existing ./python-securesystemslib_0.11.3.orig.tar.gz
dpkg-source: info: building python-securesystemslib using existing ./python-securesystemslib_0.11.3.orig.tar.gz.asc
dpkg-source: info: building python-securesystemslib in python-securesystemslib_0.11.3-1.debian.tar.xz
dpkg-source: info: building python-securesystemslib in python-securesystemslib_0.11.3-1.dsc
debian/rules build
dh build --with python3 --buildsystem=pybuild
dh_update_autotools_config -O--buildsystem=pybuild
dh_autoreconf -O--buildsystem=pybuild
dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:217: python3.7 setup.py config
running config
dh_auto_build -O--buildsystem=pybuild
I: pybuild base:217: /usr/bin/python3 setup.py build
running build
running build_py
creating /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib
copying securesystemslib/pyca_crypto_keys.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib
copying securesystemslib/keys.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib
copying securesystemslib/unittest_toolbox.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib
copying securesystemslib/ecdsa_keys.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib
copying securesystemslib/settings.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib
copying securesystemslib/schema.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib
copying securesystemslib/hash.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib
copying securesystemslib/exceptions.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib
copying securesystemslib/formats.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib
copying securesystemslib/__init__.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib
copying securesystemslib/ed25519_keys.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib
copying securesystemslib/util.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib
copying securesystemslib/interface.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib
creating /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib/_vendor
copying securesystemslib/_vendor/ssl_match_hostname.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib/_vendor
copying securesystemslib/_vendor/__init__.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib/_vendor
creating /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib/_vendor/ed25519
copying securesystemslib/_vendor/ed25519/science.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib/_vendor/ed25519
copying securesystemslib/_vendor/ed25519/__init__.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib/_vendor/ed25519
copying securesystemslib/_vendor/ed25519/ed25519.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib/_vendor/ed25519
copying securesystemslib/_vendor/ed25519/test_ed25519.py -> /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build/securesystemslib/_vendor/ed25519
dh_auto_test -O--buildsystem=pybuild
I: pybuild base:217: cd /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build; python3.7 -m unittest discover -v tests
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.7/unittest/__main__.py", line 18, in <module>
main(module=None)
File "/usr/lib/python3.7/unittest/main.py", line 100, in __init__
self.parseArgs(argv)
File "/usr/lib/python3.7/unittest/main.py", line 124, in parseArgs
self._do_discovery(argv[2:])
File "/usr/lib/python3.7/unittest/main.py", line 244, in _do_discovery
self.createTests(from_discovery=True, Loader=Loader)
File "/usr/lib/python3.7/unittest/main.py", line 154, in createTests
self.test = loader.discover(self.start, self.pattern, self.top)
File "/usr/lib/python3.7/unittest/loader.py", line 346, in discover
raise ImportError('Start directory is not importable: %r' % start_dir)
ImportError: Start directory is not importable: 'tests'
E: pybuild pybuild:341: test: plugin distutils failed with: exit code=1: cd /build/python-securesystemslib-0.11.3/.pybuild/cpython3_3.7_securesystemslib/build; python3.7 -m unittest discover -v tests
dh_auto_test: pybuild --test -i python{version} -p 3.7 returned exit code 13
make: *** [debian/rules:8: build] Error 255
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
I: copying local configuration
E: Failed autobuilding of package
--
cheers,
Holger

-------------------------------------------------------------------------------
holger@(debian|reproducible-builds|layer-acht).org
PGP fingerprint: B8BF 5413 7B09 D35C F026 FE9D 091A B856 069A AA1C
Holger Levsen
2019-08-12 11:00:02 UTC
Reply
Permalink
Hi Lukas,
Thanks for your efforts! The reason why it fails is that it can't find the
tests, as they are not part of the current release. They will be in the next
release though (see [1]).
ah
DEB_BUILD_OPTIONS=nocheck sbuild -A -s -d unstable
official builds are never build with DEB_BUILD_OPTIONS=nocheck thus we
need to disable the tests in d/rules with an

override_dh_auto_test:
:

block.

Just tested this, it works nicely as it should.

Do you think it makes sense to upload 0.11.3-2 as that or should we wait
for 0.11.4-1 with the tests?
In [2] I also describe how to copy the tests from upstream into the tarball to
test while building. However, that seems to require recording them as downstream
patches, otherwise sbuild complains about local changes.
indeed.


--
cheers,
Holger

-------------------------------------------------------------------------------
holger@(debian|reproducible-builds|layer-acht).org
PGP fingerprint: B8BF 5413 7B09 D35C F026 FE9D 091A B856 069A AA1C
Loading...