Date: Sat, 09 Oct 2010 15:10:14 +0200 From: Matthias Andree <matthias.andree@gmx.de> To: FreeBSD-gnats-submit@FreeBSD.org Cc: brooks@FreeBSD.org Subject: ports/151344: [PATCH] devel/clang: fix scan-build Message-ID: <E1P4ZBm-000LxA-HT@apollo.emma.line.org> Resent-Message-ID: <201010091320.o99DK1Up092349@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 151344 >Category: ports >Synopsis: [PATCH] devel/clang: fix scan-build >Confidential: no >Severity: critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Oct 09 13:20:00 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Matthias Andree >Release: FreeBSD 8.1-STABLE amd64 >Organization: FreeBSD >Environment: System: FreeBSD apollo.emma.line.org 8.1-STABLE FreeBSD 8.1-STABLE #32: Tue Oct 5 10:13:11 CEST >Description: Hi Brooks, the recent changes to clang 2.8's files/* appear to have broken scan-build, which cannot find its sorttables.js in %%DATADIR%%. It appears as though we needed to add an additional transformation from %%DATADIR%% to ${DATADIR} - which is done by my patch below. Please commit, or allow me to do that, ASAP. Port maintainer (brooks@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: grab some source tarball that uses GNU configure, for instance, fetchmail unpack it scan-build ./configure -C scan-build make -j4 and see the error messages at the end of the output, cannot find sorttables.js. >Fix: --- clang-2.8_1.patch begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/devel/clang/Makefile,v retrieving revision 1.10 diff -u -u -r1.10 Makefile --- Makefile 8 Oct 2010 14:00:31 -0000 1.10 +++ Makefile 9 Oct 2010 11:38:17 -0000 @@ -7,6 +7,7 @@ PORTNAME= clang PORTVERSION= 2.8 +PORTREVISION= 1 CATEGORIES= devel lang MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/ EXTRACT_SUFX= .tgz @@ -82,6 +83,7 @@ ${REINPLACE_CMD} -e 's|%%DOCSRCDIR%%|${DOCSRCDIR}|' \ ${WRKSRC}/Makefile ${WRKSRC}/tools/clang/Makefile ${REINPLACE_CMD} -e 's|/usr/bin/env perl|${PERL}|' \ + -e 's|%%DATADIR%%|${DATADIR}|' \ ${WRKSRC}/tools/clang/tools/scan-build/ccc-analyzer \ ${WRKSRC}/tools/clang/tools/scan-build/c++-analyzer \ ${WRKSRC}/tools/clang/tools/scan-build/scan-build --- clang-2.8_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1P4ZBm-000LxA-HT>