Summary: | xfree 4.x build without USB mouse support | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Thomas Heiserowski <th.heiserowski> |
Component: | New packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Thomas Heiserowski
2004-01-23 02:25:41 UTC
hmm, my USB mouse works, with protocol IMPS/2: Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "IMPS/2" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5" EndSection Seemant, yeah you can do PS/2 emulation (see bug #29953, which will provide an event interface, IMHO better than using the USB protocol). Thomas, have you actually tried adding those lines to the ebuild to see whether it makes things work? There's a section of src_unpack() that just echoes things to host.def -- try adding it in there. Thanks for your comments. Donnie, I tried that immediatly and got the ebuil fail twice: "#define HasUsbLib YES" is somewhat fatal since it tries to find "UsbHidLib" which is for graphic tablets I think. The ebuild failed with that option turned on. And using "#define UsbMouseSupport YES" fails the ebuild as well: <snip> gcc -o XFree86 -mno-mmx -ansi -pedantic -Wno-return-type -w -L../../exports/lib xkb/xf86KillSrv.o xkb/xf86VT.o xkb/xf86Private.o ../../programs/Xserver/hw/xfree86/common/xf86Init.o ../../programs/Xserver/hw/xfree86/common/xf86IniExt.o ../../programs/Xserver/hw/xfree86/common/libxf86.a ../../programs/Xserver/hw/xfree86/parser/libxf86config.a ../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a ../../programs/Xserver/hw/xfree86/loader/libloader.a ../../programs/Xserver/hw/xfree86/common/libxf86.a dix/libdix.a os/libos.a ../../exports/lib/libXdmcp.a ../../lib/font/fontbase.o ../../lib/font/libfontbase.a Xext/libexts.a xkb/libxkb.a Xi/libxinput.a lbx/liblbx.a ../../lib/lbxutil/liblbxutil.a ../../programs/Xserver/hw/xfree86/common/libxf86.a Xext/libexts.a xkb/libxkb.a Xi/libxinput.a lbx/liblbx.a ../../lib/lbxutil/liblbxutil.a randr/librandr.a render/librender.a dix/libxpstubs.a mi/libmi.a Xext/libexts.a xkb/libxkb.a Xi/libxinput.a lbx/liblbx.a ../../lib/lbxutil/liblbxutil.a randr/librandr.a render/librender.a ../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a -lz -lm ../../programs/Xserver/hw/xfree86/os-support/bsd/libusb/libusb.a -lpam -lpam_misc -rdynamic -ldl -lXau -rdynamic -ldl -Wl,-rpath-link,../../exports/lib gcc: ../../programs/Xserver/hw/xfree86/os-support/bsd/libusb/libusb.a: No such file or directory make[3]: *** [XFree86] Error 1 make[3]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/programs/Xserver' make[2]: *** [install] Error 2 make[2]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/programs' make[1]: *** [install] Error 2 make[1]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc' make: *** [install] Error 2 !!! ERROR: x11-base/xfree-4.3.0-r2 failed. !!! Function src_install, Line 516, Exitcode 2 !!! (no error message) </snap> This is quit wired since gcc does something for BSD which I am not using obviously. So I had a second look and found that this option is only for BSD (dumb me). Taken from linux.cf: /* <linux/input.h> support mainly for USB support */ #ifndef HasLinuxInput # if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion >= 4) # define HasLinuxInput YES # endif #endif So everything was alright and I simply should have tried Seemant's way. This does not work as well (though my mouse is detected according to dmesg). But this is properly a problem of my configuration: I try to get this mosue work along with another mouse. Sorry for bringing anybody in an uproar. I try to find the error. But it is definitely not in the ebuild. Cheers, Thomas OK, thanks for trying it out Thomas. You might want to look at http://forums.gentoo.org/viewtopic.php?t=79. |