[med-svn] [r-cran-curl] 04/14: Fix FTBFS on big-endian architectures

Andreas Tille tille at debian.org
Fri Oct 13 09:28:36 UTC 2017


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

tille pushed a commit to branch master
in repository r-cran-curl.

commit 052cf6d7bf3eae652c891bc55875451f6b94d8fb
Author: Andreas Tille <tille at debian.org>
Date:   Wed Oct 19 03:32:40 2016 +0000

    Fix FTBFS on big-endian architectures
---
 debian/changelog              |  3 +++
 debian/patches/byteswap.patch | 17 +++++++++++++++++
 debian/patches/series         |  1 +
 3 files changed, 21 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 5ec2463..4a19517 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,9 @@
 r-cran-curl (2.1-1) UNRELEASED; urgency=medium
 
   * New upstream version
+  * Fix FTBFS on big-endian architectures (thanks for the patch to Aurelien
+    Jarno <aurel32 at debian.org>)
+    Closes: #841210
 
  -- Andreas Tille <tille at debian.org>  Wed, 19 Oct 2016 05:28:00 +0200
 
diff --git a/debian/patches/byteswap.patch b/debian/patches/byteswap.patch
new file mode 100644
index 0000000..598ef9e
--- /dev/null
+++ b/debian/patches/byteswap.patch
@@ -0,0 +1,17 @@
+Author: Aurelien Jarno <aurel32 at debian.org>
+Bug-Debian: https://bugs.debian.org/841210
+Last-Update: Tue, 18 Oct 2016 16:17:52 +0200
+Description: BSWAP_32 is only defined for Sun, Apple or OpenBSD
+
+--- a/src/curl.c
++++ b/src/curl.c
+@@ -23,6 +23,9 @@
+ #define BSWAP_32 OSSwapInt32
+ #elif (defined(__OpenBSD__))
+ #define BSWAP_32(x) swap32(x)
++#elif (defined(__GLIBC__))
++#include <byteswap.h>
++#define BSWAP_32(x) bswap_32(x)
+ #endif
+ 
+ /* the RConnection API is experimental and subject to change */
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d201a8a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+byteswap.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-curl.git



More information about the debian-med-commit mailing list