[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#536683: Info received (bash execution trace)



OK, now that I just sent the workaround in the earlier message, I dug in
a little further.

The problem seems to be related to the embedded awk script in the
configure script of the package.

In its stock version, when fed with my x configuration file, it prints
nothing.

When I change

,----
| bin {
|     $0 = tolower($0);
|     sub("#.*","")
|     xkb = "";
| }
`----

to

,----
| BEGIN {
|     xkb = "";
| }
| 
| {
|     $0 = tolower($0);
|     sub("#.*","")
|     if ($0 != "") {
| 	print " *** DEBUG: Line read: <" $0 ">"
|     }
| }
`----

I get the output attached.

I sincerely don't remember if "bin" is a particular expression in AWK
(it's been way more than a decade since I last wrote anything in AWK)
but I guess that it was meant to be BEGIN (if I am guessing it right).

If my guess is correct, then just "normalizing" the first line to be
lowercase does not seem correct and what I wrote above seems to be
better, but not good enough:

The script does not understand when the section containing the keyboard
has finished and, thus, it also gets the settings for the mouse and
interprets them as the settings for the keyboard also (which is not
always the right thing).

I will continue this bug-hunting here, but it seems to be coming to an
end. :-)


Regards, Rogério Brito.

-- 
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org
 *** DEBUG: Line read: <section "inputdevice">
 *** DEBUG: Line read: <	identifier	"generic keyboard">
 *** DEBUG: Line read: <	driver		"kbd">
 *** DEBUG: Line read: <	option		"xkbrules"	"xorg">
 *** DEBUG: Line read: <	option		"xkbmodel"	"pc104">
XKBMODEL="pc104"
 *** DEBUG: Line read: <	option		"xkblayout"	"us_intl">
layout_priority=medium
XKBLAYOUT="us_intl"
 *** DEBUG: Line read: <endsection>
 *** DEBUG: Line read: <section "inputdevice">
 *** DEBUG: Line read: <	identifier	"configured mouse">
 *** DEBUG: Line read: <	driver		"mouse">
 *** DEBUG: Line read: <	option		"protocol"	"auto">
XKBLAYOUT="auto"
 *** DEBUG: Line read: <	option		"device"	"/dev/input/mice">
XKBLAYOUT="/dev/input/mice"
 *** DEBUG: Line read: <	option		"zaxismapping"	"4 5 6 7">
XKBLAYOUT="4567"
 *** DEBUG: Line read: <endsection>
 *** DEBUG: Line read: <section "module">
 *** DEBUG: Line read: <	load	"glcore">
 *** DEBUG: Line read: <	load	"bitmap">
 *** DEBUG: Line read: <	load	"dbe">
 *** DEBUG: Line read: <	load	"ddc">
 *** DEBUG: Line read: <	load	"dri">
 *** DEBUG: Line read: <	load	"dri2">
 *** DEBUG: Line read: <	load	"extmod">
 *** DEBUG: Line read: <	load	"freetype">
 *** DEBUG: Line read: <	load	"glx">
 *** DEBUG: Line read: <	load	"record">
 *** DEBUG: Line read: <	load	"speedo">
 *** DEBUG: Line read: <	load	"type1">
 *** DEBUG: Line read: <	load	"vbe">
 *** DEBUG: Line read: <	load	"xv">
 *** DEBUG: Line read: <endsection>
 *** DEBUG: Line read: <section "device">
 *** DEBUG: Line read: <	identifier	"configured video device">
 *** DEBUG: Line read: <	driver		"intel">
 *** DEBUG: Line read: <	option		"agpmode"	"4">
 *** DEBUG: Line read: <	option		"agpfastwrite"	"on">
 *** DEBUG: Line read: <	option		"renderaccel"	"true">
 *** DEBUG: Line read: <	option		"accelmethod"	"uxa">
 *** DEBUG: Line read: <	option		"xvmc"		"true">
 *** DEBUG: Line read: <	option		"xvmcsurfaces"	"6">
 *** DEBUG: Line read: <	option		"dri"		"true">
 *** DEBUG: Line read: <endsection>
 *** DEBUG: Line read: <section "monitor">
 *** DEBUG: Line read: <	identifier	"configured monitor">
 *** DEBUG: Line read: <	option		"dmps">
 *** DEBUG: Line read: <endsection>
 *** DEBUG: Line read: <section "screen">
 *** DEBUG: Line read: <	identifier	"default screen">
 *** DEBUG: Line read: <	monitor		"configured monitor">
 *** DEBUG: Line read: <	device		"configured video device">
 *** DEBUG: Line read: <endsection>
 *** DEBUG: Line read: <section "serverlayout">
 *** DEBUG: Line read: <	identifier	"x.org configured">
 *** DEBUG: Line read: <	screen		"default screen">
 *** DEBUG: Line read: <	inputdevice	"generic keyboard"	"corekeyboard">
 *** DEBUG: Line read: <	inputdevice	"configured mouse"	"corepointer">
 *** DEBUG: Line read: <endsection>
 *** DEBUG: Line read: <section "serverflags">
 *** DEBUG: Line read: <	option		"dontzap"	"false">
 *** DEBUG: Line read: <endsection>
 *** DEBUG: Line read: <section "dri">
 *** DEBUG: Line read: <	mode		0666>
 *** DEBUG: Line read: <endsection>
 *** DEBUG: Line read: <section "extensions">
 *** DEBUG: Line read: <	option		"composite"	"1">
 *** DEBUG: Line read: <	option		"damage"	"1">
 *** DEBUG: Line read: <endsection>

Reply to: