File: warn-on-32bit.patch

package info (click to toggle)
r-cran-hdf5r 1.3.12%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,204 kB
  • sloc: ansic: 76,893; sh: 83; python: 32; makefile: 13
file content (19 lines) | stat: -rw-r--r-- 766 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Warn that this may be buggy on 32-bit

(onLoad not onAttach as some packages use this via requireNamespace)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1104158
Forwarded: not-needed

--- r-cran-hdf5r-1.3.12+dfsg.orig/R/zzz.R
+++ r-cran-hdf5r-1.3.12+dfsg/R/zzz.R
@@ -17,6 +17,8 @@
 #############################################################################
 
 .onLoad <- function(libname, pkgname) {
+    if (.Machine$sizeof.pointer < 8)
+        packageStartupMessage("Warning: using hdf5r on a 32 bit system, which may not work correctly: https://bugs.debian.org/1104158")
 #    .Call("R_H5dont_atexit", PACKAGE="hdf5r")
     .Call("R_H5open", PACKAGE="hdf5r")
     .Call("R_H5error", PACKAGE = "hdf5r")