From fernan@pi.iib.unsam.edu.ar  Tue Sep 30 07:33:15 2003
Return-Path: <fernan@pi.iib.unsam.edu.ar>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 55FC616A4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 30 Sep 2003 07:33:15 -0700 (PDT)
Received: from smtp.unsam.edu.ar (smtp.unsam.edu.ar [170.210.48.3])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 88A1D43F93
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 30 Sep 2003 07:33:10 -0700 (PDT)
	(envelope-from fernan@pi.iib.unsam.edu.ar)
Received: from pi.iib.unsam.edu.ar (pi.iib.unsam.edu.ar [192.168.10.11])
	by smtp.unsam.edu.ar (8.12.6/8.12.6) with ESMTP id h8UEa6Ma087836
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 30 Sep 2003 11:36:06 -0300 (ART)
	(envelope-from fernan@pi.iib.unsam.edu.ar)
Received: from pi.iib.unsam.edu.ar (localhost [127.0.0.1])
	by pi.iib.unsam.edu.ar (8.12.9/8.12.9) with ESMTP id h8UEWwWl000710
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 30 Sep 2003 11:32:59 -0300 (ART)
	(envelope-from fernan@pi.iib.unsam.edu.ar)
Received: (from fernan@localhost)
	by pi.iib.unsam.edu.ar (8.12.9/8.12.9/Submit) id h8UEF6oL000580;
	Tue, 30 Sep 2003 11:15:06 -0300 (ART)
Message-Id: <200309301415.h8UEF6oL000580@pi.iib.unsam.edu.ar>
Date: Tue, 30 Sep 2003 11:15:06 -0300 (ART)
From: Fernan Aguero <fernan@iib.unsam.edu.ar>
Reply-To: Fernan Aguero <fernan@iib.unsam.edu.ar>
To: FreeBSD-gnats-submit@freebsd.org
Cc: anholt@FreeBSD.org
Subject: update to XFree86-4.3.0 renders keyboard unusable
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         57405
>Category:       ports
>Synopsis:       update to XFree86-4.3.0 renders keyboard unusable
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    anholt
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 30 07:40:23 PDT 2003
>Closed-Date:    Tue Sep 30 11:45:00 PDT 2003
>Last-Modified:  Sun Mar 17 02:08:46 UTC 2013
>Originator:     Fernan Aguero
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
IIB-UNSAM
>Environment:
System: FreeBSD pi.iib.unsam.edu.ar 4.8-STABLE FreeBSD 4.8-STABLE #0: Tue Aug 19 11:19:33 ART 2003 root@pi.iib.unsam.edu.ar:/usr/obj/usr/src/sys/PI i386


	
>Description:
	I have downloaded all the latest XFree86-4.3.0 packages from
	FreeBSD's ftp server, and updated my XFree86-4.2.0 installation
	using portupgrade:

	portupgrade -R -PP XFree86-4\*

	Everything went fine, but now when starting the X server (I use
	xdm) I cannot type anything on the login prompt. Every key press
	results in the X server switching its resolution (like using
	Ctrl-Alt-+ in the past).

	I've attached the output of the session, with the reported
	errors. From the output, and from what I could get at Google, it
	seems to be a problem common to many people upgrading to 4.3.0.
	The problem does not seem to be with xdm, but with xkbcomp.

	However I haven't found a reasonable explanation or solution to
	the problem. There are also two unanswered questions related to
	this topic on @freebsd-questions from May 2003.

	One workaround suggested renaming /usr/X11R6/lib/X11/xkb/compat
	so that it wouldn't be found. The user said this fixed the
	problem (he could start X and use the keyboard). 
	
	However I'm looking for a definitive answer/patch/solution. Thus
	the PR.

	Thanks in advance for any reply or followup,

	Fernan
	
>How-To-Repeat:
	
>Fix:

	



--- xfree86.log begins here ---

XFree86 Version 4.3.0
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: FreeBSD 4.9 i386 [ELF] 
Build Date: 23 September 2003
	Before reporting problems, check http://www.XFree86.Org/
	to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
         (++) from command line, (!!) notice, (II) informational,
         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Tue Sep 30 10:07:15 2003
(++) Using config file: "./XF86Config.new"
    [12e] 320 x 200, 70Hz
    [131] 320 x 240, 72Hz
    [141] 400 x 300, 72Hz
    [151] 512 x 384, 70Hz
    [100] 640 x 400, 70Hz
    [101] 640 x 480, 200Hz, 160Hz, 100Hz, 85Hz, 75Hz, 72Hz, 60Hz
    [171] 720 x 480, 75Hz
    [17c] 720 x 576, 75Hz
    [103] 800 x 600, 160Hz, 100Hz, 85Hz, 75Hz, 72Hz, 60Hz, 56Hz
    [105] 1024 x 768, 130Hz, 85Hz, 75Hz, 70Hz, 60Hz, 43Hz
    [161] 1152 x 864, 100Hz, 85Hz, 75Hz, 70Hz, 60Hz
    [107] 1280 x 1024, 100Hz, 85Hz, 75Hz, 70Hz, 60Hz, 43Hz
    [120] 1600 x 1200, 70Hz, 60Hz, 48Hz
    [191] 1920 x 1080, 60Hz, 48Hz
    [1a1] 1920 x 1200, 60Hz, 48Hz
    [136] 1920 x 1440, 60Hz
expected keysym, got XF86_Switch_VT_1: line 8 of xfree86
expected keysym, got XF86_Switch_VT_2: line 11 of xfree86
expected keysym, got XF86_Switch_VT_3: line 14 of xfree86
expected keysym, got XF86_Switch_VT_4: line 17 of xfree86
expected keysym, got XF86_Switch_VT_5: line 20 of xfree86
expected keysym, got XF86_Switch_VT_6: line 23 of xfree86
expected keysym, got XF86_Switch_VT_7: line 26 of xfree86
expected keysym, got XF86_Switch_VT_8: line 29 of xfree86
expected keysym, got XF86_Switch_VT_9: line 32 of xfree86
expected keysym, got XF86_Switch_VT_10: line 35 of xfree86
expected keysym, got XF86_Switch_VT_11: line 38 of xfree86
expected keysym, got XF86_Switch_VT_12: line 41 of xfree86
expected keysym, got XF86_Ungrab: line 45 of xfree86
expected keysym, got XF86_ClearGrab: line 48 of xfree86
expected keysym, got XF86_Next_VMode: line 51 of xfree86
expected keysym, got XF86_Prev_VMode: line 54 of xfree86
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
> Warning:          Multiple interpretations of "NoSymbol+AnyOfOrNone(all)"
>                   Using last definition for duplicate fields
expected keysym, got XF86_Switch_VT_1: line 51 of pc/pc
expected keysym, got XF86_Switch_VT_2: line 55 of pc/pc
expected keysym, got XF86_Switch_VT_3: line 59 of pc/pc
expected keysym, got XF86_Switch_VT_4: line 63 of pc/pc
expected keysym, got XF86_Switch_VT_5: line 67 of pc/pc
expected keysym, got XF86_Switch_VT_6: line 71 of pc/pc
expected keysym, got XF86_Switch_VT_7: line 75 of pc/pc
expected keysym, got XF86_Switch_VT_8: line 79 of pc/pc
expected keysym, got XF86_Switch_VT_9: line 83 of pc/pc
expected keysym, got XF86_Switch_VT_10: line 87 of pc/pc
expected keysym, got XF86_Switch_VT_11: line 91 of pc/pc
expected keysym, got XF86_Switch_VT_12: line 95 of pc/pc
expected keysym, got XF86_Ungrab: line 135 of pc/pc
expected keysym, got XF86_ClearGrab: line 141 of pc/pc
expected keysym, got XF86_Prev_VMode: line 147 of pc/pc
expected keysym, got XF86_Next_VMode: line 157 of pc/pc
expected keysym, got SunFA_Acute: line 40 of pc/es
expected keysym, got SunFA_Diaeresis: line 40 of pc/es
expected keysym, got SunFA_Grave: line 41 of pc/es
expected keysym, got SunFA_Circum: line 41 of pc/es
Errors from xkbcomp are not fatal to the X server
--- xfree86.log ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->anholt  
Responsible-Changed-By: krion 
Responsible-Changed-When: Tue Sep 30 07:43:06 PDT 2003 
Responsible-Changed-Why:  
Over to XFree Guru 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57405 

From: Fernan Aguero <fernan@iib.unsam.edu.ar>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Cc:  
Subject: Re: ports/57405: update to XFree86-4.3.0 renders keyboard unusable
Date: Tue, 30 Sep 2003 12:06:17 -0300

 Just to clarify a bit more,
 
 renaming /usr/X11R6/lib/X11/xkb/compat to anything else
 makes X startup fine. However, certain keys are no longer usable (they produce no output or give the wrong symbol).
 
 From my XF86Config:
 Option      "XkbRules" "xfree86"
 Option      "XkbModel" "pc105"
 Option      "XkbLayout" "es"
       
 I can no longer type the vertical bar (pipe, Alt Gr + 1), nor square
 brackets, curly braces, or the spanish n with a tilde over
 it, as some examples.
 
 So, this is not a reasonable solution.
 
 Fernan,
 
 hoping someone has a clue about what's going on :)
 
 -- 
 F e r n a n   A g u e r o
 http://genoma.unsam.edu.ar/~fernan

From: Fernan Aguero <fernan@iib.unsam.edu.ar>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Cc: anholt@FreeBSD.org
Subject: Re: ports/57405: update to XFree86-4.3.0 renders keyboard unusable
Date: Tue, 30 Sep 2003 15:05:46 -0300

 and now for a solution?
 
 I've found this thread in linuxquestions.org:
 http://www.linuxquestions.org/questions/archive/1/2003/07/2/59778
 that suggested updating XKeysymDB to its latest version.
 
 I've also seen XKeysymDB mentioned while googling around. So
 I went to the URL posted in the last message of the thread,
 which pointed to cvsweb.xfree86.org, and got the latest
 XKeysymDB (which BTW is from 2000!).
 
 Surprisingly, I found no such file in my XFree86
 installation ... all messages I've found suggested _updating_
 this file, and they clearly suggested making a backup copy
 of the original. But there was none there to update!
 
 So I've put XKeysymDB in /usr/X11R6/lib/X11/, restarted X
 and voil, everything is working fine again (AFAICT). No
 need to rename /usr/X11R6/lib/X11/xkb/compat, which was an
 ugly workaround.
 
 So, it all comes to a missing file ... my research found
 XKeysymDB packaged in XFree86-libraries-4.3.0_6.tgz. So, my
 guess was that it should have been installed. Luckily I
 still have the output of the portupgrade session, so I guess
 I now see what happened:
 ...
 --->  Checking the availability of the latest package of 'x11/XFree86-4-clients'
 --->  Found a package of 'x11/XFree86-4-clients': /usr/ports/packages/All/XFree86-clients-4.3.0_3.tgz
 --->  Upgrading 'XFree86-clients-4.2.0_2' to 'XFree86-clients-4.3.0_3' (x11/XFree86-4-clients) using a package
 --->  Backing up the old version
 --->  Uninstalling the old version
 --->  Deinstalling 'XFree86-clients-4.2.0_2'
 pkg_delete: package 'XFree86-clients-4.2.0_2' is required by these other packages
 and may not be deinstalled (but I'll delete it anyway):
 XFree86-4.3.0,1
 pkg_delete: '/usr/X11R6/lib/X11/XErrorDB' fails original MD5 checksum - deleted anyway.
 pkg_delete: '/usr/X11R6/lib/X11/XKeysymDB' fails original MD5 checksum - deleted anyway.
 pkg_delete: '/usr/X11R6/lib/X11/xdm/Xaccess' fails original MD5 checksum - deleted anyway.
 pkg_delete: '/usr/X11R6/lib/X11/xdm/Xsession' fails original MD5 checksum - deleted anyway.
 ...
 
 So it seems to me, that the deinstallation of the
 XFree86-clients port blew away these four files: not only I
 had a missing XKeysymDB, I also have missing XErrorDB.
 
 Now, is this a portupgrade problem? Or the problem was with
 the way I invoked portupgrade (portupgrade -R -PP XFree86-4\*)?
 Or perhaps these files were previously packaged in -clients
 and now they are in -libraries?
 
 Reinstalling the XFree86-libraries again did got me the
 missing XErrorDB and XKeysymDB files (portupgrade -f -PP XFree86-libraries)
 
 I guess that the PR can be closed now. At least there is a
 record of what happened, in case someone else steps on the
 same stone.
 
 For me, it was a great monolog. Thanks.
 
 Fernan
 
 -- 
 F e r n a n   A g u e r o
 http://genoma.unsam.edu.ar/~fernan
State-Changed-From-To: open->closed 
State-Changed-By: anholt 
State-Changed-When: Tue Sep 30 11:43:56 PDT 2003 
State-Changed-Why:  
This was a problem in using portupgrade, as had been announced on ports@. 
Submitter fixed it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57405 
>Unformatted:
