[134010] trunk/dports/devel/protobuf3-cpp/Portfile

blair at macports.org blair at macports.org
Mon Mar 16 20:07:49 PDT 2015


Revision: 134010
          https://trac.macports.org/changeset/134010
Author:   blair at macports.org
Date:     2015-03-16 20:07:48 -0700 (Mon, 16 Mar 2015)
Log Message:
-----------
protobuf3-cpp: early fail on Mac OS X 10.6 or older.

src/google/protobuf/stubs/common.h:317
#if defined(_MSC_VER)
#define GOOGLE_THREAD_LOCAL __declspec(thread)
#else
#define GOOGLE_THREAD_LOCAL __thread
#endif


src/google/protobuf/arena.h:318
  static GOOGLE_THREAD_LOCAL ThreadCache thread_cache_;


In file included from ./google/protobuf/arenastring.h:39,
                 from google/protobuf/arenastring.cc:34:
./google/protobuf/arena.h:318: error: thread-local storage not supported for this target

Modified Paths:
--------------
    trunk/dports/devel/protobuf3-cpp/Portfile

Modified: trunk/dports/devel/protobuf3-cpp/Portfile
===================================================================
--- trunk/dports/devel/protobuf3-cpp/Portfile	2015-03-17 01:32:06 UTC (rev 134009)
+++ trunk/dports/devel/protobuf3-cpp/Portfile	2015-03-17 03:07:48 UTC (rev 134010)
@@ -39,6 +39,13 @@
 distfiles       protobuf-cpp-${real_version}.tar.gz
 worksrcdir      protobuf-${real_version}
 
+pre-fetch {
+    if {${os.platform} eq "darwin" && ${os.major} < 11} {
+        ui_error "${name} uses thread-local storage which is not supported on Mac OS X 10.6 or older."
+        return -code error "incompatible Mac OS X version"
+    }
+}
+
 checksums       sha1   5cf937727a90b09e79921944cfcdbd310a5a0234 \
                 sha256 ece45f4957140edc9517c3e03ca5509f70847d576ca5ae267fa0a8ee20ee1c85
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150316/52a1e6fd/attachment.html>


More information about the macports-changes mailing list