Skip to contentSkip to conversation

netperf: enable SCTP support

PATCH Superseded Mihaela Sendrea 3 participants 5 messages May 13, 2014

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v4 cover netperf: enable SCTP support

Hi Martin and Paul,

Thank you for the help, I have cleaned the recipes now, but unfortunatelly I could not reproduce the build error you reported on lksctp-tools. I hope this version is ok now...

Best regards,

Mihaela Sendrea (2):
lksctp-tools: add recipe (version 1.0.16)
netperf: enable SCTP support

 .../lksctp-tools/lksctp-tools_1.0.16.bb            | 57 ++++++++++++++++++++++
 .../recipes-support/netperf/netperf_2.6.0.bb       |  5 ++
 2 files changed, 62 insertions(+)
 create mode 100644 meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb
Signature · 1 line
1.8.5.3
#1 lore raw

PATCH v4 1/2 lksctp-tools: add recipe (version 1.0.16)

This recipe comes from arago-oe-dev:
https://github.com/mrchapp/arago-oe-dev/tree/master/recipes/lksctp-tools

---
 .../lksctp-tools/lksctp-tools_1.0.16.bb            | 57 ++++++++++++++++++++++
 1 file changed, 57 insertions(+)
 create mode 100644 meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb
meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb new file +57 -0
new file mode 100644
index 0000000..2c229c3
@@ -0,0 +1,57 @@
+DESCRIPTION = "The Linux Kernel Stream Control Transmission Protocol (lksctp) project"
+SECTION = "libs"
+LICENSE = "LGPLv2"
+
+LIC_FILES_CHKSUM = " \
+    file://COPYING.lib;md5=0a1b79af951c42a9c8573533fbba9a92 \
+    file://COPYING;md5=0c56db0143f4f80c369ee3af7425af6e \
+"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/lksctp/${BP}.tar.gz"
+
+SRC_URI[md5sum] = "708bb0b5a6806ad6e8d13c55b067518e"
+SRC_URI[sha256sum] = "0903dd526b7f30a89d5031aa2c82757612becc38ed7bc6e4f972f8deae351f26"
+
+S = "${WORKDIR}/${BP}"
+
+BBCLASSEXTEND = "native"
+
+inherit autotools pkgconfig binconfig
+
+SOLIBVERSION="${PV}"
+SOLIBMAJORVERSION="1"
+
+PACKAGES =+ "${PN}-withsctp ${PN}-utils"
+
+FILES_${PN} = " \
+    ${libdir}/libsctp.so.${SOLIBVERSION} \
+"
+
+FILES_${PN}-withsctp = " \
+    ${libdir}/lksctp-tools/libwithsctp.so.${SOLIBVERSION} \
+"
+
+FILES_${PN}-dev += " \
+    ${libdir}/libsctp.so.${SOLIBMAJORVERSION} \
+    ${libdir}/libsctp.so \
+    ${libdir}/lksctp-tools/libwithsctp.so.${SOLIBMAJORVERSION} \
+    ${libdir}/lksctp-tools/libwithsctp.so \
+    ${datadir}/lksctp-tools/checksctp.c \
+    ${datadir}/lksctp-tools/sctp_socket.c \
+    ${datadir}/lksctp-tools/sctp_status.c \
+    ${datadir}/lksctp-tools/sctp_bind.c \
+    ${datadir}/lksctp-tools/sctp_darn.c \
+    ${datadir}/lksctp-tools/sctp_load_libs.c \
+    ${datadir}/lksctp-tools/sctp_sockopt.c \
+    ${datadir}/lksctp-tools/sctp_socket.h \
+    ${datadir}/lksctp-tools/sctp_test.c \
+    ${datadir}/lksctp-tools/sctp_darn.h \
+"
+
+FILES_${PN}-utils = " \
+    ${bindir}/sctp_test \
+    ${bindir}/sctp_darn \
+    ${bindir}/checksctp \
+    ${bindir}/withsctp  \
+    ${bindir}/sctp_status \
+"
Signature · 1 line
1.8.5.3
#2 lore raw

Re: [meta-networking][PATCH v4 1/2] lksctp-tools: add recipe (version 1.0.16)

Hi Mihaela,

Quoted 19 lines · On Tuesday 13 May 2014 15:07:18 Mihaela Sendrea wrote:

This recipe comes from arago-oe-dev:
https://github.com/mrchapp/arago-oe-dev/tree/master/recipes/lksctp-tools

---
 .../lksctp-tools/lksctp-tools_1.0.16.bb            | 57
++++++++++++++++++++++ 1 file changed, 57 insertions(+)
 create mode 100644

meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb

diff --git a/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb b/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb new file mode 100644
index 0000000..2c229c3

meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb new file +1 -0
@@ -0,0 +1,57 @@
+DESCRIPTION = "The Linux Kernel Stream Control Transmission Protocol
Quoted 1 line

(lksctp) project"

Could you make this SUMMARY since it's short?

Quoted 46 lines
meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb new file +12 -0
+SECTION = "libs"
+LICENSE = "LGPLv2"
+
+LIC_FILES_CHKSUM = " \
+    file://COPYING.lib;md5=0a1b79af951c42a9c8573533fbba9a92 \
+    file://COPYING;md5=0c56db0143f4f80c369ee3af7425af6e \
+"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/lksctp/${BP}.tar.gz"
+
+SRC_URI[md5sum] = "708bb0b5a6806ad6e8d13c55b067518e"
+SRC_URI[sha256sum] =

"0903dd526b7f30a89d5031aa2c82757612becc38ed7bc6e4f972f8deae351f26" +

meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb new file +33 -0
+S = "${WORKDIR}/${BP}"
+
+BBCLASSEXTEND = "native"
+
+inherit autotools pkgconfig binconfig
+
+SOLIBVERSION="${PV}"
+SOLIBMAJORVERSION="1"
+
+PACKAGES =+ "${PN}-withsctp ${PN}-utils"
+
+FILES_${PN} = " \
+    ${libdir}/libsctp.so.${SOLIBVERSION} \
+"
+
+FILES_${PN}-withsctp = " \
+    ${libdir}/lksctp-tools/libwithsctp.so.${SOLIBVERSION} \
+"
+
+FILES_${PN}-dev += " \
+    ${libdir}/libsctp.so.${SOLIBMAJORVERSION} \
+    ${libdir}/libsctp.so \
+    ${libdir}/lksctp-tools/libwithsctp.so.${SOLIBMAJORVERSION} \
+    ${libdir}/lksctp-tools/libwithsctp.so \
+    ${datadir}/lksctp-tools/checksctp.c \
+    ${datadir}/lksctp-tools/sctp_socket.c \
+    ${datadir}/lksctp-tools/sctp_status.c \
+    ${datadir}/lksctp-tools/sctp_bind.c \
+    ${datadir}/lksctp-tools/sctp_darn.c \
+    ${datadir}/lksctp-tools/sctp_load_libs.c \
+    ${datadir}/lksctp-tools/sctp_sockopt.c \
+    ${datadir}/lksctp-tools/sctp_socket.h \
+    ${datadir}/lksctp-tools/sctp_test.c \

meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb line 57

Quoted 10 lines
meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb new file +10 -0
+    ${datadir}/lksctp-tools/sctp_darn.h \
+"
+
+FILES_${PN}-utils = " \
+    ${bindir}/sctp_test \
+    ${bindir}/sctp_darn \
+    ${bindir}/checksctp \
+    ${bindir}/withsctp  \
+    ${bindir}/sctp_status \
+"

These FILES_ settings seem a little verbose and possibly unnecessary to me - are these all needed?

(I realise you've probably borrowed this mostly verbatim from arago-oe-dev but we probably ought to ensure it's as tidy as we can make it)

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#3 lore raw

PATCH v4 2/2 netperf: enable SCTP support

In reply to Mihaela Sendrea
---
 meta-networking/recipes-support/netperf/netperf_2.6.0.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-networking/recipes-support/netperf/netperf_2.6.0.bb +5 -0
index 7124b02..07bd0cf 100644
@@ -27,6 +27,11 @@ CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE"
 CFLAGS_append = "${@base_contains('DISTRO_FEATURES', 'largefile', \
     ' -D_FILE_OFFSET_BITS=64', '', d)}"
 
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[sctp] = "--enable-sctp,--disable-sctp,lksctp-tools,"
+
+RRECOMMENDS_${PN} += "${@base_contains('PACKAGECONFIG', 'sctp', 'kernel-module-sctp', '', d)}"
+
 # autotools.bbclass attends to include m4 files with path depth <= 2 by
 # "find ${S} -maxdepth 2 -name \*.m4", so move m4 files from m4/m4.
 do_configure_prepend() {
Signature · 1 line
1.8.5.3
#4 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mihaela Sendrea schreef op 13-05-14 15:07:

Quoted 14 lines

meta-networking/recipes-support/netperf/netperf_2.6.0.bb | 5 +++++ 1 file changed, 5 insertions(+)

(quoted diff) +0 -0

b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb index 7124b02..07bd0cf 100644 --- a/meta-networking/recipes-support/netperf/netperf_2.6.0.bb +++ b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb @@ -27,6 +27,11 @@ CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE" CFLAGS_append = "${@base_contains('DISTRO_FEATURES', 'largefile', \ '

(quoted diff) +1 -1
-D_FILE_OFFSET_BITS=64', '', d)}"
 
+PACKAGECONFIG ??= "" +PACKAGECONFIG[sctp] =
Quoted 3 lines

"--enable-sctp,--disable-sctp,lksctp-tools," + +RRECOMMENDS_${PN} += "${@base_contains('PACKAGECONFIG', 'sctp', 'kernel-module-sctp', '', d)}"

R* variables are for packaging so go below do_install.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFTciJVMkyGM64RGpERAiIdAKCtomOboF/4B0JYDfTYIzPZVphz/ACfVdP5 Htmoo8XSpGUAfn7AgoU6iwI=
=bJG/
-----END PGP SIGNATURE-----