patches/gnome-settings-daemon-01-no-libgnomekbd.diff
author rohinis
Tue, 29 Nov 2011 17:32:55 +0000
branchs11express-2010-11
changeset 22234 c23e64da3e06
parent 17793 208207fdc93f
permissions -rw-r--r--
2011-11-29 Rohini S <[email protected]> * patches/Python26-22-audio.diff: Fixes CVE-2010-1634 * specs/SUNWPython26.spec: Fixes CR 7085446
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16219
360da72b613e 2009-08-07 Darren Kenny <[email protected]>
dkenny
parents: 15621
diff changeset
     1
diff -up gnome-settings-daemon-2.27.5/config.h.in.orig gnome-settings-daemon-2.27.5/config.h.in
360da72b613e 2009-08-07 Darren Kenny <[email protected]>
dkenny
parents: 15621
diff changeset
     2
--- gnome-settings-daemon-2.27.5/config.h.in.orig	2009-07-27 23:26:58.000000000 +0100
360da72b613e 2009-08-07 Darren Kenny <[email protected]>
dkenny
parents: 15621
diff changeset
     3
+++ gnome-settings-daemon-2.27.5/config.h.in	2009-08-07 10:19:58.717269427 +0100
360da72b613e 2009-08-07 Darren Kenny <[email protected]>
dkenny
parents: 15621
diff changeset
     4
@@ -108,3 +108,7 @@
11506
d0a8837ccb74 2008-01-23 Darren Kenny <[email protected]>
dkenny
parents:
diff changeset
     5
 
d0a8837ccb74 2008-01-23 Darren Kenny <[email protected]>
dkenny
parents:
diff changeset
     6
 /* Define to 1 if the X Window System is missing or not being used. */
d0a8837ccb74 2008-01-23 Darren Kenny <[email protected]>
dkenny
parents:
diff changeset
     7
 #undef X_DISPLAY_MISSING
d0a8837ccb74 2008-01-23 Darren Kenny <[email protected]>
dkenny
parents:
diff changeset
     8
+
d0a8837ccb74 2008-01-23 Darren Kenny <[email protected]>
dkenny
parents:
diff changeset
     9
+/* Defined when gswitchit is detected */
d0a8837ccb74 2008-01-23 Darren Kenny <[email protected]>
dkenny
parents:
diff changeset
    10
+#undef HAVE_GSWITCHIT
d0a8837ccb74 2008-01-23 Darren Kenny <[email protected]>
dkenny
parents:
diff changeset
    11
+
d0a8837ccb74 2008-01-23 Darren Kenny <[email protected]>
dkenny
parents:
diff changeset
    12
15621
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    13
--- gnome-settings-daemon-2.26.1/plugins/keyboard/gsd-keyboard-manager.c.ori	2009-04-15 07:07:26.999526943 +0100
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    14
+++ gnome-settings-daemon-2.26.1/plugins/keyboard/gsd-keyboard-manager.c	2009-04-15 07:08:43.002715791 +0100
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    15
@@ -36,6 +36,7 @@
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    16
 #include <gdk/gdk.h>
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    17
 #include <gdk/gdkx.h>
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    18
 #include <gtk/gtk.h>
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    19
+#include <gconf/gconf-client.h>
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    20
 
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    21
 #ifdef HAVE_X11_EXTENSIONS_XF86MISC_H
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    22
 #  include <X11/extensions/xf86misc.h>
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    23
@@ -48,7 +49,9 @@
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    24
 #include "gnome-settings-profile.h"
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    25
 #include "gsd-keyboard-manager.h"
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    26
 
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    27
+#ifdef HAVE_GSWITCHIT
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    28
 #include "gsd-keyboard-xkb.h"
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    29
+#endif
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    30
 #include "gsd-xmodmap.h"
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    31
 
b447de05cc21 Bump to 2.26.1
davelam
parents: 15054
diff changeset
    32
 #define GSD_KEYBOARD_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GSD_TYPE_KEYBOARD_MANAGER, GsdKeyboardManagerPrivate))
17569
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    33
diff -ruN gnome-settings-daemon-2.29.6.orig/configure.ac gnome-settings-daemon-2.29.6/configure.ac
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    34
--- gnome-settings-daemon-2.29.6.orig/configure.ac	2010-02-02 21:06:07.411263241 +0000
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    35
+++ gnome-settings-daemon-2.29.6/configure.ac	2010-02-02 21:06:43.656906338 +0000
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    36
@@ -220,9 +220,19 @@
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    37
 AC_SUBST(XF86MISC_LIBS)
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    38
 AC_CHECK_X_HEADERS([X11/extensions/XKB.h])
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    39
 
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    40
-PKG_CHECK_MODULES(LIBGNOMEKBDUI, [libgnomekbdui >= 2.29.5 libgnomekbd >= 2.29.5 libxklavier >= 5.0])
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    41
-AC_SUBST(LIBGNOMEKBDUI_CFLAGS)
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    42
-AC_SUBST(LIBGNOMEKBDUI_LIBS)
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    43
+AC_ARG_ENABLE(gswitchit,
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    44
+       AC_HELP_STRING([--disable-gswitchit],
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    45
+                      [Do not build with gswitchit support]),,
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    46
+                       enable_gswitchit=yes)
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    47
+
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    48
+if test x$enable_libxklavier = xyes; then
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    49
+    PKG_CHECK_MODULES(LIBGNOMEKBD, [libgnomekbd >= 2.21.4 libxklavier >= 4.0])
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    50
+    AC_SUBST(LIBGNOMEKBD_CFLAGS)
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    51
+    AC_SUBST(LIBGNOMEKBD_LIBS)
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    52
+
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    53
+    AC_DEFINE([HAVE_GSWITCHIT], 1, [Defined when gswitchit is detected])
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    54
+fi
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    55
+AM_CONDITIONAL(HAVE_GSWITCHIT, [test $enable_gswitchit = yes])
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    56
 
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    57
 dnl ---------------------------------------------------------------------------
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    58
 dnl - Housekeeping plugin stuff
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    59
diff -ruN gnome-settings-daemon-2.29.6.orig/plugins/Makefile.am gnome-settings-daemon-2.29.6/plugins/Makefile.am
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    60
--- gnome-settings-daemon-2.29.6.orig/plugins/Makefile.am	2010-02-02 22:25:29.229272945 +0000
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    61
+++ gnome-settings-daemon-2.29.6/plugins/Makefile.am	2010-02-02 22:25:39.768885880 +0000
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    62
@@ -9,7 +9,6 @@
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    63
 	font		\
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    64
 	housekeeping    \
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    65
 	keybindings	\
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    66
-	keyboard	\
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    67
 	media-keys	\
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    68
 	mouse		\
c00759bc4834 0-02-23 Christian Kelly <[email protected]>
chrisk
parents: 16219
diff changeset
    69
 	sound		\
17793
208207fdc93f 2010-04-03 Christian Kelly <[email protected]>
chrisk
parents: 17569
diff changeset
    70
diff -ruN gnome-settings-daemon-2.30.0.orig/plugins/keyboard/gsd-keyboard-manager.c gnome-settings-daemon-2.30.0/plugins/keyboard/gsd-keyboard-manager.c
208207fdc93f 2010-04-03 Christian Kelly <[email protected]>
chrisk
parents: 17569
diff changeset
    71
--- gnome-settings-daemon-2.30.0.orig/plugins/keyboard/gsd-keyboard-manager.c	2010-04-03 22:37:07.453732740 +0100
208207fdc93f 2010-04-03 Christian Kelly <[email protected]>
chrisk
parents: 17569
diff changeset
    72
+++ gnome-settings-daemon-2.30.0/plugins/keyboard/gsd-keyboard-manager.c	2010-04-03 22:39:28.378882891 +0100
208207fdc93f 2010-04-03 Christian Kelly <[email protected]>
chrisk
parents: 17569
diff changeset
    73
@@ -397,9 +397,11 @@
208207fdc93f 2010-04-03 Christian Kelly <[email protected]>
chrisk
parents: 17569
diff changeset
    74
 
208207fdc93f 2010-04-03 Christian Kelly <[email protected]>
chrisk
parents: 17569
diff changeset
    75
         gconf_client_add_dir (client, GSD_KEYBOARD_KEY, GCONF_CLIENT_PRELOAD_RECURSIVE, NULL);
208207fdc93f 2010-04-03 Christian Kelly <[email protected]>
chrisk
parents: 17569
diff changeset
    76
 
208207fdc93f 2010-04-03 Christian Kelly <[email protected]>
chrisk
parents: 17569
diff changeset
    77
+#ifdef HAVE_GSWITCHIT
208207fdc93f 2010-04-03 Christian Kelly <[email protected]>
chrisk
parents: 17569
diff changeset
    78
         /* Essential - xkb initialization should happen before */
208207fdc93f 2010-04-03 Christian Kelly <[email protected]>
chrisk
parents: 17569
diff changeset
    79
         gsd_keyboard_xkb_set_post_activation_callback ((PostActivationCallback) gsd_load_modmap_files, NULL);
208207fdc93f 2010-04-03 Christian Kelly <[email protected]>
chrisk
parents: 17569
diff changeset
    80
         gsd_keyboard_xkb_init (client, manager);
208207fdc93f 2010-04-03 Christian Kelly <[email protected]>
chrisk
parents: 17569
diff changeset
    81
+#endif
208207fdc93f 2010-04-03 Christian Kelly <[email protected]>
chrisk
parents: 17569
diff changeset
    82
 
208207fdc93f 2010-04-03 Christian Kelly <[email protected]>
chrisk
parents: 17569
diff changeset
    83
 #ifdef HAVE_X11_EXTENSIONS_XKB_H
208207fdc93f 2010-04-03 Christian Kelly <[email protected]>
chrisk
parents: 17569
diff changeset
    84
         numlock_xkb_init (manager);