Hi, I noticed two build failures of my NMU -2.1 upload. I prepared a -2.2 package that fixes those remaining issues. I try to upload that this evening (meaning german time :). Here is the changelog:
python-crypto (2.0+dp1-2.2) unstable; urgency=low * NMU to fix build failures on some architectures * Remove -O3 gcc option on m68k architecture to fix FTBFS due to an internal compiler error * Standards version 3.6.2 (no changes required) * Relax the versioned build dependency of libgmp3-dev to 4.1.4-8 instead of -9. Some architectures only have -8 at this point which is sufficient. And the diff for setup.py is attached. Regards, Bastian -- ,''`. Bastian Kleineidam : :' : GnuPG Schlüssel `. `' gpg --keyserver wwwkeys.pgp.net --recv-keys 32EC6F3E `-
--- python-crypto-2.0+dp1.orig/setup.py +++ python-crypto-2.0+dp1/setup.py @@ -60,6 +60,16 @@ result = find_file(filename, std_dirs, paths) return result + +def cc_remove_option (compiler, option): + """ + Remove option from Unix-style compiler. + """ + for optlist in (compiler.compiler, compiler.compiler_so): + if option in optlist: + optlist.remove(option) + + class PCTBuildExt (build_ext): def build_extensions(self): self.extensions += [ @@ -67,10 +77,6 @@ Extension("Crypto.Hash.MD4", include_dirs=['src/'], sources=["src/MD4.c"]), - Extension("Crypto.Hash.RIPEMD", - include_dirs=['src/'], - sources=["src/RIPEMD.c"], - libraries=HTONS_LIBS), Extension("Crypto.Hash.SHA256", include_dirs=['src/'], sources=["src/SHA256.c"]), @@ -94,13 +100,6 @@ Extension("Crypto.Cipher.DES3", include_dirs=['src/'], sources=["src/DES3.c"]), - Extension("Crypto.Cipher.IDEA", - include_dirs=['src/'], - sources=["src/IDEA.c"], - libraries=HTONS_LIBS), - Extension("Crypto.Cipher.RC5", - include_dirs=['src/'], - sources=["src/RC5.c"]), # Stream ciphers Extension("Crypto.Cipher.ARC4", @@ -113,6 +112,10 @@ # Detect which modules should be compiled self.detect_modules() + if self.compiler.compiler_type == 'unix': + if os.uname()[4] == 'm68k': + # work around ICE on m68k machines in gcc 4.0.1 + cc_remove_option(self.compiler, "-O3") build_ext.build_extensions(self) def detect_modules (self): @@ -126,6 +129,7 @@ sources=["src/_fastmath.c"])) self.extensions += exts + kw = {'name':"pycrypto", 'version':"2.0", 'description':"Cryptographic modules for Python.",
signature.asc
Description: Digital signature