Jakub Klinkovský pushed to branch main at Arch Linux / Packaging / Packages / 
cuda


Commits:
9dc46a81 by Jakub Klinkovský at 2024-06-17T22:16:34+02:00
Add post-upgrade message about recent host-compiler configuration changes

Closes https://gitlab.archlinux.org/archlinux/packaging/packages/cuda/-/issues/8

- - - - -


1 changed file:

- cuda.install


Changes:

=====================================
cuda.install
=====================================
@@ -1,11 +1,37 @@
 post_install() {
-    echo "The cuda binaries are in /opt/cuda/bin"
-    echo "The cuda samples are in /opt/cuda/samples"
-    echo "The cuda docs are in /opt/cuda/doc"
-    echo "You need to relogin in order for the cuda binaries to appear in your 
PATH"
+    cat << EOF
+- The cuda binaries are in /opt/cuda/bin/
+- The cuda samples are in /opt/cuda/samples/
+- The cuda docs are in /opt/cuda/doc/
+- You need to source /etc/profile or restart your session in order for the CUDA
+  binaries to appear in your \$PATH
+- The default host compiler for nvcc is set by the \$NVCC_CCBIN environment
+  variable in /etc/profile.d/cuda.sh
+EOF
     post_upgrade
 }
 
 post_upgrade() {
     ldconfig -r .
+
+    # this message can be removed after some time, everything important is
+    # either in post_install or the following message
+    if (( "$(vercmp "$2" "12.5.0-2")" < 0 )); then
+        cat << EOF
+- The default host compiler for nvcc is no longer configured using symlinks in
+  /opt/cuda/bin/ but by the \$NVCC_CCBIN environment variable in
+  /etc/profile.d/cuda.sh.  You need to source /etc/profile or restart your
+  session for it to be available in your environment.  Additionally, you may
+  need to clear the build cache of your projects where the old path may have
+  been recorded.
+EOF
+    fi
+
+    cat << EOF
+- When you uninstall an old, unrequired version of GCC that was previously
+  required by cuda for the default host compiler (\$NVCC_CCBIN), you may need
+  to source /etc/profile or restart your session.  Additionally, you may need
+  to clear the build cache of your projects where the old path may be still
+  recorded.
+EOF
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/cuda/-/commit/9dc46a813cf8f7ee52bf68f2e713ad56d3c75ddb

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/cuda/-/commit/9dc46a813cf8f7ee52bf68f2e713ad56d3c75ddb
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to