freerdp: get out of PNBLACKLIST, fix build, improve
PATCH v3 1/1 freerdp: get out of PNBLACKLIST, fix build, improve
We make the "freerdp" recipe active again, fix the build by pulling a more recent version (the "stable" branches are buggy and useless), and fix ARM runtime with -fPIC.
We can then :
- make X11 non-mandatory ;
- add support for Wayland ("wlfreerdp" client) ;
- add support for DirectFB ("dfreerdp" client) ;
- add support for GStreamer 1.0 ;
- make "heavy" features such as pulseaudio, cups... non-mandatory.
We really want to install the "winpr-makecert" tool to have TLS, but CMake does not position its RPATH cleanly, so let us have a custom patch for that until it gets sorted out.
--- meta-oe/recipes-support/freerdp/freerdp.inc | 38 +++++++++++++++++----- .../winpr-makecert-Build-with-install-RPATH.patch | 31 ++++++++++++++++++ meta-oe/recipes-support/freerdp/freerdp_git.bb | 18 +++++----- 3 files changed, 70 insertions(+), 17 deletions(-) create mode 100644 meta-oe/recipes-support/freerdp/freerdp/winpr-makecert-Build-with-install-RPATH.patch
meta-oe/recipes-support/freerdp/freerdp.inc +30 -8
@@ -1,23 +1,38 @@ # Copyright (C) 2010-2012 O.S. Systems Software Ltda. All Rights Reserved # Released under the MIT license -DESCRIPTION = "FreeRDP RDP client" +DESCRIPTION = "FreeRDP RDP client & server library" HOMEPAGE = "http://www.freerdp.com" -DEPENDS = "virtual/libx11 openssl libxcursor libxv cups alsa-lib pulseaudio pcsc-lite libxkbfile libxinerama" -SECTION = "x11/network" +DEPENDS = "openssl alsa-lib pcsc-lite" +SECTION = "net" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" inherit pkgconfig cmake -EXTRA_OECMAKE += "-DWITH_PULSEAUDIO=ON \ +EXTRA_OECMAKE += "-DWITH_ALSA=ON \ -DWITH_PCSC=ON \ - -DWITH_CUPS=ON \ -DWITH_FFMPEG=OFF \ -DWITH_CUNIT=OFF \ - -DWITH_X11=ON \ - -DWITH_XKBFILE=ON \ - -DWITH_XINERAMA=ON" + " + +PACKAGECONFIG ??= " \ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}\ + ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}\ + ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}\ + ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}\ + ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}\ + gstreamer cups \ + " + +X11_DEPS = "virtual/libx11 libxinerama libxext libxcursor libxv libxi libxrender libxfixes libxdamage libxrandr libxkbfile" +PACKAGECONFIG[x11] = "-DWITH_X11=ON -DWITH_XINERAMA=ON -DWITH_XEXT=ON -DWITH_XCURSOR=ON -DWITH_XV=ON -DWITH_XI=ON -DWITH_XRENDER=ON -DWITH_XFIXES=ON -DWITH_XDAMAGE=ON -DWITH_XRANDR=ON -DWITH_XKBFILE=ON,-DWITH_X11=OFF,${X11_DEPS}" +PACKAGECONFIG[wayland] = "-DWITH_WAYLAND=ON,-DWITH_WAYLAND=OFF,wayland" +PACKAGECONFIG[directfb] = "-DWITH_DIRECTFB=ON,-DWITH_DIRECTFB=OFF,directfb" +PACKAGECONFIG[pam] = "-DWITH_PAM=ON,-DWITH_PAM=OFF,libpam" +PACKAGECONFIG[pulseaudio] = "-DWITH_PULSEAUDIO=ON,-DWITH_PULSEAUDIO=OFF,pulseaudio" +PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER_1_0=ON,-DWITH_GSTREAMER_1_0=OFF,gstreamer1.0 gstreamer1.0-plugins-base" +PACKAGECONFIG[cups] = "-DWITH_CUPS=ON,-DWITH_CUPS=OFF,cups" PACKAGES =+ "libfreerdp"
@@ -26,6 +41,13 @@ FILES_libfreerdp = "${libdir}/lib*${SOLIBS}" PACKAGES_DYNAMIC += "^libfreerdp-plugin-.*" +# we will need winpr-makecert to generate TLS certificates +do_install_append () { + install -m755 winpr/tools/makecert/cli/winpr-makecert ${D}${bindir} + rm -rf ${D}/${libdir}/cmake + rm -rf ${D}/${libdir}/freerdp +} + python populate_packages_prepend () { freerdp_root = d.expand('${libdir}/freerdp')
meta-oe/recipes-support/freerdp/freerdp/winpr-makecert-Build-with-install-RPATH.patch new file +31 -0
@@ -0,0 +1,31 @@ +From 253eafc8c8da83fc2b1a99a9e43824efc6105c7a Mon Sep 17 00:00:00 2001 +From: Manuel Bachmann <[email protected]> +Date: Sun, 4 Oct 2015 10:44:49 +0200 +Subject: [PATCH] winpr-makecert: Build with install RPATH + +As we are installing "winpr-makecert" manually, we do want +to refer to the library in DESTDIR, not the one resting in +the build tree. + +Signed-off-by: Manuel Bachmann <[email protected]> +--- + winpr/tools/makecert/cli/CMakeLists.txt | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/winpr/tools/makecert/cli/CMakeLists.txt b/winpr/tools/makecert/cli/CMakeLists.txt +index 17954c4..90c446b 100644 +--- a/winpr/tools/makecert/cli/CMakeLists.txt ++++ b/winpr/tools/makecert/cli/CMakeLists.txt +@@ -45,5 +45,9 @@ set(${MODULE_PREFIX}_LIBS winpr-makecert-tool) + + target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS}) + ++set_target_properties(${MODULE_NAME} PROPERTIES ++ BUILD_WITH_INSTALL_RPATH 1) ++ + set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "WinPR/Tools") + ++ +-- +1.8.3.1 +
meta-oe/recipes-support/freerdp/freerdp_git.bb +9 -9
@@ -5,17 +5,17 @@ include freerdp.inc inherit gitpkgv -PV = "1.0.2+gitr${SRCPV}" +PV = "1.2.5+gitr${SRCPV}" PKGV = "${GITPKGVTAG}" -EXTRA_OECMAKE += "-DWITH_MANPAGES=OFF" +EXTRA_OECMAKE += "-DBUILD_STATIC_LIBS=OFF \ + -DCMAKE_POSITION_INDEPENDANT_CODE=ON \ + -DWITH_MANPAGES=OFF \ + " -SRCREV = "f311acaffb9190567e2b478a98d7cbfaf2709f6b" -SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=stable-1.0" +SRCREV = "62da9d28c674814c81c245c1c7882eb0da7be76b" +SRC_URI = "git://github.com/FreeRDP/FreeRDP.git \ + file://winpr-makecert-Build-with-install-RPATH.patch \ + " S = "${WORKDIR}/git" - -PNBLACKLIST[freerdp] ?= "Installs into double prefix, causing all files installed in /usr/usr and empty packages" -# freerdp-1.0.2+gitrAUTOINC+f311acaffb: freerdp: Files/directories were installed but not shipped -# /usr/usr -# ....
Signature · 1 line
1.8.3.1
Quoted 12 lines · Manuel Bachmann
We make the "freerdp" recipe active again, fix the build by pulling a more recent version (the "stable" branches are buggy and useless), and fix ARM runtime with -fPIC.
We can then :
- make X11 non-mandatory ;
- add support for Wayland ("wlfreerdp" client) ;
- add support for DirectFB ("dfreerdp" client) ;
- add support for GStreamer 1.0 ;
- make "heavy" features such as pulseaudio, cups... non-mandatory.
Quoted 3 lines
We really want to install the "winpr-makecert" tool to have TLS, but CMake does not position its RPATH cleanly, so let us have a custom patch for that until it gets sorted out.
One more issue, it fails to build for qemuarm:
In file included from /home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/freerdp/1.2.5+gitrAUTOINC+62da9d28c6-r0/git/libfreerdp/primitives/prim_YCoCg_opt.c:32:0:/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/lib/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/5.2.0/include/arm_neon.h:31:2:
error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp
-mfpu=neon) to use arm_neon.h
#error You must enable NEON instructions (e.g. -mfloat-abi=softfp
-mfpu=neon) to use arm_neon.h
^
http://errors.yoctoproject.org/Errors/Details/20373/
Quoted 150 lines
Signed-off-by Manuel Bachmann <[email protected]>--- meta-oe/recipes-support/freerdp/freerdp.inc | 38 +++++++++++++++++----- .../winpr-makecert-Build-with-install-RPATH.patch | 31 ++++++++++++++++++ meta-oe/recipes-support/freerdp/freerdp_git.bb | 18 +++++----- 3 files changed, 70 insertions(+), 17 deletions(-) create mode 100644 meta-oe/recipes-support/freerdp/freerdp/winpr-makecert-Build-with-install-RPATH.patchmeta-oe/recipes-support/freerdp/freerdp.inc +30
-8@@ -1,23 +1,38 @@ # Copyright (C) 2010-2012 O.S. Systems Software Ltda. All Rights Reserved # Released under the MIT license -DESCRIPTION = "FreeRDP RDP client" +DESCRIPTION = "FreeRDP RDP client & server library" HOMEPAGE = "http://www.freerdp.com" -DEPENDS = "virtual/libx11 openssl libxcursor libxv cups alsa-lib pulseaudio pcsc-lite libxkbfile libxinerama" -SECTION = "x11/network" +DEPENDS = "openssl alsa-lib pcsc-lite" +SECTION = "net" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" inherit pkgconfig cmake -EXTRA_OECMAKE += "-DWITH_PULSEAUDIO=ON \ +EXTRA_OECMAKE += "-DWITH_ALSA=ON \ -DWITH_PCSC=ON \ - -DWITH_CUPS=ON \ -DWITH_FFMPEG=OFF \ -DWITH_CUNIT=OFF \ - -DWITH_X11=ON \ - -DWITH_XKBFILE=ON \ - -DWITH_XINERAMA=ON" + " + +PACKAGECONFIG ??= " \ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}\ + ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}\ + ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}\ + ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}\ + ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}\ + gstreamer cups \ + " + +X11_DEPS = "virtual/libx11 libxinerama libxext libxcursor libxv libxi libxrender libxfixes libxdamage libxrandr libxkbfile" +PACKAGECONFIG[x11] = "-DWITH_X11=ON -DWITH_XINERAMA=ON -DWITH_XEXT=ON -DWITH_XCURSOR=ON -DWITH_XV=ON -DWITH_XI=ON -DWITH_XRENDER=ON -DWITH_XFIXES=ON -DWITH_XDAMAGE=ON -DWITH_XRANDR=ON -DWITH_XKBFILE=ON,-DWITH_X11=OFF,${X11_DEPS}" +PACKAGECONFIG[wayland] = "-DWITH_WAYLAND=ON,-DWITH_WAYLAND=OFF,wayland" +PACKAGECONFIG[directfb] = "-DWITH_DIRECTFB=ON,-DWITH_DIRECTFB=OFF,directfb" +PACKAGECONFIG[pam] = "-DWITH_PAM=ON,-DWITH_PAM=OFF,libpam" +PACKAGECONFIG[pulseaudio] = "-DWITH_PULSEAUDIO=ON,-DWITH_PULSEAUDIO=OFF,pulseaudio" +PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER_1_0=ON,-DWITH_GSTREAMER_1_0=OFF,gstreamer1.0 gstreamer1.0-plugins-base" +PACKAGECONFIG[cups] = "-DWITH_CUPS=ON,-DWITH_CUPS=OFF,cups" PACKAGES =+ "libfreerdp"@@ -26,6 +41,13 @@ FILES_libfreerdp = "${libdir}/lib*${SOLIBS}" PACKAGES_DYNAMIC += "^libfreerdp-plugin-.*" +# we will need winpr-makecert to generate TLS certificates +do_install_append () { + install -m755 winpr/tools/makecert/cli/winpr-makecert ${D}${bindir} + rm -rf ${D}/${libdir}/cmake + rm -rf ${D}/${libdir}/freerdp +} + python populate_packages_prepend () { freerdp_root = d.expand('${libdir}/freerdp')meta-oe/recipes-support/freerdp/freerdp/winpr-makecert-Build-with-install-RPATH.patch new file +31
-0@@ -0,0 +1,31 @@ +From 253eafc8c8da83fc2b1a99a9e43824efc6105c7a Mon Sep 17 00:00:00 2001 +From: Manuel Bachmann <[email protected]> +Date: Sun, 4 Oct 2015 10:44:49 +0200 +Subject: [PATCH] winpr-makecert: Build with install RPATH + +As we are installing "winpr-makecert" manually, we do want +to refer to the library in DESTDIR, not the one resting in +the build tree. + +Signed-off-by: Manuel Bachmann <[email protected]> +--- + winpr/tools/makecert/cli/CMakeLists.txt | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/winpr/tools/makecert/cli/CMakeLists.txt b/winpr/tools/makecert/cli/CMakeLists.txt +index 17954c4..90c446b 100644 +--- a/winpr/tools/makecert/cli/CMakeLists.txt ++++ b/winpr/tools/makecert/cli/CMakeLists.txt +@@ -45,5 +45,9 @@ set(${MODULE_PREFIX}_LIBS winpr-makecert-tool) + + target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS}) + ++set_target_properties(${MODULE_NAME} PROPERTIES ++ BUILD_WITH_INSTALL_RPATH 1) ++ + set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "WinPR/Tools") + ++ +-- +1.8.3.1 +meta-oe/recipes-support/freerdp/freerdp_git.bb +9
-9@@ -5,17 +5,17 @@ include freerdp.inc inherit gitpkgv -PV = "1.0.2+gitr${SRCPV}" +PV = "1.2.5+gitr${SRCPV}" PKGV = "${GITPKGVTAG}" -EXTRA_OECMAKE += "-DWITH_MANPAGES=OFF" +EXTRA_OECMAKE += "-DBUILD_STATIC_LIBS=OFF \ + -DCMAKE_POSITION_INDEPENDANT_CODE=ON \ + -DWITH_MANPAGES=OFF \ + " -SRCREV = "f311acaffb9190567e2b478a98d7cbfaf2709f6b" -SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=stable-1.0" +SRCREV = "62da9d28c674814c81c245c1c7882eb0da7be76b" +SRC_URI = "git://github.com/FreeRDP/FreeRDP.git \ + file://winpr-makecert-Build-with-install-RPATH.patch \ + " S = "${WORKDIR}/git" - -PNBLACKLIST[freerdp] ?= "Installs into double prefix, causing all files installed in /usr/usr and empty packages" -# freerdp-1.0.2+gitrAUTOINC+f311acaffb: freerdp: Files/directories were installed but not shipped -# /usr/usr -# ....Signature · 7 lines
1.8.3.1 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Correct ; sending a v4 fixing this right now.
Regards,
*Manuel Bachmann, Graphics Engineer www.iot.bzh <http://iot.bzh> *
2015-10-09 16:48 GMT+02:00 Martin Jansa <[email protected]>:
Quoted 218 lines · Manuel Bachmann
Quoted 12 lines
We make the "freerdp" recipe active again, fix the build by pulling a more recent version (the "stable" branches are buggy and useless), and fix ARM runtime with -fPIC.
We can then :
- make X11 non-mandatory ;
- add support for Wayland ("wlfreerdp" client) ;
- add support for DirectFB ("dfreerdp" client) ;
- add support for GStreamer 1.0 ;
- make "heavy" features such as pulseaudio, cups... non-mandatory.Quoted 3 lines
We really want to install the "winpr-makecert" tool to have TLS, but CMake does not position its RPATH cleanly, so let us have a custom patch for that until it gets sorted out.
One more issue, it fails to build for qemuarm:
In file included from
/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/freerdp/1.2.5+gitrAUTOINC+62da9d28c6-r0/git/libfreerdp/primitives/prim_YCoCg_opt.c:32:0:
/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/lib/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/5.2.0/include/arm_neon.h:31:2:
error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp(quoted diff) +0
-2-mfpu=neon) to use arm_neon.h #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h ^http://errors.yoctoproject.org/Errors/Details/20373/
Quoted 4 lines
Signed-off-by Manuel Bachmann <[email protected]>--- meta-oe/recipes-support/freerdp/freerdp.inc | 38+++++++++++++++++-----
Quoted 1 line
.../winpr-makecert-Build-with-install-RPATH.patch | 31++++++++++++++++++
Quoted 3 lines
meta-oe/recipes-support/freerdp/freerdp_git.bb | 18 +++++----- 3 files changed, 70 insertions(+), 17 deletions(-) create mode 100644
meta-oe/recipes-support/freerdp/freerdp/winpr-makecert-Build-with-install-RPATH.patchReview
Quoted 2 lines
(quoted diff) +0
-0b/meta-oe/recipes-support/freerdp/freerdp.inc
meta-oe/recipes-support/freerdp/freerdp.inc line 1
Quoted 5 lines
index 34dac4b..af93e83 100644
meta-oe/recipes-support/freerdp/freerdp.inc +0
-0@@ -1,23 +1,38 @@ # Copyright (C) 2010-2012 O.S. Systems Software Ltda. All RightsReserved
meta-oe/recipes-support/freerdp/freerdp.inc
Quoted 6 lines
meta-oe/recipes-support/freerdp/freerdp.inc +1
-2# Released under the MIT license -DESCRIPTION = "FreeRDP RDP client" +DESCRIPTION = "FreeRDP RDP client & server library" HOMEPAGE = "http://www.freerdp.com" -DEPENDS = "virtual/libx11 openssl libxcursor libxv cups alsa-libpulseaudio pcsc-lite libxkbfile libxinerama"
Quoted 11 lines
meta-oe/recipes-support/freerdp/freerdp.inc +3
-2-SECTION = "x11/network" +DEPENDS = "openssl alsa-lib pcsc-lite" +SECTION = "net" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" inherit pkgconfig cmake -EXTRA_OECMAKE += "-DWITH_PULSEAUDIO=ON \ +EXTRA_OECMAKE += "-DWITH_ALSA=ON \ -DWITH_PCSC=ON \meta-oe/recipes-support/freerdp/freerdp.inc
Quoted 10 lines
meta-oe/recipes-support/freerdp/freerdp.inc +4
-4- -DWITH_CUPS=ON \ -DWITH_FFMPEG=OFF \ -DWITH_CUNIT=OFF \ - -DWITH_X11=ON \ - -DWITH_XKBFILE=ON \ - -DWITH_XINERAMA=ON" + " + +PACKAGECONFIG ??= " \ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11','', d)}\
meta-oe/recipes-support/freerdp/freerdp.inc line 21
Quoted 1 line
meta-oe/recipes-support/freerdp/freerdp.inc +1
-0+ ${@bb.utils.contains('DISTRO_FEATURES', 'wayland','wayland', '', d)}\
meta-oe/recipes-support/freerdp/freerdp.inc line 22
Quoted 1 line
meta-oe/recipes-support/freerdp/freerdp.inc +1
-0+ ${@bb.utils.contains('DISTRO_FEATURES', 'directfb','directfb', '', d)}\
meta-oe/recipes-support/freerdp/freerdp.inc line 23
Quoted 1 line
meta-oe/recipes-support/freerdp/freerdp.inc +1
-0+ ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam','', d)}\
meta-oe/recipes-support/freerdp/freerdp.inc line 24
Quoted 1 line
meta-oe/recipes-support/freerdp/freerdp.inc +1
-0+ ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio','pulseaudio', '', d)}\
meta-oe/recipes-support/freerdp/freerdp.inc
Quoted 4 lines
meta-oe/recipes-support/freerdp/freerdp.inc +4
-0+ gstreamer cups \ + " + +X11_DEPS = "virtual/libx11 libxinerama libxext libxcursor libxv libxilibxrender libxfixes libxdamage libxrandr libxkbfile"
Quoted 1 line
meta-oe/recipes-support/freerdp/freerdp.inc +1
-0+PACKAGECONFIG[x11] = "-DWITH_X11=ON -DWITH_XINERAMA=ON -DWITH_XEXT=ON(quoted diff) +0
-3-DWITH_XCURSOR=ON -DWITH_XV=ON -DWITH_XI=ON -DWITH_XRENDER=ON -DWITH_XFIXES=ON -DWITH_XDAMAGE=ON -DWITH_XRANDR=ON -DWITH_XKBFILE=ON,-DWITH_X11=OFF,${X11_DEPS}"meta-oe/recipes-support/freerdp/freerdp.inc line 31
Quoted 2 lines
meta-oe/recipes-support/freerdp/freerdp.inc +2
-0+PACKAGECONFIG[wayland] = "-DWITH_WAYLAND=ON,-DWITH_WAYLAND=OFF,wayland" +PACKAGECONFIG[directfb] ="-DWITH_DIRECTFB=ON,-DWITH_DIRECTFB=OFF,directfb"
meta-oe/recipes-support/freerdp/freerdp.inc line 33
Quoted 2 lines
meta-oe/recipes-support/freerdp/freerdp.inc +2
-0+PACKAGECONFIG[pam] = "-DWITH_PAM=ON,-DWITH_PAM=OFF,libpam" +PACKAGECONFIG[pulseaudio] ="-DWITH_PULSEAUDIO=ON,-DWITH_PULSEAUDIO=OFF,pulseaudio"
meta-oe/recipes-support/freerdp/freerdp.inc line 34
Quoted 1 line
meta-oe/recipes-support/freerdp/freerdp.inc +1
-0+PACKAGECONFIG[gstreamer] ="-DWITH_GSTREAMER_1_0=ON,-DWITH_GSTREAMER_1_0=OFF,gstreamer1.0 gstreamer1.0-plugins-base"
Quoted 18 lines
meta-oe/recipes-support/freerdp/freerdp.inc +8
-0+PACKAGECONFIG[cups] = "-DWITH_CUPS=ON,-DWITH_CUPS=OFF,cups" PACKAGES =+ "libfreerdp"@@ -26,6 +41,13 @@ FILES_libfreerdp = "${libdir}/lib*${SOLIBS}" PACKAGES_DYNAMIC += "^libfreerdp-plugin-.*" +# we will need winpr-makecert to generate TLS certificates +do_install_append () { + install -m755 winpr/tools/makecert/cli/winpr-makecert ${D}${bindir} + rm -rf ${D}/${libdir}/cmake + rm -rf ${D}/${libdir}/freerdp +} + python populate_packages_prepend () { freerdp_root = d.expand('${libdir}/freerdp')Quoted 1 line
diff --git
a/meta-oe/recipes-support/freerdp/freerdp/winpr-makecert-Build-with-install-RPATH.patchb/meta-oe/recipes-support/freerdp/freerdp/winpr-makecert-Build-with-install-RPATH.patchQuoted 4 lines
new file mode 100644
index 0000000..d279d6d
---/dev/null
+++
b/meta-oe/recipes-support/freerdp/freerdp/winpr-makecert-Build-with-install-RPATH.patchQuoted 6 lines
meta-oe/recipes-support/freerdp/freerdp.inc +5
-0@@ -0,0 +1,31 @@ +From 253eafc8c8da83fc2b1a99a9e43824efc6105c7a Mon Sep 17 00:00:00 2001 +From: Manuel Bachmann <[email protected]> +Date: Sun, 4 Oct 2015 10:44:49 +0200 +Subject: [PATCH] winpr-makecert: Build with install RPATH +meta-oe/recipes-support/freerdp/freerdp.inc line 15
Quoted 10 lines
meta-oe/recipes-support/freerdp/freerdp.inc +10
-0+As we are installing "winpr-makecert" manually, we do want +to refer to the library in DESTDIR, not the one resting in +the build tree. + +Signed-off-by: Manuel Bachmann <[email protected]> +--- + winpr/tools/makecert/cli/CMakeLists.txt | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/winpr/tools/makecert/cli/CMakeLists.txt
b/winpr/tools/makecert/cli/CMakeLists.txtReview
Quoted 17 lines
meta-oe/recipes-support/freerdp/freerdp.inc +16
-0+index 17954c4..90c446b 100644 +--- a/winpr/tools/makecert/cli/CMakeLists.txt ++++ b/winpr/tools/makecert/cli/CMakeLists.txt +@@ -45,5 +45,9 @@ set(${MODULE_PREFIX}_LIBS winpr-makecert-tool) + + target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS}) + ++set_target_properties(${MODULE_NAME} PROPERTIES ++ BUILD_WITH_INSTALL_RPATH 1) ++ + set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "WinPR/Tools") + ++ +-- +1.8.3.1 +(quoted diff) +0
-0b/meta-oe/recipes-support/freerdp/freerdp_git.bb
Quoted 17 lines
index fd7f74c..f9cb9a6 100644
meta-oe/recipes-support/freerdp/freerdp_git.bb +5
-2@@ -5,17 +5,17 @@ include freerdp.inc inherit gitpkgv -PV = "1.0.2+gitr${SRCPV}" +PV = "1.2.5+gitr${SRCPV}" PKGV = "${GITPKGVTAG}" -EXTRA_OECMAKE += "-DWITH_MANPAGES=OFF" +EXTRA_OECMAKE += "-DBUILD_STATIC_LIBS=OFF \ + -DCMAKE_POSITION_INDEPENDANT_CODE=ON \ + -DWITH_MANPAGES=OFF \ + "meta-oe/recipes-support/freerdp/freerdp_git.bb include freerdp.inc · line 18
Quoted 10 lines
meta-oe/recipes-support/freerdp/freerdp_git.bb +4
-4-SRCREV = "f311acaffb9190567e2b478a98d7cbfaf2709f6b" -SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=stable-1.0" +SRCREV = "62da9d28c674814c81c245c1c7882eb0da7be76b" +SRC_URI = "git://github.com/FreeRDP/FreeRDP.git \ + file://winpr-makecert-Build-with-install-RPATH.patch \ + " S = "${WORKDIR}/git" - -PNBLACKLIST[freerdp] ?= "Installs into double prefix, causing all filesinstalled in
/usr/usrand empty packages"meta-oe/recipes-support/freerdp/freerdp_git.bb include freerdp.inc · line 19
Quoted 1 line
meta-oe/recipes-support/freerdp/freerdp_git.bb +0
-1-# freerdp-1.0.2+gitrAUTOINC+f311acaffb: freerdp: Files/directories wereinstalled but not shipped
Quoted 10 lines
meta-oe/recipes-support/freerdp/freerdp_git.bb +0
-3-# /usr/usr -# .... --1.8.3.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
Martin 'JaMa' Jansa jabber: [email protected]--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel