[packages/libaegis] - added aes patch to fix i686 build with avx512fp16intrin.h (and similar)
qboosh
qboosh at pld-linux.org
Sat May 18 21:59:33 CEST 2024
commit 9408a3943d735502ab53dcb695fa5edbf4bb6975
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat May 18 22:00:10 2024 +0200
- added aes patch to fix i686 build with avx512fp16intrin.h (and similar)
libaegis-aes.patch | 12 ++++++++++++
libaegis.spec | 2 ++
2 files changed, 14 insertions(+)
---
diff --git a/libaegis.spec b/libaegis.spec
index fdac214..a70e565 100644
--- a/libaegis.spec
+++ b/libaegis.spec
@@ -8,6 +8,7 @@ Group: Libraries
#Source0Download: https://github.com/jedisct1/libaegis/releases
Source0: https://github.com/jedisct1/libaegis/archive/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 3f91c7dc8481173c211c005e429c4a26
+Patch0: %{name}-aes.patch
URL: https://github.com/jedisct1/libaegis
BuildRequires: cmake >= 3.9
BuildRequires: rpmbuild(macros) >= 1.605
@@ -40,6 +41,7 @@ Pliki nagłówkowe biblioteki AEGIS.
%prep
%setup -q
+%patch0 -p1
%build
install -d build
diff --git a/libaegis-aes.patch b/libaegis-aes.patch
new file mode 100644
index 0000000..f1d9c57
--- /dev/null
+++ b/libaegis-aes.patch
@@ -0,0 +1,12 @@
+Using "#pragma target" doesn't enable _Float16 type, required by gcc 13 <immintrin.h>
+--- libaegis-0.1.22/CMakeLists.txt.orig 2024-05-12 01:06:36.000000000 +0200
++++ libaegis-0.1.22/CMakeLists.txt 2024-05-18 21:51:27.249449671 +0200
+@@ -13,6 +13,8 @@ include_directories("src/include")
+ file(GLOB SOURCE_FILES "src/aegis128l/*.c" "src/aegis128x2/*.c" "src/aegis128x4/*.c" "src/aegis256/*.c" "src/aegis256x2/*.c" "src/aegis256x4/*.c" "src/common/*.c")
+ file(GLOB HEADER_FILES "src/include/*.h")
+
++set_source_files_properties(src/aegis128x2/aegis128x2_aesni.c src/aegis128l/aegis128l_aesni.c src/aegis128x4/aegis128x4_aesni.c src/aegis256/aegis256_aesni.c src/aegis256x2/aegis256x2_aesni.c src/aegis256x4/aegis256x4_aesni.c PROPERTIES COMPILE_FLAGS "-mavx -maes")
++
+ add_library("${PROJECT_NAME}")
+ add_library("${PROJECT_NAME}::${PROJECT_NAME}" ALIAS "${PROJECT_NAME}")
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libaegis.git/commitdiff/9408a3943d735502ab53dcb695fa5edbf4bb6975
More information about the pld-cvs-commit
mailing list