amoeba commented on code in PR #49929:
URL: https://github.com/apache/arrow/pull/49929#discussion_r3197148062


##########
ci/scripts/r_windows_build.sh:
##########
@@ -23,6 +23,18 @@ set -ex
 # Make sure it is absolute and exported
 export ARROW_HOME="$(cd "${ARROW_HOME}" && pwd)"
 
+# Ensure CA certificates are available for pacman (Rtools42+ may not bundle 
them)
+if [ ! -f /usr/ssl/certs/ca-bundle.crt ]; then
+  mkdir -p /usr/ssl/certs
+  for src in /c/rtools45/usr/ssl/certs/ca-bundle.crt \
+             "/c/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt"; do
+    if [ -f "$src" ]; then
+      cp "$src" /usr/ssl/certs/ca-bundle.crt
+      break
+    fi
+  done
+fi

Review Comment:
   Rtools42 definitely bundles these so something else must be going on. I just 
checked by installing Rtools42 and `/usr/ssl/certs` is all set up and pacman 
works fine.



-- 
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