Commits


Sutou Kouhei authored and GitHub committed 928827515bf
GH-32292: [R][Packaging] Use binaries built on CentOS 7 for Ubuntu < 22.04 (#34048) ### Rationale for this change Binaries built on CentOS 7 uses `_GLIBCXX_USE_CXX11_ABI=0`. So we can't use them on Ubuntu 20.04 because Ubuntu 20.04 uses `_GLIBCXX_USE_CXX11_ABI=1`. If we use them on Ubuntu 20.04, our R package must use `_GLIBCXX_USE_CXX11_ABI=0` too. There is another problem for Ubuntu 20.04. CentOS 7 uses OpenSSL 1.0 but Ubuntu 20.04 uses OpenSSL 1.1. OpenSSL 1.0 and 1.1 are incompatible. So we can't use binaries built on CentOS 7. We need binaries for OpenSSL 1.0 and OpenSSL 1.1. We can't use the same binaries on CentOS 7 (OpenSSL 1.0) and Ubuntu 20.04 (OpenSSL 1.1). ### What changes are included in this PR? This changes add `-D_GLIBCXX_USE_CXX11_ABI=0` to `Cflags` in `arrow.pc`. Our R package uses `Cflags` in `arrow.pc`. So users don't need to specify `-D_GLIBCXX_USE_CXX11_ABI=0` explicitly. This changes replace binaries built on Ubuntu 18.04 with binaries built on CentOS 7 with OpenSSL 1.1. (The "ubuntu-18.04" binaries are replaced with the "linux-openssl-1.1" binaries.) The "centos-7" binaries are renamed to the "linux-openssl-1.0" binaries. The "ubuntu-22.04" binaries are renamed to the "linux-openssl-3.0" binaries. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * Closes: GH-33091 * Closes: #32292 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>