From 6b2c24ebbf319b20af2ed6414a71c173d3ba3e5a Mon Sep 17 00:00:00 2001 From: Nick Forrester Date: Mon, 16 Dec 2024 12:56:57 +0000 Subject: [PATCH 1/2] Update install_verse.sh approach to dummy texlive install Based on this discussion: https://github.com/yihui/travis-bin/commit/687592b3f2e8e9aff322c2ac168295180e0ac39a#commitcomment-109192334 And this code: https://github.com/b-data/jupyterlab-r-docker-stack/blob/296fe9d348dfc0b645d2ab7130eb7621f475f57c/verse/latest.Dockerfile#L86-L95 --- scripts/install_verse.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/install_verse.sh b/scripts/install_verse.sh index 54fabed8..4f8d96ca 100755 --- a/scripts/install_verse.sh +++ b/scripts/install_verse.sh @@ -76,9 +76,14 @@ apt-get -y autoremove ## Add LaTeX, rticles and bookdown support ## tinytex recommends a dummy texlive if using tlmgr manually if [[ ! -x "/usr/bin/latex" ]]; then - wget "https://travis-bin.yihui.name/texlive-local.deb" + apt-get install -y --no-install-recommends equivs + cd /tmp + wget https://github.com/scottkosty/install-tl-ubuntu/raw/master/debian-control-texlive-in.txt + equivs-build debian-* + mv texlive-local*.deb texlive-local.deb dpkg -i texlive-local.deb - rm texlive-local.deb + apt-get -y purge equivs + apt-get -y autoremove fi ## Install texlive From d96930d3116daed847900909ec93126ddd10333b Mon Sep 17 00:00:00 2001 From: Nick Forrester Date: Tue, 17 Dec 2024 12:00:12 +0000 Subject: [PATCH 2/2] Update install_verse.sh to remove wget file --- scripts/install_verse.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install_verse.sh b/scripts/install_verse.sh index 4f8d96ca..b9d35044 100755 --- a/scripts/install_verse.sh +++ b/scripts/install_verse.sh @@ -76,12 +76,13 @@ apt-get -y autoremove ## Add LaTeX, rticles and bookdown support ## tinytex recommends a dummy texlive if using tlmgr manually if [[ ! -x "/usr/bin/latex" ]]; then - apt-get install -y --no-install-recommends equivs + apt_install equivs cd /tmp wget https://github.com/scottkosty/install-tl-ubuntu/raw/master/debian-control-texlive-in.txt equivs-build debian-* mv texlive-local*.deb texlive-local.deb dpkg -i texlive-local.deb + rm debian-control-texlive-in.txt apt-get -y purge equivs apt-get -y autoremove fi