[oe-commits] [meta-openembedded] 05/35: open62541: add new recipe

git at git.openembedded.org git at git.openembedded.org
Thu Oct 17 03:24:17 UTC 2019


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit cadd00a40586a617a2d0851495dd2618e16e3534
Author: Urs Fässler <urs.fassler at bbv.ch>
AuthorDate: Mon Oct 14 12:26:17 2019 +0000

    open62541: add new recipe
    
    It provides a open source implementation for OPC UA.
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 .../files/0001-fix_ignored_return_value.patch      | 17 ++++++++++++
 .../open62541/open62541_1.0.bb                     | 32 ++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/meta-networking/recipes-connectivity/open62541/files/0001-fix_ignored_return_value.patch b/meta-networking/recipes-connectivity/open62541/files/0001-fix_ignored_return_value.patch
new file mode 100644
index 0000000..3a8377e
--- /dev/null
+++ b/meta-networking/recipes-connectivity/open62541/files/0001-fix_ignored_return_value.patch
@@ -0,0 +1,17 @@
+diff --git a/plugins/ua_pki_default.c b/plugins/ua_pki_default.c
+index 79331bc9..b20ad95c 100644
+--- a/plugins/ua_pki_default.c
++++ b/plugins/ua_pki_default.c
+@@ -89,7 +89,11 @@ fileNamesFromFolder(const UA_String *folder, size_t *pathsSize, UA_String **path
+
+     struct dirent *ent;
+     char buf2[PATH_MAX + 1];
+-    realpath(buf, buf2);
++    char *res = realpath(buf, buf2);
++    if(res == NULL) {
++        closedir(dir);
++        return UA_STATUSCODE_BADINTERNALERROR;
++    }
+     size_t pathlen = strlen(buf2);
+     *pathsSize = 0;
+     while((ent = readdir (dir)) != NULL && *pathsSize < 256) {
diff --git a/meta-networking/recipes-connectivity/open62541/open62541_1.0.bb b/meta-networking/recipes-connectivity/open62541/open62541_1.0.bb
new file mode 100644
index 0000000..c34e706
--- /dev/null
+++ b/meta-networking/recipes-connectivity/open62541/open62541_1.0.bb
@@ -0,0 +1,32 @@
+HOMEPAGE = "http://open62541.org/"
+SUMMARY = "Open source implementation of OPC UA - library"
+LICENSE = "MPL-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad"
+
+SRCREV = "ce5209d78d3821504d31b3bbdb03f53d6e3f93a7"
+SRC_URI = " \
+	gitsm://github.com/open62541/open62541.git \
+	file://0001-fix_ignored_return_value.patch \
+"
+
+S = "${WORKDIR}/git"
+
+inherit cmake python3native
+
+DEPENDS += " \
+	python3-six-native \
+	mbedtls \
+"
+
+EXTRA_OECMAKE = " \
+	-DCMAKE_BUILD_TYPE=Debug \
+	-DBUILD_SHARED_LIBS=ON \
+	-DUA_NAMESPACE_ZERO=REDUCED \
+	-DUA_ENABLE_ENCRYPTION=ON \
+	-DUA_BUILD_EXAMPLES=OFF \
+"
+
+FILES_${PN}-dev += "${libdir}/cmake/*"
+
+BBCLASSEXTEND = "native nativesdk"
+

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list