Skip to contentSkip to conversation

lksctp-tools: Add recipe for lksctp

PATCH Superseded Sam Nelson 3 participants 5 messages Feb 23, 2014 – Feb 24, 2014

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH v2 1/1 lksctp-tools: Add recipe for lksctp

- The linux kernel Stream control transmission protocol
- Original recipe by Jingting Zhou

---
Updated RREPLACES_${PN}
Fix build issue with .so
---

---
 .../recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb |   51 ++++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100755 meta-arago-extras/recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb
meta-arago-extras/recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb new file +51 -0
new file mode 100755
index 0000000..5c75552
@@ -0,0 +1,51 @@
+DESCRIPTION = "The Linux Kernel Stream Control Transmission Protocol (lksctp) project"
+SECTION = "libs"
+PRIORITY = "optional"
+LICENSE = "LGPLv2"
+LIC_FILES_CHKSUM = "file://src/include/netinet/sctp.h;md5=8089fbe48b63b73c8d091bee750b2ebc"
+
+INC_PR = "r0"
+PR = "${INC_PR}.0"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/lksctp/lksctp-tools-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "047562b40537eb3be5d5ec3ae0a2198b"
+SRC_URI[sha256sum] = "e920e89d110cff9847f1d86a1d7a23a156a8abcc9e65a35655d687fd08377595"
+
+S = "${WORKDIR}/${BPN}-${PV}"
+
+BBCLASSEXTEND = "native"
+
+inherit autotools pkgconfig binconfig
+
+do_install_append_virtclass-native() {
+	:
+}
+
+RREPLACES_${PN} = "lksctp"
+
+LEAD_SONAME = "libsctp.so"
+
+PACKAGES =+ "${PN}-withsctp ${PN}-utils"
+
+FILES_${PN} = "${libexecdir}/* ${libdir}/lib*${SOLIBS} \
+            ${sysconfdir} ${sharedstatedir} ${localstatedir} \
+            ${base_libdir}/*${SOLIBS}"
+
+FILES_${PN}-dev += " \
+  ${datadir}/lksctp-tools/checksctp.c \
+  ${datadir}/lksctp-tools/sctp_socket.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 \
+  ${libdir}/lksctp-tools/lib*.so"
+
+FILES_${PN}-utils = " \
+  ${bindir}/sctp_test \
+  ${bindir}/sctp_darn \
+  ${bindir}/checksctp \
+  ${bindir}/withsctp"
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Nelson, Sam
Sent: Saturday, February 22, 2014 8:47 PM
To: [email protected]
Subject: [meta-arago] [PATCH v2] lksctp-tools: Add recipe for lksctp

- The linux kernel Stream control transmission protocol
- Original recipe by Jingting Zhou

Can you please give a more descriptive statement about where this recipe came from? What layer for example, a URL to the original recipe.

Also, can you split this into two patches? One that adds the original recipe and one that splits out your changes so it is easier to tell what has been modified on top.

Quoted 86 lines

---
Updated RREPLACES_${PN}
Fix build issue with .so
---
---
.../recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb | 51
++++++++++++++++++++

1 file changed, 51 insertions(+)

create mode 100755 meta-arago-extras/recipes-bsp/lksctp- tools/lksctp-tools_1.0.7.bb

(quoted diff) +0 -0

tools_1.0.7.bb b/meta-arago-extras/recipes-bsp/lksctp- tools/lksctp-tools_1.0.7.bb
new file mode 100755
index 0000000..5c75552

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +0 -0

tools_1.0.7.bb

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +1 -0
@@ -0,0 +1,51 @@
+DESCRIPTION = "The Linux Kernel Stream Control Transmission

Protocol (lksctp) project"

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +4 -0
+SECTION = "libs"
+PRIORITY = "optional"
+LICENSE = "LGPLv2"
+LIC_FILES_CHKSUM =

"file://src/include/netinet/sctp.h;md5=8089fbe48b63b73c8d091bee750 b2ebc"

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +5 -0
+
+INC_PR = "r0"
+PR = "${INC_PR}.0"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/lksctp/lksctp-tools-

${PV}.tar.gz"

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +3 -0
+
+SRC_URI[md5sum] = "047562b40537eb3be5d5ec3ae0a2198b"
+SRC_URI[sha256sum] =

"e920e89d110cff9847f1d86a1d7a23a156a8abcc9e65a35655d687fd08377595"

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +38 -1
+
+S = "${WORKDIR}/${BPN}-${PV}"
+
+BBCLASSEXTEND = "native"
+
+inherit autotools pkgconfig binconfig
+
+do_install_append_virtclass-native() {
+	:
+}
+
+RREPLACES_${PN} = "lksctp"
+
+LEAD_SONAME = "libsctp.so"
+
+PACKAGES =+ "${PN}-withsctp ${PN}-utils"
+
+FILES_${PN} = "${libexecdir}/* ${libdir}/lib*${SOLIBS} \
+            ${sysconfdir} ${sharedstatedir} ${localstatedir} \
+            ${base_libdir}/*${SOLIBS}"
+
+FILES_${PN}-dev += " \
+  ${datadir}/lksctp-tools/checksctp.c \
+  ${datadir}/lksctp-tools/sctp_socket.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 \
+  ${libdir}/lksctp-tools/lib*.so"
+
+FILES_${PN}-utils = " \
+  ${bindir}/sctp_test \
+  ${bindir}/sctp_darn \
+  ${bindir}/checksctp \
+  ${bindir}/withsctp"
--

1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#2 lore raw
Quoted 8 lines · Chase
Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Nelson, Sam
Sent: Saturday, February 22, 2014 8:47 PM
To: [email protected]
Subject: [meta-arago] [PATCH v2] lksctp-tools: Add recipe for lksctp

Quoted 5 lines
Quoted 2 lines

- The linux kernel Stream control transmission protocol
- Original recipe by Jingting Zhou

Can you please give a more descriptive statement about where this recipe came from? What layer for example, a URL to the original recipe.

Actually, since this is coming from a forked meta-arago-mcsdk and maybe even from a private tree, I'd rather not advertise the information such as URL. If you want to mention it, just say it comes from previous version of MCSDK...

Quoted 3 lines

Also, can you split this into two patches? One that adds the original recipe and one that splits out your changes so it is easier to tell what has been modified on top.

??? I think you are missing the fact that it's an in-house recipe, not coming from Open Source...

Quoted 89 lines
Quoted 81 lines

---
Updated RREPLACES_${PN}
Fix build issue with .so
---
---
.../recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb | 51
++++++++++++++++++++

1 file changed, 51 insertions(+)

create mode 100755 meta-arago-extras/recipes-bsp/lksctp- tools/lksctp-tools_1.0.7.bb

(quoted diff) +0 -0

tools_1.0.7.bb b/meta-arago-extras/recipes-bsp/lksctp- tools/lksctp-tools_1.0.7.bb
new file mode 100755
index 0000000..5c75552

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +0 -0

tools_1.0.7.bb

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +1 -0
@@ -0,0 +1,51 @@
+DESCRIPTION = "The Linux Kernel Stream Control Transmission

Protocol (lksctp) project"

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +4 -0
+SECTION = "libs"
+PRIORITY = "optional"
+LICENSE = "LGPLv2"
+LIC_FILES_CHKSUM =

"file://src/include/netinet/sctp.h;md5=8089fbe48b63b73c8d091bee750 b2ebc"

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +5 -0
+
+INC_PR = "r0"
+PR = "${INC_PR}.0"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/lksctp/lksctp-tools-

${PV}.tar.gz"

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +3 -0
+
+SRC_URI[md5sum] = "047562b40537eb3be5d5ec3ae0a2198b"
+SRC_URI[sha256sum] =

"e920e89d110cff9847f1d86a1d7a23a156a8abcc9e65a35655d687fd08377595"

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +38 -1
+
+S = "${WORKDIR}/${BPN}-${PV}"
+
+BBCLASSEXTEND = "native"
+
+inherit autotools pkgconfig binconfig
+
+do_install_append_virtclass-native() {
+	:
+}
+
+RREPLACES_${PN} = "lksctp"
+
+LEAD_SONAME = "libsctp.so"
+
+PACKAGES =+ "${PN}-withsctp ${PN}-utils"
+
+FILES_${PN} = "${libexecdir}/* ${libdir}/lib*${SOLIBS} \
+            ${sysconfdir} ${sharedstatedir} ${localstatedir} \
+            ${base_libdir}/*${SOLIBS}"
+
+FILES_${PN}-dev += " \
+  ${datadir}/lksctp-tools/checksctp.c \
+  ${datadir}/lksctp-tools/sctp_socket.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 \
+  ${libdir}/lksctp-tools/lib*.so"
+
+FILES_${PN}-utils = " \
+  ${bindir}/sctp_test \
+  ${bindir}/sctp_darn \
+  ${bindir}/checksctp \
+  ${bindir}/withsctp"
--

1.7.9.5

Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#4 lore raw
In reply to Sam Nelson
Quoted 20 lines · Sam Nelson

- The linux kernel Stream control transmission protocol
- Original recipe by Jingting Zhou

---
Updated RREPLACES_${PN}
Fix build issue with .so
---

---
 .../recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb |   51 ++++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100755 meta-arago-extras/recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb
meta-arago-extras/recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb new file +0 -0
new file mode 100755
index 0000000..5c75552

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb line 3

Quoted 3 lines
meta-arago-extras/recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb new file +3 -0
@@ -0,0 +1,51 @@
+DESCRIPTION = "The Linux Kernel Stream Control Transmission Protocol (lksctp) project"
+SECTION = "libs"
+PRIORITY = "optional"

PRIORITY no longer exists in Yocto, that was only applicable to OE-Classic

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb line 5

Quoted 2 lines
meta-arago-extras/recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb new file +2 -0
+LICENSE = "LGPLv2"
+LIC_FILES_CHKSUM = "file://src/include/netinet/sctp.h;md5=8089fbe48b63b73c8d091bee750b2ebc"

Entire file? Could be Ok, just checking if you rather want just the header instead.

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb line 8

Quoted 3 lines
meta-arago-extras/recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb new file +3 -0
+
+INC_PR = "r0"
+PR = "${INC_PR}.0"

There's no .inc file, so no need to use INC_PR.

Quoted 5 lines
meta-arago-extras/recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb new file +5 -0
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/lksctp/lksctp-tools-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "047562b40537eb3be5d5ec3ae0a2198b"
+SRC_URI[sha256sum] = "e920e89d110cff9847f1d86a1d7a23a156a8abcc9e65a35655d687fd08377595"

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb line 23

Quoted 10 lines
meta-arago-extras/recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb new file +10 -0
+
+S = "${WORKDIR}/${BPN}-${PV}"
+
+BBCLASSEXTEND = "native"
+
+inherit autotools pkgconfig binconfig
+
+do_install_append_virtclass-native() {
+	:
+}

I don't get it - you requested native build with BBCLASSEXTEND and then you disable do_install for it? Why? Actually, it's not even overwrite, it's append and it doesn't make any sense...

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb line 25

Quoted 2 lines
meta-arago-extras/recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb new file +2 -0
+
+RREPLACES_${PN} = "lksctp"

And by this point I decided to find where this recipe really comes from... :) Well, it appears it was available back in OE-Classic and had all those same strange things. But, some of those may be just cruft from previous revisions, so we should clean it up...

So, let's see:

1. Drop PRIORITY
2. May want to fix LIC_FILES_CHKSUM to not checksum the entire file
3. Drop INC_PR
4. Question - is this a native/host package, or just the target. If only target, drop BBLASSEXTEND
5. If 4 is true, also drop do_install_append_virtclass-native()
6. Drop RREPLACES
7. Try dropping LEAD_SONAME, but may still be required due to nonstandard lib
8. PACKAGES defines ${PN}-withsctp and ${PN}-utils, but FILES_* lists don't match
9. Probably want ${PN}-utils to be changed to just ${PN}, as PN=lksctp-tools

Let me know if you have any questions.

Signature · 1 line
Denys
Quoted 33 lines
meta-arago-extras/recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb new file +26 -0
+
+LEAD_SONAME = "libsctp.so"
+
+PACKAGES =+ "${PN}-withsctp ${PN}-utils"
+
+FILES_${PN} = "${libexecdir}/* ${libdir}/lib*${SOLIBS} \
+            ${sysconfdir} ${sharedstatedir} ${localstatedir} \
+            ${base_libdir}/*${SOLIBS}"
+
+FILES_${PN}-dev += " \
+  ${datadir}/lksctp-tools/checksctp.c \
+  ${datadir}/lksctp-tools/sctp_socket.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 \
+  ${libdir}/lksctp-tools/lib*.so"
+
+FILES_${PN}-utils = " \
+  ${bindir}/sctp_test \
+  ${bindir}/sctp_darn \
+  ${bindir}/checksctp \
+  ${bindir}/withsctp"
Signature · 6 lines
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#3 lore raw
In reply to Denys Dmytriyenko
Quoted 20 lines · Denys Dmytriyenko
Quoted 8 lines · Chase
Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Nelson, Sam
Sent: Saturday, February 22, 2014 8:47 PM
To: [email protected]
Subject: [meta-arago] [PATCH v2] lksctp-tools: Add recipe for lksctp

Quoted 5 lines
Quoted 2 lines

- The linux kernel Stream control transmission protocol
- Original recipe by Jingting Zhou

Can you please give a more descriptive statement about where this recipe came from? What layer for example, a URL to the original recipe.

Actually, since this is coming from a forked meta-arago-mcsdk and maybe even from a private tree, I'd rather not advertise the information such as URL. If you want to mention it, just say it comes from previous version of MCSDK...

Quoted 6 lines
Quoted 3 lines

Also, can you split this into two patches? One that adds the original recipe and one that splits out your changes so it is easier to tell what has been modified on top.

??? I think you are missing the fact that it's an in-house recipe, not coming from Open Source...

Ok, and after looking at it closer, the recipe originally comes from Classic OpenEmbedded. It was picked up mostly as is to previous versions of MCSDK...

Quoted 93 lines
Quoted 81 lines
Quoted 81 lines

---
Updated RREPLACES_${PN}
Fix build issue with .so
---
---
.../recipes-bsp/lksctp-tools/lksctp-tools_1.0.7.bb | 51
++++++++++++++++++++

1 file changed, 51 insertions(+)

create mode 100755 meta-arago-extras/recipes-bsp/lksctp- tools/lksctp-tools_1.0.7.bb

(quoted diff) +0 -0

tools_1.0.7.bb b/meta-arago-extras/recipes-bsp/lksctp- tools/lksctp-tools_1.0.7.bb
new file mode 100755
index 0000000..5c75552

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +0 -0

tools_1.0.7.bb

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +1 -0
@@ -0,0 +1,51 @@
+DESCRIPTION = "The Linux Kernel Stream Control Transmission

Protocol (lksctp) project"

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +4 -0
+SECTION = "libs"
+PRIORITY = "optional"
+LICENSE = "LGPLv2"
+LIC_FILES_CHKSUM =

"file://src/include/netinet/sctp.h;md5=8089fbe48b63b73c8d091bee750 b2ebc"

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +5 -0
+
+INC_PR = "r0"
+PR = "${INC_PR}.0"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/lksctp/lksctp-tools-

${PV}.tar.gz"

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +3 -0
+
+SRC_URI[md5sum] = "047562b40537eb3be5d5ec3ae0a2198b"
+SRC_URI[sha256sum] =

"e920e89d110cff9847f1d86a1d7a23a156a8abcc9e65a35655d687fd08377595"

meta-arago-extras/recipes-bsp/lksctp-tools/lksctp- new file +38 -1
+
+S = "${WORKDIR}/${BPN}-${PV}"
+
+BBCLASSEXTEND = "native"
+
+inherit autotools pkgconfig binconfig
+
+do_install_append_virtclass-native() {
+	:
+}
+
+RREPLACES_${PN} = "lksctp"
+
+LEAD_SONAME = "libsctp.so"
+
+PACKAGES =+ "${PN}-withsctp ${PN}-utils"
+
+FILES_${PN} = "${libexecdir}/* ${libdir}/lib*${SOLIBS} \
+            ${sysconfdir} ${sharedstatedir} ${localstatedir} \
+            ${base_libdir}/*${SOLIBS}"
+
+FILES_${PN}-dev += " \
+  ${datadir}/lksctp-tools/checksctp.c \
+  ${datadir}/lksctp-tools/sctp_socket.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 \
+  ${libdir}/lksctp-tools/lib*.so"
+
+FILES_${PN}-utils = " \
+  ${bindir}/sctp_test \
+  ${bindir}/sctp_darn \
+  ${bindir}/checksctp \
+  ${bindir}/withsctp"
--

1.7.9.5

Quoted 8 lines
Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago