Skip to content

Commit 82ef7d3

Browse files
authored
Merge branch 'r-devel:main' into master
2 parents c9b643a + 9e4828a commit 82ef7d3

File tree

2,048 files changed

+215504
-75999
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,048 files changed

+215504
-75999
lines changed

.github/scripts/svn-sync.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
# git svn clone -T trunk https://svn.r-project.org/R
66
# git checkout origin/trunk -b trunk
77
# git remote add github https://github.com/r-devel/r-svn
8-
# git checkout master
9-
# git fetch github master
10-
# git reset --hard github/master
8+
# git checkout main
9+
# git fetch github main
10+
# git reset --hard github/main
1111
set -e
1212
set -x
1313
git checkout trunk
1414
git svn rebase
1515
git push github trunk
16-
git checkout master
17-
git fetch github master
18-
git reset --hard github/master
19-
LASTMSG=$(git log master --grep="git-svn-id: https://svn.r-project.org/R/trunk" -n1 | grep -o 'git-svn-id: [^ ]*')
16+
git checkout main
17+
git fetch github main
18+
git reset --hard github/main
19+
LASTMSG=$(git log main --grep="git-svn-id: https://svn.r-project.org/R/trunk" -n1 | grep -o 'git-svn-id: [^ ]*')
2020
LASTSVN=$(git log trunk --grep="$LASTMSG" -n1 --pretty="%H")
2121
if [ -z "$LASTSVN" ]; then
2222
echo "FAILED TO FIND LASTSVN"
@@ -33,9 +33,9 @@ do
3333
GIT_COMMITTER_NAME="$(git log -1 $hash --pretty=format:%cn)" \
3434
GIT_COMMITTER_EMAIL="$(git log -1 $hash --pretty=format:%ce)" \
3535
git cherry-pick "$hash"
36-
git push github master
36+
git push github main
3737
done
3838

39-
# Check that master and trunk are identical except for .github directory
39+
# Check that main and trunk are identical except for .github directory
4040
# This verifies that we haven't omitted any commits
41-
git diff --stat master trunk -- . ':(exclude).github'
41+
git diff --stat main trunk -- . ':(exclude).github'

.github/scripts/win-check.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
set -x
55

66
# Put pdflatex on the path (needed only for CMD check)
7-
export PATH="/c/x86_64-w64-mingw32.static.posix/bin:$PATH:$HOME/AppData/Local/Programs/MiKTeX/miktex/bin/x64:/c/progra~1/MiKTeX/miktex/bin/x64:/c/progra~1/MiKTeX 2.9/miktex/bin/x64"
7+
export PATH="/c/x86_64-w64-mingw32.static.posix/bin:$PATH:/c/Users/$USER/AppData/Roaming/TinyTeX/bin/windows:$HOME/AppData/Local/Programs/MiKTeX/miktex/bin/x64:/c/progra~1/MiKTeX/miktex/bin/x64:/c/progra~1/MiKTeX 2.9/miktex/bin/x64"
88
echo "PATH: $PATH"
99
pdflatex --version
1010
texindex --version
@@ -17,13 +17,13 @@ gcc --version
1717
cd "$(cygpath ${GITHUB_WORKSPACE})"
1818
sed -i.bak 's|$(GIT) svn info|./.github/scripts/svn-info.sh|' src/include/Makefile.win
1919
curl -sSL https://curl.se/ca/cacert.pem > etc/curl-ca-bundle.crt
20-
./tools/rsync-recommended
20+
#./tools/rsync-recommended
21+
./.github/scripts/wget-recommended.sh
2122
./.github/scripts/svn-info.sh
2223

2324
# Download the TCL bundle required by tcltk package
24-
#curl -OL https://cran.r-project.org/bin/windows/Rtools/rtools43/files/tcltk-5493-5412.zip
25-
curl -OL https://github.com/r-windows/files/releases/download/5550/tcltk-5550-5412.zip
26-
unzip tcltk-5550-5412.zip
25+
curl -OL https://github.com/r-windows/rtools-chocolatey/releases/download/6104/tcltk-6104-6025.zip
26+
unzip tcltk-6104-6025.zip
2727

2828
# Add custom flags to MkRules.local
2929
cp .github/scripts/MkRules.local src/gnuwin32/
@@ -33,4 +33,6 @@ cd src/gnuwin32
3333
make all cairodevices recommended vignettes manuals
3434

3535
# Run checks
36+
export TAR="/usr/bin/tar"
37+
export TAR_OPTIONS="--force-local"
3638
make check-all

.github/scripts/win-installer.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
set -x
55

66
# Put pdflatex on the path (needed only for CMD check)
7-
export PATH="/c/x86_64-w64-mingw32.static.posix/bin:$PATH:$HOME/AppData/Local/Programs/MiKTeX/miktex/bin/x64:/c/progra~1/MiKTeX/miktex/bin/x64:/c/progra~1/MiKTeX 2.9/miktex/bin/x64"
7+
export PATH="/c/x86_64-w64-mingw32.static.posix/bin:$PATH:/c/Users/$USER/AppData/Roaming/TinyTeX/bin/windows:$HOME/AppData/Local/Programs/MiKTeX/miktex/bin/x64:/c/progra~1/MiKTeX/miktex/bin/x64:/c/progra~1/MiKTeX 2.9/miktex/bin/x64"
88
echo "PATH: $PATH"
99
pdflatex --version
1010
texindex --version
@@ -17,13 +17,14 @@ gcc --version
1717
cd "$(cygpath ${GITHUB_WORKSPACE})"
1818
sed -i.bak 's|$(GIT) svn info|./.github/scripts/svn-info.sh|' src/include/Makefile.win
1919
curl -sSL https://curl.se/ca/cacert.pem > etc/curl-ca-bundle.crt
20-
./tools/rsync-recommended
20+
#./tools/rsync-recommended
21+
./.github/scripts/wget-recommended.sh
2122
./.github/scripts/svn-info.sh
2223

2324
# Download the TCL bundle required by tcltk package
2425
#curl -OL https://cran.r-project.org/bin/windows/Rtools/rtools43/files/tcltk-5493-5412.zip
25-
curl -OL https://github.com/r-windows/files/releases/download/5550/tcltk-5550-5412.zip
26-
unzip tcltk-5550-5412.zip
26+
curl -OL https://github.com/r-windows/rtools-chocolatey/releases/download/5948/Tcl-5948-5877.zip
27+
unzip Tcl-5948-5877.zip
2728

2829
# Add custom flags to MkRules.local
2930
cp .github/scripts/MkRules.local src/gnuwin32/

.github/workflows/build-svn.yaml

Lines changed: 64 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ concurrency:
99
jobs:
1010
linux:
1111
name: Linux
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-24.04${{matrix.ARCH == 'arm' && '-arm' || ''}}
1313
container:
1414
image: ${{matrix.OS}}
1515
env:
@@ -21,6 +21,7 @@ jobs:
2121
matrix:
2222
CC: [ gcc, clang ]
2323
OS: [ 'debian:stable', 'debian:testing' ]
24+
ARCH: [ 'intel', 'arm']
2425
steps:
2526
- name: System dependencies
2627
run: |
@@ -31,7 +32,7 @@ jobs:
3132
localedef -i en_US -f UTF-8 en_US.UTF-8
3233
echo "LANG=en_US.UTF-8" >> $GITHUB_ENV
3334
- name: Checkout
34-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
3536
with:
3637
fetch-depth: 100
3738

@@ -56,7 +57,11 @@ jobs:
5657

5758
macos:
5859
name: MacOS
59-
runs-on: macos-latest
60+
strategy:
61+
fail-fast: false
62+
matrix:
63+
OS: [ 'macOS-13', 'macOS-14' ]
64+
runs-on: ${{matrix.OS}}
6065
timeout-minutes: 90
6166
env:
6267
PKG_CONFIG_PATH: /opt/X11/lib/pkgconfig
@@ -65,14 +70,34 @@ jobs:
6570
R_TEXI2DVICMD: emulation
6671

6772
steps:
68-
- name: System dependencies
73+
- name: Download CRAN system libraries
6974
run: |
70-
brew install gcc gettext gmp isl jpeg libmpc libpng mpfr pcre2 pkg-config readline xz texinfo wget
71-
echo "FC=/usr/local/opt/gcc/bin/gfortran" >> $GITHUB_ENV
75+
echo "ARCH=$(uname -m)" >> $GITHUB_ENV
76+
curl --retry 3 -fsSL https://github.com/r-universe-org/cranlibs/releases/download/2025-01-05/cranlibs-everything.tar.xz -o libs.tar.xz
77+
sudo tar -xf libs.tar.xz -C / opt
78+
rm -f libs.tar.xz
79+
80+
- name: Remove homebrew
81+
run: |
82+
echo "/opt/R/${ARCH}/bin" >> $GITHUB_PATH
83+
echo "LDFLAGS=-L/opt/R/${ARCH}/lib" >> $GITHUB_ENV
84+
echo "CPPFLAGS=-I/opt/R/${ARCH}/include" >> $GITHUB_ENV
85+
echo "PKG_CONFIG_PATH=/opt/R/${ARCH}/lib/pkgconfig:/opt/R/${ARCH}/share/pkgconfig" >> $GITHUB_ENV
7286
echo "/Library/TeX/texbin" >> $GITHUB_PATH
7387
echo "/usr/local/opt/texinfo/bin" >> $GITHUB_PATH
88+
cp -fv $(which wget) "/opt/R/${ARCH}/bin"
89+
brew unlink $(brew list --formula) || true
90+
91+
- name: Install CRAN fortran build
92+
run: |
93+
curl --retry 3 -fsSLO https://github.com/R-macos/gcc-12-branch/releases/download/12.2-darwin-r0.1/gfortran-12.2-universal.pkg
94+
sudo installer -pkg "gfortran-12.2-universal.pkg" -target /
95+
rm -f gfortran-12.2-universal.pkg
96+
echo "/opt/gfortran/bin" >> $GITHUB_PATH
97+
echo "FC=/opt/gfortran/bin/gfortran" >> $GITHUB_ENV
98+
7499
- name: Checkout
75-
uses: actions/checkout@v2
100+
uses: actions/checkout@v4
76101
with:
77102
fetch-depth: 100
78103

@@ -81,16 +106,29 @@ jobs:
81106
sed -i.bak 's|$(GIT) svn info|./.github/scripts/svn-info.sh|' Makefile.in
82107
./.github/scripts/wget-recommended.sh
83108
./.github/scripts/svn-info.sh
109+
84110
- name: Configure
85-
run: CC=clang ./configure --disable-java --without-cairo --without-tcltk --without-x --with-aqua --with-lapack --with-blas --enable-R-shlib SED=/usr/bin/sed
111+
run: CC=clang ./configure --prefix=/opt/R/${ARCH}/r-devel --disable-java --with-cairo --without-tcltk --without-x --with-aqua $ACCELERATE --enable-R-shlib SED=/usr/bin/sed
86112
env:
87113
PDFLATEX: ${{github.workspace}}/.github/scripts/dummy
114+
ACCELERATE: ${{ matrix.OS != 'macOS-13' && '--with-lapack --with-blas' || '' }}
88115

89116
- name: Build
90117
run: make
91118
env:
92119
PDFLATEX: ${{github.workspace}}/.github/scripts/dummy
93120

121+
- name: Install
122+
run: |
123+
mkdir -p /opt/R/${ARCH}/r-devel
124+
make install DESTDIR="/opt/R/${ARCH}/r-devel"
125+
(cd /opt/R/${ARCH}/r-devel; tar cfJ "/opt/R/r-devel-${ARCH}.tar.xz" .)
126+
127+
- uses: actions/upload-artifact@v4
128+
with:
129+
name: R-devel-${{ matrix.OS == 'macOS-13' && 'x86_64' || 'arm64' }}
130+
path: /opt/R/r-devel-${{ matrix.OS == 'macOS-13' && 'x86_64' || 'arm64' }}.tar.xz
131+
94132
- name: Check
95133
run: make check-all
96134
env:
@@ -121,28 +159,36 @@ jobs:
121159
shell: bash
122160

123161
- name: Checkout
124-
uses: actions/checkout@v3
162+
uses: actions/checkout@v4
125163
with:
126164
fetch-depth: 100
127165

128166
- uses: msys2/setup-msys2@v2
129167
with:
130168
msystem: MSYS
131-
install: git make perl curl texinfo texinfo-tex rsync unzip diffutils
169+
install: git make perl curl texinfo texinfo-tex rsync zip unzip diffutils
132170

133-
- name: "Download rtools43 toolchain"
171+
- name: "Download rtools44 toolchain"
134172
run: |
135-
url="https://github.com/r-windows/files/releases/download/5550/rtools43-toolchain-libs-base-5550.tar.zst"
173+
url="https://github.com/r-windows/rtools-chocolatey/releases/download/6104/rtools44-toolchain-libs-base-6104.tar.zst"
136174
curl -sSL $url | tar x --zstd -C /c/ || true
137-
#echo "RTOOLS43_HOME=c:" >> $GITHUB_ENV
175+
#echo "RTOOLS44_HOME=c:" >> $GITHUB_ENV
138176
#echo "R_CUSTOM_TOOLS_SOFT=c:/x86_64-w64-mingw32.static.posix" >> $GITHUB_ENV
139177
140-
- name: Install Miktex
178+
- name: Set timezone
141179
shell: powershell
180+
run: tzutil /s "GMT Standard Time"
181+
182+
- uses: r-lib/actions/setup-tinytex@v2
183+
env:
184+
TINYTEX_INSTALLER: TinyTeX
185+
186+
- name: Install additional LaTeX packages
142187
run: |
143-
Import-Module .\.github\scripts\installers.ps1
144-
SetTimezone
145-
InstallMiktex -ErrorAction SilentlyContinue;
188+
tlmgr update --self
189+
tlmgr install texinfo
190+
tlmgr list --only-installed
191+
shell: powershell
146192

147193
- name: Build and Check
148194
run: |
@@ -158,7 +204,7 @@ jobs:
158204
if: matrix.script == 'installer'
159205
shell: powershell
160206

161-
- uses: actions/upload-artifact@v3
207+
- uses: actions/upload-artifact@v4
162208
with:
163209
name: installer
164210
path: src/gnuwin32/installer/R-devel-win.exe

Makefile.in

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ NON_SVN_INSTFILES = SVN-REVISION
1717
DISTFILES = $(INSTFILES) \
1818
ChangeLog INSTALL README VERSION VERSION-NICK \
1919
Makeconf.in Makefile.in Makefile.fw \
20-
config.site configure configure.ac configure.patch
20+
config.site configure configure.ac
2121
SUBDIRS = m4 tools doc etc share src tests
2222
SUBDIRS_WITH_NO_BUILD = po
2323

@@ -45,9 +45,8 @@ ACINCLUDE_DEPENDENCIES = \
4545
CONFIGURE_DEPENDENCIES = $(srcdir)/VERSION
4646
config.status: $(srcdir)/configure
4747
@$(SHELL) ./config.status --recheck
48-
$(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) $(srcdir)/configure.patch
48+
$(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
4949
@BD=`pwd`; cd $(srcdir) && $(AUTOCONF) -f -B $${BD}
50-
-@($(AUTOCONF) --version | sed -n 1p | grep -F 2.71) && (cd $(srcdir); patch -p0 < configure.patch)
5150
$(ACLOCAL_M4): $(srcdir)/configure.ac acinclude.m4
5251
@BD=`pwd`; cd $(srcdir) && $(ACLOCAL) --output=$${BD}/$@ -I $${BD}
5352
acinclude.m4: $(srcdir)/configure.ac $(ACINCLUDE_DEPENDENCIES)
@@ -70,7 +69,7 @@ R: Makefile svnonly
7069
$(ECHO) "you should 'make docs' now ..."
7170

7271
docs: R FORCE
73-
-@(cd doc && $(MAKE) $@)
72+
@(cd doc && $(MAKE) $@)
7473
-@(cd src/library && $(MAKE) $@)
7574
FORCE:
7675

@@ -288,7 +287,7 @@ checkdistcomplete:
288287
rm -Rf $${dirname}; \
289288
echo "Checking $${distname}.tar.gz"; \
290289
$(R_GZIPCMD) -d -c $${distname}.tar.gz | $(TAR) -x -f -; \
291-
diff -r $${dirname} $(srcdir) | grep "^Only in $(srcdir)" | grep -v "^Only in.*[.]svn"; \
290+
LANGUAGE=C diff -r $${dirname} $(srcdir) | grep "^Only in $(srcdir)" | grep -v "^Only in.*[.]svn"; \
292291
rm -Rf $${dirname}
293292

294293
info pdf:

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.4.0 Under development (unstable)
1+
4.5.0 Under development (unstable)

0 commit comments

Comments
 (0)