Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127046 - Bytecode interpreter compiled in, but header not modified to show that.
Summary: Bytecode interpreter compiled in, but header not modified to show that.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: foser (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-21 01:02 UTC by Ben Skeggs
Modified: 2006-06-20 05:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Skeggs 2006-03-21 01:02:12 UTC
The media-libs/freetype ebuild enables the bytecode interpreter by defining TT_CONFIG_OPTION_BYTECODE_INTERPRETER at build time.

The problem is that some packages (in this case, x11-libs/evas) check to see if bytecode is supported by including /usr/include/freetype2/freetype/config/ftoption.h and checking if TT_CONFIG_... is defined.

The ftoption.h file installed by Gentoo has this option commented out still, so evas is built without bytecode support.
Comment 1 foser (RETIRED) gentoo-dev 2006-03-21 04:36:27 UTC
How is this conditional support implemented in evas ?
Comment 2 Ben Skeggs 2006-03-21 04:43:51 UTC
It includes ftoption.h, and then has #ifdef's around the relevant sections of code.  ie.

Evas_Bool
evas_common_hinting_available(Font_Hint_Flags hinting)
{
   if (hinting == FONT_NO_HINT) return 1;
   else if (hinting == FONT_AUTO_HINT)
     {
#ifdef TT_CONFIG_OPTION_UNPATENTED_HINTING
    return 1;
#else
    return 0;
#endif
     }
   else if (hinting == FONT_BYTECODE_HINT)
     {
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
    return 1;
#else
    return 0;
#endif
     }
   return 0;
}
Comment 3 foser (RETIRED) gentoo-dev 2006-06-19 11:14:22 UTC
well, the ftoption.h header itself advises against changing it in the header.

For freetype 2.2.1 (in p.mask) I made it change the header however, so that should fix this for you ?
Comment 4 Ben Skeggs 2006-06-19 11:27:38 UTC
Yes, that should be great.  Thanks!
Comment 5 foser (RETIRED) gentoo-dev 2006-06-20 05:24:07 UTC
changing status