openwebwork / webwork2

Course management front end for WeBWorK
http://webwork.maa.org/wiki/Main_Page
Other
141 stars 164 forks source link

Add a patch for the dvisvgm issue observed in https://github.com/openwebwork/pg/issues/1023. #2330

Closed drgrice1 closed 5 months ago

drgrice1 commented 5 months ago

This patch is applied in the docker build.

It can be applied on your server with the command sudo patch -p1 -d / < /opt/webwork/webwork2/docker-config/pgfsys-dvisvmg-bbox-fix.patch

Note this patch is specific to Ubuntu 22.04, so don't try it on other versions of Ubuntu or other linux distributions (or other operating systems).

This was the change made in https://github.com/pgf-tikz/pgf/pull/1276 that was merged into the master branch of the pgf-tikz latex package on October 23, 2023 that fixes the issue reported in https://github.com/pgf-tikz/pgf/issues/1275.

drgrice1 commented 5 months ago

In testing this I realized the docker build is broken, and has some other issues. So this pull request now fixes those things. These changes are in the first commit. The second commit is what this originally did.

The changes are:

The dependence on File::Copy::Recursive module was added in #2172, but not added to the docker build.

Start using node 20 in the docker build. The node 16 install script from nodesource is deprecated, and they have imposed a 60 second install delay when you use it.

Fix the ownership on the courses directory and admin course directory when the docker entrypoint runs. Fixing the ownership on the courses directory and admin course directory will not cause any slow down to the execution of that script. It is not a recursive ownership change, just two directories for which ownership is changed which is super fast.

drgrice1 commented 5 months ago

Thanks. I fixed the patch command.