Package: src:python-axolotl
Version: 0.1.35-2
Severity: serious
Dear maintainer:
I tried to build this package in stretch with "dpkg-buildpackage -A"
but it failed:
--------------------------------------------------------------------------------
[...]
debian/rules build-indep
dh build-indep --with python2,python3,quilt --buildsystem=pybuild
dh_testdir -i -O--buildsystem=pybuild
dh_update_autotools_config -i -O--buildsystem=pybuild
debian/rules override_dh_quilt_patch
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_quilt_patch
Applying patch 000-rename-protobuf-genetared-files.patch
patching file axolotl/groups/state/senderkeyrecord.py
patching file axolotl/groups/state/senderkeystate.py
patching file axolotl/identitykeypair.py
patching file axolotl/protocol/keyexchangemessage.py
patching file axolotl/protocol/prekeywhispermessage.py
patching file axolotl/protocol/senderkeydistributionmessage.py
[... snipped ...]
======================================================================
ERROR: test_basicSessionV2 (axolotl.tests.test_sessioncipher.SessionCipherTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "axolotl/tests/test_sessioncipher.py", line 21, in test_basicSessionV2
self.runInteraction(aliceSessionRecord, bobSessionRecord)
File "axolotl/tests/test_sessioncipher.py", line 40, in runInteraction
message = aliceCipher.encrypt(alicePlaintext)
File "axolotl/sessioncipher.py", line 53, in encrypt
ciphertextBody = self.getCiphertext(sessionVersion, messageKeys,
paddedMessage)
File "axolotl/sessioncipher.py", line 217, in getCiphertext
cipher = self.getCipher_v2(messageKeys.getCipherKey(),
messageKeys.getCounter())
File "axolotl/sessioncipher.py", line 247, in getCipher_v2
cipher = AES.new(key, AES.MODE_CTR, IV=bytes(ivBytes), counter=ctr)
File "/usr/lib/python2.7/dist-packages/Crypto/Cipher/AES.py", line 94, in new
return AESCipher(key, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/Crypto/Cipher/AES.py", line 59, in
__init__
blockalgo.BlockAlgo.__init__(self, _AES, key, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/Crypto/Cipher/blockalgo.py", line 141,
in __init__
self._cipher = factory.new(key, *args, **kwargs)
ValueError: CTR mode needs counter parameter, not IV
======================================================================
ERROR: test_basicPreKeyV2 (axolotl.tests.test_sessionbuilder.SessionBuilderTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "axolotl/tests/test_sessionbuilder.py", line 52, in test_basicPreKeyV2
outgoingMessage = aliceSessionCipher.encrypt(originalMessage)
File "axolotl/sessioncipher.py", line 53, in encrypt
ciphertextBody = self.getCiphertext(sessionVersion, messageKeys,
paddedMessage)
File "axolotl/sessioncipher.py", line 217, in getCiphertext
cipher = self.getCipher_v2(messageKeys.getCipherKey(),
messageKeys.getCounter())
File "axolotl/sessioncipher.py", line 247, in getCipher_v2
cipher = AES.new(key, AES.MODE_CTR, IV=bytes(ivBytes), counter=ctr)
File "/usr/lib/python2.7/dist-packages/Crypto/Cipher/AES.py", line 94, in new
return AESCipher(key, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/Crypto/Cipher/AES.py", line 59, in
__init__
blockalgo.BlockAlgo.__init__(self, _AES, key, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/Crypto/Cipher/blockalgo.py", line 141,
in __init__
self._cipher = factory.new(key, *args, **kwargs)
ValueError: CTR mode needs counter parameter, not IV
----------------------------------------------------------------------
Ran 22 tests in 0.246s
FAILED (errors=2)
E: pybuild pybuild:276: test: plugin distutils failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build; python2.7 -m unittest discover
-v
dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13
debian/rules:8: recipe for target 'build-indep' failed
make: *** [build-indep] Error 25
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------
If you need a full build log, just say so, but it always fails for me, and it
also fails here:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-axolotl.html
so it should be easy to reproduce.
Thanks.