Bug 18526 - Update Request: nvidia304 GPL fix
Summary: Update Request: nvidia304 GPL fix
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: advisory mga5-32-ok mga5-64-ok
Keywords: validated_update
Depends on:
Blocks: 18031 18374 18375
  Show dependency treegraph
 
Reported: 2016-05-24 10:45 CEST by Thomas Backlund
Modified: 2016-06-09 14:46 CEST (History)
4 users (show)

See Also:
Source RPM: nvidia304
CVE:
Status comment:


Attachments

Description Thomas Backlund 2016-05-24 10:45:16 CEST
For testers, installing nvidia304-kernel-<flavour>-latest should pull in dkms-nvidia304, kernel-desktop-devel-<flavour>-latest and dkms + gcc buildchain + deps and install and work properly... 


Advisory:
Updated nvidia304 driver fixes GPL violation

It's been found that shipping prebuilt proprietary kernel modules is 
in violation of the GPL license.

Since Mageia.org is pro open source we adjust the way we provide
support for propritetary drivers.

In order to comply with GPL, this update switches to dkms source based
setup that builds the needed modules at kernel / driver install time.


SRPMS:
kmod-nvidia304-304.131-10.mga5.nonfree.src.rpm


i586:
nvidia304-kernel-desktop586-latest-304.131-10.mga5.nonfree.i586.rpm
nvidia304-kernel-desktop-latest-304.131-10.mga5.nonfree.i586.rpm
nvidia304-kernel-server-latest-304.131-10.mga5.nonfree.i586.rpm


x86_64:
nvidia304-kernel-desktop-latest-304.131-10.mga5.nonfree.x86_64.rpm
nvidia304-kernel-server-latest-304.131-10.mga5.nonfree.x86_64.rpm
Thomas Backlund 2016-05-24 13:47:03 CEST

Blocks: (none) => 18031

Thomas Backlund 2016-05-24 13:59:09 CEST

Blocks: (none) => 18374

Thomas Backlund 2016-05-24 13:59:14 CEST

Blocks: (none) => 18375

Comment 1 Brian Rockwell 2016-05-28 12:38:07 CEST
mga5-64

I ran the update, then did a check.

[root@localhost brian]# urpmi nvidia304-kernel-desktop-latest
Package nvidia304-kernel-desktop-latest-304.131-10.mga5.nonfree.x86_64 is already installed
Marking nvidia304-kernel-desktop-latest as manually installed, it won't be auto-orphaned
writing /var/lib/rpm/installed-through-deps.list

it only downloaded the one rpm file:  above listed.

rebooting.

CC: (none) => brtians1

Comment 2 Brian Rockwell 2016-05-28 12:42:36 CEST
worked fine.  - Thomas am I doing something wrong?  I didn't uninstall the old drivers, is that a necessary step?
Comment 3 claire robinson 2016-06-02 21:57:28 CEST
It's probably already built Brian. You can check with

# dkms status -m nvidia304

it'll show "installed" for dkms and "installed from binary" for the old kmod.
Comment 4 Brian Rockwell 2016-06-04 13:44:40 CEST
[root@localhost brian]# dkms status -m nvidia304
nvidia304, 304.131-1.mga5.nonfree, 3.19.8-desktop-3.mga5, x86_64: installed 
nvidia304, 304.125-4.mga5.nonfree, 3.19.8-desktop-3.mga5, x86_64: installed-binary from 3.19.8-desktop-3.mga5
Comment 5 Len Lawrence 2016-06-05 20:58:37 CEST
x86_64 on Dell laptop with nvidia 340.96, GeForce 8700M GT

# urpmi nvidia304-kernel-desktop-latest                
  dkms-nvidia304                 304.131      1.mga5.nonfr> x86_64  
  nvidia304-kernel-desktop-late> 304.131      10.mga5.nonf> x86_64  

Creating symlink /var/lib/dkms/nvidia304/304.131-1.mga5.nonfree/source ->
                 /usr/src/nvidia304-304.131-1.mga5.nonfree
DKMS: add Completed.
Preparing kernel 4.1.15-desktop-2.mga5 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper.......
using /proc/config.gz
make oldconfig.....
make prepare....
Building module:
cleaning build area....
make KERNELRELEASE=4.1.15-desktop-2.mga5 SYSSRC=/lib/modules/4.1.15-desktop-2.mga5/build module.............
cleaning build area....
cleaning kernel tree (make mrproper).....
DKMS: build Completed.
nvidia304.ko.xz:
 - Installation
   - Installing to /lib/modules/4.1.15-desktop-2.mga5/dkms/drivers/char/drm/
depmod.......
DKMS: install Completed.

# dkms status -m nvidia304
nvidia304, 304.131-1.mga5.nonfree, 4.1.15-desktop-2.mga5, x86_64: installed 

# dkms status
nvidia340, 340.96-1.mga5.nonfree, 3.19.8-desktop-3.mga5, x86_64: installed 
nvidia304, 304.131-1.mga5.nonfree, 4.1.15-desktop-2.mga5, x86_64: installed 
nvidia340, 340.96-1.mga5.nonfree, 4.1.15-desktop-2.mga5, x86_64: installed-binary from 4.1.15-desktop-2.mga5
nvidia340, 340.76-1.mga5.nonfree, 3.19.8-desktop-3.mga5, x86_64: installed-binary from 3.19.8-desktop-3.mga5

Rebooted OK but nvidia-settings indicates driver 340.96.

# urpmi x11-driver-video-nvidia-current
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Nonfree Updates Testing (distrib15)")
  dkms-nvidia-current            352.79       3.mga5.nonfr> x86_64  
  nvidia-current-doc-html        352.79       3.mga5.nonfr> x86_64  (recommended)
  x11-driver-video-nvidia-curre> 352.79       3.mga5.nonfr> x86_64  
197MB of additional disk space will be used.
35MB of packages will be retrieved.
Proceed with the installation of the 3 packages? (Y/n) n

Updated to ldetect-lst-0.1.346.4-1
Rebooted
nvidia-settings continues to report driver 340.96.  Looks like the installed binary preempts the newly installed version.

CC: (none) => tarazed25

Comment 6 Thomas Backlund 2016-06-05 21:30:19 CEST
(In reply to Len Lawrence from comment #5)

> nvidia-settings continues to report driver 340.96.  Looks like the installed
> binary preempts the newly installed version.

Nope.
It just means your hardware is using the nvidia340 driver, so thats what it will show regardless of the nvidia304 and nvidia-current versions
Comment 7 Len Lawrence 2016-06-05 21:39:47 CEST
Thanks Thomas.  So does that mean that showing that nvidia304 installs is a sufficient test?
Comment 8 claire robinson 2016-06-05 21:49:36 CEST
Without having the requisite hardware all we can do is ensure it compiles and is installed ok for the current kernel (4.1.15) for both i586 & x86_64.

These drivers will go first, making them easier to test with the updated kernels, which will follow.
Comment 9 Brian Rockwell 2016-06-06 03:52:56 CEST
I've been running 304 on old equipment.  Seems fine.  See my reply.  Do I need to run the install again and test another round?
Comment 10 Thomas Andrews 2016-06-07 02:15:33 CEST
Updated nvidia 304 package on a 32-bit system with server kernel 4.1.15-2, rebooted, and everything still worked.

Video hardware: nvidia Geforce 6200OC AGP card. 
AMD Sempron 64 3100+ processor, 2GB RAM

CC: (none) => andrewsfarm

Comment 11 claire robinson 2016-06-09 13:28:47 CEST
Adding OKs & Validating

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs
Whiteboard: (none) => mga5-32-ok mga5-64-ok

Comment 12 claire robinson 2016-06-09 14:20:09 CEST
Advisory uploaded.

Whiteboard: mga5-32-ok mga5-64-ok => advisory mga5-32-ok mga5-64-ok

Comment 13 Mageia Robot 2016-06-09 14:46:12 CEST
An update for this issue has been pushed to the Mageia Updates repository.

http://advisories.mageia.org/MGAA-2016-0090.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.