Today has been released the new synaptics driver, this is the changelog. - Added PREFIX support to the Makefile. From Ricardo Garcia. - Implemented pressure dependent motion speed. From Stephane Rosi. - Minor documentation updates. - Implemented two-finger vertical and horizontal scrolling. From Stefan Bethge. - Some code cleanup. - Makefile support for Xorg 7.0. From Mattia Dongili. - Added new parameter "SingleTapTimeout" to give greater control over tap behavior. From Vaclav Kadlcik. Following this, I have updated the ebuild, and I post the patch agains the current version. The modifies are basically: 1) added PREFIX support, and this obsoletes a patch 2) they say the Makefile is ok Xorg for 7.0, I've removed the specific part for Xorg 7 and installs fine for me, but I haven't tested on the old Xorg. I left the bit for the use dlloader because I don't uderstand it. :-) 3) removed -shared from the options since it should be already in the Makefile (not sure all the rest is needed, but since I don't fully understand I left it). 4) added dodoc for some documentation. 5) the patch for fPIC is still needed, but there is no more need to strip -fno-pic (I think). This release should fix bug #132959 That's about it, tested on x86 with xorg 7.0.
Created attachment 88347 [details, diff] patch against synaptics-0.14.4-r2.ebuild
Created attachment 88348 [details, diff] patch for fpic This obsoletes the current patch (the only modify is that there is no more need to strip -fno-pic). The other patch (synaptics-0.14.4-r2-makefile.patch) is not needed anymore. (I think)
It doesn't compile for me... powerpc-unknown-linux-gnu-gcc -c -O2 -mcpu=G4 -mtune=G4 -maltivec -ftree-vectorize -mabi=altivec -pipe -fomit-frame-pointer -ftracer -pedantic -Wall -Wpointer-arith -fno-merge-constants -I. -I/usr/include/X11 -I/usr/include/X11/extensions -I/usr/include/xorg -Dlinux -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DDPMSExtension -DPIXPRIV -DPANORAMIX -DRENDER -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DSMART_SCHEDULE -DBUILDDEBUG -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -D__i386__ -DFUNCPROTO=15 -DNARROWPROTO -DIN_MODULE -DXFree86Module -DVERSION="\"0.14.5\"" -DVERSION_ID="(0*10000+14*100+5)" -fPIC synaptics.c rm -f ps2comm.o In file included from /usr/include/xorg/xisb.h:32, from synproto.h:24, from synaptics.h:124, from synaptics.c:79: /usr/include/unistd.h:189: error: conflicting types for
It doesn't compile for me... powerpc-unknown-linux-gnu-gcc -c -O2 -mcpu=G4 -mtune=G4 -maltivec -ftree-vectorize -mabi=altivec -pipe -fomit-frame-pointer -ftracer -pedantic -Wall -Wpointer-arith -fno-merge-constants -I. -I/usr/include/X11 -I/usr/include/X11/extensions -I/usr/include/xorg -Dlinux -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DDPMSExtension -DPIXPRIV -DPANORAMIX -DRENDER -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DSMART_SCHEDULE -DBUILDDEBUG -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -D__i386__ -DFUNCPROTO=15 -DNARROWPROTO -DIN_MODULE -DXFree86Module -DVERSION="\"0.14.5\"" -DVERSION_ID="(0*10000+14*100+5)" -fPIC synaptics.c rm -f ps2comm.o In file included from /usr/include/xorg/xisb.h:32, from synproto.h:24, from synaptics.h:124, from synaptics.c:79: /usr/include/unistd.h:189: error: conflicting types for xf86ssize_t /usr/include/xorg/xf86_libc.h:86: error: previous declaration of xf86ssize_t was here In file included from /usr/include/xorg/xisb.h:32, from synproto.h:24, from synaptics.h:124, from synaptics.c:79: /usr/include/unistd.h:325: error: conflicting types for xf86read /usr/include/xorg/xf86_ansic.h:273: error: previous declaration of xf86read was here /usr/include/unistd.h:331: error: conflicting types for xf86write /usr/include/xorg/xf86_ansic.h:274: error: previous declaration of xf86write was here /usr/include/unistd.h:418: error: conflicting types for xf86usleep /usr/include/xorg/xf86_ansic.h:345: error: previous declaration of xf86usleep was here In file included from /usr/include/xorg/xisb.h:32, from synproto.h:24, from synaptics.h:124, from synaptics.c:79: /usr/include/unistd.h:935:29: error: macro "getpagesize" passed 1 arguments, but takes just 0 make: *** [synaptics.o] Error 1
Created attachment 91135 [details, diff] patch to fix compilation with xorg-7.1 OK, this patch fixes the compile error I had before. Seemant: now I think you can add it to the tree :)
Gad, it's in portage now :P
*** Bug 132959 has been marked as a duplicate of this bug. ***