Bug#785205: nvidia-kernel-dkms: fails to build with kernel 4.0 (sid)

Konstantin Demin rockdrilla at gmail.com
Mon Jun 15 20:45:36 UTC 2015


Hello again!

Here is quick and dirty patch to debian/rules.

2015-06-15 23:22 GMT+03:00 Konstantin Demin <rockdrilla at gmail.com>:
> Hi Vincent!
>
> I'm currently trying to debianize 346.72 using
> nvidia-graphics-drivers:346.59 and i have pretty same issue.
> Build succeeds with target architecture "amd64" but it will fail with
> others architectures.
>
> Here is my investigation:
>
> krd at aceroid $ uname -a
> Linux aceroid 4.0.5-krd.aceroid.0 #1 SMP Mon Jun 15 14:33:27 MSK 2015
> x86_64 GNU/Linux
>
> krd at aceroid $ sbuild -c sid-i386-sbuild --arch=i386
> nvidia-graphics-drivers_346.72-0.dsc
> [--- CUT HERE ---]
> # Use the nvidia-kernel-source source to create the DKMS tree.
> mkdir -p debian/nvidia-kernel-dkms/usr/src/
> mv debian/nvidia-kernel-source/usr/src/modules/nvidia-kernel
> debian/nvidia-kernel-dkms/usr/src/nvidia-current-346.72
> rmdir debian/nvidia-kernel-source/usr/src/modules/
> cd debian/nvidia-kernel-dkms/usr/src/nvidia-current-346.72 \
>     && QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null push -a
> || test $? = 2 \
>     && rm -rf .pc debian
> Applying patch not-silent.patch
> patching file nvidia-modules-common.mk
>
> Applying patch avoid-ld.gold.patch
> patching file nvidia-modules-common.mk
>
> Applying patch use-nv-kernel-ARCH.o_shipped.patch
> patching file Kbuild
>
> Applying patch conditionally-include-linux_version.h.patch
> patching file nv-linux.h
>
> Applying patch uvm-symvers.patch
> can't find file to patch at input line 6
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |Author: Andreas Beckmann <debian at abeckmann.de>
> |Description: fix up the ../Module.symvers dependency for our uvm build
> |
> |--- a/uvm/Kbuild
> |+++ b/uvm/Kbuild
> --------------------------
> No file to patch.  Skipping patch.
> 1 out of 1 hunk ignored
> Patch uvm-symvers.patch does not apply (enforce with -f)
> make[2]: *** [build-kernel-dkms-tree] Error 1
> debian/rules:237: recipe for target 'build-kernel-dkms-tree' failed
> make[2]: Leaving directory '/«PKGBUILDDIR»'
> make[1]: *** [install] Error 2
> debian/rules:140: recipe for target 'install' failed
> make[1]: Leaving directory '/«PKGBUILDDIR»'
> make: *** [binary] Error 2
> debian/rules:140: recipe for target 'binary' failed
> dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
> [--- CUT HERE ---]
>
> krd at aceroid $ for i in NVIDIA-*-346.59.run; do sh $i -x; done
> Creating directory NVIDIA-Linux-armv7l-gnueabihf-346.59
> Verifying archive integrity... OK
> Uncompressing NVIDIA Accelerated Graphics Driver for Linux-armv7l 346.59..
> Creating directory NVIDIA-Linux-x86-346.59
> Verifying archive integrity... OK
> Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 346.59..
> Creating directory NVIDIA-Linux-x86_64-346.59
> Verifying archive integrity... OK
> Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 346.59..
>
> krd at aceroid $ find NVIDIA-*-346.59/ -name uvm
> NVIDIA-Linux-x86_64-346.59/kernel/uvm
>
> Temporary solution is to copy whole uvm/ directory from amd64 variant to others.
>
> --
> SY,
> Konstantin Demin



-- 
SY,
Konstantin Demin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x.patch
Type: text/x-patch
Size: 744 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20150615/0e29eae4/attachment.bin>


More information about the pkg-nvidia-devel mailing list