Gentoo Archives: gentoo-dev

From: NP-Hardass <NP-Hardass@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Patch for nvidia-drivers 367.35-r1 for kernels > 4.7.0
Date: Fri, 05 Aug 2016 18:50:41
Message-Id: 246a2d4e-51f2-973c-3c6f-5d40ff27a49a@gentoo.org
In Reply to: Re: [gentoo-dev] Patch for nvidia-drivers 367.35-r1 for kernels > 4.7.0 by R0b0t1
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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] Patch for nvidia-drivers 367.35-r1 for kernels > 4.7.0 Natanael Olaiz <nolaiz@×××××.com>