diff options
-rw-r--r-- | dev-python/blosc/blosc-1.10.4.ebuild | 1 | ||||
-rw-r--r-- | dev-python/blosc/files/blosc-1.10.4-cpu-flags.patch | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/dev-python/blosc/blosc-1.10.4.ebuild b/dev-python/blosc/blosc-1.10.4.ebuild index 8acd8a97e758..e8ef10b43d61 100644 --- a/dev-python/blosc/blosc-1.10.4.ebuild +++ b/dev-python/blosc/blosc-1.10.4.ebuild @@ -29,6 +29,7 @@ BDEPEND=" DOCS=( ANNOUNCE.rst README.rst RELEASE_NOTES.rst ) PATCHES=( "${FILESDIR}"/blosc-1.10.0-unbundle.patch + "${FILESDIR}"/blosc-1.10.4-cpu-flags.patch ) python_prepare_all() { diff --git a/dev-python/blosc/files/blosc-1.10.4-cpu-flags.patch b/dev-python/blosc/files/blosc-1.10.4-cpu-flags.patch new file mode 100644 index 000000000000..1e2641646138 --- /dev/null +++ b/dev-python/blosc/files/blosc-1.10.4-cpu-flags.patch @@ -0,0 +1,22 @@ +https://github.com/Blosc/python-blosc/commit/70226a70907072be607caee3da472e37a4683bae +https://github.com/Blosc/python-blosc/issues/227 +https://bugs.gentoo.org/732178 + +From: Graham Inggs <ginggs@debian.org> +Date: Tue, 3 Aug 2021 17:11:51 +0200 +Subject: [PATCH] Deactivate SSE2 and AVX2 if a CPU has no flags (#242) + +Fixes #277 +--- a/setup.py ++++ b/setup.py +@@ -90,8 +90,8 @@ def cmake_bool(cond): + platforms = ['any'], + cmake_args = [ + '-DBLOSC_DIR:PATH=%s' % os.environ.get('BLOSC_DIR', ''), +- '-DDEACTIVATE_SSE2:BOOL=%s' % cmake_bool(('DISABLE_BLOSC_SSE2' in os.environ) or (cpu_info is None) or ('sse2' not in cpu_info['flags'])), +- '-DDEACTIVATE_AVX2:BOOL=%s' % cmake_bool(('DISABLE_BLOSC_AVX2' in os.environ) or (cpu_info is None) or ('avx2' not in cpu_info['flags'])), ++ '-DDEACTIVATE_SSE2:BOOL=%s' % cmake_bool(('DISABLE_BLOSC_SSE2' in os.environ) or (cpu_info is None) or ('flags' not in cpu_info) or ('sse2' not in cpu_info['flags'])), ++ '-DDEACTIVATE_AVX2:BOOL=%s' % cmake_bool(('DISABLE_BLOSC_AVX2' in os.environ) or (cpu_info is None) or ('flags' not in cpu_info) or ('avx2' not in cpu_info['flags'])), + '-DDEACTIVATE_LZ4:BOOL=%s' % cmake_bool(not int(os.environ.get('INCLUDE_LZ4', '1'))), + # Snappy is disabled by default + '-DDEACTIVATE_SNAPPY:BOOL=%s' % cmake_bool(not int(os.environ.get('INCLUDE_SNAPPY', '0'))), |