[Pkg-opencl-devel] Bug#770600: opengl-4-html-doc: uses remote MathJax
Rebecca N. Palmer
rebecca_palmer at zoho.com
Sat Nov 22 14:44:04 UTC 2014
Package: opengl-4-html-doc
Version: 1.0~svn27841
Control: tags -1 patch
This package fetches inline JavaScript from a remote server; this is
discouraged for privacy reasons (lintian error:
privacy-breach-may-use-debian-package), and also reduces functionality
when offline.
Fix:
diff -Nru khronos-opengl-man4-1.0~svn27841/debian/control
khronos-opengl-man4-1.0~svn27841/debian/control
--- khronos-opengl-man4-1.0~svn27841/debian/control 2014-08-26
09:25:17.000000000 +0100
+++ khronos-opengl-man4-1.0~svn27841/debian/control 2014-11-21
08:57:00.000000000 +0000
@@ -17,6 +17,7 @@
Package: opengl-4-html-doc
Architecture: all
Depends: doc-base, ${misc:Depends}
+Recommends: libjs-mathjax
Replaces: opengl-4.2-html-doc (<< 1.0~svn21376-1)
Breaks: opengl-4.2-html-doc (<< 1.0~svn21376-1)
Description: OpenGL 4 documentation - html pages
diff -Nru khronos-opengl-man4-1.0~svn27841/debian/patches/series
khronos-opengl-man4-1.0~svn27841/debian/patches/series
--- khronos-opengl-man4-1.0~svn27841/debian/patches/series 2014-08-26
08:40:59.000000000 +0100
+++ khronos-opengl-man4-1.0~svn27841/debian/patches/series 2014-11-20
21:24:14.000000000 +0000
@@ -1,2 +1,3 @@
addingmanpages.patch
db5.patch
+use_local_mathjax.patch
diff -Nru
khronos-opengl-man4-1.0~svn27841/debian/patches/use_local_mathjax.patch
khronos-opengl-man4-1.0~svn27841/debian/patches/use_local_mathjax.patch
---
khronos-opengl-man4-1.0~svn27841/debian/patches/use_local_mathjax.patch
1970-01-01 01:00:00.000000000 +0100
+++
khronos-opengl-man4-1.0~svn27841/debian/patches/use_local_mathjax.patch
2014-11-21 10:27:31.000000000 +0000
@@ -0,0 +1,21 @@
+Description: Use Debian mathjax package
+
+Using remote resources in locally-installed documentation is discouraged
+for privacy reasons (lintian error: privacy-breach-may-use-debian-package).
+
+Recommend: rather than Depend: libjs-mathjax because browsers with
+native MathML support (e.g. iceweasel) don't need it.
+
+Author: Rebecca Palmer <rebecca_palmer at zoho.com>
+
+--- khronos-opengl-man4-1.0~svn27841.orig/html/opengl-man.xsl
++++ khronos-opengl-man4-1.0~svn27841/html/opengl-man.xsl
+@@ -62,7 +62,7 @@
+ });
+ </script>
+ <script type="text/javascript"
+-
src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
++
src="file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
+ </script>
+ </xsl:template>
+
More information about the Pkg-opencl-devel
mailing list