Merge pull request #162 from rstudio/glin-rm-gcc8

Revert gcc-8 patches for R-devel on Ubuntu 18, openSUSE 15.3/15.4
This commit is contained in:
Greg Lin 2023-04-20 12:16:03 -05:00 committed by GitHub
commit aa7531bf47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 40 deletions

View file

@ -15,9 +15,6 @@ RUN zypper --non-interactive --gpg-auto-import-keys -n install \
gcc \
gcc-c++ \
gcc-fortran \
gcc8 \
gcc8-c++ \
gcc8-fortran \
glib2-devel \
glibc-locale \
help2man \

View file

@ -15,9 +15,6 @@ RUN zypper --non-interactive --gpg-auto-import-keys -n install \
gcc \
gcc-c++ \
gcc-fortran \
gcc8 \
gcc8-c++ \
gcc8-fortran \
glib2-devel \
glibc-locale \
help2man \

View file

@ -7,8 +7,7 @@ RUN set -x \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y curl libcurl4-openssl-dev libicu-dev libopenblas-base libpcre2-dev wget python-pip \
&& apt-get build-dep -y r-base \
&& apt-get install -y gcc-8 g++-8 gfortran-8
&& apt-get build-dep -y r-base
RUN pip install awscli

View file

@ -129,30 +129,8 @@ compile_r() {
--with-blas \
--with-lapack"
if _version_is_greater_than ${R_VERSION} 4.2.10; then
if [[ "${OS_IDENTIFIER}" = "ubuntu-1804" ]]; then
default_configure_options="$default_configure_options \
CC=gcc-8 CXX=g++-8 FC=gfortran-8"
gcc_package=gcc-8
gxx_package=g++-8
gfortran_package=gfortran-8
fi
fi
CONFIGURE_OPTIONS=${CONFIGURE_OPTIONS:-$default_configure_options}
# For OpenSUSE CONFIGURE_OPTIONS are custom, set in the Dockerfile
if _version_is_greater_than ${R_VERSION} 4.2.10; then
if [[ "${OS_IDENTIFIER}" = "opensuse-153" || \
"${OS_IDENTIFIER}" = "opensuse-154" ]]; then
CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS \
CC=gcc-8 CXX=g++-8 FC=gfortran-8"
gcc_package=gcc8
gxx_package=gcc8-c++
gfortran_package=gcc8-fortran
fi
fi
# set some common environment variables for the configure step
AWK=/usr/bin/awk \
LIBnn=lib \
@ -196,7 +174,6 @@ EOF
package_r() {
if [[ -f /package.sh ]]; then
export R_VERSION=${1}
export gcc_package gxx_package gfortran_package
source /package.sh
fi
}

View file

@ -39,9 +39,9 @@ homepage: https://www.r-project.org
license: GPLv2+
depends:
- fontconfig
- ${gcc_package-gcc}
- ${gxx_package-gcc-c++}
- ${gfortran_package-gcc-fortran}
- gcc
- gcc-c++
- gcc-fortran
- glibc-locale
- gzip
- icu.691-devel

View file

@ -55,9 +55,9 @@ homepage: https://www.r-project.org
license: GPLv2+
depends:
- fontconfig
- ${gcc_package-gcc}
- ${gxx_package-gcc-c++}
- ${gfortran_package-gcc-fortran}
- gcc
- gcc-c++
- gcc-fortran
- glibc-locale
- gzip
- icu.691-devel

View file

@ -27,9 +27,9 @@ deb:
fields:
Bugs: https://github.com/rstudio/r-builds/issues
depends:
- ${gxx_package-g++}
- ${gcc_package-gcc}
- ${gfortran_package-gfortran}
- g++
- gcc
- gfortran
- libbz2-dev
- libc6
- libcairo2