[gentoo-commits] repo/gentoo:master commit in: dev-libs/isa-l_crypto/, dev-libs/isa-l_crypto/files/

2024-03-11 Thread Marek Szuba
commit: c5a27c6941db488ac3b99eb691c16d999ab3408c
Author: Marek Szuba  gentoo  org>
AuthorDate: Mon Mar 11 15:37:25 2024 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Mon Mar 11 15:39:33 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5a27c69

dev-libs/isa-l_crypto: fix slibtool build failures

Closes: https://bugs.gentoo.org/924403
Signed-off-by: Marek Szuba  gentoo.org>

 .../files/isa-l_crypto-2.24.0_fix-shebang.patch| 26 ++
 dev-libs/isa-l_crypto/isa-l_crypto-2.24.0.ebuild   |  3 ++-
 2 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/dev-libs/isa-l_crypto/files/isa-l_crypto-2.24.0_fix-shebang.patch 
b/dev-libs/isa-l_crypto/files/isa-l_crypto-2.24.0_fix-shebang.patch
new file mode 100644
index ..fc26b792aacf
--- /dev/null
+++ b/dev-libs/isa-l_crypto/files/isa-l_crypto-2.24.0_fix-shebang.patch
@@ -0,0 +1,26 @@
+From b7158c5382163385ef08edec8021da259bf7afe4 Mon Sep 17 00:00:00 2001
+From: orbea 
+Date: Sat, 9 Mar 2024 11:34:23 -0800
+Subject: [PATCH] tools: fix shebang
+
+This causes a build failure with slibtool.
+
+Gentoo issue: https://bugs.gentoo.org/924403
+
+Signed-off-by: orbea 
+--- a/tools/nasm-filter.sh
 b/tools/nasm-filter.sh
+@@ -1,4 +1,4 @@
+-#/bin/sh
++#!/bin/sh
+ 
+ # Filter out unnecessary options added by automake
+ 
+--- a/tools/yasm-filter.sh
 b/tools/yasm-filter.sh
+@@ -1,4 +1,4 @@
+-#/bin/sh
++#!/bin/sh
+ 
+ # Filter out unnecessary options added by automake
+ 

diff --git a/dev-libs/isa-l_crypto/isa-l_crypto-2.24.0.ebuild 
b/dev-libs/isa-l_crypto/isa-l_crypto-2.24.0.ebuild
index 5ea355130d4b..fba607e71b42 100644
--- a/dev-libs/isa-l_crypto/isa-l_crypto-2.24.0.ebuild
+++ b/dev-libs/isa-l_crypto/isa-l_crypto-2.24.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -24,6 +24,7 @@ BDEPEND="amd64? (
 )"
 
 PATCHES=(
+   "${FILESDIR}"/${PN}-2.24.0_fix-shebang.patch
"${FILESDIR}"/${PN}-2.24.0_makefile-no-D.patch
 )
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/isa-l_crypto/, dev-libs/isa-l_crypto/files/

2023-05-23 Thread Marek Szuba
commit: 5de8f1446a4675e65ad2c364c87f434e861befb6
Author: Marek Szuba  gentoo  org>
AuthorDate: Tue May 23 19:31:13 2023 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Tue May 23 19:39:37 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5de8f144

dev-libs/isa-l_crypto: new package, add 2.24.0

Signed-off-by: Marek Szuba  gentoo.org>

 dev-libs/isa-l_crypto/Manifest |  1 +
 .../files/isa-l_crypto-2.24.0_makefile-no-D.patch  | 13 +++
 dev-libs/isa-l_crypto/isa-l_crypto-2.24.0.ebuild   | 43 ++
 dev-libs/isa-l_crypto/metadata.xml | 21 +++
 4 files changed, 78 insertions(+)

diff --git a/dev-libs/isa-l_crypto/Manifest b/dev-libs/isa-l_crypto/Manifest
new file mode 100644
index ..4934b64eadcb
--- /dev/null
+++ b/dev-libs/isa-l_crypto/Manifest
@@ -0,0 +1 @@
+DIST isa-l_crypto-2.24.0.tar.gz 687392 BLAKE2B 
10b5e820f9e9d25f0f013d4cfe832760363bf1f1f2759a94f733b25ebd62b52a98262969e24be1ba86d132ee6eaefc9e64c99cceb4f9ba206c848b9aeb45f9d8
 SHA512 
f72800a8ff9c0b2bfdd88cb6780db91bfd5763af04a6318aa3acaff0b1326e3348cb3a4aff17c99636eb291d1ff6249dcf896392a2450adacd83ddbf4c7299da

diff --git 
a/dev-libs/isa-l_crypto/files/isa-l_crypto-2.24.0_makefile-no-D.patch 
b/dev-libs/isa-l_crypto/files/isa-l_crypto-2.24.0_makefile-no-D.patch
new file mode 100644
index ..dec1420e4d31
--- /dev/null
+++ b/dev-libs/isa-l_crypto/files/isa-l_crypto-2.24.0_makefile-no-D.patch
@@ -0,0 +1,13 @@
+--- a/Makefile.am
 b/Makefile.am
+@@ -136,8 +136,8 @@
+ 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) ${D}
+-AM_CCASFLAGS = ${yasm_args} ${INCLUDE} $(src_include) ${DEFS} ${D}
++AM_CFLAGS = ${my_CFLAGS} ${INCLUDE} $(src_include) ${DIST_D}
++AM_CCASFLAGS = ${yasm_args} ${INCLUDE} $(src_include) ${DEFS} ${DIST_D}
+ 
+ .asm.s:
+   @echo "  MKTMP   " $@;

diff --git a/dev-libs/isa-l_crypto/isa-l_crypto-2.24.0.ebuild 
b/dev-libs/isa-l_crypto/isa-l_crypto-2.24.0.ebuild
new file mode 100644
index ..5ea355130d4b
--- /dev/null
+++ b/dev-libs/isa-l_crypto/isa-l_crypto-2.24.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Intelligent Storage Acceleration Library - cryptographic 
components"
+HOMEPAGE="https://github.com/intel/isa-l_crypto;
+SRC_URI="https://github.com/intel/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="cpu_flags_x86_avx512f"
+
+# AVX512 support in yasm is still work in progress
+BDEPEND="amd64? (
+   cpu_flags_x86_avx512f? ( >=dev-lang/nasm-2.13 )
+   !cpu_flags_x86_avx512f? ( || (
+   >=dev-lang/nasm-2.11.01
+   >=dev-lang/yasm-1.2.0
+   ) )
+)"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-2.24.0_makefile-no-D.patch
+)
+
+src_prepare() {
+   default
+
+   # isa-l does not support arbitrary assemblers on amd64 (and presumably 
x86),
+   # it must be either nasm or yasm.
+   use amd64 && unset AS
+
+   eautoreconf
+}
+
+src_install() {
+   default
+   find "${ED}" -name '*.la' -delete || die
+}

diff --git a/dev-libs/isa-l_crypto/metadata.xml 
b/dev-libs/isa-l_crypto/metadata.xml
new file mode 100644
index ..aed47168584f
--- /dev/null
+++ b/dev-libs/isa-l_crypto/metadata.xml
@@ -0,0 +1,21 @@
+
+https://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   mare...@gentoo.org
+   Marek Szuba
+   
+   
+   ISA-L_crypto is a collection of optimized low-level functions targeting 
storage applications. ISA-L_crypto includes:
+   * Multi-buffer hashes - run multiple hash jobs together on one core for 
much better throughput than single-buffer versions.
+   * SHA1, SHA256, SHA512, MD5, SM3
+   * Multi-hash - Get the performance of multi-buffer hashing with a 
single-buffer interface.
+   * Multi-hash + murmur - run both together.
+   * AES - block ciphers
+   * XTS, GCM, CBC
+   * Rolling hash - Hash input in a window which moves through the input
+   
+   
+   intel/isa-l_crypto
+   
+