On 09/07/14 10:57 AM, Pascal Stumpf wrote:
Due to a mixup of autoconf and cmake defines, arc4random doesn't
properly get used by LLVM. It uses srand()/rand() instead, triggering
warnings.
ok?
OK.
Add to the top of the patch...
r213966
Fix arc4random detection.
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/llvm/Makefile,v
retrieving revision 1.75
diff -u -p -r1.75 Makefile
--- Makefile 13 Jun 2014 22:29:40 -0000 1.75
+++ Makefile 9 Jul 2014 14:57:09 -0000
@@ -10,7 +10,7 @@ COMMENT = modular, fast C/C++/ObjC compi
LLVM_V = 3.5
DISTNAME = llvm-${LLVM_V}.20140228
-REVISION = 3
+REVISION = 4
CATEGORIES = devel
MASTER_SITES = http://comstyle.com/source/
EXTRACT_SUFX = .tar.xz
Index: patches/patch-include_llvm_Config_config_h_cmake
===================================================================
RCS file: patches/patch-include_llvm_Config_config_h_cmake
diff -N patches/patch-include_llvm_Config_config_h_cmake
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-include_llvm_Config_config_h_cmake 9 Jul 2014 14:57:09
-0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- include/llvm/Config/config.h.cmake.orig Wed Jul 9 15:45:23 2014
++++ include/llvm/Config/config.h.cmake Wed Jul 9 15:59:51 2014
+@@ -34,7 +34,7 @@
+ #undef GCC_INSTALL_PREFIX
+
+ /* Define to 1 if you have the `arc4random' function. */
+-#cmakedefine HAVE_ARC4RANDOM
++#cmakedefine HAVE_DECL_ARC4RANDOM ${HAVE_DECL_ARC4RANDOM}
+
+ /* Define to 1 if you have the `backtrace' function. */
+ #cmakedefine HAVE_BACKTRACE ${HAVE_BACKTRACE}
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.