thisisnic commented on a change in pull request #11703:
URL: https://github.com/apache/arrow/pull/11703#discussion_r749298354



##########
File path: r/tools/nixlibs.R
##########
@@ -371,9 +371,17 @@ ensure_cmake <- function() {
   if (is.null(cmake)) {
     # If not found, download it
     cat("**** cmake\n")
-    CMAKE_VERSION <- Sys.getenv("CMAKE_VERSION", "3.19.2")
+    CMAKE_VERSION <- Sys.getenv("CMAKE_VERSION", "3.19.3")
     if (tolower(Sys.info()[["sysname"]]) %in% "darwin") {
       postfix <- "-macos-universal.tar.gz"
+    } else if (tolower(Sys.info()[["machine"]]) == "arm64") {
+      postfix <- "-linux-aarch64.tar.gz"
+    } else if (tolower(Sys.info()[["machine"]]) == "armv7l") { # e.g. 
Raspberry Pi OS
+      # It is unlikely that we would hit this logic as cmake is usual 
installed with Pi OS
+      stop(paste0(
+         "*** cmake was not found locally and no binaries are available for 
your architecture - it must be compiled from source",

Review comment:
       Is this the case or can we just point to the source directory here like 
we have with the binaries?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to