From 3c348baeb9e45d6316674e8e6492111dbaf57dc96486dc7ab533bc0c27c567e8 Mon Sep 17 00:00:00 2001 From: Hannes Reinecke Date: Wed, 8 Apr 2015 10:28:44 +0000 Subject: [PATCH] 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 --- open-lldp-gcc5.patch | 11 +++++++++++ open-lldp.changes | 7 +++++++ open-lldp.spec | 4 +++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 open-lldp-gcc5.patch diff --git a/open-lldp-gcc5.patch b/open-lldp-gcc5.patch new file mode 100644 index 0000000..85ba7e8 --- /dev/null +++ b/open-lldp-gcc5.patch @@ -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 diff --git a/open-lldp.changes b/open-lldp.changes index e2d2b21..931f3f7 100644 --- a/open-lldp.changes +++ b/open-lldp.changes @@ -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 diff --git a/open-lldp.spec b/open-lldp.spec index b51c000..4c87e95 100644 --- a/open-lldp.spec +++ b/open-lldp.spec @@ -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