From b06bc6483a0239e748d9104f8428ad7b9a3edabf Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 22 Apr 2016 17:57:52 -0700 Subject: [PATCH] fix pkgconfig module name and adjust to an API change See https://bugs.freedesktop.org/show_bug.cgi?id=94520 --- ...update-freerdp-pkgconfig-module-name.patch | 27 +++++++++++++++++ ...eight-to-rfx_context_reset-and-nsc_c.patch | 29 +++++++++++++++++++ weston.spec | 18 +++++++++++- 3 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 0001-update-freerdp-pkgconfig-module-name.patch create mode 100644 0002-pass-width-and-height-to-rfx_context_reset-and-nsc_c.patch diff --git a/0001-update-freerdp-pkgconfig-module-name.patch b/0001-update-freerdp-pkgconfig-module-name.patch new file mode 100644 index 0000000..3c40f46 --- /dev/null +++ b/0001-update-freerdp-pkgconfig-module-name.patch @@ -0,0 +1,27 @@ +From cc1a2a718392589b3125be165f57928a668a9d26 Mon Sep 17 00:00:00 2001 +From: Adam Williamson +Date: Fri, 22 Apr 2016 17:12:33 -0700 +Subject: [PATCH] update freerdp pkgconfig module name + +they renamed it to include the major release number. +https://github.com/FreeRDP/FreeRDP/commit/6fa36081 +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 670200c..6dafb7c 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -242,7 +242,7 @@ AM_CONDITIONAL([ENABLE_RDP_COMPOSITOR], + [test x$enable_rdp_compositor = xyes]) + if test x$enable_rdp_compositor = xyes; then + AC_DEFINE([BUILD_RDP_COMPOSITOR], [1], [Build the RDP compositor]) +- PKG_CHECK_MODULES(RDP_COMPOSITOR, [freerdp >= 1.1.0]) ++ PKG_CHECK_MODULES(RDP_COMPOSITOR, [freerdp2 >= 1.1.0]) + + SAVED_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $RDP_COMPOSITOR_CFLAGS" +-- +2.5.5 + diff --git a/0002-pass-width-and-height-to-rfx_context_reset-and-nsc_c.patch b/0002-pass-width-and-height-to-rfx_context_reset-and-nsc_c.patch new file mode 100644 index 0000000..745776c --- /dev/null +++ b/0002-pass-width-and-height-to-rfx_context_reset-and-nsc_c.patch @@ -0,0 +1,29 @@ +From 864bd77bad1c77040764a89bf7aa275d7fc5b5e9 Mon Sep 17 00:00:00 2001 +From: Adam Williamson +Date: Fri, 22 Apr 2016 17:39:58 -0700 +Subject: [PATCH 2/2] pass width and height to rfx_context_reset and nsc_context_reset + +upstream freerdp changed this API in 2e110c7f +--- + src/compositor-rdp.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c +index 773b6b5..e47bb79 100644 +--- a/src/compositor-rdp.c ++++ b/src/compositor-rdp.c +@@ -867,9 +867,9 @@ xf_peer_activate(freerdp_peer* client) + } + } + +- rfx_context_reset(peerCtx->rfx_context); ++ rfx_context_reset(peerCtx->rfx_context, output->base.width, output->base.height); + #ifdef HAVE_NSC_RESET +- nsc_context_reset(peerCtx->nsc_context); ++ nsc_context_reset(peerCtx->nsc_context, output->base.width, output->base.height); + #endif + + if (peersItem->flags & RDP_PEER_ACTIVATED) +-- +2.5.5 + diff --git a/weston.spec b/weston.spec index 28ef6a3..7215b85 100644 --- a/weston.spec +++ b/weston.spec @@ -6,6 +6,12 @@ Group: User Interface/X License: BSD and CC-BY-SA URL: http://wayland.freedesktop.org/ Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz +# https://bugs.freedesktop.org/show_bug.cgi?id=94520 +# Update freerdp pkgconfig module name +Patch0: 0001-update-freerdp-pkgconfig-module-name.patch +# https://bugs.freedesktop.org/show_bug.cgi?id=94520 +# adjust to a freerdp API change +Patch1: 0002-pass-width-and-height-to-rfx_context_reset-and-nsc_c.patch BuildRequires: cairo-devel >= 1.10.0 BuildRequires: glib2-devel @@ -40,8 +46,12 @@ BuildRequires: systemd-devel BuildRequires: dbus-devel BuildRequires: lcms2-devel BuildRequires: colord-devel -BuildRequires: freerdp-devel >= 1.1.0 +BuildRequires: freerdp-devel >= 2.0.0 BuildRequires: wayland-protocols-devel +# For autoreconf for Patch0, remove when no longer needed +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool %description Weston is the reference wayland compositor that can run on KMS, under X11 @@ -56,8 +66,14 @@ Common headers for weston %prep %setup -q +# autosetup does not work with patch1 for some absurd reason +%patch0 -p1 +%patch1 -p1 %build +# required for Patch0, drop when no longer needed +autoreconf -i + %configure --disable-static --disable-setuid-install --enable-xwayland \ --enable-rdp-compositor make %{?_smp_mflags}