Source: kicad
Version: 4.0.0~rc1-1
Severity: serious
Tags: patch
Hi Maintainer
Kicad FTBFS when building the architecture-independent binary packages
in a clean chroot.
The build fails during dh_install:
cp: cannot stat 'debian/tmp/usr/share/doc/kicad/help/en': No such file
or directory
dh_install: cp --reflink=auto -a debian/tmp/usr/share/doc/kicad/help/en
debian/kicad-doc-en//usr/share/doc/kicad/help/ returned exit code 1
However, the actual problem occurs much earlier during the build:
a2x: ERROR: "dblatex" -t pdf -p
"/etc/asciidoc/dblatex/asciidoc-dblatex.xsl" -s
"/etc/asciidoc/dblatex/asciidoc-dblatex.sty" -P
latex.output.revhistory=0 -P doc.publisher.show=0 -s
/«PKGBUILDDIR»/doc/kicad-doc-master/CMakeSupport/pdf-cover-dblatex.sty
-b xetex -p
/«PKGBUILDDIR»/doc/kicad-doc-master/src/cvpcb/../../xsl/dblatex-pdf-ja.xsl
-o /«PKGBUILDDIR»/doc/build/src/cvpcb/en/cvpcb.pdf
"/«PKGBUILDDIR»/doc/build/src/cvpcb/en/cvpcb.xml" returned non-zero exit
status 1
make[5]: *** [src/cvpcb/CMakeFiles/cvpcb_pdf_en] Error 1
make[4]: *** [src/cvpcb/CMakeFiles/cvpcb_pdf_en.dir/all] Error 2
make[3]: *** [all] Error 2
This can be seen in a full build log from Ubuntu [1]. I noticed on one
machine I was able to do a local build and on another I was not. I
started adding at the packages recommended by the existing
build-dependencies and managed to get kicad to build in a clean chroot
by adding the build-dependencies as per the attached patch. I suspect
that not all of these are actually needed, but I did confirm that
lmodern is required, and adding only lmodern is not sufficient. I hope
that helps.
Regards
Graham
[1]
https://launchpadlibrarian.net/228213627/buildlog_ubuntu-xenial-amd64.kicad_4.0.0~rc1a-1_BUILDING.txt.gz
--- a/debian/control
+++ b/debian/control
@@ -14,7 +14,13 @@
dblatex, po4a, asciidoc, git, texlive-xetex, pandoc, gettext, fonts-vlgothic,
texlive-lang-english, texlive-lang-french, texlive-lang-italian,
texlive-lang-japanese, texlive-lang-polish, texlive-lang-european,
- source-highlight
+ source-highlight,
+ libxml2-utils, docbook-utils, xmlto,
+ libtext-wrapi18n-perl,
+ libterm-readkey-perl,
+ liblocale-gettext-perl,
+ libunicode-linebreak-perl,
+ lmodern
Standards-Version: 3.9.6
Homepage: http://www.kicad-pcb.org