tags 997756 patch
thanks

Hi,

I ran across this FTBFS today and investigated.  Here's a patch.
The forkme sed now appears unneeded, and the other one needs a URL update.

-Dan
diff -Nru python-meshplex-0.15.13/debian/rules python-meshplex-0.15.13/debian/rules
--- python-meshplex-0.15.13/debian/rules	2021-03-16 04:39:31.000000000 -0600
+++ python-meshplex-0.15.13/debian/rules	2021-11-30 15:35:13.000000000 -0700
@@ -4,6 +4,7 @@
 #export DH_VERBOSE = 1
 
 export PYBUILD_NAME=meshplex
+latestjs=https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
 
 %:
 	dh $@ --with python3,sphinxdoc --buildsystem=pybuild
@@ -21,5 +22,4 @@
 
 override_dh_sphinxdoc-indep:
 	dh_sphinxdoc -i
-	grep "https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/latest.js"; debian/python-meshplex-doc/usr/share/doc/python-meshplex-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://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"; debian/python-meshplex-doc/usr/share/doc/python-meshplex-doc/* -r --files-with-matches | xargs sed "s|src=\"https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png|src=\"_static/forkme_right_darkblue_121621.png|g" -i
+	grep "$(latestjs)" debian/python-meshplex-doc/usr/share/doc/python-meshplex-doc/* -r --files-with-matches | xargs sed "s|src=\"$(latestjs)|src=\"file://usr/share/javascript/mathjax/unpacked/latest.js|g" -i

Reply via email to