[GNC-dev] Unable to compile Docs

John Ralls jralls at ceridwen.us
Wed May 8 21:02:05 EDT 2019



> On May 8, 2019, at 5:09 PM, Stephen M. Butler <kg7je at arrl.net> wrote:
> 
> On 5/8/19 12:26 PM, John Ralls wrote:
>>> On May 8, 2019, at 7:37 AM, D <sunfish62 at yahoo.com> wrote:
>>> 
>>> I thought that those tools were only need to create the pdf and mobi versions.
>> Right. FOP isn't needed for building html documentation.
>> 
>> Regards,
>> John Ralls
>> 
>> 
> Hmm. I wonder why the debian package builder is building it that way for
> gnucash-docs. 
> 
> I open to suggestions on how to change debian/rules to create the package. 
> 
> 
> Debian/Rules:
> 
> #!/usr/bin/make -f
> 
> # Uncomment this to turn on verbose mode.
> #export DH_VERBOSE=1
> 
> ## Disable build-time network access #831019:
> export XSLTPROCFLAGS=--nonet
> 
> %:
>     dh $@
> 
> ## TODO: use "fonts-horai-umefont".
> fonts/gothic.xml:
>     fop-ttfreader /usr/share/fonts/truetype/horai-umefont/ume-tgo4.ttf $@
> 
> fonts/mincho.xml:
>     fop-ttfreader /usr/share/fonts/truetype/horai-umefont/ume-tmo3.ttf $@
> 
> #override_dh_clean:
> #    dh_clean fonts/mincho.xml fonts/gothic.xml ume-tmo3.ttf ume-tgo4.ttf
> #
> #override_dh_auto_configure: fonts/mincho.xml fonts/gothic.xml
> #    dh_auto_configure --
> --with-japanese-fontdir=/usr/share/fonts/truetype/horai-umefont
> 
> override_dh_auto_build:
>     make html pdf
> 
> override_dh_auto_clean:
>     dh_auto_clean
>     for lg in C it de ja; do \
>         rm -rf help/$${lg}/gnucash-help guide/$${lg}/gnucash-guide; \
>     done
> 
> override_dh_installdocs:
>     dh_installdocs
>     for suffix in "/" ".pdf"; do \
>         for type in help guide; do \
>             cp -a $${type}/C/gnucash-$${type}$${suffix}
> debian/gnucash-docs/usr/share/doc/gnucash-docs/gnucash-$${type}-en$${suffix};
> \
>             cp -a $${type}/it/gnucash-$${type}$${suffix}
> debian/gnucash-docs/usr/share/doc/gnucash-docs/gnucash-$${type}-it$${suffix};
> \
>             cp -a $${type}/de/gnucash-$${type}$${suffix}
> debian/gnucash-docs/usr/share/doc/gnucash-docs/gnucash-$${type}-de$${suffix};
> \
>             if [ "$${type}" = guide ]; then \
>                 cp -a $${type}/ja/gnucash-$${type}$${suffix}
> debian/gnucash-docs/usr/share/doc/gnucash-docs/gnucash-$${type}-ja$${suffix};
> \
>             fi; \
>         done; \
>     done
>     # Replace duplicate files with symlinks, to save space.
>     # And make sure that files from /usr/share/doc are not taken as
> original copy.
>     rdfind -outputname /dev/null -makesymlinks true
> debian/gnucash-docs/usr/share/gnome/ \
>         debian/gnucash-docs/usr/share/doc/
>     # Fix those symlinks to make them relative
>     symlinks -r -s -c debian/gnucash-docs/

Not an expert on that either, but something seems amiss: The failure you posted earlier is in the Russian translation but the build file doesn't appear to call for Russian (or Portuguese, though that doesn't have a font problem. It does seem to be substituting the Japanese fonts and Russian also requires special fonts.

Maybe you should contact the package maintainer for help.

Regards,
John Ralls



More information about the gnucash-devel mailing list