Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236664 - sys-apps/hal-0.5.11-r2 install failed on Migrating xorg.conf Core Keyboard configuration to HAL FDI file
Summary: sys-apps/hal-0.5.11-r2 install failed on Migrating xorg.conf Core Keyboard c...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Project Gentopia
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-04 08:49 UTC by Rahul Jain
Modified: 2008-09-06 01:09 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rahul Jain 2008-09-04 08:49:10 UTC
The installation of hal-0.5.11-r2 fails when migrating the xorg.conf core keyboard configuration file to the hal FDI file. 

Reproducible: Always

Steps to Reproduce:
1.emerge -avu hal
2.
3.

Actual Results:  
 ERROR: sys-apps/hal-0.5.11-r2 failed.

Expected Results:  
Should have compiled and installed.

########## The relevant build.log ############

 * Migrating xorg.conf Core Keyboard configuration to HAL FDI file...
/var/tmp/portage/sys-apps/hal-0.5.11-r2/temp/environment: line 3694: 19884 Aborted                 "${WORKDIR}/${PN}-config-examples/migrate-xorg-to-fdi.py" 2> /dev/null > "${D}/etc/hal/fdi/policy/10-x11-input.fdi"
 * 
 * ERROR: sys-apps/hal-0.5.11-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 3709:  Called die
 * The specific snippet of code:
 *           "${WORKDIR}/${PN}-config-examples/migrate-xorg-to-fdi.py" 2> /dev/null > "${D}/etc/hal/fdi/policy/10-x11-input.fdi" || die;
 *  The die message:
 *   (no error message)


########### emerge --info ###########

Portage 2.2_rc8 (default/linux/x86/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-tuxonice i686)
=================================================================
System uname: Linux-2.6.26-tuxonice-i686-Genuine_Intel-R-_CPU_T2300_@_1.66GHz-with-glibc2.0
Timestamp of tree: Thu, 04 Sep 2008 07:45:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="en hi"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/desktop-effects /usr/local/portage/layman/oss-overlay /usr/local/portage/layman/bugzilla"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa avahi bash-completion berkdb bluetooth branding bzip2 cairo cdparanoia cdr cli cracklib crypt css ctype cups curl curlwrappers cxx dbus dga djvu dri dts dvd dvdr esd exif fam fbcon ffmpeg flac fontconfig fortran gd gdbm gif gimp gnutls gphoto2 gpm gstreamer hal hddtemp htmlhandbook iconv ieee1394 imagemagick ipv6 isdnlog java java5 java6 javascript joystick jpeg jpeg2k libnotify lm_sensors mad midi mmx mono motif mp3 mpeg mtp mudflap nautilus ncurses nls nptl nptlonly ogg opengl openmp oss pam pcmcia pcre perl png posix ppds pppd python quicktime readline real reflection samba scanner session smp sndfile spell spl sse sse2 sse3 ssl startup-notification svg svga sysfs syslog tcpd theora threads tiff truetype type1 unicode usb v4l2 vcd vim-syntax vorbis wavpack win32codecs wmf x86 xcomposite xine xinerama xml xorg xpm xulrunner xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en hi" USERLAND="GNU" VIDEO_CARDS="i810 fbdev v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rahul Jain 2008-09-04 08:54:28 UTC
The corrected and relevant build.log is thus:

* Migrating xorg.conf Core Keyboard configuration to HAL FDI file...
*** glibc detected *** python: free(): invalid pointer: 0xb7ccc1c6 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7dc03c4]
/lib/libc.so.6(cfree+0x9c)[0xb7dc1d2c]
/usr/lib/python2.5/site-packages/ixf86configmodule.so(xf86freeInputList+0x43)[0xb7cc8eeb]
======= Memory map: ========
08048000-08049000 r-xp 00000000 08:05 282382     /usr/bin/python2.5
08049000-0804a000 r--p 00000000 08:05 282382     /usr/bin/python2.5
0804a000-0804b000 rw-p 00001000 08:05 282382     /usr/bin/python2.5
0944d000-09532000 rw-p 0944d000 00:00 0          [heap]
b7a00000-b7a21000 rw-p b7a00000 00:00 0 
b7a21000-b7b00000 ---p b7a21000 00:00 0 
b7b87000-b7b92000 r-xp 00000000 08:05 1401209    /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/libgcc_s.so.1
b7b92000-b7b93000 r--p 0000a000 08:05 1401209    /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/libgcc_s.so.1
b7b93000-b7b94000 rw-p 0000b000 08:05 1401209    /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/libgcc_s.so.1
b7baa000-b7c77000 r-xp 00000000 08:05 299049     /usr/lib/libglib-2.0.so.0.1600.5
b7c77000-b7c78000 r--p 000cd000 08:05 299049     /usr/lib/libglib-2.0.so.0.1600.5
b7c78000-b7c79000 rw-p 000ce000 08:05 299049     /usr/lib/libglib-2.0.so.0.1600.5
b7c79000-b7cb0000 r-xp 00000000 08:05 299013     /usr/lib/libgobject-2.0.so.0.1600.5
b7cb0000-b7cb1000 r--p 00036000 08:05 299013     /usr/lib/libgobject-2.0.so.0.1600.5
b7cb1000-b7cb2000 rw-p 00037000 08:05 299013     /usr/lib/libgobject-2.0.so.0.1600.5
b7cb2000-b7cb5000 r-xp 00000000 08:05 299111     /usr/lib/libgmodule-2.0.so.0.1600.5
b7cb5000-b7cb6000 r--p 00002000 08:05 299111     /usr/lib/libgmodule-2.0.so.0.1600.5
b7cb6000-b7cb7000 rw-p 00003000 08:05 299111     /usr/lib/libgmodule-2.0.so.0.1600.5
b7cb7000-b7ccd000 r-xp 00000000 08:05 1383068    /usr/lib/python2.5/site-packages/ixf86configmodule.so
b7ccd000-b7cce000 r--p 00015000 08:05 1383068    /usr/lib/python2.5/site-packages/ixf86configmodule.so
b7cce000-b7cd2000 rw-p 00016000 08:05 1383068    /usr/lib/python2.5/site-packages/ixf86configmodule.so
b7cd2000-b7d55000 rw-p b7cd2000 00:00 0 
b7d55000-b7e8f000 r-xp 00000000 08:05 82230      /lib/libc-2.8.so
b7e8f000-b7e91000 r--p 0013a000 08:05 82230      /lib/libc-2.8.so
b7e91000-b7e92000 rw-p 0013c000 08:05 82230      /lib/libc-2.8.so
b7e92000-b7e96000 rw-p b7e92000 00:00 0 
b7e96000-b7eba000 r-xp 00000000 08:05 83514      /lib/libm-2.8.so
b7eba000-b7ebb000 r--p 00023000 08:05 83514      /lib/libm-2.8.so
b7ebb000-b7ebc000 rw-p 00024000 08:05 83514      /lib/libm-2.8.so
b7ebc000-b7ebe000 r-xp 00000000 08:05 82308      /lib/libutil-2.8.so
b7ebe000-b7ebf000 r--p 00001000 08:05 82308      /lib/libutil-2.8.so
b7ebf000-b7ec0000 rw-p 00002000 08:05 82308      /lib/libutil-2.8.so
b7ec0000-b7ec2000 r-xp 00000000 08:05 82241      /lib/libdl-2.8.so
b7ec2000-b7ec3000 r--p 00001000 08:05 82241      /lib/libdl-2.8.so
b7ec3000-b7ec4000 rw-p 00002000 08:05 82241      /lib/libdl-2.8.so
b7ec4000-b7ed8000 r-xp 00000000 08:05 82257      /lib/libpthread-2.8.so
b7ed8000-b7ed9000 r--p 00013000 08:05 82257      /lib/libpthread-2.8.so
b7ed9000-b7eda000 rw-p 00014000 08:05 82257      /lib/libpthread-2.8.so
b7eda000-b7edc000 rw-p b7eda000 00:00 0 
b7edc000-b7fcc000 r-xp 00000000 08:05 280451     /usr/lib/libpython2.5.so.1.0
b7fcc000-b7fcd000 r--p 000f0000 08:05 280451     /usr/lib/libpython2.5.so.1.0
b7fcd000-b7ff3000 rw-p 000f1000 08:05 280451     /usr/lib/libpython2.5.so.1.0
b7ff3000-b7ff9000 rw-p b7ff3000 00:00 0 
b800e000-b800f000 rw-p b800e000 00:00 0 
b800f000-b8015000 r-xp 00000000 08:05 1386441    /usr/lib/libsandbox.so.0.0.0
b8015000-b8016000 r--p 00005000 08:05 1386441    /usr/lib/libsandbox.so.0.0.0
b8016000-b8017000 rw-p 00006000 08:05 1386441    /usr/lib/libsandbox.so.0.0.0
b8017000-b801a000 rw-p b8017000 00:00 0 
b801a000-b801b000 r-xp b801a000 00:00 0          [vdso]
b801b000-b8036000 r-xp 00000000 08:05 82126      /lib/ld-2.8.so
b8036000-b8037000 r--p 0001a000 08:05 82126      /lib/ld-2.8.so
b8037000-b8038000 rw-p 0001b000 08:05 82126      /lib/ld-2.8.so
bfa20000-bfa37000 rw-p bffe9000 00:00 0          [stack]
/var/tmp/portage/sys-apps/hal-0.5.11-r2/temp/environment: line 3693:  3136 Aborted                 "${WORKDIR}/${PN}-config-examples/migrate-xorg-to-fdi.py" 2> /dev/null > "${D}/etc/hal/fdi/policy/10-x11-input.fdi"
 * 
 * ERROR: sys-apps/hal-0.5.11-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 3708:  Called die
 * The specific snippet of code:
 *           "${WORKDIR}/${PN}-config-examples/migrate-xorg-to-fdi.py" 2> /dev/null > "${D}/etc/hal/fdi/policy/10-x11-input.fdi" || die;
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-apps/hal-0.5.11-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/hal-0.5.11-r2/temp/environment'.
 * 

Comment 2 Andrew Gaydenko 2008-09-04 09:30:34 UTC
On ~amd64:

* Migrating xorg.conf Core Keyboard configuration to HAL FDI file...
/wrk/tmp/portage/portage/sys-apps/hal-0.5.11-r2/temp/environment: line 3780: 11736 Segmentation fault      "${WORKDIR}/${PN}-config-examples/migrate-xorg-to-fdi.py" 2> /dev/null > "${D}/etc/hal/fdi/policy/10-x11-input.fdi"
 *
 * ERROR: sys-apps/hal-0.5.11-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 3795:  Called die
 * The specific snippet of code:
 *           "${WORKDIR}/${PN}-config-examples/migrate-xorg-to-fdi.py" 2> /dev/null > "${D}/etc/hal/fdi/policy/10-x11-input.fdi" || die;
Comment 3 Leo Laursen 2008-09-04 10:20:08 UTC
I had removed the input section from xorg.conf as instructed after installing -r1. The installation succeeded after restoring the old xorg.conf, and a new "/etc/hal/fdi/policy/10-x11-input.fdi" was created.
Comment 4 Rahul Jain 2008-09-04 10:38:20 UTC
I am posting my xorg.conf as well. I do not see any problem with it.

Section "ServerLayout"
	Identifier	"Xorg Configured"
	Screen		0  "Screen[0]" 0 0
	InputDevice	"Keyboard" "CoreKeyboard"
        InputDevice	"TouchPad" "CorePointer"
	InputDevice	"Mouse" "SendCoreEvents"
	Option		"AIGLX" "true"
EndSection

Section "Files"
	FontPath     	"/usr/share/fonts/misc/"
	FontPath     	"/usr/share/fonts/Type1/"
	FontPath     	"/usr/share/fonts/100dpi/"
	FontPath     	"/usr/share/fonts/75dpi/"
        FontPath     	"/usr/share/fonts/artwiz-aleczapka-en/"
        FontPath     	"/usr/share/fonts/corefonts/"
        FontPath     	"/usr/share/fonts/default/ghostscript"
        FontPath     	"/usr/share/fonts/dejavu/"
        FontPath     	"/usr/share/fonts/freefonts/"
        FontPath     	"/usr/share/fonts/indic"
        FontPath     	"/usr/share/fonts/intlfonts"
        FontPath     	"/usr/share/fonts/liberation-fonts-ttf"
        FontPath     	"/usr/share/fonts/misc"
        FontPath     	"/usr/share/fonts/terminus"
        FontPath     	"/usr/share/fonts/ttf-bitstream-vera"
        FontPath     	"/usr/share/fonts/unifont"
	FontPath	"/usr/share/fonts/thaifonts-scalable"
EndSection

Section "Module"
        Load  		"ddc"
	Load  		"dri"
	Load  		"dbe"
	Load  		"glx"
	Load  		"extmod"
        Load  		"bitmap"
	Load  		"type1"
	Load  		"freetype"
	Load  		"record"
	Load  		"synaptics"
EndSection

Section "InputDevice"
	Identifier	"Keyboard"
	Driver		"keyboard"
        Option		"CoreKeyboard"
	Option		"XkbRules" "xorg"
	Option		"XkbModel" "pc105"
EndSection

Section "InputDevice"
   	Identifier  	"Touchpad"
   	Driver      	"synaptics"
   	Option		"Device" "/dev/input/mouse1"	
   	Option      	"SendCoreEvents"
   	Option      	"Protocol" 	"auto-dev"
   	Option      	"SHMConfig" 	"on"
   	Option      	"Emulate3Buttons" 	"on"
   	Option 		"LeftEdge" 	"130"
   	Option 		"RightEdge" 	"900"
   	Option 		"TopEdge" 	"130"
   	Option 		"BottomEdge" 	"640"
   	Option 		"FingerLow" 	"7"
   	Option 		"FingerHigh" 	"8"
   	Option 		"AccelFactor" 	"0.05"
  	Option 		"LockedDrags" 	"0"
   	Option 		"MaxTapTime" 	"180"
   	Option 		"MinTapTime" 	"110"
   	Option 		"ClickTime" 	"0"
   	Option 		"EmulateMidButtonTime" 	"75"
   	Option 		"VertScrollDelta" 	"20"
   	Option 		"HorizScrollDelta" 	"20"
   	Option 		"MinSpeed" 	"0.70"
   	Option 		"MaxSpeed" 	"0.60"
   	Option 		"AccelFactor" 	"0.030"
   	Option 		"EdgeMotionMinSpeed" 	"200"
   	Option 		"EdgeMotionMaxSpeed" 	"200"
   	Option 		"CircularScrolling" 	"1"
   	Option 		"CircScrollDelta" 	"0.1"
   	Option 		"CircScrollTrigger" 	"1"
  	Option 		"VertTwoFingerScroll"   "on"
EndSection 

Section "InputDevice"
	Driver      	"evdev"
	Identifier  	"Mouse"
	Option      	"SendCoreEvents"
	Option	    	"Device" 	"/dev/input/mouse2"
	Option      	"Protocol" 	"auto"
	Option	    	"ZAxisMapping" 	"4 5 6 7"
EndSection

Section "Device"
	Identifier	"Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
	Driver		"intel"
	BusID		"PCI:0:2:0"
	Option		"AccelMethod"	"EXA"
	Option 		"MigrationHeuristic"	"greedy"
	Option		"ExaNoComposite"	"false"
EndSection

Section "Monitor"
	Identifier	"LCD Monitor"
	Option		"DPMS"
EndSection

Section "Screen"
	Identifier	"Screen[0]"
	Device		"Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
	Monitor		"LCD Monitor"
	DefaultDepth	24
	SubSection "Display"
		Modes		"1400x1050" "1280x800" "1024x768" "800x600"
	EndSubSection
EndSection

Section "Extensions"
	Option		"Composite" 	"Enable"
EndSection

Section "DRI"
	Mode 0666
EndSection
Comment 5 Andrew Gaydenko 2008-09-04 10:48:13 UTC
At my case the section is:

Section "InputDevice"
	Identifier "Keyboard0"
	Driver      "keyboard"
	Option	    "CoreKeyboard"
	Option	"XkbLayout"	"us,ru(winkeys)"
	Option	"XkbOptions"	"grp:menu_toggle,grp_led:scroll"
EndSection
Comment 6 Norberto Bensa 2008-09-04 12:03:41 UTC
I'm on ~amd64 and my xorg.conf had an "error". Inside the "ServerLayout" section there was the option:

  InputDevice "Keyboard0"

I changed it to:

  InputDevice "Keyboard0" "CoreKeyboard"

and voilà. hal-0.5.11-r2 emerged without problems. 

I found this "bug" in my xorg.conf by running ./migrate-xorg-to-fdi.py from /var/tmp/portage/sys-apps/hal-0.5.11-r2/work/hal-config-examples/


HTH,
Norberto
Comment 7 Chad A. Simmons 2008-09-04 14:07:25 UTC
Segfaulting here at first it was complaining about Failed to translate: AutoRepeat 500 5. After commenting out autorepeat it just spits out some XML and segfaults.

chadgentoo hal-config-examples # ./migrate-xorg-to-fdi.py
<?xml version="1.0" encoding="utf-8"?>
<deviceinfo version="0.2">
   <match key="info.capabilities" contains="input.keys">
      <!-- Option "XkbModel" "microsoft" -->
      <merge key="input.xkb.model" type="string">evdev</merge>
   </match>
</deviceinfo>

Segmentation fault (core dumped)
Comment 8 Pablo Cholaky 2008-09-04 20:12:10 UTC
Works fine, thanks

(In reply to comment #6)
> I'm on ~amd64 and my xorg.conf had an "error". Inside the "ServerLayout"
> section there was the option:
> 
>   InputDevice "Keyboard0"
> 
> I changed it to:
> 
>   InputDevice "Keyboard0" "CoreKeyboard"
> 
> and voilà. hal-0.5.11-r2 emerged without problems. 
> 
> I found this "bug" in my xorg.conf by running ./migrate-xorg-to-fdi.py from
> /var/tmp/portage/sys-apps/hal-0.5.11-r2/work/hal-config-examples/
> 
> 
> HTH,
> Norberto
> 

Comment 9 Archimedes Trajano 2008-09-05 01:40:05 UTC
I actually have no Keyboard section (I let xorg determine what is to be used automatically).  I think the script should not return a -1 if the CoreKeyboard section is missing.
Comment 10 Reinhard Kreim 2008-09-05 06:08:48 UTC
It doesnt work for me with or without a keyboard section. 
Comment 11 Rahul Jain 2008-09-05 07:26:57 UTC
Seems to have been solved. I just compiled it again for fun and it installed without any problems. However, it seems disk detection is messed up with udev >= 126. See bug 236635.