From owner-freebsd-ports-bugs@freebsd.org Fri Mar 3 06:06:36 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 76959CF414D for ; Fri, 3 Mar 2017 06:06:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 4D5D51DFC for ; Fri, 3 Mar 2017 06:06:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v2366aTE061036 for ; Fri, 3 Mar 2017 06:06:36 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 217514] games/flightgear fails to build looking for ft2build.h Date: Fri, 03 Mar 2017 06:06:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: russo@bogodyn.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: martymac@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2017 06:06:36 -0000 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 ^ 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.=