Re: [gentoo-dev] xf86-input-evdev patch problem

2015-10-18 Thread Cor Legemaat
On Mon, 2015-10-12 at 15:03 +0800, Jason Zaman wrote:
> On Mon, Oct 12, 2015 at 06:56:27AM +0200, Cor Legemaat wrote:
> > Hi:
> >  
> > I created a ebuild with a patch for xf86-input-evdev to try and 
> > debounce my mouse button. The ebuild is at 
> > https://github.com/cor-mt/portage-overlay/blob/master/x11-drivers/x
> > f86-input-evdev/xf86-input-evdev-2.9.2-r1.ebuild
> >  it compile and install fine but with it installed neither the 
> > keyboard nor mouse is working. If I am correct it should install
> > 100% 
> > the same as from gentoo without the "debounce" use flag but it
> > gives 
> > the same symptoms.
> >  
> > What am I doing wrong?
> 
> So the problem here is the "inherit linux-info xorg-2" line.
> The xorg-2 eclass defines few default phase functions which you have
> overridden.
> 
> If you want to patch the source you should be doing something like
> this:
> src_prepare() {
>   use debounce && epatch ${FILESDIR}/your-patch
> 
>   xorg-2_src_prepare # this will call the xorg-2 eclass
>   #defined phase function to do the rest of the work
> }
> 
> Alternatively, if you just want to apply that patch, you are probably
> better off using epatch_user.
> Drop your patch in
> /etc/portage/patches/x11-drivers/xf86-input-evdev/your-name.patch
> and the eclasses will automatically apply the patch. you do not have
> to
> make your own ebuild just to apply the patch.
> 
> This has more info: https://wiki.gentoo.org/wiki//etc/portage/patches
> 
> -- Jason
> 
Needed to add the xorg-2 functions to al the custom functions in the
ebuild but that was the problem.

Tnx.

Regards:
Cor



[gentoo-dev] xf86-input-evdev patch problem

2015-10-11 Thread Cor Legemaat
Hi:
 
I created a ebuild with a patch for xf86-input-evdev to try and 
debounce my mouse button. The ebuild is at 
https://github.com/cor-mt/portage-overlay/blob/master/x11-drivers/xf86-input-evdev/xf86-input-evdev-2.9.2-r1.ebuild
 it compile and install fine but with it installed neither the 
keyboard nor mouse is working. If I am correct it should install 100% 
the same as from gentoo without the "debounce" use flag but it gives 
the same symptoms.
 
What am I doing wrong?
 
Regards:
Cor

signature.asc
Description: This is a digitally signed message part