diff options
| -rw-r--r-- | meta-oe/recipes-support/xrdp/xrdp/0001-Fix-the-compile-error.patch | 37 | ||||
| -rw-r--r-- | meta-oe/recipes-support/xrdp/xrdp/fix-compiling-with-musl.patch | 27 | ||||
| -rw-r--r-- | meta-oe/recipes-support/xrdp/xrdp_0.10.4.1.bb (renamed from meta-oe/recipes-support/xrdp/xrdp_0.9.20.bb) | 20 |
3 files changed, 39 insertions, 45 deletions
diff --git a/meta-oe/recipes-support/xrdp/xrdp/0001-Fix-the-compile-error.patch b/meta-oe/recipes-support/xrdp/xrdp/0001-Fix-the-compile-error.patch deleted file mode 100644 index 1bb84001f3..0000000000 --- a/meta-oe/recipes-support/xrdp/xrdp/0001-Fix-the-compile-error.patch +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | From 2fa575c3171688ceb0dc867a52628046b3f60d91 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> | ||
| 3 | Date: Tue, 12 Dec 2017 22:36:50 +0800 | ||
| 4 | Subject: [PATCH] Fix the make error | ||
| 5 | |||
| 6 | Fix the compile error: | ||
| 7 | *** No rule to make target '../librfxcodec/src/.libs/librfxencode.a', needed by 'xrdp'. Stop.. | ||
| 8 | |||
| 9 | Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> | ||
| 10 | --- | ||
| 11 | Upstream-Status: Pending | ||
| 12 | |||
| 13 | xrdp/Makefile.am | 4 ++-- | ||
| 14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/xrdp/Makefile.am b/xrdp/Makefile.am | ||
| 17 | index 71d0f76..f41751b 100644 | ||
| 18 | --- a/xrdp/Makefile.am | ||
| 19 | +++ b/xrdp/Makefile.am | ||
| 20 | @@ -21,7 +21,7 @@ XRDP_EXTRA_LIBS = | ||
| 21 | if XRDP_RFXCODEC | ||
| 22 | AM_CPPFLAGS += -DXRDP_RFXCODEC | ||
| 23 | AM_CPPFLAGS += -I$(top_srcdir)/librfxcodec/include | ||
| 24 | -XRDP_EXTRA_LIBS += $(top_builddir)/librfxcodec/src/.libs/librfxencode.a | ||
| 25 | +XRDP_EXTRA_LIBS += $(top_builddir)/librfxcodec/src/.libs/librfxencode.la | ||
| 26 | endif | ||
| 27 | |||
| 28 | if XRDP_PIXMAN | ||
| 29 | @@ -33,7 +33,7 @@ endif | ||
| 30 | if XRDP_PAINTER | ||
| 31 | AM_CPPFLAGS += -DXRDP_PAINTER | ||
| 32 | AM_CPPFLAGS += -I$(top_srcdir)/libpainter/include | ||
| 33 | -XRDP_EXTRA_LIBS += $(top_builddir)/libpainter/src/.libs/libpainter.a | ||
| 34 | +XRDP_EXTRA_LIBS += $(top_builddir)/libpainter/src/.libs/libpainter.la | ||
| 35 | endif | ||
| 36 | |||
| 37 | sbin_PROGRAMS = \ | ||
diff --git a/meta-oe/recipes-support/xrdp/xrdp/fix-compiling-with-musl.patch b/meta-oe/recipes-support/xrdp/xrdp/fix-compiling-with-musl.patch new file mode 100644 index 0000000000..c716229ab6 --- /dev/null +++ b/meta-oe/recipes-support/xrdp/xrdp/fix-compiling-with-musl.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | |||
| 2 | sys/signal.h does almost the same in both glibc and musl: it includes "signal.h" | ||
| 3 | |||
| 4 | However with musl there is also a warning macro about this, which is interpreted as | ||
| 5 | an error during building. | ||
| 6 | |||
| 7 | Fixes error: | ||
| 8 | |||
| 9 | | In file included from ../../sources/xrdp-0.10.4.1/waitforx/waitforx.c:5: | ||
| 10 | | <...>/usr/include/sys/signal.h:1:2: error: #warning redirecting incorrect #include <sys/signal.h> to <signal.h> [-Werror=cpp] | ||
| 11 | | 1 | #warning redirecting incorrect #include <sys/signal.h> to <signal.h> | ||
| 12 | | | ^~~~~~~ | ||
| 13 | | cc1: all warnings being treated as errors | ||
| 14 | |||
| 15 | Upstream-Status: Submitted [https://github.com/neutrinolabs/xrdp/pull/3678] | ||
| 16 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 17 | |||
| 18 | --- ./waitforx/waitforx.c.orig 2025-11-25 14:38:46.464337398 +0100 | ||
| 19 | +++ ./waitforx/waitforx.c 2025-11-25 14:38:52.007441093 +0100 | ||
| 20 | @@ -2,7 +2,6 @@ | ||
| 21 | #include <signal.h> | ||
| 22 | #include <stdio.h> | ||
| 23 | #include <stdlib.h> | ||
| 24 | -#include <sys/signal.h> | ||
| 25 | #include <unistd.h> | ||
| 26 | |||
| 27 | #include "config_ac.h" | ||
diff --git a/meta-oe/recipes-support/xrdp/xrdp_0.9.20.bb b/meta-oe/recipes-support/xrdp/xrdp_0.10.4.1.bb index a60c125d06..cd45d27fe4 100644 --- a/meta-oe/recipes-support/xrdp/xrdp_0.9.20.bb +++ b/meta-oe/recipes-support/xrdp/xrdp_0.10.4.1.bb | |||
| @@ -13,20 +13,20 @@ REQUIRED_DISTRO_FEATURES = "x11 pam" | |||
| 13 | SRC_URI = "https://github.com/neutrinolabs/${BPN}/releases/download/v${PV}/${BPN}-${PV}.tar.gz \ | 13 | SRC_URI = "https://github.com/neutrinolabs/${BPN}/releases/download/v${PV}/${BPN}-${PV}.tar.gz \ |
| 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 \ | ||
| 17 | file://0001-arch-Define-NO_NEED_ALIGN-on-ppc64.patch \ | 16 | file://0001-arch-Define-NO_NEED_ALIGN-on-ppc64.patch \ |
| 18 | file://0001-mark-count-with-unused-attribute.patch \ | 17 | file://0001-mark-count-with-unused-attribute.patch \ |
| 19 | " | 18 | " |
| 19 | SRC_URI:append:libc-musl = " file://fix-compiling-with-musl.patch" | ||
| 20 | 20 | ||
| 21 | SRC_URI[sha256sum] = "db693401da95b71b4d4e4c99aeb569a546dbdbde343f6d3302b0c47653277abb" | 21 | SRC_URI[sha256sum] = "52eadf3e86c57be0de0b9d5c184b52a7946a070746d3eb04b5089dd6d42f8f5f" |
| 22 | 22 | ||
| 23 | UPSTREAM_CHECK_URI = "https://github.com/neutrinolabs/xrdp/releases" | 23 | UPSTREAM_CHECK_URI = "https://github.com/neutrinolabs/xrdp/releases" |
| 24 | UPSTREAM_CHECK_REGEX = "releases/tag/v(?P<pver>\d+(\.\d+)+)" | 24 | UPSTREAM_CHECK_REGEX = "releases/tag/v(?P<pver>\d+(\.\d+)+)" |
| 25 | 25 | ||
| 26 | CFLAGS += " -Wno-deprecated-declarations" | 26 | CFLAGS += " -Wno-deprecated-declarations" |
| 27 | 27 | ||
| 28 | PACKAGECONFIG ??= "" | 28 | PACKAGECONFIG ??= "fuse" |
| 29 | PACKAGECONFIG[fuse] = " --enable-fuse, --disable-fuse, fuse" | 29 | PACKAGECONFIG[fuse] = " --enable-fuse, --disable-fuse, fuse3" |
| 30 | 30 | ||
| 31 | USERADD_PACKAGES = "${PN}" | 31 | USERADD_PACKAGES = "${PN}" |
| 32 | GROUPADD_PARAM:${PN} = "--system xrdp" | 32 | GROUPADD_PARAM:${PN} = "--system xrdp" |
| @@ -36,10 +36,14 @@ USERADD_PARAM:${PN} = "--system --home /var/run/xrdp -g xrdp \ | |||
| 36 | FILES:${PN} += "${datadir}/dbus-1/services/*.service \ | 36 | FILES:${PN} += "${datadir}/dbus-1/services/*.service \ |
| 37 | ${datadir}/dbus-1/accessibility-services/*.service " | 37 | ${datadir}/dbus-1/accessibility-services/*.service " |
| 38 | 38 | ||
| 39 | FILES:${PN}-dev += "${libdir}/xrdp/libcommon.so \ | 39 | FILES:${PN}-dev += " \ |
| 40 | ${libdir}/xrdp/libxrdp.so \ | 40 | ${libdir}/xrdp/libcommon.so \ |
| 41 | ${libdir}/xrdp/libscp.so \ | 41 | ${libdir}/xrdp/libxrdp.so \ |
| 42 | ${libdir}/xrdp/libxrdpapi.so " | 42 | ${libdir}/xrdp/libxrdpapi.so \ |
| 43 | ${libdir}/xrdp/libtoml.so \ | ||
| 44 | ${libdir}/xrdp/libsesman.so \ | ||
| 45 | ${libdir}/xrdp/libipm.so \ | ||
| 46 | " | ||
| 43 | 47 | ||
| 44 | EXTRA_OECONF = "--enable-pam-config=suse --enable-fuse \ | 48 | EXTRA_OECONF = "--enable-pam-config=suse --enable-fuse \ |
| 45 | --enable-pixman --enable-painter --enable-vsock \ | 49 | --enable-pixman --enable-painter --enable-vsock \ |
