Merge lp:~mitya57/ubuntu-packaging-guide/lp1043232 into lp:ubuntu-packaging-guide

Proposed by Dmitry Shachnev
Status: Merged
Merged at revision: 209
Proposed branch: lp:~mitya57/ubuntu-packaging-guide/lp1043232
Merge into: lp:ubuntu-packaging-guide
Diff against target: 55 lines (+13/-3)
3 files modified
Makefile (+7/-0)
debian/changelog (+4/-1)
debian/control (+2/-2)
To merge this branch: bzr merge lp:~mitya57/ubuntu-packaging-guide/lp1043232
Reviewer Review Type Date Requested Status
Daniel Holbach Approve
Review via email: mp+133819@code.launchpad.net

Description of the change

I hope you are not much tired of my MPs ;)

This branch:

- Adds a special case to Makefile to build Japanese PDFs (see https://bugs.launchpad.net/ubuntu-packaging-guide/+bug/1043232/+attachment/3430256/+files/ubuntu-packaging-guide.pdf);
- Adds some build-dependencies so that platex works. I'm not sure we want to do that at this point, though — feel free to comment them out for now.

To post a comment you must log in.
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Note: texlive-latex-extra depends on texlive-latex-recommended which depends on texlive-latex-base, so we don't need to build-depend on all three.

Revision history for this message
Daniel Holbach (dholbach) wrote :

After enabling 'ja' in LANGS and running make (html-ja|latexpdf-ja) I get the following crash:
Exception occurred:
  File "/usr/lib/python2.7/dist-packages/sphinx/application.py", line 204, in build
    self.builder.build_update()
  File "/usr/lib/python2.7/dist-packages/sphinx/builders/__init__.py", line 191, in build_update
    self.build(['__all__'], to_build)
  File "/usr/lib/python2.7/dist-packages/sphinx/builders/__init__.py", line 216, in build
    purple, length):
  File "/usr/lib/python2.7/dist-packages/sphinx/builders/__init__.py", line 120, in status_iterator
    for item in iterable:
  File "/usr/lib/python2.7/dist-packages/sphinx/environment.py", line 617, in update_generator
    self.read_doc(docname, app=app)
  File "/usr/lib/python2.7/dist-packages/sphinx/environment.py", line 765, in read_doc
    pub.publish()
  File "/usr/lib/python2.7/dist-packages/docutils/core.py", line 212, in publish
    self.apply_transforms()
  File "/usr/lib/python2.7/dist-packages/docutils/core.py", line 193, in apply_transforms
    self.document.transformer.apply_transforms()
  File "/usr/lib/python2.7/dist-packages/docutils/transforms/__init__.py", line 171, in apply_transforms
    transform.apply(**kwargs)
  File "/usr/lib/python2.7/dist-packages/sphinx/environment.py", line 232, in apply
    node.children[i] = child
IndexError: list assignment index out of range

Which sphinx version do you use?

Thanks a lot for your work on this.

review: Approve
Revision history for this message
Daniel Holbach (dholbach) wrote :

Sorry, should have been 'Needs Information'.

review: Needs Information
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

I use my own version of Sphinx — which will become -5ubuntu1 :)

It seems that you have the (buggy) patch from bug 1068493 applied — please try unapplying it (upstream says they are working on fixing it).

209. By Daniel Holbach

* Remove unnecessary build-dependencies.
* Makefile: add a special case for building Japanese PDF files
  (LP: #1043232).
* Build-depend on texlive-lang-cjk and latex-cjk-japanese.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Good work.

review: Approve
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Ah, and you may also want to delete the precise/quantal sphinx packages from the PPA if they break the build.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile'
2--- Makefile 2012-11-04 12:14:30 +0000
3+++ Makefile 2012-11-11 10:00:28 +0000
4@@ -172,6 +172,13 @@
5 make -C $(BUILDDIR)/latex/$* all-pdf
6 mkdir -p $(BUILDDIR)/pdf/$*; cp $(BUILDDIR)/latex/$*/*pdf $(BUILDDIR)/pdf/$*
7 @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/pdf/$*."
8+latexpdf-ja: locale-ja
9+ # Special case, selecting all-pdf-ja target instead of all-pdf
10+ $(SPHINXBUILD) -Dlanguage=ja -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex/ja
11+ @echo "Running LaTeX files through pdflatex..."
12+ make -C $(BUILDDIR)/latex/ja all-pdf-ja
13+ mkdir -p $(BUILDDIR)/pdf/ja; cp $(BUILDDIR)/latex/ja/*pdf $(BUILDDIR)/pdf/ja
14+ @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/pdf/ja."
15
16 text: $(foreach lang,$(LANGS),text-$(lang))
17 $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text/en
18
19=== modified file 'debian/changelog'
20--- debian/changelog 2012-11-04 12:18:11 +0000
21+++ debian/changelog 2012-11-11 10:00:28 +0000
22@@ -13,7 +13,7 @@
23 * Fix search not working (LP: #814679).
24 * Introduce -common package (LP: #1067338).
25 * Better resources linking.
26- * Remove build-dependency on fdupes.
27+ * Remove unnecessary build-dependencies.
28 * Add CSS styling for code blocks and search results page.
29 * Link JS files with the libjs-sphinxdoc package.
30 * Do not install websupport.js.
31@@ -22,6 +22,9 @@
32 blocks look inconsistent with other ones.
33 * Make some links easier to translate.
34 * Makefile: fix sed breaking "Grab the source" URL.
35+ * Makefile: add a special case for building Japanese PDF files
36+ (LP: #1043232).
37+ * Build-depend on texlive-lang-cjk and latex-cjk-japanese.
38 * Miscellaneous fixes.
39
40 -- Daniel Holbach <daniel.holbach@ubuntu.com> Fri, 12 Oct 2012 16:52:11 +0200
41
42=== modified file 'debian/control'
43--- debian/control 2012-10-17 18:04:07 +0000
44+++ debian/control 2012-11-11 10:00:28 +0000
45@@ -9,9 +9,9 @@
46 doc-base,
47 python-sphinx (>= 1.1~),
48 texlive-fonts-recommended,
49- texlive-latex-base,
50 texlive-latex-extra,
51- texlive-latex-recommended
52+ texlive-lang-cjk,
53+ latex-cjk-japanese
54 Homepage: https://launchpad.net/ubuntu-packaging-guide
55 Standards-Version: 3.9.3
56

Subscribers

People subscribed via source and target branches