1 |
Yes, thank you. I did the local repository path at the moment. I was |
2 |
thinking on pushing the patch upstream, but now I read on the ebuild I'm |
3 |
editing (using the check kernel_is :) ) : |
4 |
|
5 |
if use kernel_linux && kernel_is ge 4 7; then |
6 |
ewarn "Gentoo supports kernels which are supported by NVIDIA" |
7 |
ewarn "which are limited to the following kernels:" |
8 |
ewarn "<sys-kernel/gentoo-sources-4.7" |
9 |
ewarn "<sys-kernel/vanilla-sources-4.7" |
10 |
ewarn "" |
11 |
ewarn "You are free to utilize epatch_user to provide whatever" |
12 |
ewarn "support you feel is appropriate, but will not receive" |
13 |
ewarn "support as a result of those changes." |
14 |
ewarn "" |
15 |
ewarn "Do not file a bug report about this." |
16 |
ewarn "" |
17 |
fi |
18 |
|
19 |
So basically I will not have support. I didn't care about this warning when |
20 |
I went for fixing the issues. But seeing that the patch was simple I though |
21 |
on share it somehow... |
22 |
|
23 |
|
24 |
Best regards, |
25 |
Natanael. |
26 |
|
27 |
On 5 August 2016 at 20:50, NP-Hardass <NP-Hardass@g.o> wrote: |
28 |
|
29 |
> On 08/05/2016 02:34 PM, R0b0t1 wrote: |
30 |
> > On Aug 5, 2016 1:23 PM, "Natanael Olaiz" <nolaiz@×××××.com |
31 |
> > <mailto:nolaiz@×××××.com>> wrote: |
32 |
> >> |
33 |
> >> I applied the attached patch unconditionally locally, and it seems to |
34 |
> > work. |
35 |
> >> Which is correct way to apply the patch or not depending on the kernel |
36 |
> > version? |
37 |
> >> |
38 |
> > |
39 |
> > See ebuild, there is a patch phase. Shove it in proper directory. Will |
40 |
> > need local overlay. |
41 |
> > |
42 |
> |
43 |
> if you are editing the ebuild in a local repo, put your patch in the |
44 |
> files/ directory. If you want to conditionally patch for kernel 4.7, |
45 |
> you can test this with "kernel_is" from the linux-info eclass. In that |
46 |
> conditional block, epatch "${FILESDIR}/nameofyourfile.patch". |
47 |
> |
48 |
> Alternatively, use https://wiki.gentoo.org/wiki//etc/portage/patches to |
49 |
> guide you on adding the patch to the proper place to have the ebuild |
50 |
> automatically patch (without need for an local repo) for you |
51 |
> (unconditionally wrt kernel version) |
52 |
> |
53 |
> -- |
54 |
> NP-Hardass |
55 |
> |
56 |
> |