Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44885 - hotplug-20040311 agent chokes on modules.inputmap keyBits w/ kernel >= 2.6
Summary: hotplug-20040311 agent chokes on modules.inputmap keyBits w/ kernel >= 2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-16 12:44 UTC by Joe Khoobyar
Modified: 2004-03-29 16:32 UTC (History)
0 users

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


Attachments
Fixes the input.agent. (hotplug-2004_03_11-inputagent.patch,447 bytes, patch)
2004-03-17 10:15 UTC, Joe Khoobyar
Details | Diff
Ebuild w/ version bump, including the newest patch (hotplug-20040311-r1.ebuild,1.69 KB, text/plain)
2004-03-17 10:16 UTC, Joe Khoobyar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Khoobyar 2004-03-16 12:44:08 UTC
I've had to downgrade to hotplug-20040105 in order to fix this.  Otherwise, I have  no mouse, no printer, no USB devices period.  20040105 has it's own problems, but at least it WORKS and I can use my mouse and my printer w/ a 2.6.x kernel.

The error message I was geting was on line 171 of /etc/hotplug/input.agent, where it was trying to handle the keyBits field from modules.inputmap and choking on the  :0:0:0:0:... etc. stuff following the initial digit.


Reproducible: Always
Steps to Reproduce:
1. emerge -u hotplug
2. reboot

Actual Results:  
Upon reboot, system will not recognize USB devices.  Strangely enough, this also
caused my SMTP server (postfix) to refuse to send mail, but I'm not networking
through USB...  WTF?

Expected Results:  
Worked. ;^)

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0,
2.6.4-gentoo-r1)
=================================================================
System uname: 2.6.4-gentoo-r1 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.4.3.13p1
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://mirrors.tds.net/gentoo
http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.netnitco.net
http://cudlug.cudenver.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apache2 apm arts avi berkdb bonobo cdr crypt cups
directfb encode esd foomaticdb gdbm ggi gif gnome gpm gtk gtk2 imlib java jpeg
kde ldap libg++ libwww mad maildir mikmod mmx motif mpeg mysql nas ncurses nptl
oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline
ruby sasl scanner sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype
video_cards_savage x86 xml2 xmms xv zlib"
Comment 1 Joe Khoobyar 2004-03-17 10:15:57 UTC
Created attachment 27519 [details, diff]
Fixes the input.agent.

Fixes the input.agent so that it no longer chokes on the keyBits.  The fix is
basically a one-liner.	The wrong syntax was being used, you can't use the
arithmetic assignment syntax, $((value)), if the value itself may not be a
valid number.  Hopefully, this is the only fix needed.	I'm about to reboot and
see if the problem goes away.
Comment 2 Joe Khoobyar 2004-03-17 10:16:43 UTC
Created attachment 27520 [details]
Ebuild w/ version bump, including the newest patch

An ebuild including this new patch.
Comment 3 Joe Khoobyar 2004-03-17 10:36:49 UTC
Okay, the patch does fix a single problem but does NOT fix THE problem.  hotplug-20040311 still leaves me as being unable to use my usb devices (printer and mouse).  After rebooting with my patch, it eliminated the error(s) on line 171 in input.agent, but the new hotplug still did not work correctly on my system.  Unfortunately, I don't have time left to work on this issue today: I've got paid work to work on. ;)  I've since reverted to hotplug-20040105 and rebooted.  I will, however, try to investigate this further.
Comment 4 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-03-29 16:32:51 UTC
Fixed in 2004_03_29 release