DEV: Improve support for Ubuntu 20 and Debian 12 #750
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've been looking to improve the guide to setting up a development environment and tested the different versions of Ubuntu and Debian (fresh dev installation on cloud hosting)
What does this PR is to fix Ubuntu 20 and Debian 12 installations.
Ubuntu 20 is still officially supported.
In short:
libheif
andlibaom
libraries are not backported.libwebp7
is required in Debian 12.Debian 10 and Ubuntu 18 are voluntarily ignored in the changes because they are either no longer supported or too old.
Debian
There is no backports installed by default.
E.g. Debian 11:
Looking at the Debian backports:
The libraries are not backported. I don't see any reason to try to use them.
10
The script fails on
ImageMagick
. The required version doesn't match.checking for libheif >= 1.4.0... no
It's possible to compile from source.
This distribution is fairly old, and It seems to be a good idea to use at least the same version as Discourse (Debian 11)
11
With the change introduced in this PR, it works great.
Discourse uses the
bullseyes-slim
docker image, and thebullseye-backports
is included by default.12
With the change introduced in this PR, it works great.
Ubuntu
18
Similar to Debian 10, this can work with some effort. However, the distribution is fairly old and unsupported.
To make it work, you need at least Node 16 and libeom/heif compiled from the source.
We can skip it.
20
With the change introduced in this PR, it works great.
22
It works great as it is.