Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 590068

Summary: [java-overlay] dev-java/icedtea-3.1.0 configure: error: Infinality support requires infinality support in FreeType.
Product: Gentoo Linux Reporter: José Romildo Malaquias <jrmalaq>
Component: OverlaysAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal CC: ave
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dev-java:icedtea-3.1.0:20160730-101518.log

Description José Romildo Malaquias 2016-07-30 10:35:31 UTC
Created attachment 441984 [details]
dev-java:icedtea-3.1.0:20160730-101518.log

icedea-3.1.0 fails to configure with the error:

checking if FreeType is patched with infinality support... no
configure: error: Infinality support requires infinality support in FreeType.

!!! Please attach the following file when seeking support:
!!! /alt/portage/tmp/portage/dev-java/icedtea-3.1.0/work/icedtea-3.1.0/config.log
 * ERROR: dev-java/icedtea-3.1.0::java failed (configure phase):
 *   econf failed

FreeType has been installed with the infinality use flag:

# equery uses freetype
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for media-libs/freetype-2.6.5:
 U I
 + + X                 : Add support for X11
 + + abi_x86_32        : 32-bit (x86) libraries
 + + adobe-cff         : Use Adobe CFF as default font-renderer
 - - bindist           : Disable ClearType support (see http://freetype.org/patents.html)
 + + bzip2             : Support bzip2 compressed PCF fonts.
 - - cleartype_hinting : New bytecode hinting mode for TrueType fonts that activates subpixel hinting (a.k.a. ClearType hinting) by default
 - - debug             : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 - - doc               : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 - - fontforge         : Install internal headers required for TrueType debugger in media-gfx/fontforge (built with USE=truetype-debugger)
 - - harfbuzz          : Use media-libs/harfbuzz for auto-hinting OpenType fonts. WARNING: may trigger circular dependencies!
 + + infinality        : Enable infinality options for improved LCD filtering
 + + png               : Add support for libpng (PNG images)
 - - static-libs       : Build static versions of dynamic libraries as well
 + + utils             : Install utilities and examples from ft2demos
Comment 1 James Le Cuirot gentoo-dev 2016-07-31 08:24:19 UTC
This is already known although I hadn't tried it myself and thought it wasn't a fatal error. Keep in mind that this is still isn't in the main tree yet, just Java overlay.

This works with FreeType 2.6.3 but not later versions. A new rendering engine has been added to FreeType, which I gather is supposed to supersede Infinality but it's not clear what future Infinality has. I have spoken to IcedTea upstream and a Gentoo FreeType maintainer and no one can make any sense of it. Maybe it could still work but the full Infinality patch set has not been updated for 2.6.4 (or 2.6.5) and the guy who works on it usually takes a while. Perhaps it will never happen because of the upstream changes.

My advice is to try the new cleartype_hinting USE FreeType flag (while disabling infinality) and report back whether you are happy with it as a replacement. One of the main advantages is that it's very much faster. It will become the default in 2.7.0. If you are satisfied then that will give us a clearer idea of where we're going. I will probably pin back the version requirement for infinality to ~media-libs/freetype-2.6.3 for as long as that version is around.
Comment 2 Andrew John Hughes 2016-07-31 22:44:02 UTC
If FreeType isn't providing infinality any more, it should drop the USE flag. IcedTea depends on that USE flag so that would solve the issue without having to change IcedTea to depend on a particular version.
Comment 3 James Le Cuirot gentoo-dev 2016-08-01 07:36:46 UTC
(In reply to Andrew John Hughes from comment #2)
> If FreeType isn't providing infinality any more, it should drop the USE
> flag. IcedTea depends on that USE flag so that would solve the issue without
> having to change IcedTea to depend on a particular version.

That's true except that the flag is still there on 2.6.5 because it does still do something despite lacking the patch set. It's not clear what the current situation is. The upstream announcement said that Infinality is still there but in a reduced form, which is confusing because I was under the impression that it was never merged upstream to begin with. I therefore don't know what the "full patch set" was actually needed for. It seems like Infinality is still working on 2.6.5 for these users, despite the lack of an updated patch set. Either a different detection mechanism is needed, though I grepped libfreetype for "infinality" and got nothing, or IcedTea doesn't need to do anything special now and it'll just work anyway. I think we should just look towards the new renderer now though.
Comment 4 James Le Cuirot gentoo-dev 2016-08-03 07:47:39 UTC
I've changed the dependency to <media-libs/freetype-2.6.4:2=[infinality] on 3.1.0, which should fix the error. Andrew, I guess I should do the same on 7.2.x?
Comment 5 M. B. 2016-08-03 15:27:11 UTC
Just as a sidenote, I encountered this same problem with =icedtea-7.2.6.6[infinality] and =icedtea-7.2.6.7[infinality] against freetype-2.6.5[infinality].
Comment 6 James Le Cuirot gentoo-dev 2016-08-05 20:45:52 UTC
I have applied the fix in all applicable versions now.