SHA256
1
0
forked from pool/crda

Accepting request 397906 from home:marxin:branches:hardware

Fix errors seen by GCC6.

OBS-URL: https://build.opensuse.org/request/show/397906
OBS-URL: https://build.opensuse.org/package/show/hardware/crda?expand=0&rev=29
This commit is contained in:
Ismail Dönmez 2016-05-25 12:27:33 +00:00 committed by Git OBS Bridge
parent 933bc707a3
commit 2411c8d64f
3 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 25 09:27:14 UTC 2016 - martin.liska@suse.com
- Add gcc6-fix-errors.patch to remove errors seen by GCC6.
-------------------------------------------------------------------
Sun Jun 28 10:57:08 UTC 2015 - seife+obs@b1-systems.com

View File

@ -1,7 +1,7 @@
#
# spec file for package crda
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -37,6 +37,8 @@ BuildRequires: pkgconfig(libnl-3.0)
BuildRequires: pkgconfig(udev)
Requires: wireless-regdb
Supplements: kernel >= 2.6.29
# PATCH-FIX-OPENSUSE gcc6-fix-errors.patch -- Fix errors seen by GCC6.
Patch0: gcc6-fix-errors.patch
%description
The crda binary provides access to the wireless-regdb to the kernel
@ -44,6 +46,7 @@ through udev.
%prep
%setup -q
%patch0 -p1
# make install calls 'ldconfig' and fails if it cannot run it...
ln -s /bin/true ldconfig

11
gcc6-fix-errors.patch Normal file
View File

@ -0,0 +1,11 @@
--- crda-3.18/Makefile 2016-05-25 11:21:57.462831428 +0200
+++ crda-3.18/Makefile 2014-12-11 00:51:29.000000000 +0100
@@ -26,7 +26,7 @@
RUNTIME_PUBKEY_DIR?=/etc/wireless-regdb/pubkeys
CFLAGS += -O2 -fpic
-CFLAGS += -std=gnu99 -Wall -Werror -pedantic
+CFLAGS += -std=gnu99 -Wall -Werror -Wno-unused-const-variable -pedantic
CFLAGS += -Wall -g
LDLIBREG += -lreg
LDLIBS += $(LDLIBREG)