dev-libs/isa-l: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-04-05 08:37:34 +02:00
parent e763c106f2
commit ae2e7b4c9d
5 changed files with 0 additions and 232 deletions

View File

@@ -1,2 +1 @@
DIST isa-l-2.31.1.tar.gz 741732 BLAKE2B f23d3f4f23665c719077e5bdc85434343ad41a7c1435524523e3e997db535f7158a664721760fff6ffb38a50fce8b300422e1e1e93364af63a487cd16d16534a SHA512 65199d054af1edc26d477883f7878f25fd4db65622aa98247069f1296c5f07b75da24f0361a6c3889ddb3168d940b508cd2f6340548a62ff3157977179fd002d
DIST isa-l-2.32.0.tar.gz 842403 BLAKE2B bf2de03d14ae1f9c224881aa5b98bd40ac1e27a58f0e2f3cbc510ecf4f34b4642dfd7beeb33115086ef7d3d4fbe3222e3625fede9f5ce22ab53f1199e0f26418 SHA512 e09f6e6f39d60b06b7a62d0e5c0be5e86b26efc375235e84f7c9aa85f4706883e7f0b40cc9cbced4ac27db2f19ac9c36f45b93454652a36fe46aa297200d4aeb

View File

@@ -1,16 +0,0 @@
--- a/Makefile.am
+++ b/Makefile.am
@@ -136,11 +136,11 @@
EXTRA_DIST += tools/yasm-filter.sh tools/nasm-filter.sh
EXTRA_DIST += tools/yasm-cet-filter.sh tools/nasm-cet-filter.sh
-AM_CFLAGS = ${my_CFLAGS} ${INCLUDE} $(src_include) ${ARCH} ${D}
+AM_CFLAGS = ${my_CFLAGS} ${INCLUDE} $(src_include) ${ARCH} ${DIST_D}
if CPU_AARCH64
AM_CCASFLAGS = ${AM_CFLAGS}
else
-AM_CCASFLAGS = ${yasm_args} ${INCLUDE} ${src_include} ${DEFS} ${D}
+AM_CCASFLAGS = ${yasm_args} ${INCLUDE} ${src_include} ${DEFS} ${DIST_D}
endif
.asm.s:

View File

@@ -1,12 +0,0 @@
--- a/Makefile.am
+++ b/Makefile.am
@@ -67,8 +67,7 @@
if CPU_X86_32
ARCH=-Dx86_32
-libisal_la_SOURCES += ${lsrc_x86_32}
-other_tests += ${other_tests_x86_32}
+libisal_la_SOURCES += ${lsrc_base_aliases}
endif
if CPU_AARCH64

View File

@@ -1,146 +0,0 @@
From 633add1b569fe927bace3960d7c84ed9c1b38bb9 Mon Sep 17 00:00:00 2001
From: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Date: Fri, 24 Jan 2025 12:51:48 +0000
Subject: [PATCH] igzip: fix header construction in Big Endian systems
When a file contains a number of repeated '0x00' or '0xff'
bytes, the block header is copied from a precomputed header,
which only worked for Little-Endian systems.
Fixes #311.
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
igzip/repeated_char_result.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/igzip/repeated_char_result.h b/igzip/repeated_char_result.h
index c06d01d7..c90d529f 100644
--- a/igzip/repeated_char_result.h
+++ b/igzip/repeated_char_result.h
@@ -59,8 +59,13 @@
/* Headers for constant 0x00 and 0xFF blocks
* This also contains the first literal character. */
const uint32_t repeated_char_header[2][5] = {
+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
{ 0x0121c0ec, 0xc30c0000, 0x7d57fab0, 0x49270938 }, /* Deflate header for 0x00 */
{ 0x0121c0ec, 0xc30c0000, 0x7baaff30, 0x49270938 } /* Deflate header for 0xFF */
+#else
+ { 0xecc02101, 0x00000cc3, 0xb0fa577d, 0x38092749 }, /* Deflate header for 0x00 */
+ { 0xecc02101, 0x00000cc3, 0x30ffaa7b, 0x38092749 }, /* Deflate header for 0xFF */
+#endif
};
From e3c2d243a11ae31a19f090206cbe90c84b12ceb1 Mon Sep 17 00:00:00 2001
From: Mattias Ellert <mattias.ellert@physics.uu.se>
Date: Sat, 18 Jan 2025 19:36:44 +0100
Subject: [PATCH] Address compiler warnings on ppc64le and s390x
igzip/igzip_icf_body.c:7:1: warning: type of 'gen_icf_map_lh1' does not match original declaration [-Wlto-type-mismatch]
7 | gen_icf_map_lh1(struct isal_zstream *, struct deflate_icf *, uint32_t);
| ^
igzip/igzip_base_aliases.c:177:1: note: return value type mismatch
177 | gen_icf_map_lh1(struct isal_zstream *stream, struct deflate_icf *matches_icf_lookup,
| ^
igzip/igzip_base_aliases.c:177:1: note: type 'void' should match type 'uint64_t'
igzip/igzip_base_aliases.c:177:1: note: 'gen_icf_map_lh1' was previously declared here
igzip/igzip_base_aliases.c:177:1: note: code may be misoptimized unless '-fno-strict-aliasing' is used
igzip/igzip_icf_body.c:9:1: warning: type of 'set_long_icf_fg' does not match original declaration [-Wlto-type-mismatch]
9 | set_long_icf_fg(uint8_t *, uint64_t, uint64_t, struct deflate_icf *);
| ^
igzip/igzip_base_aliases.c:170:1: note: type mismatch in parameter 2
170 | set_long_icf_fg(uint8_t *next_in, uint8_t *end_in, struct deflate_icf *match_lookup,
| ^
igzip/igzip_base_aliases.c:170:1: note: 'set_long_icf_fg' was previously declared here
igzip/igzip_base_aliases.c:170:1: note: code may be misoptimized unless '-fno-strict-aliasing' is used
igzip/igzip_base_aliases.c:62:1: warning: type of 'set_long_icf_fg_base' does not match original declaration [-Wlto-type-mismatch]
62 | set_long_icf_fg_base(uint8_t *next_in, uint8_t *end_in, struct deflate_icf *match_lookup,
| ^
igzip/igzip_icf_body.c:34:1: note: type mismatch in parameter 2
34 | set_long_icf_fg_base(uint8_t *next_in, uint64_t processed, uint64_t input_size,
| ^
igzip/igzip_icf_body.c:34:1: note: 'set_long_icf_fg_base' was previously declared here
igzip/igzip_icf_body.c:34:1: note: code may be misoptimized unless '-fno-strict-aliasing' is used
igzip/igzip_base_aliases.c:54:1: warning: type of 'adler32_base' does not match original declaration [-Wlto-type-mismatch]
54 | adler32_base(uint32_t init, const unsigned char *buf, uint64_t len);
| ^
igzip/adler32_base.c:34:1: note: type mismatch in parameter 3
34 | adler32_base(uint32_t adler32, uint8_t *start, uint32_t length)
| ^
igzip/adler32_base.c:34:1: note: type 'uint32_t' should match type 'uint64_t'
igzip/adler32_base.c:34:1: note: 'adler32_base' was previously declared here
igzip/adler32_base.c:34:1: note: code may be misoptimized unless '-fno-strict-aliasing' is used
Signed-off-by: Mattias Ellert <mattias.ellert@physics.uu.se>
---
igzip/adler32_base.c | 2 +-
igzip/igzip_base_aliases.c | 17 +++++++++--------
igzip/igzip_icf_body.c | 2 +-
3 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/igzip/adler32_base.c b/igzip/adler32_base.c
index 504b8b12..bc0818ab 100644
--- a/igzip/adler32_base.c
+++ b/igzip/adler32_base.c
@@ -31,7 +31,7 @@
#include "igzip_checksums.h"
uint32_t
-adler32_base(uint32_t adler32, uint8_t *start, uint32_t length)
+adler32_base(uint32_t adler32, uint8_t *start, uint64_t length)
{
uint8_t *end, *next = start;
uint64_t A, B;
diff --git a/igzip/igzip_base_aliases.c b/igzip/igzip_base_aliases.c
index 93240b3f..7de2e40f 100644
--- a/igzip/igzip_base_aliases.c
+++ b/igzip/igzip_base_aliases.c
@@ -59,9 +59,10 @@ extern void
isal_deflate_hash_base(uint16_t *, uint32_t, uint32_t, uint8_t *, uint32_t);
void
-set_long_icf_fg_base(uint8_t *next_in, uint8_t *end_in, struct deflate_icf *match_lookup,
- struct level_buf *level_buf);
-void
+set_long_icf_fg_base(uint8_t *next_in, uint64_t processed, uint64_t input_size,
+ struct deflate_icf *match_lookup);
+
+uint64_t
gen_icf_map_h1_base(struct isal_zstream *stream, struct deflate_icf *matches_icf_lookup,
uint64_t input_size);
@@ -167,15 +168,15 @@ isal_deflate_hash_lvl3(uint16_t *hash_table, uint32_t hash_mask, uint32_t curren
}
void
-set_long_icf_fg(uint8_t *next_in, uint8_t *end_in, struct deflate_icf *match_lookup,
- struct level_buf *level_buf)
+set_long_icf_fg(uint8_t *next_in, uint64_t processed, uint64_t input_size,
+ struct deflate_icf *match_lookup)
{
- set_long_icf_fg_base(next_in, end_in, match_lookup, level_buf);
+ set_long_icf_fg_base(next_in, processed, input_size, match_lookup);
}
-void
+uint64_t
gen_icf_map_lh1(struct isal_zstream *stream, struct deflate_icf *matches_icf_lookup,
uint64_t input_size)
{
- gen_icf_map_h1_base(stream, matches_icf_lookup, input_size);
+ return gen_icf_map_h1_base(stream, matches_icf_lookup, input_size);
}
diff --git a/igzip/igzip_icf_body.c b/igzip/igzip_icf_body.c
index faa4156f..e3f8bbed 100644
--- a/igzip/igzip_icf_body.c
+++ b/igzip/igzip_icf_body.c
@@ -4,7 +4,7 @@
#include "igzip_level_buf_structs.h"
extern uint64_t
-gen_icf_map_lh1(struct isal_zstream *, struct deflate_icf *, uint32_t);
+gen_icf_map_lh1(struct isal_zstream *, struct deflate_icf *, uint64_t);
extern void
set_long_icf_fg(uint8_t *, uint64_t, uint64_t, struct deflate_icf *);
extern void

View File

@@ -1,57 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Intelligent Storage Acceleration Library"
HOMEPAGE="https://github.com/intel/isa-l"
SRC_URI="https://github.com/intel/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
BDEPEND="
amd64? ( || (
>=dev-lang/nasm-2.11.01
>=dev-lang/yasm-1.2.0
) )
x86? ( || (
>=dev-lang/nasm-2.11.01
>=dev-lang/yasm-1.2.0
) )
"
PATCHES=(
"${FILESDIR}"/${PN}-2.31.0_makefile-no-D.patch
"${FILESDIR}"/${PN}-2.31.0_makefile-x86.patch
"${FILESDIR}"/${PN}-2.31.0_no-fortify-source.patch
"${FILESDIR}"/${PN}-2.31.0_user-ldflags.patch
# https://github.com/intel/isa-l/commit/633add1b569fe927bace3960d7c84ed9c1b38bb9
# https://github.com/intel/isa-l/commit/e3c2d243a11ae31a19f090206cbe90c84b12ceb1
"${FILESDIR}"/${P}-big-endian.patch
)
src_prepare() {
default
# isa-l does not support arbitrary assemblers on amd64 and x86,
# it must be either nasm or yasm.
if use amd64 || use x86; then
unset AS
fi
eautoreconf
}
src_compile() {
unset ARCH
default
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}