From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Mar 17 22:40:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 480176DB for ; Sun, 17 Mar 2013 22:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 0148F730 for ; Sun, 17 Mar 2013 22:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2HMe0e0013050 for ; Sun, 17 Mar 2013 22:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2HMe0LD013049; Sun, 17 Mar 2013 22:40:00 GMT (envelope-from gnats) Resent-Date: Sun, 17 Mar 2013 22:40:00 GMT Resent-Message-Id: <201303172240.r2HMe0LD013049@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, Stephen Checkoway Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4BC2A6D7 for ; Sun, 17 Mar 2013 22:39:02 +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 35EAD72D for ; Sun, 17 Mar 2013 22:39:02 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r2HMd0m9069037 for ; Sun, 17 Mar 2013 22:39:00 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r2HMd0jg069036; Sun, 17 Mar 2013 22:39:00 GMT (envelope-from nobody) Message-Id: <201303172239.r2HMd0jg069036@red.freebsd.org> Date: Sun, 17 Mar 2013 22:39:00 GMT From: Stephen Checkoway To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/177059: /usr/share/cmake/Modules/FindLibXml2.cmake should include ${LOCAL_BASE}/include in LIBXML2_INCLUDE_DIR X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Mar 2013 22:40:01 -0000 >Number: 177059 >Category: ports >Synopsis: /usr/share/cmake/Modules/FindLibXml2.cmake should include ${LOCAL_BASE}/include in LIBXML2_INCLUDE_DIR >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 Mar 17 22:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Stephen Checkoway >Release: 9.1 >Organization: >Environment: FreeBSD secdev 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Cmake's find_package(LibXml2) does not properly include /usr/local/include and it should because one of the header files depends on iconv.h which lives in /usr/local/include. SDL also depends on iconv.h and /usr/share/cmake/Modules/FindSDL.cmake contains the following lines: # On FreeBSD SDL depends on libiconv and SDL_stdinc.h includes iconv.h, which is # located in ${LOCALBASE}/include. Append {LOCALBASE}/include to # the SDL_INCLUDE_DIR, thus allow to build SDL apps out of box. LIST(APPEND SDL_INCLUDE_DIR /usr/local/include) /usr/share/cmake/Modules/FindLibXml2.cmake should almost certainly contain a similar line. >How-To-Repeat: git clone http://llvm.org/git/llvm.git cd llvm git checkout release_32 cd tools git clone http://llvm.org/git/clang.git cd clang git checkout release_32 cd ../../.. mkdir llvm-build cd llvm-build cmake -G Ninja ../llvm ninja bin/c-index-test >Fix: I don't know cmake well, but I assume adding a line like LIST(APPEND LIBXML2_INCLUDE_DIR /usr/local/include) to /usr/share/cmake/Modules/FindLibXml2.cmake would suffice. >Release-Note: >Audit-Trail: >Unformatted: