svn commit: r341489 - in head/lang/clang34: . files

Dmitry Marakasov amdmi3 at amdmi3.ru
Wed Feb 5 23:27:39 UTC 2014


* Brooks Davis (brooks at FreeBSD.org) wrote:

I've also just discovered that though scan-build script is patched to
fix path to css/js files which go into output directory:

---
$FreeBSD: head/lang/clang34/files/patch-tools_clang_tools_scan-build_scan-build 340725 2014-01-22 17:40:44Z mat $

--- tools/clang/tools/scan-build/scan-build.orig
+++ tools/clang/tools/scan-build/scan-build
@@ -423,7 +423,7 @@
 
   my $Dir = shift;
 
-  my $JS = Cwd::realpath("$RealBin/sorttable.js");
+  my $JS = Cwd::realpath("%%DATADIR%%/sorttable.js");
   
   DieDiag("Cannot find 'sorttable.js'.\n")
     if (! -r $JS);  
@@ -433,7 +433,7 @@
   DieDiag("Could not copy 'sorttable.js' to '$Dir'.\n")
     if (! -r "$Dir/sorttable.js");
     
-  my $CSS = Cwd::realpath("$RealBin/scanview.css");
+  my $CSS = Cwd::realpath("%%DATADIR%%/scanview.css");
   
   DieDiag("Cannot find 'scanview.css'.\n")
     if (! -r $CSS);
---

These placeholders are not changed to actual paths, thus

---
Use of uninitialized value $JS in -r at /usr/local/llvm34/bin/scan-build line 424.
scan-build: Cannot find 'sorttable.js'.
---

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3 at amdmi3.ru  ..:  jabber: amdmi3 at jabber.ru    http://www.amdmi3.ru


More information about the svn-ports-all mailing list