From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 13 19:50:03 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 815461065672 for ; Sun, 13 May 2012 19:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5306B8FC12 for ; Sun, 13 May 2012 19:50:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q4DJo3i4077518 for ; Sun, 13 May 2012 19:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q4DJo3Ok077517; Sun, 13 May 2012 19:50:03 GMT (envelope-from gnats) Resent-Date: Sun, 13 May 2012 19:50:03 GMT Resent-Message-Id: <201205131950.q4DJo3Ok077517@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Oleksii Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 06805106566C for ; Sun, 13 May 2012 19:43:33 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id E5DDC8FC14 for ; Sun, 13 May 2012 19:43:32 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q4DJhWid003953 for ; Sun, 13 May 2012 19:43:32 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q4DJhWUE003926; Sun, 13 May 2012 19:43:32 GMT (envelope-from nobody) Message-Id: <201205131943.q4DJhWUE003926@red.freebsd.org> Date: Sun, 13 May 2012 19:43:32 GMT From: Oleksii To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/167843: devel/simgear 2.6.0_1 build fails due to missing include path X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2012 19:50:03 -0000 >Number: 167843 >Category: ports >Synopsis: devel/simgear 2.6.0_1 build fails due to missing include path >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 13 19:50:02 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Oleksii >Release: 9.0-RELEASE-p1 >Organization: >Environment: FreeBSD zirco.compal.nb 9.0-RELEASE-p1 FreeBSD 9.0-RELEASE-p1 #2: Mon May 7 20:37:35 UTC 2012 oleksii@zirco.compal.nb:/usr/obj/usr/src/sys/COMPAL i386 >Description: The compilation devel/simgear (version 2.6.0_1) fails with multiple errors. The reason for this is, according to my analysis, missing include path. Many includes are written as following: #include , whereas simgear directory is not specified as an include path, i.e. no corresponding -I flag is issued to the compiler. simgear directory is located in source top directory. >How-To-Repeat: # cd /usr/ports/devel/simgear # make >Fix: Solved by making CMake pass simgear directory to the include paths. Modified SimGearComponent.cmake file to eliminate code duplication, because it is used by several modules that failed to compile. --- SimGearComponent.cmake 2012-05-13 22:21:59.000000000 +0000 +++ SimGearComponent.cmake.new 2012-05-13 22:23:37.000000000 +0000 @@ -1,4 +1,6 @@ +include_directories(BEFORE ${PROJECT_SOURCE_DIR}) + macro(simgear_component_common name includePath sourcesList sources headers) if (SIMGEAR_SHARED) Patch attached with submission follows: --- SimGearComponent.cmake 2012-05-13 22:21:59.000000000 +0000 +++ SimGearComponent.cmake.new 2012-05-13 22:23:37.000000000 +0000 @@ -1,4 +1,6 @@ +include_directories(BEFORE ${PROJECT_SOURCE_DIR}) + macro(simgear_component_common name includePath sourcesList sources headers) if (SIMGEAR_SHARED) >Release-Note: >Audit-Trail: >Unformatted: