Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel 3.10.7 and nvidia-drivers-173.14.37
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message

Joined: 07 Sep 2003
Posts: 1675
Location: Edinburgh, UK

PostPosted: Thu Aug 22, 2013 10:53 am    Post subject: Kernel 3.10.7 and nvidia-drivers-173.14.37 Reply with quote

Hi all,

I recently tried to upgrade my machine to the latest available kernel. Unfortunately, it looks like there's a problem with nvidia. I did some searching around and tried to use epatch_user, but was not successful. If anybody could help me resolve this, I would really appreciate it.

First, here is the failure output of running emerge nvidia-drivers:


>>> Failed to emerge x11-drivers/nvidia-drivers-173.14.37, Log file:

>>>  '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.37/temp/build.log'

 * Messages for package x11-drivers/nvidia-drivers-173.14.37:

 * Gentoo supports kernels which are supported by NVIDIA
 * which are limited to the following kernels:
 * <sys-kernel/gentoo-sources-3.9
 * <sys-kernel/vanilla-sources-3.9
 * You are free to utilize epatch_user to provide whatever
 * support you feel is appropriate, but will not receive
 * support as a result of those changes.
 * Do not file a bug report about this.
 * ERROR: x11-drivers/nvidia-drivers-173.14.37 failed (compile phase):
 *   emake failed
 * If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-173.14.37'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-173.14.37'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.37/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.37/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.37/work/usr/src/nv'
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.37/work/'

This is what I got after creating the directory /etc/portage/pathes/x11-drivers/nvidia-drivers

In this directory I placed the file nvidia-drivers-173.14.37.diff, which is as follows:


Index: x11/nvidia-driver/Makefile
--- x11/nvidia-driver/Makefile  (revision 317139)
+++ x11/nvidia-driver/Makefile  (working copy)
@@ -70,6 +70,10 @@
 EXTRA_PATCHES+=        ${FILESDIR}/security-patch-CVE-2012-4225

+.if ${NVVERSION} == 1731435
+EXTRA_PATCHES+=        ${FILESDIR}/build-patch-nv_api_call

Index: x11/nvidia-driver/files/build-patch-nv_api_call
--- x11/nvidia-driver/files/build-patch-nv_api_call     (revision 0)
+++ x11/nvidia-driver/files/build-patch-nv_api_call     (working copy)
@@ -0,0 +1,13 @@
+--- src/nv-freebsd.h.orig      2013-05-06 13:13:49.000000000 +0200
++++ src/nv-freebsd.h   2013-05-06 13:16:38.000000000 +0200
+@@ -142,8 +142,8 @@
+-RM_STATUS os_alloc_contig_pages(void **, U032);
+-void os_free_contig_pages(void *, U032);
++RM_STATUS NV_API_CALL os_alloc_contig_pages(void **, U032);
++void NV_API_CALL os_free_contig_pages(void *, U032);
+ /*
+  * Enable/Disable support for FreeBSD's AGP GART driver. Please note that

I also placed the following in /etc/portage/bashrc:


# Enable user patches for ebuilds that don't support it
# mkdir -p /etc/portage/patches/abc/xyz
# cp 999-mypatch.patch /etc/portage/patches/abc/xyz/
post_src_prepare() {

Anyway, help would be appreciated.



Last edited by evoweiss on Sat Aug 24, 2013 3:50 am; edited 1 time in total
Back to top
View user's profile Send private message

Joined: 10 Oct 2010
Posts: 1359

PostPosted: Thu Aug 22, 2013 12:36 pm    Post subject: Reply with quote

If the ebuild calls epatch_user then just put your patch into

nothing more!
If your user patch doesn't go through the emerge dies ...
Back to top
View user's profile Send private message

Joined: 20 Apr 2005
Posts: 5968

PostPosted: Thu Aug 22, 2013 9:07 pm    Post subject: Reply with quote

You got the wrong patch. The working patch is about 20k, but I forgot where I found it.
Back to top
View user's profile Send private message

Joined: 16 Jul 2007
Posts: 4

PostPosted: Fri Aug 23, 2013 3:08 pm    Post subject: x11-drivers/nvidia-drivers-173.14.37 and Linux 3.10 Reply with quote

The patch by Alberto Milone which I found on AUR seems to work, except the file paths need to be changed a little so it can be applied to the base working directory (instead of the usr/src/nv subdirectory).

In short: put this file in /etc/portage/patches/x11-drivers/nvidia-drivers-173.14.37/ and emerge the driver.

By the way, the version in the topic title is wrong; it says "nvidia-drivers-137" instead of "nvidia-drivers-173". That's annoying because it makes the topic unnecessarily hard to search for.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum