From owner-freebsd-bugs@FreeBSD.ORG Sat Apr 12 18:10:01 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EB73F2C1 for ; Sat, 12 Apr 2014 18:10:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C7DCF1092 for ; Sat, 12 Apr 2014 18:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3CIA0w1056772 for ; Sat, 12 Apr 2014 18:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3CIA0WL056771; Sat, 12 Apr 2014 18:10:00 GMT (envelope-from gnats) Resent-Date: Sat, 12 Apr 2014 18:10:00 GMT Resent-Message-Id: <201404121810.s3CIA0WL056771@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrey Zholos Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8CBE4212 for ; Sat, 12 Apr 2014 18:03:19 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7950B104C for ; Sat, 12 Apr 2014 18:03:19 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3CI3JKP023330 for ; Sat, 12 Apr 2014 18:03:19 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3CI3JWU023322; Sat, 12 Apr 2014 18:03:19 GMT (envelope-from nobody) Message-Id: <201404121803.s3CI3JWU023322@cgiserv.freebsd.org> Date: Sat, 12 Apr 2014 18:03:19 GMT From: Andrey Zholos To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/188526: sysutils/grub2 doesn't compile with freetype2 installed X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Apr 2014 18:10:01 -0000 >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 ++#include FT_SYNTHESIS_H + + #undef __FTERRORS_H__ + #define FT_ERROR_START_LIST const char *ft_errmsgs[] = { >Release-Note: >Audit-Trail: >Unformatted: