[gentoo-commits] repo/gentoo:master commit in: dev-python/blosc/files/

2021-11-23 Thread Conrad Kostecki
commit: 4b404bb737eed5f2ddc6a7ae84e6b74af53b6fd4
Author: Michael Mair-Keimberger  levelnine  at>
AuthorDate: Tue Nov 16 16:51:43 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Tue Nov 23 20:33:15 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b404bb7

dev-python/blosc: remove unused patch(es)

Closes: https://github.com/gentoo/gentoo/pull/22973
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Michael Mair-Keimberger  levelnine.at>
Signed-off-by: Conrad Kostecki  gentoo.org>

 dev-python/blosc/files/blosc-1.10.0-unbundle.patch | 38 --
 .../blosc/files/blosc-1.10.4-cpu-flags.patch   | 22 -
 2 files changed, 60 deletions(-)

diff --git a/dev-python/blosc/files/blosc-1.10.0-unbundle.patch 
b/dev-python/blosc/files/blosc-1.10.0-unbundle.patch
deleted file mode 100644
index 0ea6740f9c07..
--- a/dev-python/blosc/files/blosc-1.10.0-unbundle.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From b2935461d889eac99fa1bdfb04a96f1c3a23c4c3 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= 
-Date: Thu, 24 Dec 2020 01:06:23 +0100
-Subject: [PATCH] build against system blosc
-

- blosc/CMakeLists.txt | 14 ++
- 1 file changed, 2 insertions(+), 12 deletions(-)
-
-diff --git a/blosc/CMakeLists.txt b/blosc/CMakeLists.txt
-index 7f06f28..fcf7db0 100644
 a/blosc/CMakeLists.txt
-+++ b/blosc/CMakeLists.txt
-@@ -1,19 +1,9 @@
- # Todo: c-blosc provides a CMake package configuration file that we can build
- # against if blosc is available on the system, etc.
--# find_package(blosc)
--# if(NOT blosc_FOUND)
--set(BUILD_STATIC ON CACHE BOOL "Build a static version of the blosc library.")
--set(BUILD_SHARED ON CACHE BOOL "Build a shared library version of the blosc 
library.")
--set(BUILD_TESTS OFF CACHE BOOL "Build test programs form the blosc 
compression library")
--set(BUILD_BENCHMARKS OFF CACHE BOOL "Build benchmark programs form the blosc 
compression library")
--set(BLOSC_IS_SUBPROJECT OFF CACHE BOOL "Blosc is subproject")
--set(CMAKE_POSITION_INDEPENDENT_CODE ON)
--add_subdirectory(c-blosc)
--include_directories("${CMAKE_CURRENT_SOURCE_DIR}/c-blosc/blosc")
--
-+find_package(blosc)
- 
- add_library(blosc_extension MODULE blosc_extension.c)
--target_link_libraries(blosc_extension blosc_static)
-+target_link_libraries(blosc_extension blosc)
- python_extension_module(blosc_extension)
- 
- add_custom_command(
--- 
-2.29.2
-

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
deleted file mode 100644
index 1e2641646138..
--- a/dev-python/blosc/files/blosc-1.10.4-cpu-flags.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-https://github.com/Blosc/python-blosc/commit/70226a70907072be607caee3da472e37a4683bae
-https://github.com/Blosc/python-blosc/issues/227
-https://bugs.gentoo.org/732178
-
-From: Graham Inggs 
-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'))),



[gentoo-commits] repo/gentoo:master commit in: dev-python/blosc/files/, dev-python/blosc/

2020-06-10 Thread Michał Górny
commit: 5cf4455ae7c157ff511f1831a7573e9ef78fb7a4
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Jun 10 10:23:38 2020 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Jun 10 10:27:43 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cf4455a

dev-python/blosc: Unbundle c-blosc

Signed-off-by: Michał Górny  gentoo.org>

 .../{blosc-1.9.1.ebuild => blosc-1.9.1-r1.ebuild}  |  6 +-
 dev-python/blosc/files/blosc-1.9.1-unbundle.patch  | 23 ++
 2 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/dev-python/blosc/blosc-1.9.1.ebuild 
b/dev-python/blosc/blosc-1.9.1-r1.ebuild
similarity index 91%
rename from dev-python/blosc/blosc-1.9.1.ebuild
rename to dev-python/blosc/blosc-1.9.1-r1.ebuild
index 2cda56af6d4..11fa0fc160a 100644
--- a/dev-python/blosc/blosc-1.9.1.ebuild
+++ b/dev-python/blosc/blosc-1.9.1-r1.ebuild
@@ -18,7 +18,7 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="test"
 RESTRICT="!test? ( test )"
 
-RDEPEND="dev-libs/c-blosc:="
+RDEPEND=">=dev-libs/c-blosc-1.19.0:="
 DEPEND="${RDEPEND}"
 BDEPEND="
dev-python/scikit-build[${PYTHON_USEDEP}]
@@ -28,6 +28,10 @@ BDEPEND="
)
 "
 
+PATCHES=(
+   "${FILESDIR}"/${P}-unbundle.patch
+)
+
 python_prepare_all() {
export BLOSC_DIR="${EPREFIX}/usr"
distutils-r1_python_prepare_all

diff --git a/dev-python/blosc/files/blosc-1.9.1-unbundle.patch 
b/dev-python/blosc/files/blosc-1.9.1-unbundle.patch
new file mode 100644
index 000..55af5f0c621
--- /dev/null
+++ b/dev-python/blosc/files/blosc-1.9.1-unbundle.patch
@@ -0,0 +1,23 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 2711877..a4c949c 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -4,16 +4,9 @@ find_package(PythonExtensions REQUIRED)
+ 
+ # Todo: c-blosc provides a CMake package configuration file that we can build
+ # against if blosc is available on the system, etc.
+-# find_package(blosc)
+-# if(NOT blosc_FOUND)
+-set(BUILD_STATIC ON CACHE BOOL "Build a static version of the blosc library.")
+-set(BUILD_SHARED OFF CACHE BOOL "Build a shared library version of the blosc 
library.")
+-set(BUILD_TESTS OFF CACHE BOOL "Build test programs form the blosc 
compression library")
+-set(BUILD_BENCHMARKS OFF CACHE BOOL "Build benchmark programs form the blosc 
compression library")
+-set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+-add_subdirectory(c-blosc)
++find_package(blosc)
+ 
+ add_library(blosc_extension MODULE blosc/blosc_extension.c)
+-target_link_libraries(blosc_extension blosc_static)
++target_link_libraries(blosc_extension blosc)
+ python_extension_module(blosc_extension)
+ install(TARGETS blosc_extension LIBRARY DESTINATION blosc)