Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Linus breaks nvidia again
Date: Sun, 29 Jul 2012 16:45:22
Message-Id: CADPrc808cqt-0YZNOjmE3v0Z1zEW9cV+faJcAZY3D13xToUc_g@mail.gmail.com
In Reply to: [gentoo-user] Linus breaks nvidia again by walt
1 On Sun, Jul 29, 2012 at 6:46 AM, walt <w41ter@×××××.com> wrote:
2 > For you weirdos who track Linus's git repo every day, and who use the
3 > proprietary nvidia-drivers, you need to make this change to the nvidia
4 > code for their kernel module (nvidia.ko):
5 >
6 > --- /usr/src/nv/nv-acpi.c.orig 2012-07-29 04:09:03.336096276 -0700
7 > +++ /usr/src/nv/nv-acpi.c 2012-07-29 04:09:21.260096633 -0700
8 > @@ -300,7 +300,7 @@
9 > if (pNvAcpiObject->notify_handler_installed)
10 > {
11 > // no status returned for this function
12 > - acpi_os_wait_events_complete(NULL);
13 > + acpi_os_wait_events_complete();
14 >
15 > // remove event notifier
16 > status = acpi_remove_notify_handler(device->handle, ACPI_DEVICE_NOTIFY, nv_acpi_event);
17 >
18 > ====================================
19 >
20 > Note that I've stashed the nvidia code in /usr/src/nv because I do recompile
21 > it every day after I build the latest kernel from Linus. This way I don't
22 > have to re-patch the nvidia code every day because I don't have to reinstall
23 > nvidia-drivers every day. (Just the kernel module part, nvidia.ko)
24 >
25 > I know there are some of you who know how to change ebuilds to apply your
26 > own local patches, so if you'd like to remind me how to do that I'd be
27 > grateful.
28
29 No need to change the ebuild; just put your patch (filename must end
30 in .patch) in
31
32 /etc/portage/patches/x11-drivers/nivida-drivers/
33
34 nvidia-drivers uses epatch_user; from the docs of the eclass:
35
36 # User patches are intended for quick testing of patches without ebuild
37 # modifications, as well as for permanent customizations a user might
38 # desire. Obviously, there can be no official support for arbitrarily
39 # patched ebuilds. So whenever a build log in a bug report mentions that
40 # user patches were applied, the user should be asked to reproduce the
41 # problem without these.
42
43 Regards.
44 --
45 Canek Peláez Valdés
46 Posgrado en Ciencia e Ingeniería de la Computación
47 Universidad Nacional Autónoma de México