Package: regina-normal Usertags: origin-ubuntu jaunty ubuntu-patch Version: 4.5.1-1 Severity: minor Tags: patch
When python2.6 is added as default in debian, you will probably run into the same FTBFS issue as we did in Ubuntu. There was a problem, that some one of the test-cases spits out DeprecationWarnings and that makes the complete build fail. The patch to fix the DeprecationWarnings in the test-case is attached. Regards, Andreas -- System Information: Debian Release: 5.0 APT prefers jaunty-updates APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500, 'jaunty-proposed'), (500, 'jaunty-backports'), (500, 'jaunty') Architecture: i386 (i686) Kernel: Linux 2.6.28-11-generic (SMP w/1 CPU core) Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
--- regina-normal-4.5.1.orig/python/testsuite/trigeneral.test +++ regina-normal-4.5.1/python/testsuite/trigeneral.test @@ -25,7 +25,7 @@ # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, # MA 02110-1301, USA. -import md5 +import hashlib def vitalStats(tri): # To guard against accidental changes. @@ -92,22 +92,30 @@ print "Double cover:" t = regina.NTriangulation(tri) t.makeDoubleCover() - print "Checksum =", md5.new(t.toStringLong()).hexdigest() + h = hashlib.md5(); + h.update(t.toStringLong()) + print "Checksum =", h.hexdigest() print "Ideal to finite:" t = regina.NTriangulation(tri) print "Result =", t.idealToFinite() - print "Checksum =", md5.new(t.toStringLong()).hexdigest() + h = hashlib.md5(); + h.update(t.toStringLong()) + print "Checksum =", h.hexdigest() print "Finite to ideal:" t = regina.NTriangulation(tri) print "Result =", t.finiteToIdeal() - print "Checksum =", md5.new(t.toStringLong()).hexdigest() + h = hashlib.md5(); + h.update(t.toStringLong()) + print "Checksum =", h.hexdigest() print "Barycentric subdivision:" t = regina.NTriangulation(tri) t.barycentricSubdivision() - print "Checksum =", md5.new(t.toStringLong()).hexdigest() + h = hashlib.md5(); + h.update(t.toStringLong()) + print "Checksum =", h.hexdigest() print "Dehydration:", tri.dehydrate()