File: warn-on-32bit.patch

package info (click to toggle)
r-cran-s2 1.1.7-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 9,316 kB
  • sloc: cpp: 96,702; pascal: 1,362; ansic: 37; sh: 15; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 567 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/1104160
Forwarded: not-needed

--- r-cran-s2-1.1.7.orig/R/zzz.R
+++ r-cran-s2-1.1.7/R/zzz.R
@@ -1,6 +1,8 @@
 
 # nocov start
 .onLoad <- function(...) {
+  if (.Machine$sizeof.pointer < 8)
+    packageStartupMessage("Warning: using s2 on a 32 bit system, which may not work correctly: https://bugs.debian.org/1104160")
   # call c++ init
   cpp_s2_init()