Bug#882699: ngspice: Remove build dependency on elyxer to allow for the elyxer removal from Debian

Sven Hoexter sven at timegate.de
Mon Dec 25 21:50:50 UTC 2017


On Mon, Dec 25, 2017 at 10:41:02PM +0100, Gudjon I. Gudjonsson wrote:
> >         /build/ngspice-27/debian/tmp/usr/share/doc/ngspice-doc/html
> > cp: cannot stat '/build/ngspice-27/build/manual/manual.html.LyXconv/*': No such file or directory
> > debian/rules:125: recipe for target 'install-indep' failed
> > 
> > .LyXconv is something temporary, I've to take a closer look during the upcoming rainy days.
> > 
> Does it?
> It creates manual.xhtml on my computer and png pictures with terribly long filenames but I can open the
> file manual.xhtml in firefox and it seems to display without any errors (there are errors in the elyxer html output).
> 
> Just getting the output into a directory and I think the problem is solved.

You're right just realized that's something hardcoded in debian/rules. I thought it must
be something dynamically matched or from somewhere else in the build process. I should get
a bit more sleep maybe. ;)

My current diff looks like this:
diff -Nru ngspice-27/debian/control ngspice-27/debian/control
--- ngspice-27/debian/control   2016-03-28 20:54:04.000000000 +0200
+++ ngspice-27/debian/control   2016-03-28 20:54:04.000000000 +0200
@@ -21,7 +21,6 @@
                blt-dev
 Build-Depends-Indep: lyx, 
                      texlive,
-                     elyxer,
                      texlive-science,
                      texlive-latex-extra, 
                      texlive-lang-greek,
diff -Nru ngspice-27/debian/rules ngspice-27/debian/rules
--- ngspice-27/debian/rules     2016-03-28 20:54:04.000000000 +0200
+++ ngspice-27/debian/rules     2016-03-28 20:54:04.000000000 +0200
@@ -83,8 +83,8 @@
        # Build documentation
        dh_testdir
        #cd build/manual && lyx -userdir ./.lyx -batch --export ps manual.lyx 
-       -cd build/manual && lyx -userdir ./.lyx -batch --export pdf2 manual.lyx 
-       cd build/manual && lyx -userdir ./.lyx -batch --export html manual.lyx 
+       cd build/manual && lyx -userdir ./.lyx -batch --export pdf2 manual.lyx 
+       cd build/manual && lyx -userdir ./.lyx -batch --export xhtml manual.lyx 
        touch $@
 
 clean:
@@ -124,7 +124,7 @@
 install-indep: build-indep
        # Documentation for ngspice, the same as for tclspice
        mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/ngspice-doc/html
-       cp -a $(CURDIR)/build/manual/manual.html.LyXconv/* \
+       cp -a $(CURDIR)/build/manual/*.{xhtml,png} \
                $(CURDIR)/debian/tmp/usr/share/doc/ngspice-doc/html
        #install -o root -g root -m 644 build/manual/manual.ps \
        #       $(CURDIR)/debian/tmp/usr/share/doc/ngspice-doc/ngspice.ps



I think that should work, build is still running somewhere were bandwith is
cheap but the disk is rather slow. (I'm currently working with mosh over a
bi-directional sat link.) Though I'm not 100% sure if the {xhtml,png}
stuff is POSIX sh compatible.


Cheers,
Sven



More information about the debian-science-maintainers mailing list