[Pkg-opencl-devel] Bug#770599: opengl-4-html-doc: missing files, .php sidebar hard to use locally

Rebecca N. Palmer rebecca_palmer at zoho.com
Sat Nov 22 14:37:29 UTC 2014


Package: opengl-4-html-doc
Version: 1.0~svn27841
Control: tags -1 patch

This package provides the index sidebar in .php format (index.php, 
indexflat.php), presumably because upstream intended it to be installed 
on a web server; this is problematic when using the package locally, as 
iceweasel won't open a .php file even if its contents are valid HTML.

It also simply omits the two-frame structure (bottom.php), stylesheets 
(*.css) and collapse/expand buttons (bullets-*.gif).

Fix:

diff -Nru 
khronos-opengl-man4-1.0~svn27841/debian/opengl-4-html-doc.doc-base 
khronos-opengl-man4-1.0~svn27841/debian/opengl-4-html-doc.doc-base
--- khronos-opengl-man4-1.0~svn27841/debian/opengl-4-html-doc.doc-base 
2014-06-18 21:15:38.000000000 +0100
+++ khronos-opengl-man4-1.0~svn27841/debian/opengl-4-html-doc.doc-base 
2014-11-21 08:33:30.000000000 +0000
@@ -11,5 +11,5 @@
  Section: Programming

  Format: HTML
-Index: /usr/share/doc/opengl-4-html-doc/index.php
+Index: /usr/share/doc/opengl-4-html-doc/index.html
  Files: /usr/share/doc/opengl-4-html-doc/*
diff -Nru khronos-opengl-man4-1.0~svn27841/debian/rules 
khronos-opengl-man4-1.0~svn27841/debian/rules
--- khronos-opengl-man4-1.0~svn27841/debian/rules	2014-06-18 
21:26:47.000000000 +0100
+++ khronos-opengl-man4-1.0~svn27841/debian/rules	2014-11-21 
08:42:41.000000000 +0000
@@ -9,15 +9,19 @@
  	dh_clean html/*.xml
  	dh_clean html/*.3G
  	dh_clean html/*.tmp
-	dh_clean html/index.html
+	dh_clean html/index.html html/indexflat.html html/indexacc.html 
html/index.php html/indexflat.php

  pkg_xml = opengl-4-html-doc
  pkg_man = opengl-4-man-doc

  override_dh_installdocs:
+	sed -e 's/src="html\//src="/g' -e 's/indexflat.php/indexflat.html/g' 
bottom.php > html/index.html
+	sed -e 's/indexflat.php/indexflat.html/g' -e "s/<?php include 
'accord.js'; ?>/cat html\/accord.js/e" html/index.php > html/indexacc.html
+	sed -e 's/index.php/indexacc.html/g' html/indexflat.php > 
html/indexflat.html
  	dh_installdocs -p$(pkg_xml) html/*.xhtml
  	dh_installdocs -p$(pkg_xml) html/*.html
-	dh_installdocs -p$(pkg_xml) html/*.php
+	dh_installdocs -p$(pkg_xml) html/*.css
+	dh_installdocs -p$(pkg_xml) html/bullets-*.gif

  override_dh_installman:
  	# bad-so-link-within-manual-page
@@ -30,7 +34,7 @@
  override_dh_auto_install:

  override_dh_compress:
-	dh_compress -X.xhtml -X.php
+	dh_compress -X.xhtml

  get-orig-source:
  	./debian/get-orig-source



More information about the Pkg-opencl-devel mailing list