https://github.com/mathjax/MathJax/releases Nothing needs this right now, but work is in progress to port the SageMath docs to it (https://trac.sagemath.org/ticket/25833). Few other distributions are packaging mathjax-3.x so it would be nice to have it in Gentoo to test sage's support for using the system copy. NB: to answer the question, # web server config file - should we really do this? I don't think so. Unless you personally are using it, this location isn't correct for Gentoo's apache, insinto /etc/httpd/conf.d so I don't think the config file is doing anyone any good.
Sage has finished the 3.x upgrade and would be able to make use of this now.
Created attachment 840335 [details] mathjax-docs-3.2.2.ebuild
Created attachment 840337 [details] mathjax-3.2.2.ebuild Proposed ebuild, should also fix bug 867370.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46560543c9d48506feb83de473a7b0bd0298ae83 commit 46560543c9d48506feb83de473a7b0bd0298ae83 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2023-08-16 14:24:02 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2023-08-16 20:13:10 +0000 dev-libs/mathjax: add 3.2.2 Closes: https://bugs.gentoo.org/837722 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> dev-libs/mathjax/Manifest | 1 + dev-libs/mathjax/mathjax-3.2.2.ebuild | 45 +++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bb74854608a2203669061ebb6536a03c740368e commit 8bb74854608a2203669061ebb6536a03c740368e Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2023-08-16 14:14:14 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2023-08-16 20:13:09 +0000 app-doc/mathjax-docs: add 3.2.2 Bug: https://bugs.gentoo.org/837722 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> app-doc/mathjax-docs/Manifest | 1 + app-doc/mathjax-docs/mathjax-docs-3.2.2.ebuild | 40 ++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1bb10658cbac3820d2fa1850cdc881a3192b71a commit a1bb10658cbac3820d2fa1850cdc881a3192b71a Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2023-08-16 14:01:32 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2023-08-16 20:13:08 +0000 net-wireless/gnuradio: add dev-libs/mathjax upper bound Upstream requires the old mathjax-2.x, so when we add mathjax-3.x, bad things will happen otherwise. Bug: https://bugs.gentoo.org/837722 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> .../{gnuradio-3.10.4.0-r1.ebuild => gnuradio-3.10.4.0-r2.ebuild} | 2 +- .../{gnuradio-3.10.6.0-r1.ebuild => gnuradio-3.10.6.0-r2.ebuild} | 2 +- .../gnuradio/{gnuradio-3.10.7.0.ebuild => gnuradio-3.10.7.0-r1.ebuild} | 2 +- net-wireless/gnuradio/gnuradio-9999.ebuild | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=157412240a26b74ead96b14d005f7b07f1a9228f commit 157412240a26b74ead96b14d005f7b07f1a9228f Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2023-08-16 13:54:37 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2023-08-16 20:13:08 +0000 dev-python/notebook: add dev-libs/mathjax upper bound Upstream requires the old mathjax-2.x, so when we add mathjax-3.x, bad things will happen otherwise. Newer notebook-7.x versions rely on a CDN to supply MathJax. Bug: https://bugs.gentoo.org/837722 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> dev-python/notebook/{notebook-6.5.4.ebuild => notebook-6.5.4-r1.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6749984156fcfed1d3a2074c0ae6200975491dfc commit 6749984156fcfed1d3a2074c0ae6200975491dfc Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2023-08-16 13:46:08 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2023-08-16 20:13:07 +0000 app-text/atril: add dev-libs/mathjax upper bound Upstream requires the old mathjax-2.x (it loads MathJax.js), so when we add mathjax-3.x, bad things will happen otherwise. It's not clear to me that this ever worked, because the path to MathJax.js is hard-coded upstream as /usr/share/javascript/mathjax, and that's not what Gentoo uses -- but let's be safe. Bug: https://bugs.gentoo.org/837722 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> app-text/atril/{atril-1.26.0-r4.ebuild => atril-1.26.0-r5.ebuild} | 2 +- app-text/atril/{atril-1.26.1.ebuild => atril-1.26.1-r1.ebuild} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9d11a491abec360730183e4edee265e2a12b620 commit f9d11a491abec360730183e4edee265e2a12b620 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2023-08-16 13:21:48 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2023-08-16 20:13:06 +0000 sci-libs/ceres-solver: add dev-libs/mathjax upper bound This package patches in support for the system copy of dev-libs/mathjax, and may actually work with mathjax-3.x, but for now let's play it safe. An upgrade to mathjax-3.x can be attempted once it's in the tree. Bug: https://bugs.gentoo.org/837722 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> .../{ceres-solver-2.1.0.ebuild => ceres-solver-2.1.0-r1.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c106cf9e4ee6b29a4357feaf0fd9e5e9744769f6 commit c106cf9e4ee6b29a4357feaf0fd9e5e9744769f6 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2023-08-16 13:18:56 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2023-08-16 20:13:05 +0000 sci-libs/clblas: add dev-libs/mathjax upper bound Upstream (last release in 2017) requires the old mathjax-2.x, so when we add mathjax-3.x, bad things will happen otherwise. Bug: https://bugs.gentoo.org/837722 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> sci-libs/clblas/{clblas-2.12-r1.ebuild => clblas-2.12-r2.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5c38c303dc73ffec34cfa9263c9c87af24fae74 commit c5c38c303dc73ffec34cfa9263c9c87af24fae74 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2023-08-16 13:14:38 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2023-08-16 20:13:04 +0000 sci-libs/lemon: add dev-libs/mathjax upper bound Upstream (last release in 2014) requires the old mathjax-2.x, so when we add mathjax-3.x, bad things will happen otherwise. Bug: https://bugs.gentoo.org/837722 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> sci-libs/lemon/{lemon-1.3.1-r1.ebuild => lemon-1.3.1-r2.ebuild} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=240d754ae0c9f17c72828c49d6292e4c9f4f172f commit 240d754ae0c9f17c72828c49d6292e4c9f4f172f Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2023-08-16 13:09:20 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2023-08-16 20:13:00 +0000 sci-mathematics/yacas: add dev-libs/mathjax upper bound Upstream bundles mathjax-2.x, so when we add mathjax-3.x, bad things will happen otherwise. Bug: https://bugs.gentoo.org/837722 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> sci-mathematics/yacas/{yacas-1.9.1.ebuild => yacas-1.9.1-r1.ebuild} | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61a07b398daf65f210933fef08d7697bab56c97e commit 61a07b398daf65f210933fef08d7697bab56c97e Author: Eli Schwartz <eschwartz93@gmail.com> AuthorDate: 2024-02-14 23:46:25 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-02-15 13:50:27 +0000 dev-libs/mathjax: include USE=docs as part of the package (3.x) Do not use a separated app-docs/mathjax-docs. It is impossible to get correct: the symlink is generated using best_version, which applies at build time but doesn't match the version at runtime, so having an -r1 breaks the package. It also wasn't implemented correctly even if it could be gotten correct, because the docs package is a build time dependency, not a runtime one. To cap it off, this was introduced as a side effect of updating the package to 3.x, in an attempt to solve the broken symlink in the 2.x package. But it never referenced bug 867370 in the commit message. While we are at it, fix a flaw in the code merged from mathjax-docs, which didn't implement python_check_deps. Fixes: 46560543c9d48506feb83de473a7b0bd0298ae83 Bug: https://bugs.gentoo.org/837722 Closes: https://bugs.gentoo.org/867370 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> dev-libs/mathjax/Manifest | 1 + dev-libs/mathjax/mathjax-3.2.2-r2.ebuild | 53 +++++++++++++++++++++++--------- 2 files changed, 39 insertions(+), 15 deletions(-)