llvm34-3.4.1-0d with libc++ header relocation fix

Jack Howarth <[email protected]>
Newsgroups gmane.os.apple.fink.devel
Message-ID <CAP5Ds0Dpjca-639WLadB6EXAp-oukz4R1EiGrEkeZuUWzFjb2w@mail.gmail.com>
David,
     Actually I was over thinking the problem. The fix required is just the
trivial change…

--- llvm34.info.orig 2014-05-25 11:55:00.000000000 -0400
+++ llvm34.info 2014-05-25 11:55:06.000000000 -0400
@@ -1,7 +1,7 @@
 Info3: <<
 Package: llvm34
 Version: 3.4.1
-Revision: 0c
+Revision: 0d
 Description: Modular and reusable compiler
 License: BSD
 Maintainer: David Fang <[email protected]>
@@ -129,6 +129,15 @@
  tools/clang/lib/Frontend/InitHeaderSearch.cpp
  fi

+ # Adjust path for relocation of libc++ headers
+ if test "$darwin_vers" -eq 12
+ then sed -i.orig2 -e
's|AddPath("/usr/include/c++/v1"|AddPath("/usr/lib/c++/v1"|' \
+ tools/clang/lib/Frontend/InitHeaderSearch.cpp
+ elif test "$darwin_vers" -ge 13
+ then sed -i.orig2 -e
's|AddPath("/usr/include/c++/v1"|AddPath("/Library/Developer/CommandLineTools/usr/lib/c++/v1"|'
\
+ tools/clang/lib/Frontend/InitHeaderSearch.cpp
+ fi
+
 # needed for gcc-fsf-4.x only
 # sed -i.orig2 -e 's|compatibility_version|dylib_&|'
tools/clang/tools/libclang/CMakeLists.txt

The failures seen with llvm34-3.4.1-0a/0c on 10.8...

% clang++-3.4 -stdlib=libc++ hello.cc
hello.cc:1:10: fatal error: 'iostream' file not found
#include <iostream>
         ^
1 error generated.

and on 10.9…

% clang++-3.4 hello.cc
hello.cc:1:10: fatal error: 'iostream' file not found
#include <iostream>
         ^
1 error generated.

are eliminated in llvm34-3.4.1-0d. I've committed this change as a hot-fix
to llvm34.
              Jack
ps The llvm33 packaging needs the same change to its info file but I assume
you will also want to add the missing top-level clang-3.3/clang++-3.3
symlinks in %p/bin  there as you did for llvm34.

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs

_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.