Hello community, here is the log from the commit of package blosc for openSUSE:Factory checked in at 2015-08-10 09:16:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/blosc (Old) and /work/SRC/openSUSE:Factory/.blosc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "blosc" Changes: -------- --- /work/SRC/openSUSE:Factory/blosc/blosc.changes 2015-05-19 23:50:36.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.blosc.new/blosc.changes 2015-08-10 09:16:42.000000000 +0200 @@ -1,0 +2,7 @@ +Fri Aug 7 14:51:19 UTC 2015 - [email protected] + +- Add two patches dragged from fedora to support non-intel archi + 0001-Fix-cmake-system-check.patch + 0002-Fix-compilation-on-unknown-archs.patch + +------------------------------------------------------------------- New: ---- 0001-Fix-cmake-system-check.patch 0002-Fix-compilation-on-unknown-archs.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ blosc.spec ++++++ --- /var/tmp/diff_new_pack.aH5SmN/_old 2015-08-10 09:16:43.000000000 +0200 +++ /var/tmp/diff_new_pack.aH5SmN/_new 2015-08-10 09:16:43.000000000 +0200 @@ -33,6 +33,8 @@ BuildRequires: snappy-devel BuildRequires: zlib-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build +Patch1: 0001-Fix-cmake-system-check.patch +Patch2: 0002-Fix-compilation-on-unknown-archs.patch %description Blosc is a high performance compressor optimized for binary data. @@ -101,6 +103,8 @@ %prep %setup -q -n c-blosc-%{version} +%patch1 -p1 +%patch2 -p1 %build mkdir -p build ++++++ 0001-Fix-cmake-system-check.patch ++++++ >From 023d185a1e9f104f15b7800d13cf3c1b9169ab72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <[email protected]> Date: Thu, 7 May 2015 12:35:32 -0400 Subject: [PATCH] Fix cmake system check Apparently the check was always evaluating to true, because cmake simply sets the variable to whatever is on the right, not evaluating the expression. The list of architectures was also completely random. Those seems to be the available options (under Linux): i386 i686 x86_64 ia64 alpha amd64 arm armeb armel hppa m32r m68k mips mipsel powerpc ppc64 s390 s390x sh3 sh3eb sh4 sh4eb sparc --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 69b6525a95..39e3dcf0d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -139,8 +139,11 @@ endif(NOT CMAKE_BUILD_TYPE) # by the compiler. Note we DO NOT check which hardware features are supported # by this (the host) system, because we want to be able to support compiling # for newer hardware on older machines as well as cross-compilation. -set(SYSTEM_PROCESSOR_INTEL_X86 ((CMAKE_SYSTEM_PROCESSOR STREQUAL i686) OR (CMAKE_SYSTEM_PROCESSOR STREQUAL x86) OR (CMAKE_SYSTEM_PROCESSOR STREQUAL AMD64))) -if(SYSTEM_PROCESSOR_INTEL_X86) +message(STATUS "Building for system processor ${CMAKE_SYSTEM_PROCESSOR}.") +if(CMAKE_SYSTEM_PROCESSOR STREQUAL i386 OR + CMAKE_SYSTEM_PROCESSOR STREQUAL i686 OR + CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64 OR + CMAKE_SYSTEM_PROCESSOR STREQUAL amd64) if(CMAKE_C_COMPILER_ID STREQUAL GNU) set(COMPILER_SUPPORT_SSE2 TRUE) if(CMAKE_C_COMPILER_VERSION VERSION_GREATER 4.7 OR CMAKE_C_COMPILER_VERSION VERSION_EQUAL 4.7) @@ -175,7 +178,7 @@ if(SYSTEM_PROCESSOR_INTEL_X86) # Unrecognized compiler. Emit a warning message to let the user know hardware-acceleration won't be available. message(WARNING "Unable to determine which ${CMAKE_SYSTEM_PROCESSOR} hardware features are supported by the C compiler (${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION}).") endif() -else(SYSTEM_PROCESSOR_INTEL_X86) +else() # If the target system processor isn't recognized, emit a warning message to alert the user # that hardware-acceleration support won't be available but allow configuration to proceed. message(WARNING "Unrecognized system processor ${CMAKE_SYSTEM_PROCESSOR}. Cannot determine which hardware features (${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION}) supports, so hardware-accelerated implementations will not be available.") -- 2.1.0 ++++++ 0002-Fix-compilation-on-unknown-archs.patch ++++++ >From 97227c72cb6108b58bfa704b43324e82d1b86f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <[email protected]> Date: Thu, 7 May 2015 13:24:45 -0400 Subject: [PATCH] Fix compilation on "unknown" archs --- blosc/shuffle.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blosc/shuffle.c b/blosc/shuffle.c index 0fd97b7cbf..9d02389f35 100644 --- a/blosc/shuffle.c +++ b/blosc/shuffle.c @@ -217,6 +217,10 @@ static blosc_cpu_features blosc_get_cpu_features(void) { #warning Hardware-acceleration detection not implemented for the target architecture. Only the generic shuffle/unshuffle routines will be available. #endif +static blosc_cpu_features blosc_get_cpu_features(void) { + return BLOSC_HAVE_NOTHING; +} + #endif static shuffle_implementation_t -- 2.1.0
