Hello all. Landry spotted OpenCV failing on sparc64 since last update. This happens due to erroneous atomic builtins handling. I do not have anything except i386, so, please, could anyone with sparc64 check that this patch fixes the build? No need for REVISION bump here because this patch affects only one arch where the package was never built anyways.
-- zhuk@ Index: patches/patch-modules_core_include_opencv2_core_operations_hpp =================================================================== RCS file: patches/patch-modules_core_include_opencv2_core_operations_hpp diff -N patches/patch-modules_core_include_opencv2_core_operations_hpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-modules_core_include_opencv2_core_operations_hpp 19 Jan 2014 10:27:48 -0000 @@ -0,0 +1,13 @@ +$OpenBSD$ +All to build on sparc64 at least. +--- modules/core/include/opencv2/core/operations.hpp.orig Sun Jan 19 14:25:06 2014 ++++ modules/core/include/opencv2/core/operations.hpp Sun Jan 19 14:25:28 2014 +@@ -65,7 +65,7 @@ + #elif __GNUC__*10 + __GNUC_MINOR__ >= 42 + + #if !(defined WIN32 || defined _WIN32) && (defined __i486__ || defined __i586__ || \ +- defined __i686__ || defined __MMX__ || defined __SSE__ || defined __ppc__) || \ ++ defined __i686__ || defined __MMX__ || defined __SSE__ || defined __ppc__ || defined __sparc64__) || \ + (defined __GNUC__ && defined _STLPORT_MAJOR) + #define CV_XADD __sync_fetch_and_add + #else