Skip to content

Commit 8153157

Browse files
committed
R: try relocating CRAN packages this way
1 parent 47e3456 commit 8153157

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

build_files/50-rstudio.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ copr_install_isolated "iucar/rstudio" "rstudio-desktop" "rstudio-server"
1111
jq --arg desktopName "rstudio.desktop" '.["desktopName"] = ($desktopName)' /usr/libexec/rstudio/package.json | sponge /usr/libexec/rstudio/package.json
1212

1313
# Extra CRAN packages using cran2copr repo
14-
# - languageserver is needed for VS Code extension
15-
mkdir -p /usr/local/lib/R/library/
16-
copr_install_isolated "iucar/cran" "R-CRAN-languageserver" \
14+
pdnf copr enable "iucar/cran"
15+
mkdir -p /tmp/crans
16+
pdnf download --resolve --destdir=/tmp/crans --from-repo="copr:copr.fedorainfracloud.org:iucar:cran" \
17+
"R-CRAN-languageserver" \
1718
"R-CRAN-rmarkdown" "R-CRAN-rgbif" "R-CRAN-spocc" "R-CRAN-maps" "R-CRAN-mapproj" "R-CRAN-mapdata" "R-CRAN-dismo" "R-CRAN-raster" "R-CRAN-plotly" \
18-
"R-CRAN-RColorBrewer" "R-CRAN-tidyverse" "R-CRAN-readxl"
19-
20-
# R-CRAN packages install to wrong dir...
21-
rsync -avh --remove-source-files /usr/local/lib/R/library/ /usr/lib64/R/library/
22-
rm -rf /usr/local/lib/R/library/
19+
"R-CRAN-RColorBrewer" "R-CRAN-tidyverse" "R-CRAN-readxl" "R-CRAN-leafpop" "R-CRAN-geodata"
20+
find /tmp/crans -name '*.src.rpm' -type f -delete
21+
rpm --install --replacefiles --badreloc --relocate /usr/local/lib/R/library/=/usr/lib64/R/library/ /tmp/crans/*.rpm
22+
pdnf copr disable "iucar/cran"
23+
rm -rf /tmp/crans
2324

2425
#copr_install_isolated "@copr/PyPI" "python-radian"

0 commit comments

Comments
 (0)