[perl-Coro] Fix building on big endian system

Petr Pisar ppisar at fedoraproject.org
Mon Oct 8 11:39:14 UTC 2012


commit 7a02ec12a1ba623a662f5b624712bbe5e0a08cb2
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Oct 8 13:39:00 2012 +0200

    Fix building on big endian system

 Coro-6.09-Fix-a-typo-in-ecb.h.patch |   27 +++++++++++++++++++++++++++
 perl-Coro.spec                      |    8 +++++++-
 2 files changed, 34 insertions(+), 1 deletions(-)
---
diff --git a/Coro-6.09-Fix-a-typo-in-ecb.h.patch b/Coro-6.09-Fix-a-typo-in-ecb.h.patch
new file mode 100644
index 0000000..ea6bcb2
--- /dev/null
+++ b/Coro-6.09-Fix-a-typo-in-ecb.h.patch
@@ -0,0 +1,27 @@
+From de7220dcac464425fc2667706100901d0fc7f444 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Mon, 8 Oct 2012 13:25:37 +0200
+Subject: [PATCH] Fix a typo in ecb.h
+
+A code for big endian system has a mistyped return word.
+<https://rt.cpan.org/Public/Bug/Display.html?id=80056>
+---
+ Coro/ecb.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Coro/ecb.h b/Coro/ecb.h
+index 1162bc6..5a88f60 100644
+--- a/Coro/ecb.h
++++ b/Coro/ecb.h
+@@ -494,7 +494,7 @@ ecb_byteorder_helper (void)
+ #elif __BYTE_ORDER__ && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+   return 0x44;
+ #elif __BYTE_ORDER__ && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
+-  retrurn 0x11;
++  return 0x11;
+ #else
+   union
+   {
+-- 
+1.7.11.7
+
diff --git a/perl-Coro.spec b/perl-Coro.spec
index e41f97a..9363870 100644
--- a/perl-Coro.spec
+++ b/perl-Coro.spec
@@ -1,12 +1,14 @@
 Name:           perl-Coro
 Version:        6.09
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        The only real threads in perl
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Coro/
 Source0:        http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Coro-%{version}.tar.gz
 Patch0:         %{name}-5.25-ucontext-default.patch
+# Bug #863991, CPAN RT #80056
+Patch1:         Coro-6.09-Fix-a-typo-in-ecb.h.patch
 BuildRequires:  perl(AnyEvent) >= 5
 BuildRequires:  perl(base)
 BuildRequires:  perl(Carp)
@@ -82,6 +84,7 @@ programming much safer and easier than using other thread models.
 %ifnarch %{ix86} x86_64 %{arm}
 %patch0 -p1 -b .ucontext-default
 %endif
+%patch1 -p1
 
 for F in Coro/jit-*.pl; do
     sed -i -e '/^#!/d' "$F"
@@ -127,6 +130,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Mon Oct 08 2012 Petr Pisar <ppisar at redhat.com> - 6.09-2
+- Fix building on big endian system (bug #863991)
+
 * Sun Oct 07 2012 Nicolas Chauvet <kwizart at gmail.com> - 6.09-1
 - Update to 4.09
 


More information about the scm-commits mailing list