[libsereal-decoder-perl] 01/01: Add patch to fix arm* build failures.

gregor herrmann gregoa at debian.org
Fri May 16 12:26:04 UTC 2014


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libsereal-decoder-perl.

commit 4e192615a590a729d40fa01217a8f07cf878a262
Author: gregor herrmann <gregoa at debian.org>
Date:   Fri May 16 14:25:37 2014 +0200

    Add patch to fix arm* build failures.
---
 debian/patches/fix-arm-compilation-errors.patch | 28 +++++++++++++++++++++++++
 debian/patches/series                           |  1 +
 2 files changed, 29 insertions(+)

diff --git a/debian/patches/fix-arm-compilation-errors.patch b/debian/patches/fix-arm-compilation-errors.patch
new file mode 100644
index 0000000..39456e3
--- /dev/null
+++ b/debian/patches/fix-arm-compilation-errors.patch
@@ -0,0 +1,28 @@
+Description: fix some occurances of undeclared variables
+Origin: vendor
+Forwarded: https://github.com/Sereal/Sereal/issues/47
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2014-05-16
+
+--- a/srl_decoder.c
++++ b/srl_decoder.c
+@@ -857,8 +857,9 @@
+ {
+     union myfloat val;
+ #ifdef __ARM_ARCH
++    U8 tmp[sizeof(double)];
+     ASSERT_BUF_SPACE(dec, sizeof(float), " while reading FLOAT");
+-    Copy(dec->pos,v.c,sizeof(float),U8);
++    Copy(dec->pos,val.c,sizeof(float),U8);
+     val.f= *((float *)tmp);
+ #else
+     ASSERT_BUF_SPACE(dec, sizeof(float), " while reading FLOAT");
+@@ -894,7 +895,7 @@
+ #ifdef __ARM_ARCH
+     U8 tmp[sizeof(long double)];
+     ASSERT_BUF_SPACE(dec, sizeof(long double), " while reading LONG_DOUBLE");
+-    Copy(dec->pos,v.c,sizeof(long double),U8);
++    Copy(dec->pos,val.c,sizeof(long double),U8);
+     val.ld= *((long double *)tmp);
+ #else
+     ASSERT_BUF_SPACE(dec, sizeof(long double), " while reading LONG_DOUBLE");
diff --git a/debian/patches/series b/debian/patches/series
index f914225..9ae0302 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 use_a_union_on_ARM_to_ensure_alignment_for_floating_point.patch
+fix-arm-compilation-errors.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libsereal-decoder-perl.git



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