Package: src:python-crypto
Version: 2.6.1-5
User: sanv...@debian.org
Usertags: binary-indep
Severity: important

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(i.e. only architecture-independent packages), and it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with=python2,python3 --buildsystem=pybuild
   dh_testdir -i -O--buildsystem=pybuild
   dh_auto_configure -i -O--buildsystem=pybuild
I: pybuild base:184: python2.7 setup.py config 
running config
I: pybuild base:184: python2.7-dbg setup.py config 
running config
[32474 refs]
I: pybuild base:184: python3.5 setup.py config 
running config
I: pybuild base:184: python3.4 setup.py config 

[... snipped ...]

pybuild -s custom --build -p 2.7 \
        --build-args="env PYTHONPATH={build_dir} epydoc --config 
Doc/epydoc-config"
I: pybuild base:184: env 
PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build epydoc --config 
Doc/epydoc-config
  [.........................................................................]
Warning: 8 markup errors were found while processing docstrings.  Use 
         the verbose switch (-v) to display markup errors.
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_test -- -s custom --test-args="{interpreter} setup.py test"
I: pybuild base:184: python2.7 setup.py test
running test
......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
 ...........................................SelfTest: You can ignore the 
RandomPool_DeprecationWarning that follows.
..............................
----------------------------------------------------------------------
Ran 1071 tests in 9.458s

OK
I: pybuild base:184: python2.7-dbg setup.py test
running test
Traceback (most recent call last):
  File "setup.py", line 451, in <module>
    core.setup(**kw)
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 316, in run
    from Crypto import SelfTest
ImportError: No module named Crypto
[33313 refs]
E: pybuild pybuild:274: test: plugin custom failed with: exit code=1: 
python2.7-dbg setup.py test
dh_auto_test: pybuild --test -i python{version}-dbg -p 2.7 -s custom 
--test-args={interpreter} setup.py test --dir . returned exit code 13
debian/rules:21: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:9: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

Sorry not to have a fix, as I am reporting many bugs similar to
this one. The common hints are:

* If the only architecture-independent packages are dummy transitional
ones and they were released with jessie, the easy fix is to drop them
now.

* When using "dh", it is allowed to use (independently)
optional targets override_dh_foo-arch and override_dh_foo-indep
(for several values of "foo").


Once that both "dpkg-buildpackage -A" and "dpkg-buildpackage -B" work
properly, the package would be suitable to be uploaded in source-only
form if you wish.

Thanks.

Reply via email to