[oe-commits] [meta-openembedded] 02/03: python-systemd: Include endian.h for htobe16

git at git.openembedded.org git at git.openembedded.org
Tue Nov 12 21:55:40 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 2b610f444d22691cc70271fa04adf7fd69991433
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Tue Nov 12 12:11:41 2019 -0800

    python-systemd: Include endian.h for htobe16
    
    Fixes
    | systemd/util.c:112:39: error: implicit declaration of function 'htobe16' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    |                 addr->in6.sin6_port = htobe16(port);
    |                                       ^
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-python/recipes-devtools/python/python-systemd.inc     |  2 ++
 .../recipes-devtools/python/python-systemd/endian.patch    | 14 ++++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python-systemd.inc b/meta-python/recipes-devtools/python/python-systemd.inc
index 5be5de0..f01165c 100644
--- a/meta-python/recipes-devtools/python/python-systemd.inc
+++ b/meta-python/recipes-devtools/python/python-systemd.inc
@@ -15,4 +15,6 @@ SRC_URI[sha256sum] = "fd0e44bf70eadae45aadc292cb0a7eb5b0b6372cd1b391228047d33895
 # allow for common patches for python- and python3-systemd
 FILESEXTRAPATHS_prepend := "${THISDIR}/python-systemd:"
 
+SRC_URI += "file://endian.patch"
+
 SRC_URI_append_libc-musl = " file://0001-Provide-implementation-of-strndupa-for-musl.patch"
diff --git a/meta-python/recipes-devtools/python/python-systemd/endian.patch b/meta-python/recipes-devtools/python/python-systemd/endian.patch
new file mode 100644
index 0000000..e09aea7
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-systemd/endian.patch
@@ -0,0 +1,14 @@
+Include endian.h for missing definitions of htobe16
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem at gmail.com>
+--- a/systemd/util.c
++++ b/systemd/util.c
+@@ -28,6 +28,7 @@
+ #include <stdbool.h>
+ #include <assert.h>
+ #include <errno.h>
++#include <endian.h>
+ #include <fcntl.h>
+ #include <unistd.h>
+ #include <net/if.h>

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


More information about the Openembedded-commits mailing list