summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/lksctp-tools
diff options
context:
space:
mode:
authorMingli Yu <Mingli.Yu@windriver.com>2018-09-03 16:55:32 +0800
committerKhem Raj <raj.khem@gmail.com>2018-09-04 11:55:21 -0700
commita3051a58ae9080af9cc0e553670b0300d1b9252e (patch)
tree6ecdf4768388c5b5deffaec5a6fa73f0979a16e4 /meta-networking/recipes-support/lksctp-tools
parent9c0243b69180741ef722fd03d4291c3f31fad9e2 (diff)
downloadmeta-openembedded-a3051a58ae9080af9cc0e553670b0300d1b9252e.tar.gz
lksctp-tools: Upgrade to 1.0.18
inherit autotools-brokensep to fix the gap between ${S} and ${B} Backport 6 patches from master to fix build issue[https://github.com/sctp/lksctp-tools/compare/lksctp-tools-1.0.18...master] | WARNING: lksctp-tools-1.0.18+gitAUTOINC+1b077af62d-r0 do_package: QA Issue: lksctp-tools: Files/directories were installed but not shipped in: | /usr/lib64/libsctp.so.1.0.17 | /usr/lib64/lksctp-tools/libwithsctp.so.1.0.17 | -- Looking for sctp_connectx - not found[when build freediameter which depends on lksctp-tools] Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support/lksctp-tools')
-rw-r--r--meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-build-0b0dce7a36fb-actually-belongs-to-v4.19.patch31
-rw-r--r--meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-build-fix-netinet-sctp.h-not-to-be-installed.patch35
-rw-r--r--meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-build-fix-probing-for-HAVE_SCTP_SENDV.patch35
-rw-r--r--meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-build-remove-v4.12-secondary-defines-in-favor-of-HAV.patch52
-rw-r--r--meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-configure.ac-add-CURRENT-REVISION-and-AGE-for-libsct.patch71
-rw-r--r--meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-withsctp-use-PACKAGE_VERSION-in-withsctp.h.patch43
-rw-r--r--meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.18.bb (renamed from meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.17.bb)12
7 files changed, 276 insertions, 3 deletions
diff --git a/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-build-0b0dce7a36fb-actually-belongs-to-v4.19.patch b/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-build-0b0dce7a36fb-actually-belongs-to-v4.19.patch
new file mode 100644
index 000000000..7599b1bcf
--- /dev/null
+++ b/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-build-0b0dce7a36fb-actually-belongs-to-v4.19.patch
@@ -0,0 +1,31 @@
1From e5952a0cdfa8b1b56a5823574835f1f771f14ae0 Mon Sep 17 00:00:00 2001
2From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
3Date: Fri, 24 Aug 2018 09:53:00 -0300
4Subject: [PATCH] build: 0b0dce7a36fb actually belongs to v4.19
5
6Typo or not, this commit actually belongs to v4.19 and made me wonder why
7on v4.18 it didn't find this feature.
8
9Fixes: 817f0bfa248f ("build: add two defines for Peer Address Parameters extensions on sctp_paddrparams")
10Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
11Reviewed-by: Xin Long <lucien.xin@gmail.com>
12---
13 configure.ac | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/configure.ac b/configure.ac
17index f55775a..5de5c76 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -101,7 +101,7 @@ LKSCTP_CHECK_TYPE([struct sctp_prinfo], [HAVE_SCTP_SENDV])
21 # added on v4.16, 30f6ebf65bc4
22 LKSCTP_CHECK_DECL([SCTP_AUTH_NO_AUTH], [HAVE_SCTP_AUTH_NO_AUTH])
23
24-# New members to sctp_paddrparams, added on v4.18, 0b0dce7a36fb
25+# New members to sctp_paddrparams, added on v4.19, 0b0dce7a36fb
26 LKSCTP_CHECK_MEMBER([struct sctp_paddrparams.spp_ipv6_flowlabel],
27 [HAVE_SCTP_SPP_IPV6_FLOWLABEL])
28 LKSCTP_CHECK_MEMBER([struct sctp_paddrparams.spp_dscp],
29--
302.7.4
31
diff --git a/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-build-fix-netinet-sctp.h-not-to-be-installed.patch b/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-build-fix-netinet-sctp.h-not-to-be-installed.patch
new file mode 100644
index 000000000..03c6c4f73
--- /dev/null
+++ b/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-build-fix-netinet-sctp.h-not-to-be-installed.patch
@@ -0,0 +1,35 @@
1From 378560050a8f93786c590cc99a55461666205b61 Mon Sep 17 00:00:00 2001
2From: Xin Long <lucien.xin@gmail.com>
3Date: Fri, 24 Aug 2018 01:13:32 +0800
4Subject: [PATCH] build: fix netinet/sctp.h not to be installed
5
6After libcnetinet_HEADERS was set to sctp.h.in, netinet/sctp.h can
7no longer be installed into ${includedir}.
8
9Since "AC_CONFIG_HEADERS([src/include/netinet/sctp.h])" is already
10added into configure.ac, there's no need to generate sctp.h by
11automake.
12
13So we simply set libcnetinet_HEADERS back to sctp.h.
14
15Fixes: 9607dd85e70a ("netinet/sctp.h: dynamically build based on system setup")
16Signed-off-by: Xin Long <lucien.xin@gmail.com>
17Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
18---
19 src/include/netinet/Makefile.am | 3 +--
20 1 file changed, 1 insertion(+), 2 deletions(-)
21
22diff --git a/src/include/netinet/Makefile.am b/src/include/netinet/Makefile.am
23index ca0aac2..965db8c 100644
24--- a/src/include/netinet/Makefile.am
25+++ b/src/include/netinet/Makefile.am
26@@ -11,5 +11,4 @@ libcnetinetdir = $(includedir)/netinet
27 # API.
28 include_HEADERS =
29
30-libcnetinet_HEADERS = sctp.h.in
31-BUILT_SOURCES = sctp.h
32+libcnetinet_HEADERS = sctp.h
33--
342.7.4
35
diff --git a/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-build-fix-probing-for-HAVE_SCTP_SENDV.patch b/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-build-fix-probing-for-HAVE_SCTP_SENDV.patch
new file mode 100644
index 000000000..89c89835d
--- /dev/null
+++ b/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-build-fix-probing-for-HAVE_SCTP_SENDV.patch
@@ -0,0 +1,35 @@
1From 596efd6631b83069d41782fb0ee2d6cf76a50dfa Mon Sep 17 00:00:00 2001
2From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
3Date: Fri, 24 Aug 2018 09:52:59 -0300
4Subject: [PATCH] build: fix probing for HAVE_SCTP_SENDV
5
6Somehow it was using a type that is non-existent. The right one is
7sctp_prinfo, introduced on ed63afb8a318 ("sctp: add support for PR-SCTP
8Information for sendmsg"), present on v4.17.
9
10Fixes: 1b798f1ca3b5 ("build: add define HAVE_SCTP_AUTH_NO_AUTH")
11Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
12Reviewed-by: Xin Long <lucien.xin@gmail.com>
13---
14 configure.ac | 5 ++---
15 1 file changed, 2 insertions(+), 3 deletions(-)
16
17diff --git a/configure.ac b/configure.ac
18index dad658c..f55775a 100644
19--- a/configure.ac
20+++ b/configure.ac
21@@ -94,9 +94,8 @@ LKSCTP_CHECK_MEMBER([struct sctp_pdapi_event.pdapi_stream],
22 LKSCTP_CHECK_MEMBER([struct sctp_pdapi_event.pdapi_seq],
23 [HAVE_SCTP_PDAPI_EVENT_PDAPI_SEQ])
24
25-# PR-SCTP field used to probe for sendv/recvv support, added on v4.17
26-LKSCTP_CHECK_MEMBER([struct sendv_prinfo.sctp_prinfo],
27- [HAVE_SCTP_SENDV])
28+# PR-SCTP struct used to probe for sendv/recvv support, added on v4.17
29+LKSCTP_CHECK_TYPE([struct sctp_prinfo], [HAVE_SCTP_SENDV])
30
31 # This event indicates that the peer does not support SCTP authentication,
32 # added on v4.16, 30f6ebf65bc4
33--
342.7.4
35
diff --git a/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-build-remove-v4.12-secondary-defines-in-favor-of-HAV.patch b/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-build-remove-v4.12-secondary-defines-in-favor-of-HAV.patch
new file mode 100644
index 000000000..d22cda681
--- /dev/null
+++ b/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-build-remove-v4.12-secondary-defines-in-favor-of-HAV.patch
@@ -0,0 +1,52 @@
1From db6d15bf12a0123e4320e5fd7cb688331dea1bdc Mon Sep 17 00:00:00 2001
2From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
3Date: Fri, 24 Aug 2018 09:52:58 -0300
4Subject: [PATCH] build: remove v4.12 secondary defines in favor of
5 HAVE_SCTP_STREAM_RECONFIG
6
7These were backups, commented out since beginning.
8HAVE_SCTP_STREAM_RECONFIG is enough to identify that these are there, so
9lets use only one.
10
11Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
12Reviewed-by: Xin Long <lucien.xin@gmail.com>
13---
14 configure.ac | 8 --------
15 src/include/netinet/sctp.h.in | 2 --
16 2 files changed, 10 deletions(-)
17
18diff --git a/configure.ac b/configure.ac
19index 2ae36ec..dad658c 100644
20--- a/configure.ac
21+++ b/configure.ac
22@@ -82,14 +82,6 @@ AC_CHECK_FUNCS([bzero gethostbyname gettimeofday memmove memset select socket \
23 LKSCTP_CHECK_MEMBER([struct sctp_event_subscribe.sctp_stream_reset_event],
24 [HAVE_SCTP_STREAM_RESET_EVENT])
25
26-# Support for assoc reset event, added on v4.12, c95129d127c6
27-#LKSCTP_CHECK_MEMBER([struct sctp_event_subscribe.sctp_assoc_reset_event], \
28-# [HAVE_SCTP_ASSOC_RESET_EVENT])
29-
30-# Support for stream change event, added on v4.12, b444153fb5a6
31-#LKSCTP_CHECK_MEMBER([struct sctp_event_subscribe.sctp_stream_change_event], \
32-# [HAVE_SCTP_STREAM_CHANGE_EVENT])
33-
34 # RFC 6525 (Stream Reconf), finished on v4.12, c0d8bab6ae51
35 LKSCTP_CHECK_DECL([SCTP_RECONFIG_SUPPORTED], [HAVE_SCTP_STREAM_RECONFIG])
36
37diff --git a/src/include/netinet/sctp.h.in b/src/include/netinet/sctp.h.in
38index c049077..2009f1c 100644
39--- a/src/include/netinet/sctp.h.in
40+++ b/src/include/netinet/sctp.h.in
41@@ -61,8 +61,6 @@ extern "C" {
42 #define HAVE_SCTP_CANSET_PRIMARY
43
44 #undef HAVE_SCTP_STREAM_RESET_EVENT
45-#undef HAVE_SCTP_ASSOC_RESET_EVENT
46-#undef HAVE_SCTP_STREAM_CHANGE_EVENT
47 #undef HAVE_SCTP_STREAM_RECONFIG
48 #undef HAVE_SCTP_PEELOFF_FLAGS
49 #undef HAVE_SCTP_PDAPI_EVENT_PDAPI_STREAM
50--
512.7.4
52
diff --git a/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-configure.ac-add-CURRENT-REVISION-and-AGE-for-libsct.patch b/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-configure.ac-add-CURRENT-REVISION-and-AGE-for-libsct.patch
new file mode 100644
index 000000000..bec9bf0d1
--- /dev/null
+++ b/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-configure.ac-add-CURRENT-REVISION-and-AGE-for-libsct.patch
@@ -0,0 +1,71 @@
1From 7de2bd7e769f10521e3d0c2cb42c6f6b9b505dd0 Mon Sep 17 00:00:00 2001
2From: Xin Long <lucien.xin@gmail.com>
3Date: Thu, 16 Aug 2018 14:12:30 +0800
4Subject: [PATCH] configure.ac: add CURRENT REVISION and AGE for libsctp and
5 libwithsctp
6
7Add CURRENT REVISION and AGE for libsctp and libwithsctp in
8configure.ac to update these 2 library version information.
9
10Compatible with before, they will start from 1:18:0. But each
11will get updated according to their definitions in the future.
12
13Signed-off-by: Xin Long <lucien.xin@gmail.com>
14Acked-by: Neil Horman <nhorman@tuxdriver.com>
15Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
16---
17 configure.ac | 7 +++++++
18 src/lib/Makefile.am | 7 +++++--
19 src/withsctp/Makefile.am | 3 ++-
20 3 files changed, 14 insertions(+), 3 deletions(-)
21
22diff --git a/configure.ac b/configure.ac
23index 275ef4e..2ae36ec 100644
24--- a/configure.ac
25+++ b/configure.ac
26@@ -14,6 +14,13 @@ dnl reduce clutter in the root; if we put it below AM_INIT_AUTOMAKE,
27 dnl configure will fail ...)
28
29 AC_INIT([lksctp-tools], [1.0.18], [], [], [http://www.lksctp.org/])
30+AC_SUBST(LIBSCTP_CURRENT, 1)
31+AC_SUBST(LIBSCTP_REVISION, 18)
32+AC_SUBST(LIBSCTP_AGE, 0)
33+AC_SUBST(LIBWITHSCTP_CURRENT, 1)
34+AC_SUBST(LIBWITHSCTP_REVISION, 18)
35+AC_SUBST(LIBWITHSCTP_AGE, 0)
36+
37 AC_CONFIG_AUX_DIR(bin)
38 AC_CONFIG_SRCDIR([src/apps/sctp_darn.c])
39 AC_CONFIG_HEADERS([config.h])
40diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
41index 6100c56..1d62175 100644
42--- a/src/lib/Makefile.am
43+++ b/src/lib/Makefile.am
44@@ -8,5 +8,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/src/include
45
46 lib_LTLIBRARIES = libsctp.la
47
48-libsctp_la_SOURCES = bindx.c connectx.c peeloff.c opt_info.c addrs.c sendmsg.c recvmsg.c Versions.map
49-libsctp_la_LDFLAGS = -version-info 1:17:0 -Wl,--version-script=$(srcdir)/Versions.map
50+libsctp_la_SOURCES = bindx.c connectx.c peeloff.c opt_info.c \
51+ addrs.c sendmsg.c recvmsg.c Versions.map
52+libsctp_la_LDFLAGS = -version-info \
53+ @LIBSCTP_CURRENT@:@LIBSCTP_REVISION@:@LIBSCTP_AGE@ \
54+ -Wl,--version-script=$(srcdir)/Versions.map
55diff --git a/src/withsctp/Makefile.am b/src/withsctp/Makefile.am
56index 70b1cca..1f6ca37 100644
57--- a/src/withsctp/Makefile.am
58+++ b/src/withsctp/Makefile.am
59@@ -14,7 +14,8 @@ AM_CPPFLAGS=-I$(top_srcdir)/src/include
60 pkglib_LTLIBRARIES = libwithsctp.la
61 libwithsctp_la_SOURCES = sctp_load_libs.c sctp_socket.c sctp_bind.c \
62 sctp_sockopt.c sctp_socket.h
63-libwithsctp_la_LDFLAGS = -version-info 1:17:0 -ldl
64+libwithsctp_la_LDFLAGS = -version-info \
65+ @LIBWITHSCTP_CURRENT@:@LIBWITHSCTP_REVISION@:@LIBWITHSCTP_AGE@ -ldl
66
67 pkgdoc_DATA = sctp_load_libs.c sctp_socket.c sctp_bind.c \
68 sctp_sockopt.c sctp_socket.h checksctp.c
69--
702.7.4
71
diff --git a/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-withsctp-use-PACKAGE_VERSION-in-withsctp.h.patch b/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-withsctp-use-PACKAGE_VERSION-in-withsctp.h.patch
new file mode 100644
index 000000000..2537bb976
--- /dev/null
+++ b/meta-networking/recipes-support/lksctp-tools/lksctp-tools/0001-withsctp-use-PACKAGE_VERSION-in-withsctp.h.patch
@@ -0,0 +1,43 @@
1From 7c0ef4d441b3833e721df58f56e2cb8c81b34df4 Mon Sep 17 00:00:00 2001
2From: Xin Long <lucien.xin@gmail.com>
3Date: Thu, 16 Aug 2018 14:12:01 +0800
4Subject: [PATCH] withsctp: use @PACKAGE_VERSION@ in withsctp.h
5
6use @PACKAGE_VERSION@ to replace the hardcode version.
7
8Signed-off-by: Xin Long <lucien.xin@gmail.com>
9Acked-by: Neil Horman <nhorman@tuxdriver.com>
10Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
11---
12 Makefile.rules | 3 ++-
13 src/withsctp/withsctp.in | 3 ++-
14 2 files changed, 4 insertions(+), 2 deletions(-)
15
16diff --git a/Makefile.rules b/Makefile.rules
17index 83f5f0c..d3693fa 100644
18--- a/Makefile.rules
19+++ b/Makefile.rules
20@@ -15,4 +15,5 @@
21 edit = @sed \
22 -e "s|\@bindir\@|$(bindir)|" \
23 -e "s|\@libdir\@|$(libdir)|" \
24- -e "s|\@PACKAGE\@|$(PACKAGE)|"
25+ -e "s|\@PACKAGE\@|$(PACKAGE)|" \
26+ -e "s|\@PACKAGE_VERSION\@|$(PACKAGE_VERSION)|"
27diff --git a/src/withsctp/withsctp.in b/src/withsctp/withsctp.in
28index 7f182ba..fda5ebc 100644
29--- a/src/withsctp/withsctp.in
30+++ b/src/withsctp/withsctp.in
31@@ -2,7 +2,8 @@
32 # -*- sh -*-
33 LIBDIR=@libdir@/@PACKAGE@
34 BINDIR=@bindir@
35-export LD_PRELOAD=${LIBDIR}/libwithsctp.so.1.0.17
36+LIBVER=@PACKAGE_VERSION@
37+export LD_PRELOAD=${LIBDIR}/libwithsctp.so.${LIBVER}
38 if ! ${BINDIR}/checksctp 2> /dev/null
39 then
40 ${BINDIR}/checksctp;
41--
422.7.4
43
diff --git a/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.17.bb b/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.18.bb
index 121cc9945..cc2f835a9 100644
--- a/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.17.bb
+++ b/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.18.bb
@@ -8,13 +8,19 @@ LIC_FILES_CHKSUM = " \
8 file://COPYING;md5=0c56db0143f4f80c369ee3af7425af6e \ 8 file://COPYING;md5=0c56db0143f4f80c369ee3af7425af6e \
9" 9"
10 10
11SRCREV = "736b91d340e3f2519714f2930ed63b164d363511" 11SRCREV = "1b077af62d83d53c34b1bde8bad6648149d5edf9"
12 12
13PV .= "+git${SRCPV}" 13PV .= "+git${SRCPV}"
14LK_REL = "1.0.17" 14LK_REL = "1.0.18"
15 15
16SRC_URI = " \ 16SRC_URI = " \
17 git://github.com/sctp/lksctp-tools.git \ 17 git://github.com/sctp/lksctp-tools.git \
18 file://0001-withsctp-use-PACKAGE_VERSION-in-withsctp.h.patch \
19 file://0001-configure.ac-add-CURRENT-REVISION-and-AGE-for-libsct.patch \
20 file://0001-build-fix-netinet-sctp.h-not-to-be-installed.patch \
21 file://0001-build-remove-v4.12-secondary-defines-in-favor-of-HAV.patch \
22 file://0001-build-fix-probing-for-HAVE_SCTP_SENDV.patch \
23 file://0001-build-0b0dce7a36fb-actually-belongs-to-v4.19.patch \
18 file://run-ptest \ 24 file://run-ptest \
19 file://v4test.sh \ 25 file://v4test.sh \
20 file://v6test.sh \ 26 file://v6test.sh \
@@ -24,7 +30,7 @@ S = "${WORKDIR}/git"
24 30
25BBCLASSEXTEND = "native" 31BBCLASSEXTEND = "native"
26 32
27inherit autotools pkgconfig binconfig ptest 33inherit autotools-brokensep pkgconfig binconfig ptest
28 34
29do_install_ptest () { 35do_install_ptest () {
30 install -m 0755 ${WORKDIR}/v4test.sh ${D}${PTEST_PATH} 36 install -m 0755 ${WORKDIR}/v4test.sh ${D}${PTEST_PATH}