[104996] trunk/dports/databases/db52

afb at macports.org afb at macports.org
Sun Apr 7 01:09:56 PDT 2013


Revision: 104996
          https://trac.macports.org/changeset/104996
Author:   afb at macports.org
Date:     2013-04-07 01:09:56 -0700 (Sun, 07 Apr 2013)
Log Message:
-----------
db52: fix compilation with clang (#38411)

Modified Paths:
--------------
    trunk/dports/databases/db52/Portfile

Added Paths:
-----------
    trunk/dports/databases/db52/files/patch-src_dbinc_atomic.h

Modified: trunk/dports/databases/db52/Portfile
===================================================================
--- trunk/dports/databases/db52/Portfile	2013-04-07 08:09:42 UTC (rev 104995)
+++ trunk/dports/databases/db52/Portfile	2013-04-07 08:09:56 UTC (rev 104996)
@@ -6,6 +6,7 @@
 
 name            db52
 version         5.2.42
+revision        1
 set branch      [join [lrange [split ${version} .] 0 1] {}]
 categories      databases
 license         Sleepycat
@@ -28,6 +29,8 @@
                 sha1    c533839056ab465a12808d48d3af0a35e50019be \
                 rmd160  717b2b68ff7d225edaed834289d8e06a3c1d7cc7
 
+patchfiles      patch-src_dbinc_atomic.h
+
 configure.dir   ${worksrcpath}/build_unix
 build.dir       ${configure.dir}
 

Copied: trunk/dports/databases/db52/files/patch-src_dbinc_atomic.h (from rev 104965, trunk/dports/databases/db53/files/patch-src_dbinc_atomic.h)
===================================================================
--- trunk/dports/databases/db52/files/patch-src_dbinc_atomic.h	                        (rev 0)
+++ trunk/dports/databases/db52/files/patch-src_dbinc_atomic.h	2013-04-07 08:09:56 UTC (rev 104996)
@@ -0,0 +1,20 @@
+--- src/dbinc/atomic.h.orig	2012-02-29 19:48:38.000000000 +0100
++++ src/dbinc/atomic.h	2012-05-04 22:39:32.000000000 +0200
+@@ -144,7 +144,7 @@ typedef LONG volatile *interlocked_val;
+ #define	atomic_inc(env, p)	__atomic_inc(p)
+ #define	atomic_dec(env, p)	__atomic_dec(p)
+ #define	atomic_compare_exchange(env, p, o, n)	\
+-	__atomic_compare_exchange((p), (o), (n))
++	__atomic_compare_exchange_db((p), (o), (n))
+ static inline int __atomic_inc(db_atomic_t *p)
+ {
+ 	int	temp;
+@@ -176,7 +176,7 @@ static inline int __atomic_dec(db_atomic
+  * http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html
+  * which configure could be changed to use.
+  */
+-static inline int __atomic_compare_exchange(
++static inline int __atomic_compare_exchange_db(
+ 	db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval)
+ {
+ 	atomic_value_t was;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130407/5a4d095a/attachment.html>


More information about the macports-changes mailing list