Add a patch for the dvisvgm issue observed in https://github.com/openwebwork/pg/issues/1023.#2330
Conversation
The dependence on File::Copy::Recursive module was added in openwebwork#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.
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.patch` Note this patch is specific to Ubuntu 22.04, so don't try it on other versions of Ubuntu or other linux distributions. This was the change made in pgf-tikz/pgf#1276 that was merged into the master branch of the to the pgf-tikz latex package on October 23, 2023 that fixes the issue reported in pgf-tikz/pgf#1275.
59141ee to
16a2c3f
Compare
|
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. |
somiaj
left a comment
There was a problem hiding this comment.
I tested that the patch also correctly applies in Debian bookworm, and fixes the issue.
Note, you have .patch.patch in the above command, so copy/pasting it will fail.
|
Thanks. I fixed the patch command. |
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.patchNote 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 pgf-tikz/pgf#1276 that was merged into the master branch of the pgf-tikz latex package on October 23, 2023 that fixes the issue reported in pgf-tikz/pgf#1275.