rstudio / r-builds

an opinionated environment for compiling R
GNU General Public License v3.0
100 stars 19 forks source link

openSUSE 15.4 builds failing because libcurl was updated to new major version 8 #173

Closed glin closed 1 year ago

glin commented 1 year ago

The openSUSE 15.4 R builds currently fail for R <= 4.2 because SUSE 15.4 updated libcurl from 7.x to 8.x, and R <= 4.2 needs libcurl to be 7.x:

checking libcurl version ... 8.0.1
checking for curl/curl.h... yes
checking if libcurl is version 7 and >= 7.28.0... no
configure: error: libcurl >= 7.28.0 library and headers are required with support for https

$ zypper info libcurl4
Loading repository data...
Reading installed packages...

Information for package libcurl4:
---------------------------------
Repository     : Update repository with updates from SUSE Linux Enterprise 15
Name           : libcurl4
Version        : 8.0.1-150400.5.23.1

R 4.2 seems to work fine with libcurl 8 installed (upgrading libcurl on an existing R image)? So we could possibly patch the configure script.

> libcurlVersion()
[1] "8.0.1"
attr(,"ssl_version")
[1] "OpenSSL/1.1.1l-fips"
attr(,"libssh_version")
[1] "libssh/0.9.6/openssl/zlib"
attr(,"protocols")
 [1] "dict"    "file"    "ftp"     "ftps"    "gopher"  "gophers" "http"   
 [8] "https"   "imap"    "imaps"   "ldap"    "ldaps"   "mqtt"    "pop3"   
[15] "pop3s"   "rtsp"    "scp"     "sftp"    "smb"     "smbs"    "smtp"   
[22] "smtps"   "telnet"  "tftp"