1 |
On Mon, 2015-10-12 at 15:03 +0800, Jason Zaman wrote: |
2 |
> On Mon, Oct 12, 2015 at 06:56:27AM +0200, Cor Legemaat wrote: |
3 |
> > Hi: |
4 |
> > |
5 |
> > I created a ebuild with a patch for xf86-input-evdev to try and |
6 |
> > debounce my mouse button. The ebuild is at |
7 |
> > https://github.com/cor-mt/portage-overlay/blob/master/x11-drivers/x |
8 |
> > f86-input-evdev/xf86-input-evdev-2.9.2-r1.ebuild |
9 |
> > it compile and install fine but with it installed neither the |
10 |
> > keyboard nor mouse is working. If I am correct it should install |
11 |
> > 100% |
12 |
> > the same as from gentoo without the "debounce" use flag but it |
13 |
> > gives |
14 |
> > the same symptoms. |
15 |
> > |
16 |
> > What am I doing wrong? |
17 |
> |
18 |
> So the problem here is the "inherit linux-info xorg-2" line. |
19 |
> The xorg-2 eclass defines few default phase functions which you have |
20 |
> overridden. |
21 |
> |
22 |
> If you want to patch the source you should be doing something like |
23 |
> this: |
24 |
> src_prepare() { |
25 |
> use debounce && epatch ${FILESDIR}/your-patch |
26 |
> |
27 |
> xorg-2_src_prepare # this will call the xorg-2 eclass |
28 |
> #defined phase function to do the rest of the work |
29 |
> } |
30 |
> |
31 |
> Alternatively, if you just want to apply that patch, you are probably |
32 |
> better off using epatch_user. |
33 |
> Drop your patch in |
34 |
> /etc/portage/patches/x11-drivers/xf86-input-evdev/your-name.patch |
35 |
> and the eclasses will automatically apply the patch. you do not have |
36 |
> to |
37 |
> make your own ebuild just to apply the patch. |
38 |
> |
39 |
> This has more info: https://wiki.gentoo.org/wiki//etc/portage/patches |
40 |
> |
41 |
> -- Jason |
42 |
> |
43 |
Needed to add the xorg-2 functions to al the custom functions in the |
44 |
ebuild but that was the problem. |
45 |
|
46 |
Tnx. |
47 |
|
48 |
Regards: |
49 |
Cor |