Hello community,

here is the log from the commit of package kyotocabinet for openSUSE:Factory 
checked in at 2012-12-28 15:03:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kyotocabinet (Old)
 and      /work/SRC/openSUSE:Factory/.kyotocabinet.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kyotocabinet", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:Factory/kyotocabinet/kyotocabinet.changes        
2012-08-16 14:07:59.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.kyotocabinet.new/kyotocabinet.changes   
2012-12-28 15:03:34.000000000 +0100
@@ -1,0 +2,6 @@
+Thu Dec 27 10:34:38 UTC 2012 - [email protected]
+
+- fix up configure test to handle lack of 8 byte atomics correctly
+  (configure-8-byte-atomics.patch) 
+
+-------------------------------------------------------------------

New:
----
  configure-8-byte-atomics.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kyotocabinet.spec ++++++
--- /var/tmp/diff_new_pack.gLFjQo/_old  2012-12-28 15:03:35.000000000 +0100
+++ /var/tmp/diff_new_pack.gLFjQo/_new  2012-12-28 15:03:35.000000000 +0100
@@ -27,6 +27,7 @@
 Source:         
http://fallabs.com/kyotocabinet/pkg/kyotocabinet-%{version}.tar.gz
 # PATCH-MISSING-TAG -- See 
http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
 Patch1:         %{name}-fix_rpath.patch
+Patch2:         configure-8-byte-atomics.patch 
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  gcc-c++
@@ -106,6 +107,7 @@
 %prep
 %setup -q
 %patch1 -p 1
+%patch2 -p1
 sed -ie "/ldconfig/d" Makefile.in
 sed -ie "/DOCDIR/d" Makefile.in
 

++++++ configure-8-byte-atomics.patch ++++++
From: Shawn Landden <[email protected]>
Date: Thu, 21 Jun 2012 20:34:28 -0700
Subject: configure: 8 byte atomics

fix up configure test to handle lack of 8 byte atomics correctly

as is the case with all ARM targets currently
---
 configure    |   29 +++++++++++++----------------
 configure.in |   19 ++++++++++++++++---
 2 files changed, 29 insertions(+), 19 deletions(-)

diff --git a/configure b/configure
index a07063d..bfc6df0 100755
--- a/configure
+++ b/configure
@@ -4012,25 +4012,22 @@ fi
 # Atomic operations
 if test "$enable_atomic" != "no"
 then
-  printf 'checking for atomic operations... '
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
+  printf 'checking for 8 byte atomic operations... '
+  if printf '
+/* Some targets support 4 byte atomics, but not 8 byte atomics,
+ * and will fail at link time if they are used.
+ *
+ * http://gcc.gnu.org/onlinedocs/gcc-4.6.3/gcc/Atomic-Builtins.html
+ * http://gcc.gnu.org/wiki/Atomic
+ */
+#include <stdint.h>
 int
 main ()
 {
-__sync_fetch_and_add
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_compile "$LINENO"; then :
-  MYGCCATOMIC=yes
-else
-  MYGCCATOMIC=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-  if test "$MYGCCATOMIC" = "yes"
+uint64_t n = 0xdeadbeaf;
+__sync_bool_compare_and_swap(&n, 0xdeadbeaf, 0);
+return n;
+}' | $CC -xc -o config.tmp - >/dev/null 2>&1
   then
     MYCPPFLAGS="$MYCPPFLAGS -D_MYGCCATOMIC"
     printf 'yes\n'
diff --git a/configure.in b/configure.in
index 7808806..b5f5ac0 100644
--- a/configure.in
+++ b/configure.in
@@ -238,9 +238,22 @@ fi
 # Atomic operations
 if test "$enable_atomic" != "no"
 then
-  printf 'checking for atomic operations... '
-  AC_TRY_COMPILE([], [__sync_fetch_and_add], [MYGCCATOMIC=yes], 
[MYGCCATOMIC=no])
-  if test "$MYGCCATOMIC" = "yes"
+  printf 'checking for 8 byte atomic operations... '
+  if printf '
+/* Some targets support 4 byte atomics, but not 8 byte atomics,
+ * and will fail at link time if they are used.
+ *
+ * http://gcc.gnu.org/onlinedocs/gcc-4.6.3/gcc/Atomic-Builtins.html
+ * http://gcc.gnu.org/wiki/Atomic
+ */
+#include <stdint.h>
+int
+main ()
+{
+uint64_t n = 0xdeadbeaf;
+__sync_bool_compare_and_swap(&n, 0xdeadbeaf, 0);
+return n;
+}' | $CC -xc -o config.tmp - >/dev/null 2>&1
   then
     MYCPPFLAGS="$MYCPPFLAGS -D_MYGCCATOMIC"
     printf 'yes\n'
-- 
1.7.9.5
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to