Commit graph r-builds/builder/build.sh
Author SHA1 Message Date
Gábor Csárdi
101246253a Fix R 3.0.0 - R 3.0.3 on arm64 2023-08-16 12:37:36 +02:00
Gábor Csárdi
33c666c5b4 Fix R 3.3.0-3.3.2 builds 2023-07-19 11:09:02 +02:00
Greg Lin
f43d0784da Fix R <= 4.2 builds for SUSE 15.4; patch configure to allow libcurl 8.x 2023-07-10 14:56:38 -05:00
Greg Lin
0ef67edd08 Use FlexiBLAS on RHEL 9 for R 4.3.0 and above
R 4.2.3 and below continue to use shared BLAS - OpenBLAS for backward compat.
2023-04-20 13:59:39 -05:00
Greg Lin
a58ff1aa6e Revert R-devel gcc-8 patch for Ubuntu 18, openSUSE 15.3/15.4 2023-04-19 17:20:33 -05:00
Greg Lin
09e29e69fa Remove R-devel patches for openSUSE 15.3/15.4
Now fixed upstream in R-devel / R 4.3.0.
2023-04-18 14:15:09 -05:00
Gábor Csárdi
e57ed87fae Fix R-devel build on OpenSUSE
More details:
https://stat.ethz.ch/pipermail/r-devel/2023-February/082304.html
https://stat.ethz.ch/pipermail/r-devel/2023-February/082315.html
2023-02-10 15:27:05 +01:00
Gábor Csárdi
2b79717fba Fix R-devel compilation on OpenSUSE
By using newer compilers.
2023-02-07 21:06:17 +01:00
Gábor Csárdi
f5a104562e Use corrent DEB packages
Need gcc, g++, gfortran for R <= 4.2.x, and
gcc-8, g++-8, gofrtran-8 for R >= 4.3.0.
2023-02-02 07:44:27 -08:00
Gábor Csárdi
9b2fecd9e2 Use gcc-8 on Ubuntu 18.04
To address #153 on Ubuntu 18.04.
2023-02-02 06:42:00 -08:00
Greg Lin
b67a78e39e
Merge pull request #151 from rstudio/custom-install-path
Support custom installation paths for R
2023-01-18 12:25:04 -06:00
Gábor Csárdi
be9465a997 Use uname -m instead of uname -p, for Debian
On Debian uname -p returns 'unknown'.
2023-01-10 16:25:31 +01:00
Gábor Csárdi
3b3a13513d Support arm64 builds 2023-01-10 14:41:12 +01:00
Greg Lin
cca0417d89 Support custom installation paths for R 2023-01-09 17:43:57 -06:00
Greg Lin
f66f829e57 Fix missing PCRE2 dependency in R 3.x builds for RHEL 9 2022-09-08 17:36:49 -05:00
Greg Lin
ef86564f8f Replace fpm with nFPM for all other platforms 2022-08-24 11:53:58 -05:00
Greg Lin
ee8b739d5f Update R-devel tarball location
The R-devel tarballs at https://stat.ethz.ch/R/daily/ are now empty, but
better to use the "official" CRAN tarballs anyway.
2022-05-03 11:19:37 -05:00
Greg Lin
a611cb425b Fix missing Pango support in R 3.x for Ubuntu 22 2022-04-19 18:39:26 -05:00
Gábor Csárdi
6a0308e553 Fix renaming R-alpha etc in 'next'
Don't do it for other R versions.
2022-03-30 19:37:32 +02:00
Gábor Csárdi
04a2ff4fc3 Build the next version of R as well 2022-03-30 15:26:12 +02:00
Greg Lin
c17e2b9666 Use CFLAGS/FFLAGS over the SHLIB_* variables
The default CFLAGS/FFLAGS for R 3.x is always '-g -O2' when using gcc.
2022-03-21 16:21:25 -05:00
Greg Lin
74c19bc1a0 Fix compilation of R 3.6.1 and below due to changes in GCC 10 2022-03-21 16:21:25 -05:00
Greg Lin
3d3918230c Include PCRE2 in R 3.x on Debian 11 for Pango support
In Debian 11, Pango now depends on PCRE2, so R 3.x will not be compiled with
Pango support if we hide PCRE2 to prevent R 3.5 and 3.6 from taking an unnecessary
dependency on PCRE2.

To check if R 3.x was compiled without Pango support, look for this line in the
configure output:

checking whether pkg-config knows about cairo and pango... no

Or in R, check if the "bitmapType" option defaults to "Xlib" instead of "Cairo":

> getOption("bitmapType")
"Xlib"
2022-03-21 16:21:25 -05:00
Greg Lin
2c9979447c Support custom R tarball URL for testing prerelease builds 2021-05-13 11:44:44 -05:00
Greg Lin
c0ee373540 Discontinue CentOS 6 builds for EOL
This only stops the builds. Existing binaries will continue to be
hosted, and the quick install script continues to support CentOS 6.
2020-12-02 16:37:15 -06:00
Jim Hester
2494b8eb98 Support building R-devel
Martin Maechler, a member of R core provides a daily tarball of R-devel
sources at https://stat.ethz.ch/R/daily. This provides support for
building based on this source if R_VERSION is set to 'devel'
2020-07-27 08:44:44 -04:00
Greg Lin
048f2ca063 Remove unnecessary PCRE2 dependency on R 3.x
For more details on PCRE2 usage in R 3.x, see:
7d25524f8b/m4/R.m4 (L3056-L3058)
7d25524f8b/m4/R.m4 (L3139-L3155)
2020-05-14 12:45:10 -05:00
Dan Buch
056a48eda7
Merge pull request #13 from meatballhat/rm-double-tar-gz
Remove duplicate .tar.gz extension in local artifact dest
2020-04-30 13:16:02 -04:00
Joshua Spiewak
66fcf15366 Download R 4.x.x from correct path 2020-04-27 15:21:07 -04:00
Greg Lin
685c8228ba Set the HTTP user agent in the system Rprofile 2019-09-05 16:29:49 -05:00
Greg Lin
a541837927 Add OS identifier to the default HTTP user agent 2019-09-05 16:29:49 -05:00
Greg Lin
75b9a0d60d Only set user agent for R 3.6.0 and later 2019-09-04 16:44:06 -05:00
Greg Lin
92028bb31b Set user agent during build process 2019-09-04 16:44:06 -05:00
sellorm
a20cff273b
Allows building deb packages for R on ubuntu-1804 (#12)
* Allows building deb packages for R on ubuntu-1804

this update provides a mechanism for building deb packages on Ubunto
1804. Several changes have been necessary to facilitate this:

* Dockerfile has been updated. It now includes:
    - fpm - a tool tool to create OS specific packages
    - copying the package script into the image
* the OS specific package.ubuntu-1804 packaging script
    - this is the script that uses fpm to build the package
* Updates to build.sh. It now includes:
    - runs the package script if it exists
    - stores the resultant package to s3

* removed duplicate dependencies

* fixed minor bug with output directory creation

* moved package creation to after the clean step

* Changed deb priority to "optional"

The fpm default priority is "extra" which is now deprecated.

https://github.com/jordansissel/fpm/issues/1398

* Added additional package fields

Added 'Bugs', URL (Homepage), 'Description', 'Maintainer' and 'License'

* Fixed the repo URL

* Added passthrough for Jenkins BUILD_NUMBER

Jenkins sets the BUILD_NUMBER environment variable for all jobs.
This change sets that env var inside the container as BUILD_NO.
BUILD_NO is used bythe packaging scripts in place of a version number
for all of the created packages.

* removed liblapack

* Improved consistency of environment variable use

Removed the needless renaming of environment variables to improve
overall consistency and readability

* No longer tries to version the packages

Previous commits relied on the idea that the Jenkins BUILD_NUMBER
environment variable could be used as a version number for the package
itself (in addition to R's existing version numbers). This is not the
case and having a version number for the package is not deemed desirable
at this time. This change pins *all* packages produced to version 1.

* Moved additional apt package installations

Packages were being installed in two places, have rationalised to a
single location to reduce the number of layers in the final container.

* Tidy up of package script

Alphabetised the dependencies to make things easier to find.

* Added additional dependencies

These dependencies were added as they were identified to be missing when
running against the R 3.6.1 build during testing

* Removed an unrequired dependency

Further trimming down the dependency list based on reviewer feedback.

* Swapped liblapack-dev for libopenblas-dev
2019-07-20 01:17:48 +01:00
Dan Buch
e6fecd3c7f
Remove duplicate .tar.gz extension in local artifact dest 2019-07-03 12:46:10 -04:00
Greg Lin
d353cee634 Set PAGER for Ubuntu and Debian only
/usr/bin/pager is specific to Debian/Ubuntu. For other OSs, use the default
pager detected by the configure script, which will either be less or more.

See https://github.com/rstudio/r-builds/issues/3
2019-05-03 15:31:02 -05:00
Steve Nolen
bd3505e426 make repo public 2019-03-25 12:59:14 -04:00