Source: e2fsprogs
Version: 1.43~WIP.2016.03.15-2
Severity: important
Tags: patch
Hello,
When building e2fsprogs from source having texlive installed, creation of
libext2fs.dvi with texi2dvi fails when running pdfTeX the second time
(two-stage
compile). This is caused by the ~ character in the source directory: e2fsprogs-
1.43~WIP.2016.03.15, resulting in a compile of the absolute path
file/home/user/.../e2fsprogs- 1.43~WIP.2016.03.15/doc/libext2fs.texinfo.
Since the ~ character is an active character, it has to be escaped, i.e. with
\~. The attached patch fixes this by compiling the source file locally in the
target directory .../e2fsprogs-1.43~WIP.2016.03.15/debian/BUILD-STD/doc using
the --clean option to texi2dvi. This is the same as the --tidy option including
cleaning out generated files from the compile.
On buildds this problem does not occur, since TeX is not a dependency for
e2fsprogs, only texinfo, and errors are ignored, see e.g.
https://buildd.debian.org/status/fetch.php?pkg=e2fsprogs&arch=amd64&ver=1.43~WIP
.2016.03.15-2&stamp=1458274729
...
texi2dvi /«PKGBUILDDIR»/doc/libext2fs.texinfo
You don't have a working TeX binary (tex) installed anywhere in
your PATH, and texi2dvi cannot proceed without one. If you want to use
this script, you'll need to install TeX (if you don't have it) or change
your PATH or TEX environment variable (if you do). See the --help
output for more details.
For information about obtaining TeX, please see http://tug.org/texlive,
or do a web search for TeX and your operating system or distro.
On Debian you can install a working TeX system with
apt-get install texlive
Makefile:347: recipe for target 'libext2fs.dvi' failed
...
With the patch the .dvi file builds OK, but it is never installed. Only the
.info and .html versions are installed in the e2fslibs-dev package. However, it
would maybe be better to go on to build the .pdf file instead, by replacing
libext2fs.dvi by libext2fs.pdf in the all:: target list, and install that one.
(The patch is still needed.) Of course at the cost of needing e.g. texlive
installed also on the buildds. Otherwise the .dvi file might be removed from the
all:: target list.
Thanks!
Index: e2fsprogs-1.43~WIP.2016.03.15/doc/Makefile.in
===================================================================
--- e2fsprogs-1.43~WIP.2016.03.15.orig/doc/Makefile.in
+++ e2fsprogs-1.43~WIP.2016.03.15/doc/Makefile.in
@@ -11,7 +11,7 @@ INSTALL = @INSTALL@
@MCONFIG@
-DVI=texi2dvi
+DVI=texi2dvi --clean
DVIPS=dvips -o "$@"
INFO=@MAKEINFO@
HTML=makeinfo --html --no-split