[Bug 217514] games/flightgear fails to build looking for ft2build.h

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Mar 3 06:06:36 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217514

            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 at FreeBSD.org
          Reporter: russo at bogodyn.org
          Assignee: martymac at FreeBSD.org
             Flags: maintainer-feedback?(martymac at FreeBSD.org)

Created attachment 180455
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180455&action=edit
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 at 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/FGFontCache.cxx:28:
/usr/ports/games/flightgear/work/flightgear-2017.1.1/utils/fgpanel/FGFontCache.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 least
this patch will make it work for now.

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


More information about the freebsd-ports-bugs mailing list