SHA256
1
0
forked from pool/open-lldp

Accepting request 292539 from home:elvigia:branches:network:fcoe

- Fix build with gcc5 (open-lldp-gcc5.patch)
* do not use -Werror
* Use -fgnu89-inline as the code relies on the old semantics

OBS-URL: https://build.opensuse.org/request/show/292539
OBS-URL: https://build.opensuse.org/package/show/network:fcoe/open-lldp?expand=0&rev=18
This commit is contained in:
Hannes Reinecke 2015-04-08 10:28:44 +00:00 committed by Git OBS Bridge
parent 5b1a54f450
commit 3c348baeb9
3 changed files with 21 additions and 1 deletions

11
open-lldp-gcc5.patch Normal file
View File

@ -0,0 +1,11 @@
--- open-lldp-0.9.46.orig/Makefile.am
+++ open-lldp-0.9.46/Makefile.am
@@ -16,7 +16,7 @@ ACLOCAL_AMFLAGS = -I m4
parse_cli.o: CFLAGS+=-U_FORTIFY_SOURCE -Wno-error
## system requires a shared libconfig
-AM_CFLAGS = -Wall -Werror -Wextra -Wformat=2 $(LIBCONFIG_CFLAGS) $(LIBNL_CFLAGS)
+AM_CFLAGS = -Wall -fgnu89-inline -Wextra -Wformat=2 $(LIBCONFIG_CFLAGS) $(LIBNL_CFLAGS)
AM_LDFLAGS = $(LIBCONFIG_LIBS) $(LIBNL_LIBS)
## header files to be installed, for programs using the client interface to lldpad

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Mar 23 23:23:27 UTC 2015 - crrodriguez@opensuse.org
- Fix build with gcc5 (open-lldp-gcc5.patch)
* do not use -Werror
* Use -fgnu89-inline as the code relies on the old semantics
-------------------------------------------------------------------
Wed May 21 15:12:45 UTC 2014 - jsegitz@novell.com

View File

@ -1,7 +1,7 @@
#
# spec file for package open-lldp
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 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
@ -35,6 +35,7 @@ Source: http://ftp-osl.osuosl.org/pub/%{name}/%{name}-%{version}.tar.gz
Patch0: %{name}-git-update.patch.bz2
Patch1: 0001-lldpad-print-verbose-error-messages.patch
Patch2: 0002-Move-to-libnl3.patch
Patch3: open-lldp-gcc5.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: dcbd = %{version}
Obsoletes: dcbd < %{version}
@ -75,6 +76,7 @@ with Data Center Bridging (DCB) for Intel(R) Network Connections
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
autoreconf -vi