Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 493634 - sys-boot/grub-2.0.0_p5107-r2 wrong freetype2 include path (Cannot find ftsynth.h)
Summary: sys-boot/grub-2.0.0_p5107-r2 wrong freetype2 include path (Cannot find ftsynt...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mike Gilbert
Depends on:
Blocks: freetype-2.5.1
  Show dependency tree
Reported: 2013-12-08 09:11 UTC by Thomas Axelsson
Modified: 2013-12-10 05:27 UTC (History)
1 user (show)

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

Fix ftsynth.h include in grub-mkfont.c (grub-2.00-ftsynth-include.patch,418 bytes, patch)
2013-12-08 09:12 UTC, Thomas Axelsson
Details | Diff
Include new patch in ebuild. Might want to move PATCHES statement. (grub-2.00_p5107-r2.ebuild-freetype2.patch,349 bytes, patch)
2013-12-08 09:12 UTC, Thomas Axelsson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Axelsson 2013-12-08 09:11:04 UTC
Setting up a new system from stage 3 and when I tried to merge grub grub-2.0.0_p5107-r2 the compilation failed in grub-mkfont.c because freetype/ftsynth.h include could not be found. I have freetype-2.5.1 and it seems at some new freetype version, ftsynth.h moved from freetype2/freetype/ftsynth.h to freetype2/ftsynth.h, breaking the include in grub.

A non-related bug report said that one should use the include macros defined by freetype (which funnily enough is already done for all the other freetype includes), instead of refering to the files directly.

Attaching patch that fixes the include. I'm a little bit unsure if the PATCHES statement in the ebuild should be made to apply to the git version as well. Not tested with freetype:1.


Reproducible: Always

Steps to Reproduce:
1. emerge =freetype-2.5.1 (?)
2. emerge =grub-2.0.0_p5107-r2
Actual Results:  
Include failed.

Expected Results:  
Successful compilation.

emerge --info
Portage 2.2.7 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.16.0, 3.2.1-gentoo x86_64)
System uname: Linux-3.2.1-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.2
KiB Mem:     8184864 total,    248276 free
KiB Swap:   16777208 total,  16776616 free
Timestamp of tree: Sat, 07 Dec 2013 11:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=core2 -msse4.1 -O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -msse4.1 -O2 -pipe"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="X a52 aac acl acpi alsa amd64 amr apache2 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dga divx djvu dri dts dvd dvdr emacs emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gimp gnutls gphoto2 gpm gtk iconv imagemagick ipv6 jabber joystick jpeg kde kipi lcms ldap libnotify lm_sensors logrotate mad mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib ncurses nptl nsplugin ntfs nvidia ogg openal opengl openmp pam pango pch pcre pdf phonon plasma png policykit ppds python qt3support qt4 readline rtsp sdl semantic-desktop session smp sound spell sse sse2 ssl ssse3 startup-notification svg tcpd theora tiff truetype twolame udev udisks unicode upower usb v4l v4l2 vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 1 Thomas Axelsson 2013-12-08 09:12:12 UTC
Created attachment 364912 [details, diff]
Fix ftsynth.h include in grub-mkfont.c
Comment 2 Thomas Axelsson 2013-12-08 09:12:45 UTC
Created attachment 364914 [details, diff]
Include new patch in ebuild. Might want to move PATCHES statement.
Comment 3 Thomas Axelsson 2013-12-08 15:49:55 UTC
Learned on the Arch bug tracker that this is fixed upstream ( )

Commit fd0df6d098b1e6a4f60275c48a3ec88d15ba1fbb;a=commit;h=fd0df6d098b1e6a4f60275c48a3ec88d15ba1fbb
Comment 4 Mike Gilbert gentoo-dev 2013-12-09 23:28:07 UTC
+  09 Dec 2013; Mike Gilbert <>
+  +files/grub-2.00-freetype-2.5.1.patch, grub-2.00_p5107-r2.ebuild:
+  Fix build with freetype-2.5.1, bug 493634 by Thomas Axelsson.