Summary: | x11-drivers/nvidia-drivers-190.42-r3 fails to compile on ACPI_CA_VERSION >= 0x20091112 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michael Weber (RETIRED) <xmw> |
Component: | Current packages | Assignee: | Doug Goldstein (RETIRED) <cardoe> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Adrian.Bassett, jer, spock |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
patch for different ACPI_CA_VERSION corresponding ebuild Patch the nvidia script to find the autoconf.h to detect kernel version Patch for the ebuild to use the autoconf-location.patch 212945: patch for different ACPI_CA_VERSION the linux/autoconf.h -> generated/autoconf.h patch the ebuild with location and acpi patch |
Description
Michael Weber (RETIRED)
2009-12-09 02:50:36 UTC
Created attachment 212506 [details]
build.log
Created attachment 212945 [details] patch for different ACPI_CA_VERSION They changed with the Interface with version 0x20091112, see http://www.acpica.org/bugzilla/show_bug.cgi?id=779 for details. gentoos git-sources-2.6.32-r10 (linux-2.6.32-git10) and linux-next-20091204 and above have these version, gentoo-sources-2.6.32 (linux-2.6.32-gentoo) does not. Created attachment 212946 [details] corresponding ebuild visit http://svn.xmw.de/gentoo-overlay/ for eazy access ... thx nvidia-drivers-190.53 (http://bugs.gentoo.org/show_bug.cgi?id=296947) is affected and fixed - by this patch, too. nvidia-drivers-195.22 with renamed nvidia-drivers-190.42-r3.ebuild is fixed with this, too. But there's another problem inside src_compile to determine the kernel version. workaround ebuild ... manifest clean compile cd /var/tmp/portage/x11-drivers/nvidia-drivers-195.22/work/NVIDIA-Linux-x86_64-195.22-pkg2/usr/src/nv make -j8 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux HOST_CC=x86_64-pc-linux-gnu-gcc clean module as linux-mod_src_compile does, must be some difference in the environments, have tried but not enough time to fix it. greetings. Created attachment 213737 [details, diff]
Patch the nvidia script to find the autoconf.h to detect kernel version
The location of autoconf.h changed from linux/autoconf.h to generated/autoconf.h in commit: 264a26838056fc2d759f58bec2e720e01fcb1bdb .
This is why the version isn't detected correctly with the script nvidia uses for kernels after that version.
Patch for the script and a patch for the nvidia-drivers-190.42-r4.ebuild attached.
Created attachment 213739 [details, diff]
Patch for the ebuild to use the autoconf-location.patch
(In reply to comment #6) > The location of autoconf.h changed from linux/autoconf.h to > generated/autoconf.h in commit: 264a26838056fc2d759f58bec2e720e01fcb1bdb . Ok, I think it would be worth to handle both possible file location. Otherwise it would not build wit <2.6.32 and gentoo-sources-2.6.32. I'm in a hurry, but I will look for it later. (In reply to comment #7) > Created an attachment (id=213739) [details] > Patch for the ebuild to use the autoconf-location.patch SOrry for the two posts, but this affects git-sources-2.6.32-git15 as well. The patch checks the kernel version being built against to make sure it is >= 2.6.33 before it applies the autoconf-location.patch. If that is what you mean. Once again, forever and always, unreleased kernel versions are NOT supported by NVIDIA nor by the Gentoo team. NVIDIA is aware of the change and will be releasing a new version to work with 2.6.33 series. This will not be fixed in the tree until 2.6.33 is out. (In reply to comment #11) > This will not be fixed in the tree until 2.6.33 is out. gentoo-sources-2.6.33 is out now and x11-drivers/nvidia-drivers-190.42-r3 from tree does not compile against ist. Created attachment 221161 [details, diff]
212945: patch for different ACPI_CA_VERSION
removed revision from filename
Created attachment 221163 [details, diff]
the linux/autoconf.h -> generated/autoconf.h patch
Created attachment 221165 [details]
the ebuild with location and acpi patch
Newer drivers are now out and in the tree and support this kernel and newer. |