From c9253253c1cb80fb8574c3d313a129b64b4ad2a1 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Thu, 24 Feb 2011 09:43:52 +0100 Subject: synergy: fix build Closes #3307 Synergy needs libXtst, a toolchain with wchar support and was missing an include for exit(). Signed-off-by: Peter Korsgaard --- package/synergy/Config.in | 6 ++++-- package/synergy/synergy-1.3.1-exit.patch | 21 +++++++++++++++++++++ package/synergy/synergy.mk | 2 +- 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 package/synergy/synergy-1.3.1-exit.patch (limited to 'package/synergy') diff --git a/package/synergy/Config.in b/package/synergy/Config.in index a2766b13e..7d8c54ece 100644 --- a/package/synergy/Config.in +++ b/package/synergy/Config.in @@ -2,6 +2,8 @@ config BR2_PACKAGE_SYNERGY bool "synergy" depends on BR2_PACKAGE_XORG7 depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_USE_WCHAR + select BR2_PACKAGE_XLIB_LIBXTST help Synergy lets you easily share a single mouse and keyboard between multiple computers with different @@ -10,5 +12,5 @@ config BR2_PACKAGE_SYNERGY http://synergy2.sourceforge.net/ -comment "synergy requires a toolchain with C++ support enabled" - depends on BR2_PACKAGE_XORG7 && !BR2_INSTALL_LIBSTDCPP +comment "synergy requires a toolchain with C++ and WCHAR support enabled" + depends on BR2_PACKAGE_XORG7 && !BR2_INSTALL_LIBSTDCPP && !BR2_USE_WCHAR diff --git a/package/synergy/synergy-1.3.1-exit.patch b/package/synergy/synergy-1.3.1-exit.patch new file mode 100644 index 000000000..1eb665f55 --- /dev/null +++ b/package/synergy/synergy-1.3.1-exit.patch @@ -0,0 +1,21 @@ +[PATCH] fix build issue in CArchDaemonUnix + +exit() needs #include for the prototype. + +Signed-off-by: Peter Korsgaard +--- + lib/arch/CArchDaemonUnix.cpp | 1 + + 1 file changed, 1 insertion(+) + +Index: synergy-1.3.1/lib/arch/CArchDaemonUnix.cpp +=================================================================== +--- synergy-1.3.1.orig/lib/arch/CArchDaemonUnix.cpp ++++ synergy-1.3.1/lib/arch/CArchDaemonUnix.cpp +@@ -19,6 +19,7 @@ + #include + #include + #include ++#include + + // + // CArchDaemonUnix diff --git a/package/synergy/synergy.mk b/package/synergy/synergy.mk index f70806d25..ce3f2141a 100644 --- a/package/synergy/synergy.mk +++ b/package/synergy/synergy.mk @@ -11,6 +11,6 @@ SYNERGY_AUTORECONF = NO SYNERGY_INSTALL_STAGING = NO SYNERGY_INSTALL_TARGET = YES -SYNERGY_DEPENDENCIES = xserver_xorg-server +SYNERGY_DEPENDENCIES = xserver_xorg-server xlib_libXtst $(eval $(call AUTOTARGETS,package,synergy)) -- cgit v1.2.3