DevHeads.net

Fop fonts issue in a freshly updated Fedora 28+

Hello All!

Just got a strange issue while generating doc-files from sources with fop:

<a href="https://kojipkgs.fedoraproject.org//work/tasks/763/26980763/build.log" title="https://kojipkgs.fedoraproject.org//work/tasks/763/26980763/build.log">https://kojipkgs.fedoraproject.org//work/tasks/763/26980763/build.log</a>

Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.fontbox.cff.CFFFont.getProperty(Ljava/lang/String;)Ljava/lang/Object;
at org.apache.fop.fonts.truetype.OTFFile.readName(OTFFile.java:134)
at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:740)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:109)
at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:93)
at org.apache.fop.fonts.FontLoader.getFont(FontLoader.java:124)
at org.apache.fop.fonts.FontLoader.loadFont(FontLoader.java:108)
at org.apache.fop.fonts.autodetect.FontInfoFinder.find(FontInfoFinder.java:254)
at org.apache.fop.fonts.FontAdder.add(FontAdder.java:63)
at org.apache.fop.fonts.FontDetectorFactory$DefaultFontDetector.detect(FontDetectorFactory.java:105)
at org.apache.fop.fonts.FontManager.autoDetectFonts(FontManager.java:229)
at org.apache.fop.fonts.DefaultFontConfigurator.configure(DefaultFontConfigurator.java:82)
at org.apache.fop.render.PrintRendererConfigurator.getCustomFontCollection(PrintRendererConfigurator.java:147)
at org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererConfigurator.java:127)
at org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:170)
at org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:187)
at org.apache.fop.area.RenderPagesModel.<init>(RenderPagesModel.java:75)
at org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:135)
at org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:105)
at org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:350)
at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:107)
at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:104)
at org.apache.fop.apps.Fop.<init>(Fop.java:78)
at org.apache.fop.apps.FOUserAgent.newFop(FOUserAgent.java:179)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:107)
at org.apache.fop.cli.Main.startFOP(Main.java:186)
at org.apache.fop.cli.Main.main(Main.java:216)
make[3]: Leaving directory
'/builddir/build/BUILD/otp-OTP-20.3.6/lib/stdlib/doc/src'
make[3]: *** [/builddir/build/BUILD/otp-OTP-20.3.6/make/x86_64-redhat-linux-gnu/otp.mk:329:
../pdf/stdlib-3.4.5.pdf] Error 1
make[2]: Leaving directory '/builddir/build/BUILD/otp-OTP-20.3.6/lib/stdlib'
make[2]: *** [/builddir/build/BUILD/otp-OTP-20.3.6/make/otp_subdir.mk:29:
docs] Error 2
make[1]: Leaving directory '/builddir/build/BUILD/otp-OTP-20.3.6/lib'
make[1]: *** [/builddir/build/BUILD/otp-OTP-20.3.6/make/otp_subdir.mk:29:
docs] Error 2
make: *** [Makefile:416: docs] Error 2

For me it looks very much the same as the issue described here -
<a href="https://stackoverflow.com/questions/41501641/fop-giving-nosuchmethoderror-when-font-auto-detect-enable" title="https://stackoverflow.com/questions/41501641/fop-giving-nosuchmethoderror-when-font-auto-detect-enable">https://stackoverflow.com/questions/41501641/fop-giving-nosuchmethoderro...</a>

However I'm not sure how to fix it?

From looking at the RPM versions (comparing last successful buildroot
and this one) I found nothing really suspicious. Maybe Apache Fop
needs rebuild?