[GNC-dev] Unable to compile Docs
Stephen M. Butler
kg7je at arrl.net
Wed May 8 22:06:08 EDT 2019
On 5/8/19 6:02 PM, John Ralls wrote:
>
>> 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.
He is not interested in helping anything to do with Ubuntu. I'll put
this on my list of things to research further as time allows. <<There
is always something to do!!>>
>
> Regards,
> John Ralls
>
>
--
Stephen M Butler, PMP, PSM
Stephen.M.Butler51 at gmail.com
kg7je at arrl.net
253-350-0166
-------------------------------------------
GnuPG Fingerprint: 8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8
More information about the gnucash-devel
mailing list