From 1cd7d3883d30fb7db13893e465db4a1d503c1781 Mon Sep 17 00:00:00 2001 From: Duncan Murdoch Date: Wed, 23 Apr 2025 12:36:37 -0400 Subject: [PATCH 1/9] Avoid missing gettext --- .github/workflows/R-CMD-check.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 562fe0f..7d39676 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -34,6 +34,11 @@ jobs: - uses: r-lib/actions/setup-pandoc@v2 + - name: Install dependencies on MacOS + if: runner.os == 'macOS' + run: | + brew install gettext + - uses: r-lib/actions/setup-r@v2 with: r-version: ${{ matrix.config.r }} From 5968b43fe2a0480b0e13ef3c50d78101b30a3595 Mon Sep 17 00:00:00 2001 From: Duncan Murdoch Date: Wed, 23 Apr 2025 12:41:55 -0400 Subject: [PATCH 2/9] Install from CRAN instead --- .github/workflows/R-CMD-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 7d39676..a2ad72c 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -37,7 +37,7 @@ jobs: - name: Install dependencies on MacOS if: runner.os == 'macOS' run: | - brew install gettext + curl https://mac.r-project.org/bin/darwin20/arm64/gettext-0.22.5-darwin.20-arm64.tar.xz | tar xz -C / - uses: r-lib/actions/setup-r@v2 with: From 441da1517b426df629690d4254feeb1c44fe85da Mon Sep 17 00:00:00 2001 From: Duncan Murdoch Date: Thu, 24 Apr 2025 02:06:53 -0400 Subject: [PATCH 3/9] Try sudo --- .github/workflows/R-CMD-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index a2ad72c..19b7a3b 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -37,7 +37,7 @@ jobs: - name: Install dependencies on MacOS if: runner.os == 'macOS' run: | - curl https://mac.r-project.org/bin/darwin20/arm64/gettext-0.22.5-darwin.20-arm64.tar.xz | tar xz -C / + sudo curl https://mac.r-project.org/bin/darwin20/arm64/gettext-0.22.5-darwin.20-arm64.tar.xz | tar xz -C / - uses: r-lib/actions/setup-r@v2 with: From bc9176cb01d8d9905972d0e213d1017840d79c97 Mon Sep 17 00:00:00 2001 From: Duncan Murdoch Date: Thu, 24 Apr 2025 02:11:06 -0400 Subject: [PATCH 4/9] Fix architecture --- .github/workflows/R-CMD-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 19b7a3b..99984a1 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -37,7 +37,7 @@ jobs: - name: Install dependencies on MacOS if: runner.os == 'macOS' run: | - sudo curl https://mac.r-project.org/bin/darwin20/arm64/gettext-0.22.5-darwin.20-arm64.tar.xz | tar xz -C / + sudo curl https://mac.r-project.org/bin/darwin20/x86_64/gettext-0.22.5-darwin.20-x86_64.tar.xz | tar xz -C / - uses: r-lib/actions/setup-r@v2 with: From e1c99072f590451dd76c62d1c0fd0c382c96ca49 Mon Sep 17 00:00:00 2001 From: Duncan Murdoch Date: Thu, 24 Apr 2025 02:17:10 -0400 Subject: [PATCH 5/9] install gettext files later --- .github/workflows/R-CMD-check.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 99984a1..dc4adf1 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -34,11 +34,6 @@ jobs: - uses: r-lib/actions/setup-pandoc@v2 - - name: Install dependencies on MacOS - if: runner.os == 'macOS' - run: | - sudo curl https://mac.r-project.org/bin/darwin20/x86_64/gettext-0.22.5-darwin.20-x86_64.tar.xz | tar xz -C / - - uses: r-lib/actions/setup-r@v2 with: r-version: ${{ matrix.config.r }} @@ -50,6 +45,11 @@ jobs: extra-packages: any::rcmdcheck needs: check + - name: Install dependencies on MacOS + if: runner.os == 'macOS' + run: | + sudo curl https://mac.r-project.org/bin/darwin20/x86_64/gettext-0.22.5-darwin.20-x86_64.tar.xz | tar xz -C / + - uses: r-lib/actions/check-r-package@v2 with: upload-snapshots: true From 86e1ac7e478b9c50eb6871ed2dd0499008ac5458 Mon Sep 17 00:00:00 2001 From: Duncan Murdoch Date: Thu, 24 Apr 2025 02:24:07 -0400 Subject: [PATCH 6/9] Back to arm64 --- .github/workflows/R-CMD-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index dc4adf1..3f57d02 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -48,7 +48,7 @@ jobs: - name: Install dependencies on MacOS if: runner.os == 'macOS' run: | - sudo curl https://mac.r-project.org/bin/darwin20/x86_64/gettext-0.22.5-darwin.20-x86_64.tar.xz | tar xz -C / + sudo curl https://mac.r-project.org/bin/darwin20/arm64/gettext-0.22.5-darwin.20-arm64.tar.xz | tar xz -C / - uses: r-lib/actions/check-r-package@v2 with: From 25ef3636e7e5afe116dafea725cbc534eb6416ec Mon Sep 17 00:00:00 2001 From: Duncan Murdoch Date: Thu, 24 Apr 2025 05:14:57 -0400 Subject: [PATCH 7/9] sudo the tar --- .github/workflows/R-CMD-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 3f57d02..dfe4451 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -48,7 +48,7 @@ jobs: - name: Install dependencies on MacOS if: runner.os == 'macOS' run: | - sudo curl https://mac.r-project.org/bin/darwin20/arm64/gettext-0.22.5-darwin.20-arm64.tar.xz | tar xz -C / + curl https://mac.r-project.org/bin/darwin20/arm64/gettext-0.22.5-darwin.20-arm64.tar.xz | sudo tar xz -C / - uses: r-lib/actions/check-r-package@v2 with: From 8399b6db96cee483fade7e5663c0c95fef73cba1 Mon Sep 17 00:00:00 2001 From: Duncan Murdoch Date: Thu, 24 Apr 2025 05:24:27 -0400 Subject: [PATCH 8/9] Specify gettext and bison as SystemRequirements --- .github/workflows/R-CMD-check.yaml | 5 ----- DESCRIPTION | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index dfe4451..562fe0f 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -45,11 +45,6 @@ jobs: extra-packages: any::rcmdcheck needs: check - - name: Install dependencies on MacOS - if: runner.os == 'macOS' - run: | - curl https://mac.r-project.org/bin/darwin20/arm64/gettext-0.22.5-darwin.20-arm64.tar.xz | sudo tar xz -C / - - uses: r-lib/actions/check-r-package@v2 with: upload-snapshots: true diff --git a/DESCRIPTION b/DESCRIPTION index d14622b..6ae67a4 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -27,4 +27,5 @@ Imports: utils Roxygen: list(markdown = TRUE) RoxygenNote: 7.3.2 VignetteBuilder: knitr +SystemRequirements: gettext, bison >= 3.0 Config/testthat/edition: 3 From f7b822a06a16c31096489b64f4a456c56b3498b7 Mon Sep 17 00:00:00 2001 From: Duncan Murdoch Date: Thu, 24 Apr 2025 05:29:38 -0400 Subject: [PATCH 9/9] Use R script to install gettext --- .github/workflows/R-CMD-check.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 562fe0f..2c9df36 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -45,6 +45,11 @@ jobs: extra-packages: any::rcmdcheck needs: check + - name: Install dependencies on MacOS + if: runner.os == 'macOS' + run: | + sudo Rscript -e "source('https://mac.R-project.org/bin/install.R'); install.libs('gettext')" + - uses: r-lib/actions/check-r-package@v2 with: upload-snapshots: true