!1 delete patches

Merge pull request !1 from IT砖瓦工/loc_zhuchl
This commit is contained in:
openeuler-ci-bot 2020-01-11 20:47:39 +08:00 committed by Gitee
commit 7afbfe6cff
6 changed files with 24 additions and 98 deletions

View File

@ -1,10 +0,0 @@
--- bridge-utils-1.0.4/libbridge/libbridge_private.h~ 2004-05-28 21:38:38.000000000 +0100
+++ bridge-utils-1.0.4/libbridge/libbridge_private.h 2004-07-01 11:24:21.000000000 +0100
@@ -22,6 +22,7 @@
#include "config.h"
#include <linux/sockios.h>
+#include <unistd.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include <linux/if_bridge.h>

View File

@ -1,33 +0,0 @@
From b69811c054a55c241ce5628a32a62486eab491e5 Mon Sep 17 00:00:00 2001
From: Aleksander Morgado <aleksander@aleksander.es>
Date: Mon, 17 Jul 2017 17:21:38 -0700
Subject: libbridge: add missing sys/time.h include in header Required to
define the 'struct timeval' type:
In file included from external/bridge-utils/brctl/brctl.c:25:
external/bridge-utils/brctl/../libbridge/libbridge.h:44:17: error: field has incomplete type 'struct timeval'
struct timeval max_age;
^
Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
---
libbridge/libbridge.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libbridge/libbridge.h b/libbridge/libbridge.h
index ff047f9..c038b92 100644
--- a/libbridge/libbridge.h
+++ b/libbridge/libbridge.h
@@ -21,7 +21,9 @@
#include <sys/types.h>
#include <sys/socket.h>
+#include <sys/time.h>
#include <netinet/in.h>
+
#include <linux/if.h>
#include <linux/if_bridge.h>
--
cgit v1.1

View File

@ -1,38 +0,0 @@
From 42c1aefc303fdf891fbb099ea51f00dca83ab606 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen@networkplumber.org>
Date: Mon, 17 Jul 2017 17:23:56 -0700
Subject: brctl: fix signed/unsigned comparison warnings
If built with warning enabled, Gcc would complain about
comparison of signed with unsigned.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
brctl/brctl_cmd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/brctl/brctl_cmd.c b/brctl/brctl_cmd.c
index 5f12e6f..acd66be 100644
--- a/brctl/brctl_cmd.c
+++ b/brctl/brctl_cmd.c
@@ -483,7 +483,7 @@ static const struct command commands[] = {
const struct command *command_lookup(const char *cmd)
{
- int i;
+ unsigned int i;
for (i = 0; i < sizeof(commands)/sizeof(commands[0]); i++) {
if (!strcmp(cmd, commands[i].name))
@@ -495,7 +495,7 @@ const struct command *command_lookup(const char *cmd)
void command_helpall(void)
{
- int i;
+ unsigned int i;
for (i = 0; i < sizeof(commands)/sizeof(commands[0]); i++) {
printf("\t%-10s\t%s\n", commands[i].name, commands[i].help);
--
cgit v1.1

View File

@ -1,11 +0,0 @@
--- bridge-utils-1.5/libbridge/Makefile.in.orig 2015-07-21 13:09:20.270079468 +0100
+++ bridge-utils-1.5/libbridge/Makefile.in 2015-07-21 13:09:39.382036853 +0100
@@ -5,7 +5,7 @@
RANLIB=@RANLIB@
CC=@CC@
-CFLAGS = -Wall -g $(KERNEL_HEADERS)
+CFLAGS = @CFLAGS@ -g $(KERNEL_HEADERS)
prefix=@prefix@
exec_prefix=@exec_prefix@

View File

@ -0,0 +1,14 @@
diff --git a/libbridge/Makefile.in b/libbridge/Makefile.in
index 20512c4..f9c6e70 100644
--- a/libbridge/Makefile.in
+++ b/libbridge/Makefile.in
@@ -5,7 +5,7 @@ AR=ar
RANLIB=@RANLIB@
CC=@CC@
-CFLAGS = -Wall -g $(KERNEL_HEADERS)
+CFLAGS = @CFLAGS@ -g $(KERNEL_HEADERS)
prefix=@prefix@
exec_prefix=@exec_prefix@

View File

@ -1,19 +1,17 @@
Summary: Utilities for configuring the linux ethernet bridge
Name: bridge-utils
Version: 1.6
Release: 3
Release: 4
License: GPLv2+
URL: https://wiki.linuxfoundation.org/networking/bridge
Source0: https://www.kernel.org/pub/linux/utils/net/%{name}/%{name}-%{version}.tar.xz
Source1: https://www.kernel.org/pub/linux/utils/net/%{name}/%{name}-%{version}.tar.sign
#The following four patches come from fedoraproject
Patch0000: bridge-utils-1.0.4-inc.patch
Patch0001: bridge-utils-libbridge-cflags.patch
Patch0002: bridge-utils-1.6-add-missing-sys-time.patch
Patch0003: bridge-utils-1.6-fix-signed-unsigned-warnings.patch
Patch0000: bridge-utils-option-cflags.patch
Patch9000: bugfix-bridge-not-check-parameters.patch
Patch9001: bugfix-avoid-showmacs-memory-leak.patch
BuildRequires: libsysfs-devel autoconf automake libtool
BuildRequires: kernel-headers >= 2.6.16
@ -42,5 +40,11 @@ autoconf
%{_mandir}/man8/brctl.8*
%changelog
* Thu Jan 10 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.6.4
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: delete patches
* Wed Sep 18 2019 Alex Chao <zhaolei746@huawei.com> - 1.6-3
- Package init