Hello community, here is the log from the commit of package liberasurecode for openSUSE:Factory checked in at 2017-02-14 00:43:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/liberasurecode (Old) and /work/SRC/openSUSE:Factory/.liberasurecode.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "liberasurecode" Changes: -------- --- /work/SRC/openSUSE:Factory/liberasurecode/liberasurecode.changes 2017-02-03 17:47:24.162319054 +0100 +++ /work/SRC/openSUSE:Factory/.liberasurecode.new/liberasurecode.changes 2017-02-14 00:43:40.294298046 +0100 @@ -1,0 +2,16 @@ +Thu Jan 12 10:41:40 UTC 2017 - [email protected] + +- Update RPM group and summaries. + +------------------------------------------------------------------- +Wed Jan 11 14:17:47 UTC 2017 - [email protected] + +- Add partial-disable-simd.patch + Some libraries like python-PyECLib fail in OBS during the tests. + This can be because in OBS SSE2, SSE3 and other SIMD extensions are + not properly addressed by QEMU. + This patch remove some SIMD extensions, maintaining MMX+SSE for + x86_64 systems. +- Add buildreuired for pkg-config + +------------------------------------------------------------------- New: ---- partial-disable-simd.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ liberasurecode.spec ++++++ --- /var/tmp/diff_new_pack.K9MsDo/_old 2017-02-14 00:43:41.054190769 +0100 +++ /var/tmp/diff_new_pack.K9MsDo/_new 2017-02-14 00:43:41.058190204 +0100 @@ -24,18 +24,24 @@ License: BSD-3-Clause Group: Development/Libraries/C and C++ Url: https://github.com/openstack/liberasurecode -BuildRequires: automake libtool +BuildRequires: automake +BuildRequires: libtool +BuildRequires: pkg-config Source0: %{name}-%{version}.tar.gz +# PATCH-FIX-OPENSUSE partial-disable-simd.patch +Patch0: partial-disable-simd.patch %description -Unified Erasure Coding interface for common storage workloads. +liberasurecode is an Erasure Code API library written in C with +pluggable Erasure Code backends. %package -n %{libsoname} Summary: Erasure Code API library with pluggable Erasure Code backends -Group: Development/Libraries/C and C++ +Group: System/Libraries %description -n %{libsoname} -Unified Erasure Coding interface for common storage workloads. +liberasurecode is an Erasure Code API library written in C with +pluggable Erasure Code backends. %package devel Summary: liberasurecode development files @@ -43,10 +49,11 @@ Requires: %{libsoname} = %{version} %description devel -Development files for the Unified Erasure Coding interface for common storage workloads. +Development files for the Unified Erasure Coding interface. %prep %setup -q +%patch0 -p1 %build ./autogen.sh ++++++ partial-disable-simd.patch ++++++ --- a/get_flags_from_cpuid.c 2017-01-11 16:42:02.399921368 +0100 +++ b/get_flags_from_cpuid.c 2017-01-11 16:46:03.295952787 +0100 @@ -5,13 +5,6 @@ #define EDX_MMX_BIT 23 #define EDX_SSE_BIT 25 -#define EDX_SSE2_BIT 26 -#define ECX_SSE3_BIT 0 -#define ECX_SSSE3_BIT 9 -#define ECX_SSE41_BIT 19 -#define ECX_SSE42_BIT 20 -#define ECX_AVXOS_BIT 27 -#define ECX_AVX_BIT 28 uint64_t get_supported_flags() @@ -31,24 +24,6 @@ if (strcmp(comp_flag, "-msse\0") == 0) { supp_comp_flgs |= (1 << EDX_SSE_BIT); } - if (strcmp(comp_flag, "-msse2\0") == 0) { - supp_comp_flgs |= (1 << EDX_SSE2_BIT); - } - if (strcmp(comp_flag, "-msse3\0") == 0) { - supp_comp_flgs |= (1 << ECX_SSE3_BIT); - } - if (strcmp(comp_flag, "-mssse3\0") == 0) { - supp_comp_flgs |= (1 << ECX_SSSE3_BIT); - } - if (strcmp(comp_flag, "-msse4.1\0") == 0) { - supp_comp_flgs |= (1 << ECX_SSE41_BIT); - } - if (strcmp(comp_flag, "-msse4.2\0") == 0) { - supp_comp_flgs |= (1 << ECX_SSE42_BIT); - } - if (strcmp(comp_flag, "-mavx\0") == 0) { - supp_comp_flgs |= (1 << ECX_AVX_BIT); - } } return supp_comp_flgs; @@ -75,26 +50,6 @@ if (is_supported(feature_edx, supp_comp_flgs, EDX_SSE_BIT)) { fprintf(f, "-msse -DINTEL_SSE "); } - if (is_supported(feature_edx, supp_comp_flgs, EDX_SSE2_BIT)) { - fprintf(f, "-msse2 -DINTEL_SSE2 "); - } - if (is_supported(feature_ecx, supp_comp_flgs, ECX_SSE3_BIT)) { - fprintf(f, "-msse3 -DINTEL_SSE3 "); - } - if (is_supported(feature_ecx, supp_comp_flgs, ECX_SSSE3_BIT)) { - fprintf(f, "-mssse3 -DINTEL_SSSE3 "); - } - if (is_supported(feature_ecx, supp_comp_flgs, ECX_SSE41_BIT)) { - fprintf(f, "-msse4.1 -DINTEL_SSE41 "); - } - if (is_supported(feature_ecx, supp_comp_flgs, ECX_SSE42_BIT)) { - fprintf(f, "-msse4.2 -DINTEL_SSE42 "); - } - if (is_supported(feature_ecx, supp_comp_flgs, ECX_AVX_BIT)) { - if ((feature_ecx >> ECX_AVXOS_BIT) & 0x1) { - fprintf(f, "-mavx -DINTEL_AVX "); - } - } fclose(f); return 0; } --- a/configure.ac 2017-01-11 16:41:55.047920432 +0100 +++ b/configure.ac 2017-01-11 16:45:05.371945097 +0100 @@ -163,36 +163,6 @@ SUPPORTED_FLAGS="$SUPPORTED_FLAGS -msse" AC_MSG_RESULT([$CC supports -msse]) fi -$CC - -E -msse2 </dev/null >/dev/null 2>&1 -if [[ $? == "0" ]]; then - SUPPORTED_FLAGS="$SUPPORTED_FLAGS -msse2" - AC_MSG_RESULT([$CC supports -msse2]) -fi -$CC - -E -msse3 </dev/null >/dev/null 2>&1 -if [[ $? == "0" ]]; then - SUPPORTED_FLAGS="$SUPPORTED_FLAGS -msse3" - AC_MSG_RESULT([$CC supports -msse3]) -fi -$CC - -E -mssse3 </dev/null >/dev/null 2>&1 -if [[ $? == "0" ]]; then - SUPPORTED_FLAGS="$SUPPORTED_FLAGS -mssse3" - AC_MSG_RESULT([$CC supports -mssse3]) -fi -$CC - -E -msse4.1 </dev/null >/dev/null 2>&1 -if [[ $? == "0" ]]; then - SUPPORTED_FLAGS="$SUPPORTED_FLAGS -msse4.1" - AC_MSG_RESULT([$CC supports -msse4.1]) -fi -$CC - -E -msse4.2 </dev/null >/dev/null 2>&1 -if [[ $? == "0" ]]; then - SUPPORTED_FLAGS="$SUPPORTED_FLAGS -msse4.2" - AC_MSG_RESULT([$CC supports -msse4.2]) -fi -$CC - -E -mavx </dev/null >/dev/null 2>&1 -if [[ $? == "0" ]]; then - SUPPORTED_FLAGS="$SUPPORTED_FLAGS -mavx" - AC_MSG_RESULT([$CC supports -mavx]) -fi # Detect the SIMD features supported by both the compiler and the CPU SIMD_FLAGS=""
