diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-12-22 21:18:43 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-12-23 22:47:02 -0800 |
commit | fa9d118550be5e5c7b1d61b1e1e92828f48b55ff (patch) | |
tree | c5b1aaf04a302606033bba9993e81b8d165cc470 | |
parent | db3aab1e47268ae8e919e0b94c2021139031f76e (diff) | |
download | meta-openembedded-fa9d118550be5e5c7b1d61b1e1e92828f48b55ff.tar.gz |
xrdp: Upgrade to 0.9.14
Drop redundant setting of PV in recipe
Fix build on riscv and musl
Do not install xrdp.sh, it does not exist anymore
Fix build with gcc 9+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/xrdp/xrdp/0001-Fixed-compiler-warnings-about-snprintf-truncations.patch | 28 | ||||
-rw-r--r-- | meta-oe/recipes-support/xrdp/xrdp/0001-correct-the-location-of-errno.h.patch | 30 | ||||
-rw-r--r-- | meta-oe/recipes-support/xrdp/xrdp/0001-riscv-doesn-t-require-pointers-to-be-aligned.patch | 28 | ||||
-rw-r--r-- | meta-oe/recipes-support/xrdp/xrdp_0.9.14.bb (renamed from meta-oe/recipes-support/xrdp/xrdp_0.9.11.bb) | 19 |
4 files changed, 95 insertions, 10 deletions
diff --git a/meta-oe/recipes-support/xrdp/xrdp/0001-Fixed-compiler-warnings-about-snprintf-truncations.patch b/meta-oe/recipes-support/xrdp/xrdp/0001-Fixed-compiler-warnings-about-snprintf-truncations.patch new file mode 100644 index 0000000000..5b9315cfb4 --- /dev/null +++ b/meta-oe/recipes-support/xrdp/xrdp/0001-Fixed-compiler-warnings-about-snprintf-truncations.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 9de23a9199d26e64ab6b5be2bb74f260200b2dc5 Mon Sep 17 00:00:00 2001 | ||
2 | From: matt335672 <30179339+matt335672@users.noreply.github.com> | ||
3 | Date: Fri, 21 Aug 2020 12:20:31 +0100 | ||
4 | Subject: [PATCH] Fixed compiler warnings about snprintf truncations | ||
5 | |||
6 | Upstream-Status: Backport [https://github.com/neutrinolabs/xrdp/pull/1659] | ||
7 | --- | ||
8 | common/log.c | 4 +--- | ||
9 | 1 file changed, 1 insertion(+), 3 deletions(-) | ||
10 | |||
11 | diff --git a/common/log.c b/common/log.c | ||
12 | index 4a0bd2f3..8686789d 100644 | ||
13 | --- a/common/log.c | ||
14 | +++ b/common/log.c | ||
15 | @@ -555,9 +555,7 @@ log_message(const enum logLevels lvl, const char *msg, ...) | ||
16 | now_t = time(&now_t); | ||
17 | now = localtime(&now_t); | ||
18 | |||
19 | - snprintf(buff, 21, "[%.4d%.2d%.2d-%.2d:%.2d:%.2d] ", now->tm_year + 1900, | ||
20 | - now->tm_mon + 1, now->tm_mday, now->tm_hour, now->tm_min, | ||
21 | - now->tm_sec); | ||
22 | + strftime(buff, 21, "[%Y%m%d-%H:%M:%S] ", now); | ||
23 | |||
24 | internal_log_lvl2str(lvl, buff + 20); | ||
25 | |||
26 | -- | ||
27 | 2.29.2 | ||
28 | |||
diff --git a/meta-oe/recipes-support/xrdp/xrdp/0001-correct-the-location-of-errno.h.patch b/meta-oe/recipes-support/xrdp/xrdp/0001-correct-the-location-of-errno.h.patch new file mode 100644 index 0000000000..b06077bf02 --- /dev/null +++ b/meta-oe/recipes-support/xrdp/xrdp/0001-correct-the-location-of-errno.h.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From c8d3df40ece7d659ccc8212b18de916d28f4398a Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 22 Dec 2020 23:10:52 -0800 | ||
4 | Subject: [PATCH] correct the location of errno.h | ||
5 | |||
6 | Fixes build on musl | ||
7 | |||
8 | Upstream-Status: Submitted [https://github.com/neutrinolabs/xrdp/pull/1761] | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | sesman/chansrv/sound.c | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/sesman/chansrv/sound.c b/sesman/chansrv/sound.c | ||
16 | index b0480d33..45e17307 100644 | ||
17 | --- a/sesman/chansrv/sound.c | ||
18 | +++ b/sesman/chansrv/sound.c | ||
19 | @@ -23,7 +23,7 @@ | ||
20 | #include <stdio.h> | ||
21 | #include <sys/types.h> | ||
22 | #include <sys/socket.h> | ||
23 | -#include <sys/errno.h> | ||
24 | +#include <errno.h> | ||
25 | #include <signal.h> | ||
26 | #include <sys/un.h> | ||
27 | |||
28 | -- | ||
29 | 2.29.2 | ||
30 | |||
diff --git a/meta-oe/recipes-support/xrdp/xrdp/0001-riscv-doesn-t-require-pointers-to-be-aligned.patch b/meta-oe/recipes-support/xrdp/xrdp/0001-riscv-doesn-t-require-pointers-to-be-aligned.patch new file mode 100644 index 0000000000..4cd26df04c --- /dev/null +++ b/meta-oe/recipes-support/xrdp/xrdp/0001-riscv-doesn-t-require-pointers-to-be-aligned.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 229206aa5e55a6e26a074a54a1b50139ab794b36 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 22 Dec 2020 23:01:13 -0800 | ||
4 | Subject: [PATCH] riscv doesn't require pointers to be aligned | ||
5 | |||
6 | Upstream-Status: Submitted [https://github.com/neutrinolabs/xrdp/pull/1761] | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | common/arch.h | 3 ++- | ||
10 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/common/arch.h b/common/arch.h | ||
13 | index ccccfa5a..8c2ac1a4 100644 | ||
14 | --- a/common/arch.h | ||
15 | +++ b/common/arch.h | ||
16 | @@ -84,7 +84,8 @@ typedef int bool_t; | ||
17 | #define NEED_ALIGN | ||
18 | #elif defined(__x86__) || defined(__x86_64__) || \ | ||
19 | defined(__AMD64__) || defined(_M_IX86) || defined (_M_AMD64) || \ | ||
20 | - defined(__i386__) || defined(__aarch64__) | ||
21 | + defined(__i386__) || defined(__aarch64__) || \ | ||
22 | + defined(__riscv) | ||
23 | #define NO_NEED_ALIGN | ||
24 | #else | ||
25 | #warning unknown arch | ||
26 | -- | ||
27 | 2.29.2 | ||
28 | |||
diff --git a/meta-oe/recipes-support/xrdp/xrdp_0.9.11.bb b/meta-oe/recipes-support/xrdp/xrdp_0.9.14.bb index deda0fd1b5..078e23c6ed 100644 --- a/meta-oe/recipes-support/xrdp/xrdp_0.9.11.bb +++ b/meta-oe/recipes-support/xrdp/xrdp_0.9.14.bb | |||
@@ -10,15 +10,15 @@ DEPENDS = "openssl virtual/libx11 libxfixes libxrandr libpam nasm-native" | |||
10 | 10 | ||
11 | REQUIRED_DISTRO_FEATURES = "x11 pam" | 11 | REQUIRED_DISTRO_FEATURES = "x11 pam" |
12 | 12 | ||
13 | SRC_URI = "git://github.com/neutrinolabs/xrdp.git \ | 13 | SRC_URI = "git://github.com/neutrinolabs/xrdp.git;branch=devel \ |
14 | file://xrdp.sysconfig \ | 14 | file://xrdp.sysconfig \ |
15 | file://0001-Added-req_distinguished_name-in-etc-xrdp-openssl.con.patch \ | 15 | file://0001-Added-req_distinguished_name-in-etc-xrdp-openssl.con.patch \ |
16 | file://0001-Fix-the-compile-error.patch \ | 16 | file://0001-Fix-the-compile-error.patch \ |
17 | file://0001-riscv-doesn-t-require-pointers-to-be-aligned.patch \ | ||
18 | file://0001-correct-the-location-of-errno.h.patch \ | ||
19 | file://0001-Fixed-compiler-warnings-about-snprintf-truncations.patch \ | ||
17 | " | 20 | " |
18 | 21 | SRCREV = "1469d659dbccd6d042ac44f0afc4e1309788dc9d" | |
19 | SRCREV = "1e4b03eb3c9aa7173de251a328c93c073dcc0fca" | ||
20 | |||
21 | PV = "0.9.11" | ||
22 | 22 | ||
23 | S = "${WORKDIR}/git" | 23 | S = "${WORKDIR}/git" |
24 | 24 | ||
@@ -52,15 +52,15 @@ do_compile_prepend() { | |||
52 | 52 | ||
53 | 53 | ||
54 | do_install_append() { | 54 | do_install_append() { |
55 | install -d ${D}${sysconfdir} | 55 | install -d ${D}${sysconfdir} |
56 | install -d ${D}${sysconfdir}/xrdp | 56 | install -d ${D}${sysconfdir}/xrdp |
57 | install -d ${D}${sysconfdir}/xrdp/pam.d | 57 | install -d ${D}${sysconfdir}/xrdp/pam.d |
58 | install -d ${D}${sysconfdir}/sysconfig/xrdp | 58 | install -d ${D}${sysconfdir}/sysconfig/xrdp |
59 | 59 | ||
60 | # deal with systemd unit files | 60 | # deal with systemd unit files |
61 | install -d ${D}${systemd_unitdir}/system | 61 | install -d ${D}${systemd_unitdir}/system |
62 | install -m 0644 ${S}/instfiles/xrdp.service.in ${D}${systemd_unitdir}/system/xrdp.service | 62 | install -m 0644 ${S}/instfiles/xrdp.service.in ${D}${systemd_unitdir}/system/xrdp.service |
63 | install -m 0644 ${S}/instfiles/xrdp-sesman.service.in ${D}${systemd_unitdir}/system/xrdp-sesman.service | 63 | install -m 0644 ${S}/instfiles/xrdp-sesman.service.in ${D}${systemd_unitdir}/system/xrdp-sesman.service |
64 | sed -i -e 's,@localstatedir@,${localstatedir},g' ${D}${systemd_unitdir}/system/xrdp.service ${D}${systemd_unitdir}/system/xrdp-sesman.service | 64 | sed -i -e 's,@localstatedir@,${localstatedir},g' ${D}${systemd_unitdir}/system/xrdp.service ${D}${systemd_unitdir}/system/xrdp-sesman.service |
65 | sed -i -e 's,@sysconfdir@,${sysconfdir},g' ${D}${systemd_unitdir}/system/xrdp.service ${D}${systemd_unitdir}/system/xrdp-sesman.service | 65 | sed -i -e 's,@sysconfdir@,${sysconfdir},g' ${D}${systemd_unitdir}/system/xrdp.service ${D}${systemd_unitdir}/system/xrdp-sesman.service |
66 | sed -i -e 's,@sbindir@,${sbindir},g' ${D}${systemd_unitdir}/system/xrdp.service ${D}${systemd_unitdir}/system/xrdp-sesman.service | 66 | sed -i -e 's,@sbindir@,${sbindir},g' ${D}${systemd_unitdir}/system/xrdp.service ${D}${systemd_unitdir}/system/xrdp-sesman.service |
@@ -70,7 +70,6 @@ do_install_append() { | |||
70 | install -m 0644 ${S}/sesman/startwm.sh ${D}${sysconfdir}/xrdp/ | 70 | install -m 0644 ${S}/sesman/startwm.sh ${D}${sysconfdir}/xrdp/ |
71 | install -m 0644 ${S}/xrdp/xrdp.ini.in ${D}${sysconfdir}/xrdp/ | 71 | install -m 0644 ${S}/xrdp/xrdp.ini.in ${D}${sysconfdir}/xrdp/ |
72 | install -m 0644 ${S}/xrdp/xrdp_keyboard.ini ${D}${sysconfdir}/xrdp/ | 72 | install -m 0644 ${S}/xrdp/xrdp_keyboard.ini ${D}${sysconfdir}/xrdp/ |
73 | install -m 0644 ${S}/instfiles/xrdp.sh ${D}${sysconfdir}/xrdp/ | ||
74 | install -m 0644 ${S}/keygen/openssl.conf ${D}${sysconfdir}/xrdp/ | 73 | install -m 0644 ${S}/keygen/openssl.conf ${D}${sysconfdir}/xrdp/ |
75 | install -m 0644 ${WORKDIR}/xrdp.sysconfig ${D}${sysconfdir}/sysconfig/xrdp/ | 74 | install -m 0644 ${WORKDIR}/xrdp.sysconfig ${D}${sysconfdir}/sysconfig/xrdp/ |
76 | chown xrdp:xrdp ${D}${sysconfdir}/xrdp | 75 | chown xrdp:xrdp ${D}${sysconfdir}/xrdp |
@@ -92,6 +91,6 @@ pkg_postinst_${PN}() { | |||
92 | -out ${sysconfdir}/xrdp/cert.pem \ | 91 | -out ${sysconfdir}/xrdp/cert.pem \ |
93 | -config ${sysconfdir}/xrdp/openssl.conf >/dev/null 2>&1 | 92 | -config ${sysconfdir}/xrdp/openssl.conf >/dev/null 2>&1 |
94 | chmod 400 ${sysconfdir}/xrdp/key.pem | 93 | chmod 400 ${sysconfdir}/xrdp/key.pem |
95 | fi | 94 | fi |
96 | fi | 95 | fi |
97 | } | 96 | } |