dh_sphinxdoc: error: unknown JavaScript code: [...]/searchtools.js

Bug #1076153 reported by Jason Gerard DeRose on 2012-11-07
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sphinx (Ubuntu)
Undecided
Unassigned

Bug Description

On Raring I'm getting build failures like this:

make[1]: Leaving directory `/build/buildd/microfiber-12.11.0~bzr156~raring1'
   dh_install
   dh_installdocs
   dh_sphinxdoc
dh_sphinxdoc: error: unknown JavaScript code: debian/python3-microfiber-doc/usr/share/doc/python3-microfiber-doc/html/_static/searchtools.js

Build log is here:
https://launchpadlibrarian.net/122231353/buildlog_ubuntu-raring-i386.microfiber_12.11.0~bzr156~raring1_FAILEDTOBUILD.txt.gz

This package builds fine on Precise and Quantal.

My debian/ is here:
http://bazaar.launchpad.net/~microfiber/microfiber/trunk/files/head:/debian/

Jason Gerard DeRose (jderose) wrote :

Oops, that buildlog got deleted when I retried the build. Here's the buildlog from a failed build from today:

https://launchpadlibrarian.net/123057666/buildlog_ubuntu-raring-i386.microfiber_12.11.0~bzr162~raring1_FAILEDTOBUILD.txt.gz

Jason Gerard DeRose (jderose) wrote :

Ah, looks like virtualenvwrapper had the same issue, example work-around here:

http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/raring/virtualenvwrapper/raring/view/head:/debian/rules

Jason Gerard DeRose (jderose) wrote :

Okay, in my case I could work around this with the following target:

override_dh_sphinxdoc:
 dh_sphinxdoc -X searchtools.js

I personally still consider this a bug (in either debhelper or sphinx) as it's unfortunate for every package to require work-arounds for such a common scenario.

But at least I have my builds on Raring working now :)

 dh_sphinxdoc is provided by sphinx.

affects: debhelper (Ubuntu) → sphinx (Ubuntu)
Changed in sphinx (Debian):
status: Unknown → New
Dmitry Shachnev (mitya57) wrote :

This should be fixed in the latest sphinx (1.1.3+dfsg-5ubuntu1), can you please try that version?

Changed in sphinx (Ubuntu):
status: New → Incomplete
Jason Gerard DeRose (jderose) wrote :

Dmitry, I just built two of the my packages without the override_dh_sphinxdoc hack, and they built fine.

So this seems to be fixed in 1.1.3+dfsg-5ubuntu1, thanks!

Dmitry Shachnev (mitya57) wrote :

Marking as fixed then. Note that the Debian bug report is not related to this bug, but I can't remove the link.

Changed in sphinx (Ubuntu):
status: Incomplete → Fix Released
no longer affects: sphinx (Debian)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.