Your message dated Wed, 19 Oct 2016 05:17:40 +0000
with message-id <e1bwjg0-0001ge...@franck.debian.org>
and subject line Bug#841210: fixed in r-cran-curl 2.1-1
has caused the Debian Bug report #841210,
regarding r-cran-curl: FTBFS on big-endian architectures: undefined symbol: 
BSWAP_32
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
841210: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=841210
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: r-cran-curl
Version: 0.9.6-1
Severity: important
Tags: upstream patch

r-cran-curl fails to build on big endian architectures. Here are the
relevant parts of the build log:

| gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 -g  -c curl.c -o curl.o
| curl.c: In function 'rcurl_fgetc':
| curl.c:138:38: warning: implicit declaration of function 'BSWAP_32' 
[-Wimplicit-function-declaration]
|    return rcurl_read(&x, 1, 1, con) ? BSWAP_32(x) : R_EOF;
|                                       ^

[...]

| ** testing if installed package can be loaded
| Error in dyn.load(file, DLLpath = DLLpath, ...) : 
|   unable to load shared object 
'/«PKGBUILDDIR»/debian/r-cran-curl/usr/lib/R/site-library/curl/libs/curl.so':
|   /«PKGBUILDDIR»/debian/r-cran-curl/usr/lib/R/site-library/curl/libs/curl.so: 
undefined symbol: BSWAP_32
| Error: loading failed
| Execution halted
| ERROR: loading failed

The problem is that BSWAP_32 is only defined for Sun, Apple or OpenBSD.
Please find a patch below to also define it for GLIBC based systems.

--- r-cran-curl-0.9.6.orig/src/curl.c
+++ r-cran-curl-0.9.6/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 */


Note that it prevents a few r-cran packages to build on big-endian
architectures, so an upload with this patch would be appreciated.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: mips (mips64)

Kernel: Linux 4.7.0-1-5kc-malta
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

--- End Message ---
--- Begin Message ---
Source: r-cran-curl
Source-Version: 2.1-1

We believe that the bug you reported is fixed in the latest version of
r-cran-curl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 841...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Tille <ti...@debian.org> (supplier of updated r-cran-curl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 19 Oct 2016 05:34:23 +0200
Source: r-cran-curl
Binary: r-cran-curl
Architecture: source amd64
Version: 2.1-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team 
<debian-med-packag...@lists.alioth.debian.org>
Changed-By: Andreas Tille <ti...@debian.org>
Description:
 r-cran-curl - GNU R modern and flexible web client for R
Closes: 841210
Changes:
 r-cran-curl (2.1-1) unstable; urgency=medium
 .
   * New upstream version
   * Fix FTBFS on big-endian architectures (thanks for the patch to Aurelien
     Jarno <aure...@debian.org>)
     Closes: #841210
   * canonical homepage for cran
Checksums-Sha1:
 b738f982611c8cf81b6a579fa7cb7e72b8d4e758 2091 r-cran-curl_2.1-1.dsc
 85df3b26c4b75664c437b1b27df1e2b5b21a5b40 397300 r-cran-curl_2.1.orig.tar.gz
 6f4f2194779ea04dc9f8a95667c68bf20114c6c2 2936 r-cran-curl_2.1-1.debian.tar.xz
 f19d82223d77f62685e8f07fc1986c01e572e3e4 48766 
r-cran-curl-dbgsym_2.1-1_amd64.deb
 204d77512a7016d3fcdb626fed8fee9f343b78ed 351766 r-cran-curl_2.1-1_amd64.deb
Checksums-Sha256:
 0c2aa9a8851eeae76a219ef19fbd8cd1bb3988190d36bc0ce5bf33741e32744b 2091 
r-cran-curl_2.1-1.dsc
 5f6f34836c7de74e96f168abcd618f35094bec2bbdd654a4554be254263b7d28 397300 
r-cran-curl_2.1.orig.tar.gz
 78534a7ae0aec7ed59378768b13d238981e7aa0d39c8b8febf336ce26abd6099 2936 
r-cran-curl_2.1-1.debian.tar.xz
 81fe7c33213db48a898c2673c01a043fe7029e37f1b353c42cbd3de96e663932 48766 
r-cran-curl-dbgsym_2.1-1_amd64.deb
 b4ed51a20527259558ef5b96dde5326ba135a0b17f8f44328aa1505c7086ddec 351766 
r-cran-curl_2.1-1_amd64.deb
Files:
 a6c823d72e997852d2442663156aa0ab 2091 gnu-r optional r-cran-curl_2.1-1.dsc
 479113e4a31b9373640305a43f3fc334 397300 gnu-r optional 
r-cran-curl_2.1.orig.tar.gz
 205794ca85f2ad98d8254542f1ea7b87 2936 gnu-r optional 
r-cran-curl_2.1-1.debian.tar.xz
 92e1f7adc3287467a2aa19bf6f879a18 48766 debug extra 
r-cran-curl-dbgsym_2.1-1_amd64.deb
 d18de0a1ca1ab58b2e42ec81d273ef23 351766 gnu-r optional 
r-cran-curl_2.1-1_amd64.deb

-----BEGIN PGP SIGNATURE-----

iQIuBAEBCAAYBQJYButwERx0aWxsZUBkZWJpYW4ub3JnAAoJEFeKBJTRxkbRuWIP
/Ap29TNoaX34c6ehN/zVtJ+YHqqBNTwZraHXHNrzAJCPo2gksQhqYml4FPFxIeFy
ArSvuReMu0V5+rfNo7DeUmytg+H1kp7uJtpRdXYsCwvmRxC5ab9l4JoE2zKgXjgL
bAGCRpQc+drPIXN7nXiyG3QSZwokopM+vWjqJzNq2q96lwHSYL2h+lfCyVnoFdnJ
OhFX7iFldrfWqEEtV4OChX6Qf8L/d0AOsI+aNOheU3nQABk2nFG/uS5qcrbD1Bsq
augBe81U1F5MK62sMfyHcF17dRbLHtJfGlk7fuKRWVerReK/dOyFDsaWMbsN8E5Y
jeTEibmFPTemuQxFb4rNTwEZzoXDwJz/iX0FGFY4UsQTUuVCMauod7jbdbxMPZcB
L/vIGVORC5M/pxk0c7I+y87NKUipu8gxwBLlZFsJrRC0ZXkx9LFEgD4o3HTvk10o
flFoc8nSrA3vkRWNnLbL8ylHN5YzqsbS0ZH0/LtIkluflyAHjP/XZIfjRXgybVZl
tgAe6sXSbNUfBEsZUEdZG0BCTp1wdC2dMWtycbkAU9BSFPeEBdIPBG/8wZNWfaav
2lyOiX0649CMTeTU533pKoVo2nXjdqdvLwV4FZPW0e+eeeeTwSSkPBQl4CqWTPw3
tTTJCHXlRu+MGzM8LJ3lZ8c32zwOhk3Nt0sPivNeuB5S
=qVNq
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to