ports/151344: [PATCH] devel/clang: fix scan-build

Matthias Andree matthias.andree at gmx.de
Sat Oct 9 13:20:01 UTC 2010


>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 at 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:



More information about the freebsd-ports-bugs mailing list