Please fix crappy rpm packages.

Please can someone at nvidia fix wrong pkgconfig packages.
v7.5 and 8.0 still refer to 7.0 install PATH. Poor quality

/usr/lib64/pkgconfig/cublas-7.0.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cublas-7.5.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cublas-8.0.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cuda-7.0.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cuda-7.5.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cuda-8.0.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cudart-7.0.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cudart-7.5.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cudart-8.0.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cufft-7.0.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cufft-7.5.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cufft-8.0.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cufftw-7.0.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cufftw-7.5.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cufftw-8.0.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cuinj64-7.0.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cuinj64-7.5.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cuinj64-8.0.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/curand-7.0.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/curand-7.5.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/curand-8.0.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cusolver-7.0.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cusolver-7.5.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cusolver-8.0.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cusparse-7.0.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cusparse-7.5.pc:cudaroot=/usr/local/cuda-7.0
/usr/lib64/pkgconfig/cusparse-8.0.pc:cudaroot=/usr/local/cuda-7.0

All packages impacted.
rpm -q --scripts cuda-cublas-dev-7-0
preinstall program: /bin/sh
postinstall scriptlet (using /bin/sh):
if [ -z $RPM_INSTALL_PREFIX0 ]; then
RPM_INSTALL_PREFIX0=/usr/local/cuda-7.0;
fi;
if [ -z $RPM_INSTALL_PREFIX1 ]; then
RPM_INSTALL_PREFIX1=/usr/lib64/pkgconfig;
fi;
SED_CMD=“s,^cudaroot=.,cudaroot=$RPM_INSTALL_PREFIX0,g";
find “$RPM_INSTALL_PREFIX1” -type f -name "cu
.pc” -exec sed -i’’ -e “$SED_CMD” {} ;
echo “*** LICENSE AGREEMENT ***
By using this software you agree to fully comply with the terms and conditions of the EULA (End User License Agreement). The EULA is located at /usr/local/cuda-7.0/doc/EULA.txt. The EULA can also be found at http://docs.nvidia.com/cuda/eula/index.html. If you do not agree to the terms and conditions of the EULA, do not use the software.”
preuninstall program: /bin/sh
postuninstall program: /bin/sh

=> THIS SCRIPT IS JUST PLAIN WRONG! If you install it AFTER higher version (for e.g. compatibility issues), then the postinstall WILLL CRASH all pkgconfig newer version.

SO UGLY to update a file that way instead of doing so at build stage…
Took time to figure out what was wrong in my files while the problem was in a quick and dirty hack in a postinstall scriptlet.

Need to reinstall 7.5 package to build 7.5 exe and then reinstall 8.0 packages to build 8.0 linked exe. (or manually fix alll .pc files…)

I agree. There are numerous problems. 8.0 package did not replace 7.5 driver, but when you build against 8.0 libcudart, it refuses to talk to the driver. Nice.

So I go to the driver download page. I download a run file to install the 8.0 driver. It refuses to run because (wait for it) I’m running an X server. Well, doggone it! I don’t want it to replace my X server, but OK, what do I do about it? It tells me to look in the readme file on the driver download page. So I go to the driver download page, and there is no readme file there. So I click on the “chat now” link to let them know that. And it connects me to a very nice person who tells me I have to come over here to ask a GPU-related question. That’s fine, I have no problem with that. But if that’s the case, get rid of the chat now button, please, and please don’t send me to a web page to get a readme file that is not posted there. :) OK?

Also, 8.0 and 7.5 both replace your X server, and this DESTROYS QT Creator v5.x :(

The 8.0 package will replace the 7.5 driver if you use the correct package and follow the instructions in the linux install guide:

http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#abstract

I think the other points you raise have also been raised in your other post, which I responded to.

It certainly did not do that in my case. I clicked to the exact distribution I am using Linux 64 bit OpenSuse 13.2. It left the 7.5 driver on there. That’s all I know. Undoubtedly I did something wrong. :)