summaryrefslogtreecommitdiff
path: root/sys-cluster/ipvsadm/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
commit9ee6d97c2883d42f204a533a8bc1f4562df778fb (patch)
treeb690ddc0ca30f1472887edbb0b8313629bfcbbb2 /sys-cluster/ipvsadm/files
parentb17a3ef12038de50228bade1f05502c74e135321 (diff)
gentoo resync : 16.09.2020
Diffstat (limited to 'sys-cluster/ipvsadm/files')
-rw-r--r--sys-cluster/ipvsadm/files/ipvsadm-1.26-buildsystem.patch113
-rw-r--r--sys-cluster/ipvsadm/files/ipvsadm-1.26-stack_smashing.patch32
2 files changed, 0 insertions, 145 deletions
diff --git a/sys-cluster/ipvsadm/files/ipvsadm-1.26-buildsystem.patch b/sys-cluster/ipvsadm/files/ipvsadm-1.26-buildsystem.patch
deleted file mode 100644
index ba8e9450eb35..000000000000
--- a/sys-cluster/ipvsadm/files/ipvsadm-1.26-buildsystem.patch
+++ /dev/null
@@ -1,113 +0,0 @@
---- a/Makefile
-+++ b/Makefile
-@@ -43,14 +43,13 @@
- INIT = $(BUILD_ROOT)/etc/rc.d/init.d
- MKDIR = mkdir
- INSTALL = install
--STATIC_LIBS = libipvs/libipvs.a
-
- ifeq "${ARCH}" "sparc64"
-- CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -m64 -pipe -mcpu=ultrasparc -mcmodel=medlow
-+ CFLAGS := -g -m64 -pipe -mcpu=ultrasparc -mcmodel=medlow
- else
-- CFLAGS = -Wall -Wunused -Wstrict-prototypes -g
-+ CFLAGS := -g
- endif
--
-+OPTFLAGS += -Wall -Wunused -Wstrict-prototypes
-
- #####################################
- # No servicable parts below this line
-@@ -94,10 +93,12 @@
- all: libs ipvsadm
-
- libs:
-- make -C libipvs
-+ $(MAKE) -C libipvs
-+
-+$(OBJS): libs
-
--ipvsadm: $(OBJS) $(STATIC_LIBS)
-- $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
-+ipvsadm: $(OBJS)
-+ $(CC) $(LDFLAGS) $(OPTFLAGS) $(CFLAGS) -o $@ $^ -Llibipvs -lipvs $(LIBS)
-
--install: all
-+install:
- if [ ! -d $(SBIN) ]; then $(MKDIR) -p $(SBIN); fi
-@@ -108,15 +109,13 @@
- $(INSTALL) -m 0644 ipvsadm.8 $(MAN)
- $(INSTALL) -m 0644 ipvsadm-save.8 $(MAN)
- $(INSTALL) -m 0644 ipvsadm-restore.8 $(MAN)
-- [ -d $(INIT) ] || $(MKDIR) -p $(INIT)
-- $(INSTALL) -m 0755 ipvsadm.sh $(INIT)/ipvsadm
-
- clean:
- rm -f ipvsadm $(NAME).spec $(NAME)-$(VERSION).tar.gz
- rm -rf debian/tmp
- find . -name '*.[ao]' -o -name "*~" -o -name "*.orig" \
- -o -name "*.rej" -o -name core | xargs rm -f
-- make -C libipvs clean
-+ $(MAKE) -C libipvs clean
-
- distclean: clean
-
-@@ -149,4 +148,4 @@
- dpkg-buildpackage
-
- %.o: %.c
-- $(CC) $(CFLAGS) $(INCLUDE) $(DEFINES) -c -o $@ $<
-+ $(CC) $(OPTFLAGS) $(CFLAGS) $(INCLUDE) $(DEFINES) -c -o $@ $<
---- a/libipvs/Makefile
-+++ b/libipvs/Makefile
-@@ -1,32 +1,39 @@
- # Makefile for libipvs
-
- CC = gcc
--CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -fPIC
-+OPTFLAGS = -Wall -Wunused -Wstrict-prototypes
- ifneq (0,$(HAVE_NL))
--CFLAGS += -DLIBIPVS_USE_NL
-+DEFINES += -DLIBIPVS_USE_NL
- endif
-
- INCLUDE += $(shell if [ -f ../../ip_vs.h ]; then \
- echo "-I../../."; fi;)
--DEFINES = $(shell if [ ! -f ../../ip_vs.h ]; then \
-+DEFINES += $(shell if [ ! -f ../../ip_vs.h ]; then \
- echo "-DHAVE_NET_IP_VS_H"; fi;)
-
- .PHONY = all clean install dist distclean rpm rpms
--STATIC_LIB = libipvs.a
--SHARED_LIB = libipvs.so
-
--all: $(STATIC_LIB) $(SHARED_LIB)
-+TARGETS = libipvs.so
-
--$(STATIC_LIB): libipvs.o ip_vs_nl_policy.o
-+ifeq (1,$(STATIC_LIB))
-+TARGETS += libipvs.a
-+endif
-+
-+all: $(TARGETS)
-+
-+libipvs.a: libipvs.o ip_vs_nl_policy.o
- ar rv $@ $^
-
--$(SHARED_LIB): libipvs.o ip_vs_nl_policy.o
-- $(CC) -shared -Wl,-soname,$@ -o $@ $^
-+libipvs.so: libipvs.lo ip_vs_nl_policy.lo
-+ $(CC) $(LDFLAGS) -shared -Wl,-soname,$@ -o $@ $^
-+
-+%.lo: %.c
-+ $(CC) -fPIC $(OPTFLAGS) $(CFLAGS) $(INCLUDE) $(DEFINES) -c -o $@ $<
-
- %.o: %.c
-- $(CC) $(CFLAGS) $(INCLUDE) $(DEFINES) -c -o $@ $<
-+ $(CC) $(OPTFLAGS) $(CFLAGS) $(INCLUDE) $(DEFINES) -c -o $@ $<
-
- clean:
-- rm -f *.[ao] *~ *.orig *.rej core *.so
-+ rm -f *.[ao] *~ *.orig *.rej core *.so *.lo
-
- distclean: clean
diff --git a/sys-cluster/ipvsadm/files/ipvsadm-1.26-stack_smashing.patch b/sys-cluster/ipvsadm/files/ipvsadm-1.26-stack_smashing.patch
deleted file mode 100644
index d36b0bf8abe4..000000000000
--- a/sys-cluster/ipvsadm/files/ipvsadm-1.26-stack_smashing.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 81529af388c0f0f4e4b169b7bcb285ef5e798f41 Mon Sep 17 00:00:00 2001
-From: Christian Ruppert <idl0r@gentoo.org>
-Date: Sat, 8 Oct 2011 02:05:37 +0200
-Subject: [PATCH] Fix stack smashing because of a typo
-
-IPVS_CMD_ATTR_MAX was the size of __IPVS_SVC_ATTR_MAX before, which has a
-different size and thus it caused trouble. The right enum to use is
-__IPVS_CMD_ATTR_MAX.
-
-Reported-by: Deniss Gaplevsky <slim@inbox.lv>
-X-Gentoo-Bug: 371903
-X-Gentoo-Bug-URL: https://bugs.gentoo.org/371903
----
- libipvs/ip_vs.h | 2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/libipvs/ip_vs.h b/libipvs/ip_vs.h
-index 9726a17..5e1d544 100644
---- a/libipvs/ip_vs.h
-+++ b/libipvs/ip_vs.h
-@@ -413,7 +413,7 @@ enum {
- __IPVS_CMD_ATTR_MAX,
- };
-
--#define IPVS_CMD_ATTR_MAX (__IPVS_SVC_ATTR_MAX - 1)
-+#define IPVS_CMD_ATTR_MAX (__IPVS_CMD_ATTR_MAX - 1)
-
- /*
- * Attributes used to describe a service
---
-1.7.3.4
-