r61802 - in /trunk/libmoose-perl/debian: changelog patches/ patches/0001-Work-around-a-numification-problem-on-ia64.patch

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Fri Aug 20 20:15:53 UTC 2010


Author: gregoa
Date: Fri Aug 20 20:15:43 2010
New Revision: 61802

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=61802
Log:
Add patch 0001-Work-around-a-numification-problem-on-ia64.patch:
explicitly numify before doing numeric comparsions as a workaround for a
numification problem on ia64 (closes: #588118). Thanks to Niko Tyni for
the analysis and the patch!

Added:
    trunk/libmoose-perl/debian/patches/
    trunk/libmoose-perl/debian/patches/0001-Work-around-a-numification-problem-on-ia64.patch
Modified:
    trunk/libmoose-perl/debian/changelog

Modified: trunk/libmoose-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoose-perl/debian/changelog?rev=61802&op=diff
==============================================================================
--- trunk/libmoose-perl/debian/changelog (original)
+++ trunk/libmoose-perl/debian/changelog Fri Aug 20 20:15:43 2010
@@ -1,3 +1,12 @@
+libmoose-perl (1.09-2) UNRELEASED; urgency=low
+
+  * Add patch 0001-Work-around-a-numification-problem-on-ia64.patch:
+    explicitly numify before doing numeric comparsions as a workaround for a
+    numification problem on ia64 (closes: #588118). Thanks to Niko Tyni for
+    the analysis and the patch!
+
+ -- gregor herrmann <gregoa at debian.org>  Fri, 20 Aug 2010 22:10:46 +0200
+
 libmoose-perl (1.09-1) unstable; urgency=low
 
   * New upstream release.

Added: trunk/libmoose-perl/debian/patches/0001-Work-around-a-numification-problem-on-ia64.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoose-perl/debian/patches/0001-Work-around-a-numification-problem-on-ia64.patch?rev=61802&op=file
==============================================================================
--- trunk/libmoose-perl/debian/patches/0001-Work-around-a-numification-problem-on-ia64.patch (added)
+++ trunk/libmoose-perl/debian/patches/0001-Work-around-a-numification-problem-on-ia64.patch Fri Aug 20 20:15:43 2010
@@ -1,0 +1,29 @@
+From d6b18c1a4296d6c0c2ac8460a0e6af4560d2a079 Mon Sep 17 00:00:00 2001
+From: Niko Tyni <ntyni at debian.org>
+Date: Fri, 20 Aug 2010 13:32:31 -0600
+Subject: [PATCH] Work around a numification problem on ia64
+
+As seen in <http://bugs.debian.org/588118>, the numeric comparison
+seems to trigger a bug in perl 5.10.1 on the ia64 architecture.
+
+Explicitly numifying before comparing seems to work around this.
+---
+ lib/Moose/Meta/TypeConstraint.pm |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/lib/Moose/Meta/TypeConstraint.pm b/lib/Moose/Meta/TypeConstraint.pm
+index 1c8f3de..700f77f 100644
+--- a/lib/Moose/Meta/TypeConstraint.pm
++++ b/lib/Moose/Meta/TypeConstraint.pm
+@@ -135,7 +135,7 @@ sub equals {
+ 
+     my $other = Moose::Util::TypeConstraints::find_type_constraint($type_or_name) or return;
+ 
+-    return 1 if $self == $other;
++    return 1 if (0+$self == 0+$other);
+ 
+     if ( $self->has_hand_optimized_type_constraint and $other->has_hand_optimized_type_constraint ) {
+         return 1 if $self->hand_optimized_type_constraint == $other->hand_optimized_type_constraint;
+-- 
+1.7.1
+




More information about the Pkg-perl-cvs-commits mailing list