fix pkgconfig module name and adjust to an API change
See https://bugs.freedesktop.org/show_bug.cgi?id=94520
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
From cc1a2a718392589b3125be165f57928a668a9d26 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Adam Williamson <awilliam@redhat.com>
|
||||||
|
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
|
||||||
|
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
From 864bd77bad1c77040764a89bf7aa275d7fc5b5e9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Adam Williamson <awilliam@redhat.com>
|
||||||
|
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
|
||||||
|
|
||||||
+17
-1
@@ -6,6 +6,12 @@ Group: User Interface/X
|
|||||||
License: BSD and CC-BY-SA
|
License: BSD and CC-BY-SA
|
||||||
URL: http://wayland.freedesktop.org/
|
URL: http://wayland.freedesktop.org/
|
||||||
Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
|
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: cairo-devel >= 1.10.0
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
@@ -40,8 +46,12 @@ BuildRequires: systemd-devel
|
|||||||
BuildRequires: dbus-devel
|
BuildRequires: dbus-devel
|
||||||
BuildRequires: lcms2-devel
|
BuildRequires: lcms2-devel
|
||||||
BuildRequires: colord-devel
|
BuildRequires: colord-devel
|
||||||
BuildRequires: freerdp-devel >= 1.1.0
|
BuildRequires: freerdp-devel >= 2.0.0
|
||||||
BuildRequires: wayland-protocols-devel
|
BuildRequires: wayland-protocols-devel
|
||||||
|
# For autoreconf for Patch0, remove when no longer needed
|
||||||
|
BuildRequires: autoconf
|
||||||
|
BuildRequires: automake
|
||||||
|
BuildRequires: libtool
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Weston is the reference wayland compositor that can run on KMS, under X11
|
Weston is the reference wayland compositor that can run on KMS, under X11
|
||||||
@@ -56,8 +66,14 @@ Common headers for weston
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
# autosetup does not work with patch1 for some absurd reason
|
||||||
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# required for Patch0, drop when no longer needed
|
||||||
|
autoreconf -i
|
||||||
|
|
||||||
%configure --disable-static --disable-setuid-install --enable-xwayland \
|
%configure --disable-static --disable-setuid-install --enable-xwayland \
|
||||||
--enable-rdp-compositor
|
--enable-rdp-compositor
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|||||||
Reference in New Issue
Block a user