diff options
Diffstat (limited to 'dev-python/blosc')
-rw-r--r-- | dev-python/blosc/Manifest | 3 | ||||
-rw-r--r-- | dev-python/blosc/blosc-1.10.4.ebuild | 3 | ||||
-rw-r--r-- | dev-python/blosc/files/blosc-1.10.4-cpu-flags.patch | 22 |
3 files changed, 26 insertions, 2 deletions
diff --git a/dev-python/blosc/Manifest b/dev-python/blosc/Manifest index cd9d845ae1ed..bb035b7dfa81 100644 --- a/dev-python/blosc/Manifest +++ b/dev-python/blosc/Manifest @@ -1,4 +1,5 @@ AUX blosc-1.10.0-unbundle.patch 1461 BLAKE2B 05c54929638e7a9a645fdf872c26969720fabfd8a8526742def207b92ec0ddf96ad6002cf9d45d1f5b44521d44c369081b368ab98605a5789b1b949bf6a5f5d2 SHA512 b8139ae0d091be459071cab4779f4264e0bbef119e8641913167f809a4d0b3682e1918443e10f83aa9c34c76f0ddda440ac27cb9d1c10cc355e0a7f05dbc7179 +AUX blosc-1.10.4-cpu-flags.patch 1419 BLAKE2B afcc14d97c6b38e1d7fce06ae2b00e656ba656cc784f4f13f4acf12145cd1ac9a1d4b3f4110b4a5f8ecbb8c056647cfc5076016e5c563d3b05882245cfc0ba32 SHA512 9b1a1620136aa76c0bf6f8d91b784410de7118a6006d36ad3005f2b8bd6a952f7fe25cfe71de2a52127e2ac825ab9155946e2e92a132afc31265a8bd2e60e023 DIST blosc-1.10.4.tar.gz 858123 BLAKE2B 01c9bd9486a27944caae1bc92b591c8b6f821bb5a6a0b44bc19f6c1778f2a2573a25783631c2140daa4d701569e584c93f8d5da76a92b73fb35ae5880ad2ea34 SHA512 bb41b83ff5198603e3721150976f95ffcbfe7b91bd5b11e1aa5e440dee1af7a9a6f5033e5aa4858117432e1522052ec074e9f14b5be52545e3752bc818637703 -EBUILD blosc-1.10.4.ebuild 972 BLAKE2B 11fe88ec0b67925ddea1d7478ac75cad9270e54371e090e9845b46287314d910d8c2a780c4a012875ced308af766649c440e83e3e4264171dbc9911c9c623fd2 SHA512 d7a31a3b29aa4496be41498352b7f029b2668ac8f8d8874a104c4fee42e66cd317dde1f6a9e329407396394865f8e8b703f7a5d93eb2144af599405267e1fc7f +EBUILD blosc-1.10.4.ebuild 1022 BLAKE2B 9cb1bfc7664f59c4f72b651c1c7f1506f860a0de8ef3aacbead8d30f9a9174522ea5b0ac56d7b84f7efe2d8c25e718457c8d6d70fd54120668bc08624bb11316 SHA512 47c378f54b24a4115937b0102281237da02c20feda943522738db9e8126e24191e6bb439024515e10b415b4ec451c2972e24454f7925b1f4ce4ca49c1c5d8b01 MISC metadata.xml 998 BLAKE2B 3630fcaea0c8e2e9062aa9f42c60b17b407fd5febb70d5d41b0a0c46f202f06afc79fc25072c1403c917caedfd6205e7133431fcfd40e74f8480852aee7e2299 SHA512 22ffa2acb28f4f6f9af18398681db0ddb5b19c7b125386c0eb24265f11ccba24f90977710f74af57a2de6e497c668fb17398da89a2b2ecc5ef552b201960450e diff --git a/dev-python/blosc/blosc-1.10.4.ebuild b/dev-python/blosc/blosc-1.10.4.ebuild index 8acd8a97e758..0c41f56d01dc 100644 --- a/dev-python/blosc/blosc-1.10.4.ebuild +++ b/dev-python/blosc/blosc-1.10.4.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" SLOT="0" LICENSE="MIT" -KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux" IUSE="test" RESTRICT="!test? ( test )" @@ -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'))), |