summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-support/ipvsadm/ipvsadm/0001-Add-CCFLAGS-to-cflags.patch36
-rw-r--r--meta-networking/recipes-support/ipvsadm/ipvsadm/0001-libipvs-Include-missing-sys-types.h.patch28
-rw-r--r--meta-networking/recipes-support/ipvsadm/ipvsadm_1.31.bb8
3 files changed, 69 insertions, 3 deletions
diff --git a/meta-networking/recipes-support/ipvsadm/ipvsadm/0001-Add-CCFLAGS-to-cflags.patch b/meta-networking/recipes-support/ipvsadm/ipvsadm/0001-Add-CCFLAGS-to-cflags.patch
new file mode 100644
index 0000000000..a2923088e8
--- /dev/null
+++ b/meta-networking/recipes-support/ipvsadm/ipvsadm/0001-Add-CCFLAGS-to-cflags.patch
@@ -0,0 +1,36 @@
1From 1bc180ec333d90e1a11deff46b5639ab5d40408d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 26 May 2023 09:29:23 -0700
4Subject: [PATCH] Add CCFLAGS to cflags
5
6This is to append the flags from build environment.
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 Makefile | 1 +
12 libipvs/Makefile | 3 +++
13 2 files changed, 4 insertions(+)
14
15--- a/Makefile
16+++ b/Makefile
17@@ -50,6 +50,7 @@ else
18 CFLAGS = -Wall -Wunused -Wstrict-prototypes -g
19 endif
20
21+CFLAGS += $(CCFLAGS)
22
23 #####################################
24 # No servicable parts below this line
25--- a/libipvs/Makefile
26+++ b/libipvs/Makefile
27@@ -1,6 +1,9 @@
28 # Makefile for libipvs
29
30 CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -fPIC
31+
32+CFLAGS += $(CCFLAGS)
33+
34 ifneq (0,$(HAVE_NL))
35 CFLAGS += -DLIBIPVS_USE_NL
36 CFLAGS += $(shell \
diff --git a/meta-networking/recipes-support/ipvsadm/ipvsadm/0001-libipvs-Include-missing-sys-types.h.patch b/meta-networking/recipes-support/ipvsadm/ipvsadm/0001-libipvs-Include-missing-sys-types.h.patch
new file mode 100644
index 0000000000..8b08482be7
--- /dev/null
+++ b/meta-networking/recipes-support/ipvsadm/ipvsadm/0001-libipvs-Include-missing-sys-types.h.patch
@@ -0,0 +1,28 @@
1From 4fc59f5733d187941e9a7ce5e9ea33714d85285c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 26 May 2023 09:30:59 -0700
4Subject: [PATCH] libipvs: Include missing sys/types.h
5
6Its needed for u_intXX_t types
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 libipvs/ip_vs.h | 1 +
12 1 file changed, 1 insertion(+)
13
14diff --git a/libipvs/ip_vs.h b/libipvs/ip_vs.h
15index 2670c23..625b6cd 100644
16--- a/libipvs/ip_vs.h
17+++ b/libipvs/ip_vs.h
18@@ -8,6 +8,7 @@
19
20 #include <netinet/in.h>
21 #include <sys/socket.h>
22+#include <sys/types.h>
23 #include <arpa/inet.h>
24 #include <linux/types.h> /* For __beXX types in userland */
25
26--
272.40.1
28
diff --git a/meta-networking/recipes-support/ipvsadm/ipvsadm_1.31.bb b/meta-networking/recipes-support/ipvsadm/ipvsadm_1.31.bb
index 01bde4a68d..442e231ad4 100644
--- a/meta-networking/recipes-support/ipvsadm/ipvsadm_1.31.bb
+++ b/meta-networking/recipes-support/ipvsadm/ipvsadm_1.31.bb
@@ -20,6 +20,8 @@ SRC_URI = "https://mirrors.edge.kernel.org/pub/linux/utils/kernel/ipvsadm/${BP}.
20 file://0001-Modify-the-Makefile-for-cross-compile.patch \ 20 file://0001-Modify-the-Makefile-for-cross-compile.patch \
21 file://0003-ipvsadm-remove-dependency-on-bash.patch \ 21 file://0003-ipvsadm-remove-dependency-on-bash.patch \
22 file://makefile-add-ldflags.patch \ 22 file://makefile-add-ldflags.patch \
23 file://0001-Add-CCFLAGS-to-cflags.patch \
24 file://0001-libipvs-Include-missing-sys-types.h.patch \
23" 25"
24 26
25SRC_URI[md5sum] = "f6d1707c5baf684b58fd33682d67871f" 27SRC_URI[md5sum] = "f6d1707c5baf684b58fd33682d67871f"
@@ -27,10 +29,10 @@ SRC_URI[sha256sum] = "1a0a5e25b5a1226435d2fb76341656f83a710183aebb0d204db39c0ec3
27 29
28UPSTREAM_CHECK_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/ipvsadm" 30UPSTREAM_CHECK_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/ipvsadm"
29 31
32EXTRA_OEMAKE += "CCFLAGS='${CFLAGS}'"
33
30do_compile() { 34do_compile() {
31 oe_runmake \ 35 oe_runmake all
32 CC="${CC} -I${STAGING_INCDIR} -I${STAGING_INCDIR}/libnl3 -L${STAGING_LIBDIR}" \
33 all
34} 36}
35 37
36do_install() { 38do_install() {