[packages/libdecaf] - added Debian fix-declarations patch to fix build with -Werror=array-parameter; release 2

qboosh qboosh at pld-linux.org
Sat Apr 8 09:53:40 CEST 2023


commit 743f340fe611cac02b9159507d97da90a180cf28
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Apr 8 09:56:14 2023 +0200

    - added Debian fix-declarations patch to fix build with -Werror=array-parameter; release 2

 libdecaf-fix-declarations.patch | 11 +++++++++++
 libdecaf.spec                   |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/libdecaf.spec b/libdecaf.spec
index 6169bd1..633addb 100644
--- a/libdecaf.spec
+++ b/libdecaf.spec
@@ -6,7 +6,7 @@ Summary:	Elliptic curve library
 Summary(pl.UTF-8):	Biblioteka krzywych eliptycznych
 Name:		libdecaf
 Version:	1.0.2
-Release:	1
+Release:	2
 License:	MIT
 Group:		Libraries
 #Source0:	http://downloads.sourceforge.net/ed448goldilocks/%{name}-%{version}.tgz
@@ -14,6 +14,7 @@ Group:		Libraries
 Source0:	http://deb.debian.org/debian/pool/main/libd/libdecaf/%{name}_%{version}.orig.tar.gz
 # Source0-md5:	50d59a0d1428e91734b2aa7c1e586980
 Patch0:		%{name}-fix-attribute-deprecated-decl.patch
+Patch1:		%{name}-fix-declarations.patch
 URL:		http://ed448goldilocks.sourceforge.net/
 BuildRequires:	cmake >= 3.0
 BuildRequires:	doxygen
@@ -56,6 +57,7 @@ Statyczna biblioteka decaf.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 install -d build
diff --git a/libdecaf-fix-declarations.patch b/libdecaf-fix-declarations.patch
new file mode 100644
index 0000000..63d937e
--- /dev/null
+++ b/libdecaf-fix-declarations.patch
@@ -0,0 +1,11 @@
+--- a/src/per_field/f_field.tmpl.h
++++ b/src/per_field/f_field.tmpl.h
+@@ -67,7 +67,7 @@
+ mask_t gf_eq (const gf x, const gf y);
+ mask_t gf_lobit (const gf x);
+ 
+-void gf_serialize (uint8_t *serial, const gf x);
++void gf_serialize (uint8_t serial[SER_BYTES], const gf x);
+ mask_t gf_deserialize (gf x, const uint8_t serial[SER_BYTES],uint8_t hi_nmask);
+ 
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libdecaf.git/commitdiff/743f340fe611cac02b9159507d97da90a180cf28



More information about the pld-cvs-commit mailing list