summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGianfranco Costamagna <costamagna.gianfranco@gmail.com>2020-08-10 08:46:33 +0200
committerKhem Raj <raj.khem@gmail.com>2020-08-10 11:04:21 -0700
commita7c9aa13dd94712ea49f535fbbf38d2db54cf7e2 (patch)
tree84b1c95408f0d7c4c505a8f8c6b87d680641e201
parent0b3ee7c8ba1e80fbfe86dbcf20dd5e51aaf1d8ff (diff)
downloadmeta-openembedded-a7c9aa13dd94712ea49f535fbbf38d2db54cf7e2.tar.gz
dlt-daemon: fix build with upstream-proposed patch for MUSL libc
Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it> Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-extended/dlt-daemon/dlt-daemon/241.patch30
-rw-r--r--meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.5.bb1
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/241.patch b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/241.patch
new file mode 100644
index 000000000..7d8f22ec7
--- /dev/null
+++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/241.patch
@@ -0,0 +1,30 @@
1From b8f9919f000e642fc8970d0a42c1bdadf5a9d720 Mon Sep 17 00:00:00 2001
2From: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
3Date: Mon, 10 Aug 2020 08:30:34 +0200
4Subject: [PATCH] sd-daemon.c: Fix build with newer glibc and musl libc
5
6Reported by Khem Raj on meta-oe list
7
8TOPDIR/build/tmp/work/armv7vet2hf-neon-yoe-linux-musleabi/dlt-daemon/2.18.5-r0/recipe-sysroot/usr/include/sys/fcntl.h:1:2: error: redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Werror,-W#warnings]
9 ^
101 error generated.
11
12Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
13Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
14---
15 systemd/3rdparty/sd-daemon.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/systemd/3rdparty/sd-daemon.c b/systemd/3rdparty/sd-daemon.c
19index 88936d2..de3f985 100644
20--- a/systemd/3rdparty/sd-daemon.c
21+++ b/systemd/3rdparty/sd-daemon.c
22@@ -35,7 +35,7 @@
23 #ifdef __BIONIC__
24 #include <linux/fcntl.h>
25 #else
26-#include <sys/fcntl.h>
27+#include <fcntl.h>
28 #endif
29 #include <netinet/in.h>
30 #include <stdlib.h>
diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.5.bb b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.5.bb
index e7a194ac8..3a2b40515 100644
--- a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.5.bb
+++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.5.bb
@@ -18,6 +18,7 @@ SRC_URI = "git://github.com/GENIVI/${BPN}.git;protocol=https \
18 file://0002-Don-t-execute-processes-as-a-specific-user.patch \ 18 file://0002-Don-t-execute-processes-as-a-specific-user.patch \
19 file://0004-Modify-systemd-config-directory.patch \ 19 file://0004-Modify-systemd-config-directory.patch \
20 file://238.patch \ 20 file://238.patch \
21 file://241.patch \
21" 22"
22SRCREV = "f1ac087c766827b1d0ed9c3a814b3cc052e948f2" 23SRCREV = "f1ac087c766827b1d0ed9c3a814b3cc052e948f2"
23 24