Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Mar 2017 06:06:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 217514] games/flightgear fails to build looking for ft2build.h
Message-ID:  <bug-217514-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217514

            Bug ID: 217514
           Summary: games/flightgear fails to build looking for ft2build.h
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: martymac@FreeBSD.org
          Reporter: russo@bogodyn.org
          Assignee: martymac@FreeBSD.org
             Flags: maintainer-feedback?(martymac@FreeBSD.org)

Created attachment 180455
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180455&action=
=3Dedit
This patch replaces bad hard-coded path with the appropriate one for FreeBSD

Trying to portupgrade flightgear from 2016.4.4_1 to 2017.1.1 I got a build
failure saying it failed to find ft2build.h.

On investigation, I found that one of FlightGear's CMakeLists.txt files has=
 a
hard-coded path of "/usr/include/freetype2", so it's looking in the wrong
place.

My system:
FreeBSD bogodyn.org 10.3-STABLE FreeBSD 10.3-STABLE #0 r312435: Thu Jan 19
13:55:14 MST 2017     russo@bogodyn.org:/usr/obj/usr/src/sys/GENERIC  amd64

The error:
--- utils/fgpanel/CMakeFiles/fgpanel.dir/FGFontCache.cxx.o ---
In file included from
/usr/ports/games/flightgear/work/flightgear-2017.1.1/utils/fgpanel/FGFontCa=
che.cxx:28:
/usr/ports/games/flightgear/work/flightgear-2017.1.1/utils/fgpanel/FGFontCa=
che.hxx:21:10:
fatal error: 'ft2build.h' file not found
#include <ft2build.h>
         ^
When I edit flightgear-2017.1.1/utils/fgpanel and change the offending path=
 in
CMakeLists.txt from /usr/include/freetype2 to /usr/local/include/freetype2,
then force a reconfigure and rebuild, it all works.

The attached patch will do that, but seems the wrong approach.  This
CMakeLists.txt clearly has a "FindPackage(Freetype)" at the top, and then
instead of using the path found there hard-codes the Linux-style location.

This mistake in CMakeLists.txt should ideally be fixed upstream, but at lea=
st
this patch will make it work for now.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217514-13>