[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#989654: unblock: dolfin/2019.2.0~git20201207.b495043-5



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package dolfin

[ Reason ]

Privacy hacking on the mathjax url in documentation was incorrect, so
that mathematical equations in docs (in particular for demos) was not
correctly formatted (shown as raw TeX).

This patch fixes the privacy hack so documentation can be read
properly as intended.

[ Impact ]

Mathematical equations in docs are rendered as TeX texts, making them
almost useless. Documentation for a stable release should display
correctly.

[ Tests ]

debci tests are in place.
The documentation correction made here has been checked manually.

[ Risks ]

Patch is trivial, fixing documentation url.
No substantive code changes, so risks are negligible.

[ Checklist ]
  [x ] all changes are documented in the d/changelog
  [x ] I reviewed all changes and I approve them
  [x ] attach debdiff against the package in testing

unblock dolfin/2019.2.0~git20201207.b495043-5
diff -Nru dolfin-2019.2.0~git20201207.b495043/debian/changelog dolfin-2019.2.0~git20201207.b495043/debian/changelog
--- dolfin-2019.2.0~git20201207.b495043/debian/changelog	2021-01-29 17:09:57.000000000 +0100
+++ dolfin-2019.2.0~git20201207.b495043/debian/changelog	2021-06-09 13:23:16.000000000 +0200
@@ -1,3 +1,10 @@
+dolfin (2019.2.0~git20201207.b495043-5) unstable; urgency=medium
+
+  * use triple-slash (file:///) for mathjax local url replacement to
+    make docs for demos properly legible.
+
+ -- Drew Parsons <dparsons@debian.org>  Wed, 09 Jun 2021 13:23:16 +0200
+
 dolfin (2019.2.0~git20201207.b495043-4) unstable; urgency=medium
 
   * debian/tests: add ppc64el to the list of arches skipping some tests
diff -Nru dolfin-2019.2.0~git20201207.b495043/debian/rules dolfin-2019.2.0~git20201207.b495043/debian/rules
--- dolfin-2019.2.0~git20201207.b495043/debian/rules	2021-01-29 17:09:57.000000000 +0100
+++ dolfin-2019.2.0~git20201207.b495043/debian/rules	2021-06-09 13:23:16.000000000 +0200
@@ -326,7 +326,7 @@
 
 override_dh_sphinxdoc-indep:
 	dh_sphinxdoc -i
-	grep "https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/latest.js"; debian/dolfin-doc/usr/share/doc/dolfin-doc/* -r --files-with-matches | xargs sed "s|src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/latest.js|src=\"file://usr/share/javascript/mathjax/unpacked/latest.js|g" -i
+	grep "https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/latest.js"; debian/dolfin-doc/usr/share/doc/dolfin-doc/* -r --files-with-matches | xargs sed "s|src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/latest.js|src=\"file:///usr/share/javascript/mathjax/unpacked/latest.js|g" -i
 
 # set petsc:Depends to something like "libpetsc-real3.8-dev, libslepc-real3.8-dev, python-petsc4py (>= 3.8), python-petsc4py (<< 3.9), python-slepc4py (>= 3.8), python-slepc4py (<< 3.9)"
 PETSC_DEV_DEPENDS="libpetsc-real$(PETSC_VERSION)-dev | libpetsc$(PETSC_UPSTREAM_VERSION)-dev, libslepc-real$(SLEPC_VERSION)-dev | libslepc$(SLEPC_UPSTREAM_VERSION)-dev"

Reply to: