On Thursday, May 2, 2013 17:42 CEST, "Sebastian Reitenbach" 
<sebas...@l00-bugdead-prods.de> wrote: 
 
>  
> On Thursday, May 2, 2013 13:23 CEST, Vadim Zhukov <persg...@gmail.com> wrote: 
>  
> > 02.05.2013 15:17 пользователь "Sebastian Reitenbach" <
> > sebas...@l00-bugdead-prods.de> написал:
> > >
> > >
> > > On Wednesday, May 1, 2013 22:48 CEST, Vadim Zhukov <persg...@gmail.com>
> > wrote:
> > >
> > > > Sorry, I have to run right now, so I could not dive in throughly ATM
> > > > (but I will be able to do this tomorrow).
> > > >
> > > > Could you please test the following patch instead? Policy CMP0017
> > defaults
> > > > to OLD now, I suspect this could be related.
> > >
> > > Whatever this policy is doing, it helps, and makes the libobjc2 configure
> > > stage happy.
> > >
> > >
> > > Below complete patch to LLVM port with REVISION bump.
> > >
> > > OK?
> > 
> > OK zhuk@. Please send this patch upstream then, too.
> 
> Done,

grrr, maybe when it worked with the patch, I might have had the llvm source 
around.
I tried it again libobjc2-1.7, with llvm installed from packages, but it failed:

-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Ninja
-- Check for working CXX compiler using: Ninja -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
CMake Error at /usr/local/share/llvm/cmake/LLVMConfig.cmake:157 (include):
  include could not find load file:

    LLVM-Config
Call Stack (most recent call first):
  CMakeLists.txt:123 (find_package)


WARNING: It is strongly recommended that you compile with clang
-- No C++ runtime library found

so basically, the patch patch-cmake_modules_LLVMConfig_cmake_in
could be removed. 

If somebody has another idea what might help, I'm all for it.

So far, removing the patch again, OK?

Sebastian

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/llvm/Makefile,v
retrieving revision 1.64
diff -u -p -u -r1.64 Makefile
--- Makefile    28 Jun 2013 11:14:38 -0000      1.64
+++ Makefile    3 Jul 2013 16:52:47 -0000
@@ -9,6 +9,7 @@ DPB_PROPERTIES = parallel
 COMMENT =      modular, fast C/C++/ObjC compiler, static analyzer and tools
 
 LLVM_V =       3.3
+REVISION =     0
 DISTNAME =     llvm-${LLVM_V}.src
 PKGNAME =      llvm-${LLVM_V}
 CATEGORIES =   devel
Index: patches/patch-cmake_modules_LLVMConfig_cmake_in
===================================================================
RCS file: patches/patch-cmake_modules_LLVMConfig_cmake_in
diff -N patches/patch-cmake_modules_LLVMConfig_cmake_in
--- patches/patch-cmake_modules_LLVMConfig_cmake_in     21 Jun 2013 22:09:12 
-0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,16 +0,0 @@
-$OpenBSD: patch-cmake_modules_LLVMConfig_cmake_in,v 1.2 2013/06/21 22:09:12 
brad Exp $
-
-make it find include file in /usr/local/share/llvm/cmake
-bug reported: http://www.llvm.org/bugs/show_bug.cgi?id=15899
-
---- cmake/modules/LLVMConfig.cmake.in.orig     Tue Apr 23 04:28:39 2013
-+++ cmake/modules/LLVMConfig.cmake.in  Wed May  8 06:14:30 2013
-@@ -39,6 +39,8 @@ set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include)
- set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib)
- set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS")
- 
-+cmake_policy(SET CMP0017 NEW)
-+
- # We try to include using the current setting of CMAKE_MODULE_PATH,
- # which suppossedly was filled by the user with the directory where
- # this file was installed:


Reply via email to