nvidia-cuda-dev conflicts with nvidia-experimental-*

Bug #1092259 reported by Tessa
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
nvidia-cuda-toolkit (Debian)
Fix Released
Unknown
nvidia-cuda-toolkit (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Fix Released
Undecided
Unassigned
Quantal
Fix Released
Undecided
Unassigned

Bug Description

[SRU] The debdiff attached to comment #5 backports the required changes from nvidia-cuda-toolkit 5.0.35-4 in Raring.

[IMPACT]
Users with only nvidia-experimental-304 or nvidia-experimental-310 installed are unable to install nvidia-cuda-toolkit without nvidia-current (which conflicts) being installed.
Users with only nvidia-experimental-304 or nvidia-experimental-310 installed are unable to build nvidia-cuda-toolkit from its source package.

[Test Cases]
Install nvidia-experimental-304 or nvidia-experimental-310 (this can be done on computers without Nvidia hardware) and then attempt to install nvidia-cuda-toolkit.

[Regression Potential]
Minimal: the changes only affect the installation of nvidia-cuda-toolkit by allowing additional packages to satisfy its dependencies.

Original bug description:
On Quantal x86_64, you can't install nvidia-cuda-dev if you've got the nvidia-experimental drivers installed, which are the only supported drivers for things like the Steam beta:

$ sudo apt-get install nvidia-cuda-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libcublas4 libcudart4 libcufft4 libcuinj4 libcurand4 libcusparse4 libnpp4 libthrust-dev libvdpau-dev nvidia-current
Suggested packages:
  nvidia-cuda-toolkit libvdpau-doc
The following packages will be REMOVED:
  nvidia-experimental-310
The following NEW packages will be installed:
  libcublas4 libcudart4 libcufft4 libcuinj4 libcurand4 libcusparse4 libnpp4 libthrust-dev libvdpau-dev nvidia-cuda-dev nvidia-current
0 upgraded, 11 newly installed, 1 to remove and 0 not upgraded.
Need to get 146 MB of archives.
After this operation, 427 MB of additional disk space will be used.
Do you want to continue [Y/n]? n

There's no reason this package incompatibility exists, CUDA operations should be available with any version of the nvidia binary drivers.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: nvidia-cuda-dev (not installed)
ProcVersionSignature: Ubuntu 3.5.0-19.30-generic 3.5.7
Uname: Linux 3.5.0-19-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.6.1-0ubuntu9
Architecture: amd64
Date: Wed Dec 19 11:00:00 2012
MarkForUpload: True
SourcePackage: nvidia-cuda-toolkit
UpgradeStatus: Upgraded to quantal on 2012-10-23 (56 days ago)

Revision history for this message
Tessa (unit3) wrote :
Revision history for this message
Damien Jade Duff (damienjadeduff) wrote :

Hi there

If anyone wants to work around this while waiting on the fix, as I needed to do, this is how I did it. What you would do is download the attached patches file to a folder that you create and run the set of commands below. Run the commands one by one in case something doesn't work.

Note the patches are not complete; they are only for a very specific proble - you need to edit them if e.g. you are using nvidia-experimental-304.
Also, take care. If things are different on your system it may not work.

Regardses
Damien

sudo apt-get install build-essential fakeroot dpkg-dev ubuntu-dev-tools #possibly the last one is unnecessary

mkdir nvidia_cuda_fix #where we will be working

cd nvidia_cuda_fix #download the patch files to here - patches_cuda_work_with_310_1210.tar.gz

apt-get source nvidia-cuda-toolkit #get the source for the package - you will build it - this is the source with all the additional ubuntu/debian bits

tar -xvzvf patches_cuda_work_with_310_1210.tar.gz #unzip the patches I have provided in the attachment and which you downloaded

patch nvidia-cuda-toolkit_4.2.9-1ubuntu1.dsc nvidia-cuda-toolkit_4.2.9-1ubuntu1.dsc.patch.20121220 #adds nvidia-experimental-310 to list of dependencies

dpkg-source -x nvidia-cuda-toolkit_4.2.9-1ubuntu1.dsc # I am not sure what this does exactly... - extracts the source package - I think actually this is already done by apt-get, but anyway

cd nvidia-cuda-toolkit-4.2.9/ #go to where things are going to be built

patch debian/control ../control.patch.20121220 #adds nvidia-experimental-310 to list of dependencies

dpkg-buildpackage -rfakeroot -b #compile the stuff we are going to install

cd .. #it has put the deb files in the parent dir (our working dir)

sudo apt-get install gcc-4.4 g++-4.4 libthrust-dev opencl-headers # some random dependencies of the built packages - you may need more here and rerun the below line untill things work if dependencies weren't satisfied on your system

sudo dpkg --install *deb # install it and see it break

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-cuda-toolkit (Ubuntu):
status: New → Confirmed
Changed in nvidia-cuda-toolkit (Debian):
status: Unknown → New
Changed in nvidia-cuda-toolkit (Debian):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-cuda-toolkit - 5.0.35-4

---------------
nvidia-cuda-toolkit (5.0.35-4) experimental; urgency=low

  [ Graham Inggs ]
  * Ubuntu: Build-Depend/Depend on nvidia-experimental-* (LP: #1092259).

  [ Andreas Beckmann ]
  * Ubuntu: Override libcuda.so.1 dependencies via shlibs.local to support
    installing with nvidia-experimental-* while building against
    nvidia-current. (Closes: #700621)

 -- Andreas Beckmann <email address hidden> Sat, 16 Feb 2013 15:58:28 +0100

Changed in nvidia-cuda-toolkit (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Graham Inggs (ginggs) wrote :
Graham Inggs (ginggs)
description: updated
Changed in nvidia-cuda-toolkit (Ubuntu Precise):
status: New → In Progress
Graham Inggs (ginggs)
Changed in nvidia-cuda-toolkit (Ubuntu Precise):
status: In Progress → New
Changed in nvidia-cuda-toolkit (Ubuntu Quantal):
status: New → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Graeme, or anyone else affected,

Accepted nvidia-cuda-toolkit into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/nvidia-cuda-toolkit/4.0.17-3ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in nvidia-cuda-toolkit (Ubuntu Precise):
status: New → Fix Committed
tags: added: verification-needed
Changed in nvidia-cuda-toolkit (Ubuntu Quantal):
status: In Progress → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Graeme, or anyone else affected,

Accepted nvidia-cuda-toolkit into quantal-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/nvidia-cuda-toolkit/4.2.9-1ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
Tessa (unit3) wrote :

Is there an ETA on seeing this in proposed? I still don't see it today.

Revision history for this message
Colin Watson (cjwatson) wrote :

I've accepted the binaries now and they're on their way in within the next hour or so.

Revision history for this message
Peng (pengwg) wrote :

In raring can it also suppport nvidia-310-* and nvida-313-*?

Revision history for this message
Tessa (unit3) wrote :

Looks good to me now in quantal, but I second the suggestion that it support all nvidia driver releases in raring.

Revision history for this message
Graham Inggs (ginggs) wrote :

nvidia-cuda-toolkit 4.0.17-3ubuntu0.1 installs fine for me in Precise with only nvidia-experimental-310 installed, nvidia-current is no longer being installed as well.

@Graeme: A new bug was opened for Raring:
https://bugs.launchpad.net/ubuntu/+source/nvidia-cuda-toolkit/+bug/1162945

tags: added: verification-done
removed: verification-needed
Revision history for this message
Chris Halse Rogers (raof) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-cuda-toolkit - 4.0.17-3ubuntu0.1

---------------
nvidia-cuda-toolkit (4.0.17-3ubuntu0.1) precise-proposed; urgency=low

  * Backport the following changes from 5.0.35-4 in Raring so that
    nvidia-cuda-toolkit can also be built and installed on systems with
    nvidia-experimental installed and without depending on and recommending
    nvidia-current.
    - debian/{control,rules}: Use substvars for the names of the libcuda1 and
      nvidia-libopencl1 packages.
    - Build-Depend/Depend on nvidia-current | nvidia-current-updates |
      nvidia-experimental-*. instead of libcuda1 and nvidia-libopencl1.
      (LP: #950963)
    - Override libcuda.so.1 dependencies via shlibs.local to support
      installing with nvidia-experimental-* while building against
      nvidia-current. (LP: #1092259)
 -- Graham Inggs <email address hidden> Wed, 20 Feb 2013 13:23:19 +0200

Changed in nvidia-cuda-toolkit (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-cuda-toolkit - 4.2.9-1ubuntu1.1

---------------
nvidia-cuda-toolkit (4.2.9-1ubuntu1.1) quantal-proposed; urgency=low

  * Backport the following changes from 5.0.35-4 in Raring so that
    nvidia-cuda-toolkit can also be built and installed on systems with
    nvidia-experimental installed and without depending on and recommending
    nvidia-current. (LP: #1092259).
    - debian/{control,rules}: Use substvars for the names of the libcuda1 and
      nvidia-libopencl1 packages.
    - Build-Depend/Depend on nvidia-current | nvidia-current-updates |
      nvidia-experimental-*. instead of libcuda1 and nvidia-libopencl1.
    - Override libcuda.so.1 dependencies via shlibs.local to support
      installing with nvidia-experimental-* while building against
      nvidia-current.
 -- Graham Inggs <email address hidden> Wed, 20 Feb 2013 10:55:42 +0200

Changed in nvidia-cuda-toolkit (Ubuntu Quantal):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.