jeroen opened a new issue, #38855: URL: https://github.com/apache/arrow/issues/38855
### Describe the bug, including details regarding any error messages, version, and platform. When we try to cross compile the R package on Linux to MacOS, it now downoads the wrong libarrow binary, the one for the host system (linux) instead of the target (macOS). You can reproduce the problem using [this docker container](https://github.com/r-universe-org/macos-cross) ```sh docker run -it ghcr.io/r-universe-org/macos-cross/r-4.3-x86_64 ``` The container has been preconfigured with all common tools to identify and link for macos: ```sh ## root@4115030a1005:/# pkg-config --libs libcurl -lcurl -lldap -lz ## root@4115030a1005:/# pkg-config --libs openssl -L/opt/R/x86_64/lib -lssl -lcrypto ## root@4115030a1005:/# R CMD config CXX /osxcross/bin/o64-clang++ -arch x86_64 -std=gnu++17 -mmacosx-version-min=11.0 ## root@4115030a1005:/# uname -s Darwin ## root@4115030a1005:/# uname Darwin ## root@4115030a1005:/# arch x86_64 ``` This works for all other R packages, but somehow arrow still ends up downoading the Linux libarrow: ```sh R -e "install.packages('arrow')" export ARROW_R_DEV=TRUE curl -OL https://p3m.dev/cran/latest/src/contrib/Archive/arrow/arrow_14.0.0.tar.gz build-package arrow_14.0.0.tar.gz ``` ``` * installing *source* package ‘arrow’ ... ** package ‘arrow’ successfully unpacked and MD5 sums checked ** using staged installation *** Found libcurl and OpenSSL >= 1.1 trying URL 'https://apache.jfrog.io/artifactory/arrow/r/14.0.0/libarrow/bin/linux-openssl-1.1/arrow-14.0.0.zip' Content type 'application/zip' length 40960546 bytes (39.1 MB) ================================================== downloaded 39.1 MB *** Successfully retrieved C++ binaries (linux-openssl-1.1) *** Checksum validated successfully for libarrow binary: arrow-14.0.0.zip ``` ### Component(s) R -- 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: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org