diff options
Diffstat (limited to 'x11/libxklavier/files')
9 files changed, 104 insertions, 71 deletions
diff --git a/x11/libxklavier/files/patch-configure b/x11/libxklavier/files/patch-configure new file mode 100644 index 000000000000..4de85e18100f --- /dev/null +++ b/x11/libxklavier/files/patch-configure @@ -0,0 +1,33 @@ +--- configure.orig Mon Dec 13 00:57:33 2004 ++++ configure Mon Dec 13 00:58:14 2004 +@@ -20135,9 +20135,9 @@ + + echo "$as_me:$LINENO: checking whether at least one libxklavier backend is enabled" >&5 + echo $ECHO_N "checking whether at least one libxklavier backend is enabled... $ECHO_C" >&6 +-if test \( "$enable_xkb_support" == "yes" -a \ +- "$xkb_headers_present" == "yes" \) -o \ +- "$enable_xmm_support" == "yes" ; then ++if test \( "$enable_xkb_support" = "yes" -a \ ++ "$xkb_headers_present" = "yes" \) -o \ ++ "$enable_xmm_support" = "yes" ; then + echo "$as_me:$LINENO: result: yes" >&5 + echo "${ECHO_T}yes" >&6 + else +@@ -21744,14 +21744,14 @@ + + echo '**********************************************************' + echo ' Libxklavier is configured with the following backends:' +-if test "$enable_xkb_support" == "yes" ; then +- if test "$xkb_headers_present" == "yes" ; then ++if test "$enable_xkb_support" = "yes" ; then ++ if test "$xkb_headers_present" = "yes" ; then + echo ' XKB (libxkbfile headers are present)' + else + echo ' XKB (but libxkbfile headers are NOT present)' + fi + fi +-if test "$enable_xmm_support" == "yes" ; then ++if test "$enable_xmm_support" = "yes" ; then + echo ' xmodmap' + fi + echo '**********************************************************' diff --git a/x11/libxklavier/files/patch-libxklavier-xklavier_config_i18n.c b/x11/libxklavier/files/patch-libxklavier-xklavier_config_i18n.c deleted file mode 100644 index fed33a78f971..000000000000 --- a/x11/libxklavier/files/patch-libxklavier-xklavier_config_i18n.c +++ /dev/null @@ -1,18 +0,0 @@ ---- libxklavier/xklavier_config_i18n.c.orig Mon Oct 25 21:55:29 2004 -+++ libxklavier/xklavier_config_i18n.c Mon Oct 25 21:56:51 2004 -@@ -142,13 +142,14 @@ - XklDebug( 0, - "Unable to convert %s from UTF-8 to %s, this string will probably display wrong.", - utf8string, charset ); -+ iconv_close( converter ); - return strdup( utf8string ); - } - *convertedStart = '\0'; - - iconv_close( converter ); - -- return converted; -+ return strdup( converted ); - } - - /* diff --git a/x11/libxklavier/files/patch-libxklavier-xklavier_config_xkb.c b/x11/libxklavier/files/patch-libxklavier-xklavier_config_xkb.c deleted file mode 100644 index 946d2d5808b9..000000000000 --- a/x11/libxklavier/files/patch-libxklavier-xklavier_config_xkb.c +++ /dev/null @@ -1,15 +0,0 @@ ---- libxklavier/xklavier_config_xkb.c.orig Fri Oct 1 22:04:54 2004 -+++ libxklavier/xklavier_config_xkb.c Tue Oct 12 18:44:59 2004 -@@ -184,10 +184,11 @@ - - if ( supportState == UNCHECKED ) - { -+ XkbRF_RulesPtr rulesPtr; - XklDebug( 100, "!!! Checking multiple layouts support\n" ); - supportState = NON_SUPPORTED; - #ifdef XKB_HEADERS_PRESENT -- XkbRF_RulesPtr rulesPtr = _XklLoadRulesSet(); -+ rulesPtr = _XklLoadRulesSet(); - if ( rulesPtr ) - { - XkbRF_VarDefsRec varDefs; diff --git a/x11/libxklavier/files/patch-libxklavier_xklavier.c b/x11/libxklavier/files/patch-libxklavier_xklavier.c new file mode 100644 index 000000000000..195b48534da1 --- /dev/null +++ b/x11/libxklavier/files/patch-libxklavier_xklavier.c @@ -0,0 +1,23 @@ +--- libxklavier/xklavier.c.orig Tue Nov 2 16:58:48 2004 ++++ libxklavier/xklavier.c Tue Nov 23 19:56:29 2004 +@@ -536,7 +536,7 @@ + int level, const char format[], va_list args ) + { + time_t now = time( NULL ); +- fprintf( stdout, "[%08ld,%03d,%s:%s/] \t", now, level, file, function ); ++ fprintf( stdout, "[%08ld,%03d,%s:%s/] \t", (long) now, level, file, function ); + vfprintf( stdout, format, args ); + } + +@@ -700,9 +700,10 @@ + { + if ( xklVTable == NULL ) + { ++ char *p; + XklDebug( 0, "ERROR: XKL VTable is NOT initialized.\n" ); + /* force the crash! */ +- char *p = NULL; *p = '\0'; ++ p = NULL; *p = '\0'; + } + } + diff --git a/x11/libxklavier/files/patch-libxklavier_xklavier_config_i18n.c b/x11/libxklavier/files/patch-libxklavier_xklavier_config_i18n.c new file mode 100644 index 000000000000..0ef120607f55 --- /dev/null +++ b/x11/libxklavier/files/patch-libxklavier_xklavier_config_i18n.c @@ -0,0 +1,11 @@ +--- libxklavier/xklavier_config_i18n.c.orig Tue Nov 23 18:33:37 2004 ++++ libxklavier/xklavier_config_i18n.c Tue Nov 23 18:34:30 2004 +@@ -106,7 +106,7 @@ + iconv_t converter; + static char converted[XKL_MAX_CI_DESC_LENGTH]; + char *convertedStart = converted; +- char *utfStart = ( char * ) utf8string; ++ const char *utfStart = ( const char * ) utf8string; + size_t clen = XKL_MAX_CI_DESC_LENGTH - 1; + const char *charset; + diff --git a/x11/libxklavier/files/patch-libxklavier_xklavier_evt_xmm.c b/x11/libxklavier/files/patch-libxklavier_xklavier_evt_xmm.c new file mode 100644 index 000000000000..8dbfe37c7977 --- /dev/null +++ b/x11/libxklavier/files/patch-libxklavier_xklavier_evt_xmm.c @@ -0,0 +1,22 @@ +--- libxklavier/xklavier_evt_xmm.c.orig Tue Nov 30 02:18:31 2004 ++++ libxklavier/xklavier_evt_xmm.c Tue Nov 30 02:20:24 2004 +@@ -13,15 +13,15 @@ + { + if( _xklListenerType & XKLL_MANAGE_LAYOUTS ) + { +- XklDebug( 200, "Processing the KeyPress event\n" ); + int currentShortcut = 0; + const XmmSwitchOptionPtr sop = _XklXmmFindSwitchOption( kpe->keycode, +- kpe->state, +- ¤tShortcut ); ++ kpe->state, ++ ¤tShortcut ); ++ XklDebug( 200, "Processing the KeyPress event\n" ); + if( sop != NULL ) + { +- XklDebug( 150, "It is THE shortcut\n" ); + XklState state; ++ XklDebug( 150, "It is THE shortcut\n" ); + _XklXmmGetRealState( &state ); + if( state.group != -1 ) + { diff --git a/x11/libxklavier/files/patch-libxklavier_xklavier_xmm.c b/x11/libxklavier/files/patch-libxklavier_xklavier_xmm.c new file mode 100644 index 000000000000..6db8c55088c3 --- /dev/null +++ b/x11/libxklavier/files/patch-libxklavier_xklavier_xmm.c @@ -0,0 +1,15 @@ +--- libxklavier/xklavier_xmm.c.orig Tue Nov 30 02:17:37 2004 ++++ libxklavier/xklavier_xmm.c Tue Nov 30 02:17:51 2004 +@@ -66,10 +66,11 @@ + const XmmSwitchOptionPtr _XklXmmGetCurrentShortcut() + { + const char* optionName = _XklXmmGetCurrentShortcutOptionName(); ++ XmmSwitchOptionPtr switchOption; + XklDebug( 150, "Configured switch option: [%s]\n", optionName ); + if( optionName == NULL ) + return NULL; +- XmmSwitchOptionPtr switchOption = allSwitchOptions; ++ switchOption = allSwitchOptions; + while( switchOption->optionName != NULL ) + { + if( !strcmp( switchOption->optionName, optionName ) ) diff --git a/x11/libxklavier/files/patch-tests-test_config.c b/x11/libxklavier/files/patch-tests-test_config.c deleted file mode 100644 index cc374f0b96d2..000000000000 --- a/x11/libxklavier/files/patch-tests-test_config.c +++ /dev/null @@ -1,19 +0,0 @@ ---- tests/test_config.c.orig Fri Oct 1 21:52:02 2004 -+++ tests/test_config.c Tue Oct 12 18:46:32 2004 -@@ -46,6 +46,7 @@ - const char* layouts = NULL; - const char* options = NULL; - int debugLevel = 0; -+ Display* dpy; - - while (1) - { -@@ -89,7 +90,7 @@ - exit( 0 ); - } - -- Display* dpy = XOpenDisplay( NULL ); -+ dpy = XOpenDisplay( NULL ); - if ( dpy == NULL ) - { - fprintf( stderr, "Could not open display\n" ); diff --git a/x11/libxklavier/files/patch-tests-test_monitor.c b/x11/libxklavier/files/patch-tests-test_monitor.c deleted file mode 100644 index 3fcc08426904..000000000000 --- a/x11/libxklavier/files/patch-tests-test_monitor.c +++ /dev/null @@ -1,19 +0,0 @@ ---- tests/test_monitor.c.orig Fri Oct 1 21:52:02 2004 -+++ tests/test_monitor.c Tue Oct 12 18:47:32 2004 -@@ -42,6 +42,7 @@ - int c; - int debugLevel = 0; - XkbEvent ev; -+ Display* dpy; - - while (1) - { -@@ -63,7 +64,7 @@ - } - } - -- Display* dpy = XOpenDisplay( NULL ); -+ dpy = XOpenDisplay( NULL ); - if ( dpy == NULL ) - { - fprintf( stderr, "Could not open display\n" ); |