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
=== modified file 'Makefile'
--- Makefile 2012-11-04 12:14:30 +0000
+++ Makefile 2012-11-11 10:00:28 +0000
@@ -172,6 +172,13 @@
172 make -C $(BUILDDIR)/latex/$* all-pdf172 make -C $(BUILDDIR)/latex/$* all-pdf
173 mkdir -p $(BUILDDIR)/pdf/$*; cp $(BUILDDIR)/latex/$*/*pdf $(BUILDDIR)/pdf/$*173 mkdir -p $(BUILDDIR)/pdf/$*; cp $(BUILDDIR)/latex/$*/*pdf $(BUILDDIR)/pdf/$*
174 @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/pdf/$*."174 @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/pdf/$*."
175latexpdf-ja: locale-ja
176 # Special case, selecting all-pdf-ja target instead of all-pdf
177 $(SPHINXBUILD) -Dlanguage=ja -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex/ja
178 @echo "Running LaTeX files through pdflatex..."
179 make -C $(BUILDDIR)/latex/ja all-pdf-ja
180 mkdir -p $(BUILDDIR)/pdf/ja; cp $(BUILDDIR)/latex/ja/*pdf $(BUILDDIR)/pdf/ja
181 @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/pdf/ja."
175182
176text: $(foreach lang,$(LANGS),text-$(lang))183text: $(foreach lang,$(LANGS),text-$(lang))
177 $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text/en184 $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text/en
178185
=== modified file 'debian/changelog'
--- debian/changelog 2012-11-04 12:18:11 +0000
+++ debian/changelog 2012-11-11 10:00:28 +0000
@@ -13,7 +13,7 @@
13 * Fix search not working (LP: #814679).13 * Fix search not working (LP: #814679).
14 * Introduce -common package (LP: #1067338).14 * Introduce -common package (LP: #1067338).
15 * Better resources linking.15 * Better resources linking.
16 * Remove build-dependency on fdupes.16 * Remove unnecessary build-dependencies.
17 * Add CSS styling for code blocks and search results page.17 * Add CSS styling for code blocks and search results page.
18 * Link JS files with the libjs-sphinxdoc package.18 * Link JS files with the libjs-sphinxdoc package.
19 * Do not install websupport.js.19 * Do not install websupport.js.
@@ -22,6 +22,9 @@
22 blocks look inconsistent with other ones.22 blocks look inconsistent with other ones.
23 * Make some links easier to translate.23 * Make some links easier to translate.
24 * Makefile: fix sed breaking "Grab the source" URL.24 * Makefile: fix sed breaking "Grab the source" URL.
25 * Makefile: add a special case for building Japanese PDF files
26 (LP: #1043232).
27 * Build-depend on texlive-lang-cjk and latex-cjk-japanese.
25 * Miscellaneous fixes.28 * Miscellaneous fixes.
2629
27 -- Daniel Holbach <daniel.holbach@ubuntu.com> Fri, 12 Oct 2012 16:52:11 +020030 -- Daniel Holbach <daniel.holbach@ubuntu.com> Fri, 12 Oct 2012 16:52:11 +0200
2831
=== modified file 'debian/control'
--- debian/control 2012-10-17 18:04:07 +0000
+++ debian/control 2012-11-11 10:00:28 +0000
@@ -9,9 +9,9 @@
9 doc-base,9 doc-base,
10 python-sphinx (>= 1.1~),10 python-sphinx (>= 1.1~),
11 texlive-fonts-recommended,11 texlive-fonts-recommended,
12 texlive-latex-base,
13 texlive-latex-extra,12 texlive-latex-extra,
14 texlive-latex-recommended13 texlive-lang-cjk,
14 latex-cjk-japanese
15Homepage: https://launchpad.net/ubuntu-packaging-guide15Homepage: https://launchpad.net/ubuntu-packaging-guide
16Standards-Version: 3.9.316Standards-Version: 3.9.3
1717

Subscribers

People subscribed via source and target branches