[packages/crda] upstream patch to fix build

atler atler at pld-linux.org
Thu Feb 1 15:40:00 CET 2024


commit ff4fce9c2da10ed704e6aa79cc1e969815e4dab5
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Feb 1 14:55:28 2024 +0100

    upstream patch to fix build

 build.patch | 33 +++++++++++++++++++++++++++++++++
 crda.spec   |  2 ++
 2 files changed, 35 insertions(+)
---
diff --git a/crda.spec b/crda.spec
index 5d4d484..fd250af 100644
--- a/crda.spec
+++ b/crda.spec
@@ -15,6 +15,7 @@ Source0:	https://www.kernel.org/pub/software/network/crda/%{name}-%{version}.tar
 Patch0:		%{name}-regdb.patch
 Patch1:		%{name}-destdir.patch
 Patch2:		%{name}-link.patch
+Patch3:		build.patch
 URL:		http://wireless.kernel.org/en/developers/Regulatory/CRDA
 BuildRequires:	libgcrypt-devel
 BuildRequires:	libnl-devel >= 1:3.2
@@ -72,6 +73,7 @@ Pliki nagłówkowe biblioteki CRDA libreg.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..b71f6b5
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,33 @@
+From 067d961a344b4a2b2c374cfba5a632f0652971e2 Mon Sep 17 00:00:00 2001
+From: Jelle van der Waa <jelle at vdwaa.nl>
+Date: Mon, 4 Dec 2017 21:52:39 +0100
+Subject: crda: Fix error: `keys’ defined but not used
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fix error: ‘keys’ defined but not used [-Werror=unused-const-variable=]
+by informing GCC keys is unused.
+
+Signed-off-by: Jelle van der Waa <jelle at vdwaa.nl>
+Signed-off-by: Luis R. Rodriguez <mcgrof at kernel.org>
+---
+ utils/key2pub.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/utils/key2pub.py b/utils/key2pub.py
+index 3e84cd2..9bb04cd 100755
+--- a/utils/key2pub.py
++++ b/utils/key2pub.py
+@@ -115,7 +115,7 @@ struct key_params {
+ 	.n = _n, .len_n = sizeof(_n),	\
+ }
+ 
+-static const struct key_params keys[] = {
++static const struct key_params __attribute__ ((unused)) keys[] = {
+ ''')
+     for n in xrange(n + 1):
+         output.write('	KEYS(e_%d, n_%d),\n' % (n, n))
+-- 
+cgit 1.2.3-korg
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/crda.git/commitdiff/6f5bedbb59613fad9e804a4e7e89e54da591348f



More information about the pld-cvs-commit mailing list