1 |
On 08/05/2016 02:34 PM, R0b0t1 wrote: |
2 |
> On Aug 5, 2016 1:23 PM, "Natanael Olaiz" <nolaiz@×××××.com |
3 |
> <mailto:nolaiz@×××××.com>> wrote: |
4 |
>> |
5 |
>> I applied the attached patch unconditionally locally, and it seems to |
6 |
> work. |
7 |
>> Which is correct way to apply the patch or not depending on the kernel |
8 |
> version? |
9 |
>> |
10 |
> |
11 |
> See ebuild, there is a patch phase. Shove it in proper directory. Will |
12 |
> need local overlay. |
13 |
> |
14 |
|
15 |
if you are editing the ebuild in a local repo, put your patch in the |
16 |
files/ directory. If you want to conditionally patch for kernel 4.7, |
17 |
you can test this with "kernel_is" from the linux-info eclass. In that |
18 |
conditional block, epatch "${FILESDIR}/nameofyourfile.patch". |
19 |
|
20 |
Alternatively, use https://wiki.gentoo.org/wiki//etc/portage/patches to |
21 |
guide you on adding the patch to the proper place to have the ebuild |
22 |
automatically patch (without need for an local repo) for you |
23 |
(unconditionally wrt kernel version) |
24 |
|
25 |
-- |
26 |
NP-Hardass |