misc/188526: sysutils/grub2 doesn't compile with freetype2 installed
Andrey Zholos
aaz at q-fu.com
Sat Apr 12 18:10:01 UTC 2014
>Number: 188526
>Category: misc
>Synopsis: sysutils/grub2 doesn't compile with freetype2 installed
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Apr 12 18:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Andrey Zholos
>Release: 10.0-STABLE
>Organization:
>Environment:
>Description:
# make -C /usr/ports/sysutils/grub2
..
checking for freetype-config... freetype-config
checking ft2build.h usability... yes
checking ft2build.h presence... yes
checking for ft2build.h... yes
..
util/grub-mkfont.c:42:30: fatal error: freetype/ftsynth.h: No such file or directory
This happens regardless of whether the MKFONT option is enabled.
>How-To-Repeat:
>Fix:
Explicit configure argument to prevent building grub-mkfont if MKFONT is not
enabled.
Source patch from upstream to fix the build if MKFONT is enabled:
http://git.savannah.gnu.org/cgit/grub.git/commit/util/grub-mkfont.c?id=fd0df6d098b1e6a4f60275c48a3ec88d15ba1fbb
Patch attached with submission follows:
--- sysutils/grub2/Makefile
+++ sysutils/grub2/Makefile
@@ -48,7 +48,9 @@
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
BUILD_DEPENDS+= ${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans.ttf:${PORTSDIR}/x11-fonts/dejavu
MAN1+= grub-mkfont.1
+CONFIGURE_ARGS+= --enable-grub-mkfont
.else
+CONFIGURE_ARGS+= --disable-grub-mkfont
MKFONT= "@comment "
.endif
--- sysutils/grub2/files/patch-util-grub-mkfont.h
+++ sysutils/grub2/files/patch-util-grub-mkfont.h
@@ -0,0 +1,11 @@
+--- util/grub-mkfont.c
++++ util/grub-mkfont.c
+@@ -39,7 +39,7 @@
+ #include FT_FREETYPE_H
+ #include FT_TRUETYPE_TAGS_H
+ #include FT_TRUETYPE_TABLES_H
+-#include <freetype/ftsynth.h>
++#include FT_SYNTHESIS_H
+
+ #undef __FTERRORS_H__
+ #define FT_ERROR_START_LIST const char *ft_errmsgs[] = {
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list