From owner-svn-ports-all@freebsd.org Sat Sep 1 20:22:09 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F0C68FF97B3; Sat, 1 Sep 2018 20:22:08 +0000 (UTC) (envelope-from martymac@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AA01679DC6; Sat, 1 Sep 2018 20:22:08 +0000 (UTC) (envelope-from martymac@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A4F8274FB; Sat, 1 Sep 2018 20:22:08 +0000 (UTC) (envelope-from martymac@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w81KM8xY065008; Sat, 1 Sep 2018 20:22:08 GMT (envelope-from martymac@FreeBSD.org) Received: (from martymac@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w81KM8wi065007; Sat, 1 Sep 2018 20:22:08 GMT (envelope-from martymac@FreeBSD.org) Message-Id: <201809012022.w81KM8wi065007@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: martymac set sender to martymac@FreeBSD.org using -f From: Ganael LAPLANCHE Date: Sat, 1 Sep 2018 20:22:08 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478723 - head/games/flightgear/files X-SVN-Group: ports-head X-SVN-Commit-Author: martymac X-SVN-Commit-Paths: head/games/flightgear/files X-SVN-Commit-Revision: 478723 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Sep 2018 20:22:09 -0000 Author: martymac Date: Sat Sep 1 20:22:08 2018 New Revision: 478723 URL: https://svnweb.freebsd.org/changeset/ports/478723 Log: Fix build with Clang7 PR: 230502 Submitted by: jbeich Added: head/games/flightgear/files/patch-clang7-src-AIModel-AIFlightPlanCreatePushBack.cxx (contents, props changed) head/games/flightgear/files/patch-clang7-stack_scope.diff (contents, props changed) Added: head/games/flightgear/files/patch-clang7-src-AIModel-AIFlightPlanCreatePushBack.cxx ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/flightgear/files/patch-clang7-src-AIModel-AIFlightPlanCreatePushBack.cxx Sat Sep 1 20:22:08 2018 (r478723) @@ -0,0 +1,15 @@ +Fix build with clang 7: + +src/AIModel/AIFlightPlanCreatePushBack.cxx:96:48: error: ordered comparison between pointer and zero ('FGTaxiNode *' and 'int') + +--- src/AIModel/AIFlightPlanCreatePushBack.cxx.orig 2018-08-17 19:14:25.768512000 +0200 ++++ src/AIModel/AIFlightPlanCreatePushBack.cxx 2018-08-17 19:14:44.343865000 +0200 +@@ -93,7 +93,7 @@ + + FGGroundNetwork* groundNet = dep->groundNetwork(); + FGParking *parking = gate.parking(); +- if (parking && parking->getPushBackPoint() > 0) { ++ if (parking && parking->getPushBackPoint() != NULL) { + FGTaxiRoute route = groundNet->findShortestRoute(parking, parking->getPushBackPoint(), false); + + int size = route.size(); Added: head/games/flightgear/files/patch-clang7-stack_scope.diff ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/flightgear/files/patch-clang7-stack_scope.diff Sat Sep 1 20:22:08 2018 (r478723) @@ -0,0 +1,46 @@ +Fix scope of 'stack' when building with clang 7: + +error: reference to 'stack' is ambiguous + +--- src/FDM/UIUCModel/uiuc_aircraft.h.orig 2018-08-31 19:26:14.641298000 +0200 ++++ src/FDM/UIUCModel/uiuc_aircraft.h 2018-08-31 19:50:35.444961000 +0200 +@@ -150,7 +150,7 @@ + #include "uiuc_parsefile.h" + #include "uiuc_flapdata.h" + +-typedef stack :: iterator LIST; ++typedef ::stack :: iterator LIST; + + /* Add more keywords here if required*/ + enum {init_flag = 1000, geometry_flag, controlSurface_flag, controlsMixer_flag, +--- src/FDM/UIUCModel/uiuc_parsefile.h.orig 2018-08-31 19:34:45.641135000 +0200 ++++ src/FDM/UIUCModel/uiuc_parsefile.h 2018-08-31 19:35:35.903930000 +0200 +@@ -23,7 +23,7 @@ + { + private: + +- stack commands; ++ ::stack commands; + ifstream file; + void readFile(); + +@@ -37,7 +37,7 @@ + void removeComments(string& inputLine); + string getToken(string inputLine, int tokenNo); + void storeCommands(string inputLine); +- stack getCommands(); ++ ::stack getCommands(); + }; + + #endif // _PARSE_FILE_H_ +--- src/FDM/UIUCModel/uiuc_recorder.cpp.orig 2018-08-31 19:16:32.680030000 +0200 ++++ src/FDM/UIUCModel/uiuc_recorder.cpp 2018-08-31 19:16:57.872109000 +0200 +@@ -102,7 +102,7 @@ + + void uiuc_recorder( double dt ) + { +- stack command_list; ++ ::stack command_list; + string linetoken; + // static int init = 0; + static int recordStep = 0;