[149089] trunk/dports/lang/llvm-3.3
jeremyhu at macports.org
jeremyhu at macports.org
Sun May 29 23:10:18 PDT 2016
Revision: 149089
https://trac.macports.org/changeset/149089
Author: jeremyhu at macports.org
Date: 2016-05-29 23:10:17 -0700 (Sun, 29 May 2016)
Log Message:
-----------
llvm-3.3: Fix a build failure on Tiger (#44898)
Modified Paths:
--------------
trunk/dports/lang/llvm-3.3/Portfile
Added Paths:
-----------
trunk/dports/lang/llvm-3.3/files/tiger-undefined-_CS_DARWIN_USER_-macros.patch
Modified: trunk/dports/lang/llvm-3.3/Portfile
===================================================================
--- trunk/dports/lang/llvm-3.3/Portfile 2016-05-29 22:17:46 UTC (rev 149088)
+++ trunk/dports/lang/llvm-3.3/Portfile 2016-05-30 06:10:17 UTC (rev 149089)
@@ -85,6 +85,7 @@
patchfiles install_target.patch \
0001-Fix-regular-expression-to-work-with-multiple-digit-v.patch \
tiger.patch \
+ tiger-undefined-_CS_DARWIN_USER_-macros.patch \
tiger-shlib.patch
patch.pre_args -p1
Added: trunk/dports/lang/llvm-3.3/files/tiger-undefined-_CS_DARWIN_USER_-macros.patch
===================================================================
--- trunk/dports/lang/llvm-3.3/files/tiger-undefined-_CS_DARWIN_USER_-macros.patch (rev 0)
+++ trunk/dports/lang/llvm-3.3/files/tiger-undefined-_CS_DARWIN_USER_-macros.patch 2016-05-30 06:10:17 UTC (rev 149089)
@@ -0,0 +1,17 @@
+--- a/lib/Support/PathV2.cpp 2013-04-05 22:10:04.000000000 +0200
++++ b/lib/Support/PathV2.cpp 2016-05-29 11:53:39.000000000 +0200
+@@ -498,6 +498,14 @@
+
+ #ifdef __APPLE__
+ // On Darwin, use DARWIN_USER_TEMP_DIR or DARWIN_USER_CACHE_DIR.
++ // ...which are not defined in Tiger and earlier!
++#ifndef _CS_DARWIN_USER_TEMP_DIR
++#define _CS_DARWIN_USER_TEMP_DIR 65537
++#endif
++#ifndef _CS_DARWIN_USER_CACHE_DIR
++#define _CS_DARWIN_USER_CACHE_DIR 65538
++#endif
++
+ int ConfName = erasedOnReboot? _CS_DARWIN_USER_TEMP_DIR
+ : _CS_DARWIN_USER_CACHE_DIR;
+ size_t ConfLen = confstr(ConfName, 0, 0);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160529/a07804bd/attachment.html>
More information about the macports-changes
mailing list