Bug 187984 - sysutils/grub2 port fails to build
Summary: sysutils/grub2 port fails to build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-26 21:50 UTC by Joseph Mingrone
Modified: 2014-04-18 18:10 UTC (History)
0 users

See Also:


Attachments
file.diff (365 bytes, patch)
2014-03-26 21:50 UTC, Joseph Mingrone
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Mingrone freebsd_committer freebsd_triage 2014-03-26 21:50:00 UTC
Here is the problematic part of the port build:

gcc47 -DHAVE_CONFIG_H -I.  -Wall -W -I./include -DGRUB_UTIL=1 -DGRUB_LIBDIR=\"/usr/local/lib/grub\" -DLOCALEDIR=\"/usr/local/share/locale\" -DGRUB_FILE=\"util/grub-mkfont.c\" -I. -I. -I. -I. -I./include -I./include -I./grub-core/gnulib -I./grub-core/gnulib   -Wall -W -Wshadow -Wold-style-definition -Wpointer-arith -Wundef -Wextra -Waddress -Wattributes -Wcast-align -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wempty-body -Wendif-labels -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissing-braces -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-noreturn -Wmultichar -Wnonnull -Woverflow -Wparentheses -Wpointer-arith -Wpointer-to-int-cast -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wstrict-aliasing -Wswitch -Wtrigraphs -Wundef -Wunknown-pragmas -Wunused -Wunused-function -Wunused
 -label -Wunused-parameter -Wunused-value  -Wunused-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings -Wnested-externs -Wstrict-prototypes -Wpointer-sign -Wno-undef -Wno-sign-compare -Wno-unused -Wno-unused-parameter -Wno-redundant-decls -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition -Wno-unsafe-loop-optimizations -I/usr/local/include/freetype2  -O2 -pipe -Wl,-rpath=/usr/local/lib/gcc47 -fno-strict-aliasing -MT util/grub_mkfont-grub-mkfont.o -MD -MP -MF util/.deps-util/grub_mkfont-grub-mkfont.Tpo -c -o util/grub_mkfont-grub-mkfont.o `test -f 'util/grub-mkfont.c' || echo './'`util/grub-mkfont.c
util/grub-mkfont.c:42:30: fatal error: freetype/ftsynth.h: No such file or directory

Fix: The attached patch file in sysutils/grub2/files/ fixes the problem. 

Patch attached with submission follows:
How-To-Repeat: Rebuild the port.
Comment 1 dfilter service freebsd_committer freebsd_triage 2014-04-18 18:03:10 UTC
Author: nox
Date: Fri Apr 18 17:03:05 2014
New Revision: 351550
URL: http://svnweb.freebsd.org/changeset/ports/351550
QAT: https://qat.redports.org/buildarchive/r351550/

Log:
  Fix build with MKFONT and without it but with (updated) freetype present.
  
  PR:		ports/187984 [1], ports/188526 [2]
  Submitted by:	Joseph Mingrone <jrm@ftfl.ca> [1]
  Submitted by:	Andrey Zholos <aaz@q-fu.com> [2]

Added:
  head/sysutils/grub2/files/patch-util-grub-mkfont.c   (contents, props changed)
Modified:
  head/sysutils/grub2/Makefile

Modified: head/sysutils/grub2/Makefile
==============================================================================
--- head/sysutils/grub2/Makefile	Fri Apr 18 15:26:03 2014	(r351549)
+++ head/sysutils/grub2/Makefile	Fri Apr 18 17:03:05 2014	(r351550)
@@ -48,7 +48,9 @@ PLIST_SUB+=	EFIEMU=${EFIEMU}
 LIB_DEPENDS+=	libfreetype.so:${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
 

Added: head/sysutils/grub2/files/patch-util-grub-mkfont.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/grub2/files/patch-util-grub-mkfont.c	Fri Apr 18 17:03:05 2014	(r351550)
@@ -0,0 +1,13 @@
+--- util/grub-mkfont.c.orig
++++ 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[] = { 
+
+
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 2 Juergen Lock freebsd_committer freebsd_triage 2014-04-18 18:03:40 UTC
State Changed
From-To: open->closed

Committed. Thanks!