Subject: xsrc/6559: XKB allways disabled
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthieu Herrb <matthieu@bluenote.laas.fr>
List: netbsd-bugs
Date: 12/09/1998 21:57:07
>Number:         6559
>Category:       xsrc
>Synopsis:       XKB allways disabled
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec  9 13:05:01 1998
>Last-Modified:
>Originator:     Matthieu Herrb
>Organization:
	LAAS/CNRS
>Release:        NetBSD-current 1998/12/09
>Environment:
	
System: NetBSD bluenote 1.3I NetBSD 1.3I (BLUENOTE) #0: Sun Dec 6 02:36:03 PST 1998 matthieu@bluenote:/local/NetBSD/src/sys/arch/i386/compile/BLUENOTE i386


>Description:
	The NetBSD.cf configuration file defines a DfltDisableXKB CPP 
variable to optionnaly disable the XKB extension. Unfortunatly the way 
the variable is tested in xc/programs/Xserver/xkb has the effect of
disabling the extension regardless of the variable's value.

>How-To-Repeat:
	Verify that DfltDisableXKB is set to NO in NetBSD.cf and build 
xsrc. The verify (using xdpyinfo) that XKB is disabled.	

>Fix:
Apply the following patch:

*** xsrc/xc/programs/Xserver/xkb/Imakefile~	Fri Aug 22 11:34:42 1997
--- xsrc/xc/programs/Xserver/xkb/Imakefile	Wed Dec  9 19:40:35 1998
***************
*** 16,22 ****
  #endif
  #endif
  
! #ifdef DfltDisableXKB
  XKB_DISABLE = -DXKB_DFLT_DISABLED=1
  #else
  XKB_DISABLE = -DXKB_DFLT_DISABLED=0
--- 16,22 ----
  #endif
  #endif
  
! #if DfltDisableXKB
  XKB_DISABLE = -DXKB_DFLT_DISABLED=1
  #else
  XKB_DISABLE = -DXKB_DFLT_DISABLED=0

>Audit-Trail:
>Unformatted: