From 2690611fed96b1b211a92c3793536eab2962c26f Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Sat, 4 Nov 2023 18:12:40 +0100 Subject: [PATCH] Add the libonig5 to the Travis packages to install For some strange reason, travis has started to fail with PHP 8.2 with error: php: error while loading shared libraries: libonig.so.5 It was not happening few days ago. Searching out there it seems that the fix is as simple as apt-installing that library. It's incredible that they don't have that implemented in their environments and things like this need to be installed manually. Any way, fixed in our own Travis test and also in the template and docs. --- .travis.dist.yml | 1 + .travis.yml | 1 + docs/CHANGELOG.md | 7 +++++++ docs/TravisFileExplained.md | 1 + 4 files changed, 10 insertions(+) diff --git a/.travis.dist.yml b/.travis.dist.yml index 81accd79..ce11403e 100644 --- a/.travis.dist.yml +++ b/.travis.dist.yml @@ -8,6 +8,7 @@ addons: packages: - postgresql-13 - postgresql-client-13 + - libonig5 services: - mysql diff --git a/.travis.yml b/.travis.yml index 54eade21..12d723ef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ addons: packages: - postgresql-13 - postgresql-client-13 + - libonig5 services: - mysql diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index f3481de8..67420d24 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -11,6 +11,13 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt ## [Unreleased] ### Changed - ACTION SUGGESTED: If you are using GitHub Actions, it's recomended to use `!cancelled()` instead of `always()` for moodle-plugin-ci tests. Adding a final step that always returns failure when the workflow is cancelled will ensure that cancelled workflows are not marked as successful. For a working example, please reference the updated `gha.dist.yml` file. +- ACTION SUGGESTED: For some (unknown) reason, Travis environments with PHP 8.2 have started to fail with error: + + ``` + php: error while loading shared libraries: libonig.so.5 + ``` + + To avoid that problem it's recommended to to add the `libonig5` package to the `travis.yml` file. For a working example, please reference the updated `.travis.dist.yml`file. ## [4.1.8] - 2023-10-20 ### Changed diff --git a/docs/TravisFileExplained.md b/docs/TravisFileExplained.md index 0c8db5f1..843e4e1f 100644 --- a/docs/TravisFileExplained.md +++ b/docs/TravisFileExplained.md @@ -21,6 +21,7 @@ addons: packages: - postgresql-13 - postgresql-client-13 + - libonig5 # Ensure DB and docker services are running. services: