argon2 20190702-4 (x86_64;aarch64;znver1) 2022-15074
9999

Status published
Submitter benbullard79 [@T] cox.net
Platform rolling
Repository main
URL https://abf.openmandriva.org/build_lists/215703
Packages
argon2-20190702-4.x86_64.source
argon2-20190702-4.x86_64.binary
argon2-debuginfo-20190702-4.x86_64.debuginfo
argon2-debugsource-20190702-4.x86_64.binary
lib64argon2-devel-20190702-4.x86_64.binary
lib64argon2_1-20190702-4.x86_64.binary
lib64argon2_1-debuginfo-20190702-4.x86_64.debuginfo
argon2-20190702-4.aarch64.source
argon2-20190702-4.aarch64.binary
argon2-debuginfo-20190702-4.aarch64.debuginfo
argon2-debugsource-20190702-4.aarch64.binary
lib64argon2-devel-20190702-4.aarch64.binary
lib64argon2_1-20190702-4.aarch64.binary
lib64argon2_1-debuginfo-20190702-4.aarch64.debuginfo
argon2-20190702-4.znver1.source
argon2-20190702-4.znver1.binary
argon2-debuginfo-20190702-4.znver1.debuginfo
argon2-debugsource-20190702-4.znver1.binary
lib64argon2-devel-20190702-4.znver1.binary
lib64argon2_1-20190702-4.znver1.binary
lib64argon2_1-debuginfo-20190702-4.znver1.debuginfo
Build Date 2022-06-25 23:43:08 +0000 UTC
Last Updated 2022-06-26 00:44:33.174689525 +0000 UTC
$ git show --format=fuller --patch-with-stat --summary fe40c986601e0e75bd97eda0292ccb24555f081a

commit fe40c986601e0e75bd97eda0292ccb24555f081a
Author:     Bernhard Rosenkränzer <bero@lindev.ch>
AuthorDate: Sun Jun 26 01:15:01 2022 +0200
Commit:     Bernhard Rosenkränzer <bero@lindev.ch>
CommitDate: Sun Jun 26 01:15:01 2022 +0200

    Teach the build system about RPM_OPT_FLAGS
---
 argon2-optflags.patch | 21 +++++++++++++++++++++
 argon2.spec           |  3 ++-
 2 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 argon2-optflags.patch

diff --git a/argon2-optflags.patch b/argon2-optflags.patch
new file mode 100644
index 0000000..61ad698
--- /dev/null
+++ b/argon2-optflags.patch
@@ -0,0 +1,21 @@
+diff -up phc-winner-argon2-20190702/Makefile.omv~ phc-winner-argon2-20190702/Makefile
+--- phc-winner-argon2-20190702/Makefile.omv~	2022-06-26 01:11:37.976768247 +0200
++++ phc-winner-argon2-20190702/Makefile	2022-06-26 01:12:27.949400844 +0200
+@@ -37,7 +37,7 @@ SRC_BENCH = src/bench.c
+ SRC_GENKAT = src/genkat.c
+ OBJ = $(SRC:.c=.o)
+ 
+-CFLAGS += -std=c89 -O3 -Wall -g -Iinclude -Isrc
++CFLAGS += $(RPM_OPT_FLAGS) -Wall -Iinclude -Isrc
+ 
+ ifeq ($(NO_THREADS), 1)
+ CFLAGS += -DARGON2_NO_THREADS
+@@ -57,7 +57,7 @@ $(info Building without optimizations)
+ 	SRC += src/ref.c
+ else
+ $(info Building with optimizations for $(OPTTARGET))
+-	CFLAGS += -march=$(OPTTARGET)
++	#CFLAGS += -march=$(OPTTARGET)
+ 	SRC += src/opt.c
+ endif
+ 
diff --git a/argon2.spec b/argon2.spec
index 7422a66..5a5f19a 100644
--- a/argon2.spec
+++ b/argon2.spec
@@ -12,6 +12,7 @@ License:	ASL 2.0
 Group:		System/Libraries
 Url:		https://github.com/P-H-C/phc-winner-argon2
 Source0:	https://github.com/P-H-C/phc-winner-argon2/archive/%{version}/phc-winner-%{name}-%{version}.tar.gz
+Patch0:		argon2-optflags.patch
 Requires:	%{libname} = %{EVRD}
 
 %description
@@ -55,7 +56,7 @@ sed -i -e "s|lib/@HOST_MULTIARCH@|%{_lib}|" libargon2.pc.in
 
 %build
 %set_build_flags
-%make_build CFLAGS="%{optflags}"
+%make_build RPM_OPT_FLAGS="%{optflags}"
 
 %install
 %make_install
Not Available

benbullard79 [@T] cox.netNo Comment.663d 14hrs
benbullard79 [@T] cox.netNo Comment.663d 14hrs