[packages/libisal] - updated to 2.32.0; SIMD optimizations no longer supported on i686
qboosh
qboosh at pld-linux.org
Thu May 14 21:46:16 CEST 2026
commit d30522ee7213dd698ef8642ff5597ca1b2d0e2d6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu May 14 21:46:09 2026 +0200
- updated to 2.32.0; SIMD optimizations no longer supported on i686
isa-l-x86.patch | 43 -------------------------------------------
libisal.spec | 29 +++++++++++------------------
x32.patch | 50 ++++++++++++++++++++------------------------------
3 files changed, 31 insertions(+), 91 deletions(-)
---
diff --git a/libisal.spec b/libisal.spec
index 5f9738e..3bb04ac 100644
--- a/libisal.spec
+++ b/libisal.spec
@@ -1,3 +1,4 @@
+# NOTE: for SIMD optimizations support on i686 stick to v2.31.1 (LEGACY-i686 branch)
#
# Conditional build:
%bcond_without static_libs # static library
@@ -5,27 +6,28 @@
Summary: Optimized low-level functions library for storage systems
Summary(pl.UTF-8): Biblioteka zoptymalizowanych funkcji niskopoziomowych do systemów przechowywania danych
Name: libisal
-Version: 2.31.1
+Version: 2.32.0
Release: 1
License: BSD
Group: Libraries
#Source0Download: https://github.com/intel/isa-l/releases
Source0: https://github.com/intel/isa-l/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 851eb1b98da53c4dc8b94e0119106f03
-Patch0: isa-l-x86.patch
+# Source0-md5: e93b5195087a1060715abfa9e2b381dd
Patch1: x32.patch
URL: https://github.com/01org/isa-l
BuildRequires: autoconf >= 2.69
BuildRequires: automake >= 1:1.11
BuildRequires: libtool >= 2:2
-%ifarch %{ix86} %{x8664}
-# nasm or yasm, whichever has higher "feature number" (max=10 for AVX512+)
-BuildRequires: nasm >= 2.13
-BuildRequires: yasm >= 1.2.0
+%ifarch %{x8664}
+BuildRequires: nasm >= 2.14.01
%endif
%ifarch aarch64
BuildRequires: binutils >= 4:2.24
-BuildRequires: gcc >= 6:4.7
+BuildRequires: gcc >= 6:10.1
+%endif
+%ifarch riscv64
+BuildRequires: binutils >= 4:2.39
+BuildRequires: gcc >= 6:12.1
%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -82,10 +84,7 @@ Statyczna biblioteka ISA-L.
%prep
%setup -q -n isa-l-%{version}
-%patch -P0 -p1
-%ifarch x32
%patch -P1 -p1
-%endif
%build
%{__libtoolize}
@@ -95,13 +94,7 @@ Statyczna biblioteka ISA-L.
%configure \
--disable-silent-rules \
%{!?with_static_libs:--disable-static}
-%{__make} \
-%ifarch %{ix86}
- yasm_args="-f elf32" \
-%endif
-%ifarch x32
- yasm_args="-f elfx32"
-%endif
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/isa-l-x86.patch b/isa-l-x86.patch
deleted file mode 100644
index 919e3bf..0000000
--- a/isa-l-x86.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-ec_encode_data_{sse,avx,avx2} refer to asm routines available only for elf64
---- isa-l-2.31.1/erasure_code/ec_highlevel_func.c.orig 2024-05-31 20:08:22.732599805 +0200
-+++ isa-l-2.31.1/erasure_code/ec_highlevel_func.c 2024-05-31 20:15:56.370142239 +0200
-@@ -30,7 +30,7 @@
- #include "erasure_code.h"
- #include "ec_base.h" /* for GF tables */
-
--#if __x86_64__ || __i386__ || _M_X64 || _M_IX86
-+#if __x86_64__ || _M_X64
- void
- ec_encode_data_sse(int len, int k, int rows, unsigned char *g_tbls, unsigned char **data,
- unsigned char **coding)
---- isa-l-2.31.0/erasure_code/ec_multibinary.asm.orig 2024-01-18 19:27:24.000000000 +0100
-+++ isa-l-2.31.0/erasure_code/ec_multibinary.asm 2024-05-31 20:24:51.410577010 +0200
-@@ -36,6 +36,9 @@
- default rel
- [bits 64]
-
-+ extern ec_encode_data_sse
-+ extern ec_encode_data_avx
-+ extern ec_encode_data_avx2
- extern ec_encode_data_update_sse
- extern ec_encode_data_update_avx
- extern ec_encode_data_update_avx2
-@@ -72,9 +75,6 @@ extern gf_vect_mad_base
- extern gf_vect_dot_prod_sse
- extern gf_vect_dot_prod_avx
- extern gf_vect_dot_prod_avx2
--extern ec_encode_data_sse
--extern ec_encode_data_avx
--extern ec_encode_data_avx2
-
- mbin_interface ec_encode_data
- mbin_interface gf_vect_dot_prod
-@@ -84,7 +84,7 @@ mbin_interface gf_vect_mad
- mbin_interface ec_init_tables
-
- %ifidn __OUTPUT_FORMAT__, elf32
-- mbin_dispatch_init5 ec_encode_data, ec_encode_data_base, ec_encode_data_sse, ec_encode_data_avx, ec_encode_data_avx2
-+ mbin_dispatch_init2 ec_encode_data, ec_encode_data_base
- mbin_dispatch_init5 gf_vect_dot_prod, gf_vect_dot_prod_base, gf_vect_dot_prod_sse, gf_vect_dot_prod_avx, gf_vect_dot_prod_avx2
- mbin_dispatch_init2 gf_vect_mul, gf_vect_mul_base
- mbin_dispatch_init2 ec_encode_data_update, ec_encode_data_update_base
diff --git a/x32.patch b/x32.patch
index 13de986..d5c6034 100644
--- a/x32.patch
+++ b/x32.patch
@@ -1,31 +1,21 @@
---- isa-l-2.31.0/Makefile.am.orig 2024-01-18 19:27:24.000000000 +0100
-+++ isa-l-2.31.0/Makefile.am 2024-05-31 22:08:38.585464903 +0200
-@@ -59,18 +59,6 @@ lib_LTLIBRARIES = libisal.la
- pkginclude_HEADERS += $(sort ${extern_hdrs})
- libisal_la_SOURCES = ${lsrc}
+--- isa-l-2.32.0/configure.ac.orig 2026-03-04 14:56:50.000000000 +0100
++++ isa-l-2.32.0/configure.ac 2026-05-14 21:09:37.443435923 +0200
+@@ -23,6 +23,10 @@ AM_PROG_AS
--if CPU_X86_64
--ARCH=-Dx86_64
--libisal_la_SOURCES += ${lsrc_x86_64}
--other_tests += ${other_tests_x86_64}
--endif
--
--if CPU_X86_32
--ARCH=-Dx86_32
--libisal_la_SOURCES += ${lsrc_x86_32}
--other_tests += ${other_tests_x86_32}
--endif
--
- if CPU_AARCH64
- ARCH=-Daarch64
- libisal_la_SOURCES += ${lsrc_aarch64}
-@@ -83,9 +71,7 @@ libisal_la_SOURCES += ${lsrc_ppc64le}
- other_tests += ${other_tests_ppc64le}
- endif
-
--if CPU_UNDEFINED
- libisal_la_SOURCES += ${lsrc_base_aliases}
--endif
-
- nobase_include_HEADERS = isa-l.h
- libisal_la_LDFLAGS = $(AM_LDFLAGS) \
+ AC_CANONICAL_HOST
+ CPU=""
++
++AS_CASE([$host],
++ [x86_64-*-gnux32], [],
++ [
+ AS_CASE([$host_cpu],
+ [x86_64], [CPU="x86_64"],
+ [amd64], [CPU="x86_64"],
+@@ -32,6 +36,7 @@ AS_CASE([$host_cpu],
+ [ppc64le], [CPU="ppc64le"],
+ [riscv64], [CPU="riscv64"],
+ )
++])
+ AM_CONDITIONAL([CPU_X86_64], [test "$CPU" = "x86_64"])
+ AM_CONDITIONAL([CPU_AARCH64], [test "$CPU" = "aarch64"])
+ AM_CONDITIONAL([CPU_PPC64LE], [test "$CPU" = "ppc64le"])
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libisal.git/commitdiff/d30522ee7213dd698ef8642ff5597ca1b2d0e2d6
More information about the pld-cvs-commit
mailing list