[arch-commits] Commit in cuda/repos/community-x86_64 (10 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Tue Jan 10 00:56:26 UTC 2017


    Date: Tuesday, January 10, 2017 @ 00:56:25
  Author: svenstaro
Revision: 206330

archrelease: copy trunk to community-x86_64

Added:
  cuda/repos/community-x86_64/PKGBUILD
    (from rev 206329, cuda/trunk/PKGBUILD)
  cuda/repos/community-x86_64/cuda-findgllib_mk.diff
    (from rev 206329, cuda/trunk/cuda-findgllib_mk.diff)
  cuda/repos/community-x86_64/cuda.conf
    (from rev 206329, cuda/trunk/cuda.conf)
  cuda/repos/community-x86_64/cuda.install
    (from rev 206329, cuda/trunk/cuda.install)
  cuda/repos/community-x86_64/cuda.sh
    (from rev 206329, cuda/trunk/cuda.sh)
Deleted:
  cuda/repos/community-x86_64/PKGBUILD
  cuda/repos/community-x86_64/cuda-findgllib_mk.diff
  cuda/repos/community-x86_64/cuda.conf
  cuda/repos/community-x86_64/cuda.install
  cuda/repos/community-x86_64/cuda.sh

------------------------+
 PKGBUILD               |  139 +++++++++++++++++++++++------------------------
 cuda-findgllib_mk.diff |   44 +++++++-------
 cuda.conf              |    8 +-
 cuda.install           |   22 +++----
 cuda.sh                |    2 
 5 files changed, 108 insertions(+), 107 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-01-10 00:56:04 UTC (rev 206329)
+++ PKGBUILD	2017-01-10 00:56:25 UTC (rev 206330)
@@ -1,69 +0,0 @@
-# $Id: PKGBUILD 69719 2012-04-23 02:56:20Z svenstaro $
-# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
-pkgname=cuda
-pkgver=8.0.44
-pkgrel=2
-pkgdesc="NVIDIA's GPU programming toolkit"
-arch=('x86_64')
-url="http://www.nvidia.com/object/cuda_home.html"
-license=('custom:NVIDIA')
-depends=('gcc-libs' 'opencl-nvidia' 'gcc5')
-replaces=('cuda-toolkit' 'cuda-sdk')
-provides=('cuda-toolkit' 'cuda-sdk')
-optdepends=('gdb: for cuda-gdb')
-options=(!strip staticlibs)
-install=cuda.install
-source=(https://developer.nvidia.com/compute/cuda/8.0/prod/local_installers/cuda_${pkgver}_linux-run
-        cuda.sh
-        cuda.conf
-        cuda-findgllib_mk.diff)
-md5sums=('6dca912f9b7e2b7569b0074a41713640'
-         '7e5990e03eea90075f5a500e91a0c3d3'
-         '71420ee4e90c65df21c6c5d34373c245'
-         '6476452a339c12d8ca18b5feb47100cc')
-
-prepare() {
-  sh cuda_${pkgver}_linux-run -extract=${srcdir}
-  ./cuda-linux64-rel-*.run --noexec --keep
-  ./cuda-samples-linux-*.run --noexec --keep
-
-  # path hacks
-
-  # 1rd sed line: sets right path to install man files
-  # 2rd sed line: hack to lie installer, now detect launch script by root
-  # 3rd sed line: sets right path in .desktop files and other .desktop stuff (warnings by desktop-file-validate)
-  sed -e "s|/usr/share|${srcdir}/../pkg/${pkgname}/usr/share|g" \
-      -e 's|can_add_for_all_users;|1;|g' \
-      -e 's|=\\"$prefix\\\"|=/opt/cuda|g' -e 's|Terminal=No|Terminal=false|g' -e 's|ParallelComputing|ParallelComputing;|g' \
-      -i pkg/install-linux.pl
-
-  # set right path in Samples Makefiles
-  sed 's|\$cudaprefix\\|\\/opt\\/cuda\\|g' -i pkg/install-sdk-linux.pl
-
-  # use python2
-  find pkg -name '*.py' | xargs sed -i -e 's|env python|env python2|g' -e 's|bin/python|bin/python2|g'
-
-  # Fix up samples tht use findgllib_mk
-  for f in pkg/samples/*/*/findgllib.mk; do
-    patch $f cuda-findgllib_mk.diff
-  done
-}
-
-package() {
-  cd pkg
-  perl install-linux.pl -prefix="${pkgdir}/opt/cuda" -noprompt
-  perl install-sdk-linux.pl -cudaprefix="${pkgdir}/opt/cuda" -prefix="${pkgdir}/opt/cuda/samples" -noprompt
-
-  ln -s /usr/bin/gcc-5 "${pkgdir}/opt/cuda/bin/gcc"
-  ln -s /usr/bin/g++-5 "${pkgdir}/opt/cuda/bin/g++"
-
-  install -Dm755 "${srcdir}/cuda.sh" "${pkgdir}/etc/profile.d/cuda.sh"
-  install -Dm644 "${srcdir}/cuda.conf" "${pkgdir}/etc/ld.so.conf.d/cuda.conf"
-
-  mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
-  ln -s /opt/cuda/doc/pdf/EULA.pdf "${pkgdir}/usr/share/licenses/${pkgname}/EULA.pdf"
-
-  # remove redundant man and samples
-  rm -fr "${pkgdir}/opt/cuda/doc/man"
-  rm -fr "${pkgdir}/opt/cuda/cuda-samples"
-}

Copied: cuda/repos/community-x86_64/PKGBUILD (from rev 206329, cuda/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-01-10 00:56:25 UTC (rev 206330)
@@ -0,0 +1,70 @@
+# $Id: PKGBUILD 69719 2012-04-23 02:56:20Z svenstaro $
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+pkgname=cuda
+pkgver=8.0.44
+pkgrel=3
+pkgdesc="NVIDIA's GPU programming toolkit"
+arch=('x86_64')
+url="http://www.nvidia.com/object/cuda_home.html"
+license=('custom:NVIDIA')
+depends=('gcc-libs' 'opencl-nvidia' 'gcc5')
+replaces=('cuda-toolkit' 'cuda-sdk')
+provides=('cuda-toolkit' 'cuda-sdk')
+optdepends=('gdb: for cuda-gdb')
+options=(!strip staticlibs)
+install=cuda.install
+source=(https://developer.nvidia.com/compute/cuda/8.0/prod/local_installers/cuda_${pkgver}_linux-run
+        cuda.sh
+        cuda.conf
+        cuda-findgllib_mk.diff)
+md5sums=('6dca912f9b7e2b7569b0074a41713640'
+         '7e5990e03eea90075f5a500e91a0c3d3'
+         '71420ee4e90c65df21c6c5d34373c245'
+         '6476452a339c12d8ca18b5feb47100cc')
+
+prepare() {
+  sh cuda_${pkgver}_linux-run -extract=${srcdir}
+  ./cuda-linux64-rel-*.run --noexec --keep
+  ./cuda-samples-linux-*.run --noexec --keep
+
+  # path hacks
+
+  # 1rd sed line: sets right path to install man files
+  # 2rd sed line: hack to lie installer, now detect launch script by root
+  # 3rd sed line: sets right path in .desktop files and other .desktop stuff (warnings by desktop-file-validate)
+  sed -e "s|/usr/share|${srcdir}/../pkg/${pkgname}/usr/share|g" \
+      -e 's|can_add_for_all_users;|1;|g' \
+      -e 's|=\\"$prefix\\\"|=/opt/cuda|g' -e 's|Terminal=No|Terminal=false|g' -e 's|ParallelComputing|ParallelComputing;|g' \
+      -i pkg/install-linux.pl
+
+  # set right path in Samples Makefiles
+  sed 's|\$cudaprefix\\|\\/opt\\/cuda\\|g' -i pkg/install-sdk-linux.pl
+
+  # use python2
+  find pkg -name '*.py' | xargs sed -i -e 's|env python|env python2|g' -e 's|bin/python|bin/python2|g'
+
+  # Fix up samples tht use findgllib_mk
+  for f in pkg/samples/*/*/findgllib.mk; do
+    patch $f cuda-findgllib_mk.diff
+  done
+}
+
+package() {
+  cd pkg
+  perl install-linux.pl -prefix="${pkgdir}/opt/cuda" -noprompt
+  perl install-sdk-linux.pl -cudaprefix="${pkgdir}/opt/cuda" -prefix="${pkgdir}/opt/cuda/samples" -noprompt
+
+  ln -s /usr/bin/gcc-5 "${pkgdir}/opt/cuda/bin/gcc"
+  ln -s /usr/bin/g++-5 "${pkgdir}/opt/cuda/bin/g++"
+
+  install -Dm755 "${srcdir}/cuda.sh" "${pkgdir}/etc/profile.d/cuda.sh"
+  install -Dm644 "${srcdir}/cuda.conf" "${pkgdir}/etc/ld.so.conf.d/cuda.conf"
+
+  mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
+  ln -s /opt/cuda/doc/pdf/EULA.pdf "${pkgdir}/usr/share/licenses/${pkgname}/EULA.pdf"
+
+  # remove redundant man and samples
+  rm -fr "${pkgdir}/opt/cuda/doc/man"
+  rm -fr "${pkgdir}/opt/cuda/cuda-samples"
+  rm -fr "${pkgdir}/usr/share/man/man3/deprecated.3"*
+}

Deleted: cuda-findgllib_mk.diff
===================================================================
--- cuda-findgllib_mk.diff	2017-01-10 00:56:04 UTC (rev 206329)
+++ cuda-findgllib_mk.diff	2017-01-10 00:56:25 UTC (rev 206330)
@@ -1,22 +0,0 @@
---- findgllib.mk.dist	2016-05-01 23:04:03.000000000 +1200
-+++ findgllib.mk	2016-09-16 13:47:21.100160762 +1200
-@@ -64,6 +64,7 @@
-         RHEL   = $(shell echo $(DISTRO) | grep -i 'red\|rhel' >/dev/null 2>&1; echo $$?)
-         CENTOS = $(shell echo $(DISTRO) | grep -i centos      >/dev/null 2>&1; echo $$?)
-         SUSE   = $(shell echo $(DISTRO) | grep -i suse        >/dev/null 2>&1; echo $$?)
-+        ARCHLX = $(shell echo $(DISTRO) | grep -i arch        >/dev/null 2>&1; echo $$?)
-     ifeq ("$(UBUNTU)","0")
-       ifeq ($(HOST_ARCH)-$(TARGET_ARCH),x86_64-armv7l)
-         GLPATH := /usr/arm-linux-gnueabihf/lib
-@@ -102,6 +103,11 @@
-       GLPATH    ?= /usr/lib64/nvidia
-       GLLINK    ?= -L/usr/lib64/nvidia
-       DFLT_PATH ?= /usr/lib64
-+    endif
-+    ifeq ("$(ARCHLX)","0")
-+      GLPATH    ?= /usr/lib64/nvidia
-+      GLLINK    ?= -L/usr/lib64/nvidia
-+      DFLT_PATH ?= /usr/lib64
-     endif
-   
-   # find libGL, libGLU, libXi, 

Copied: cuda/repos/community-x86_64/cuda-findgllib_mk.diff (from rev 206329, cuda/trunk/cuda-findgllib_mk.diff)
===================================================================
--- cuda-findgllib_mk.diff	                        (rev 0)
+++ cuda-findgllib_mk.diff	2017-01-10 00:56:25 UTC (rev 206330)
@@ -0,0 +1,22 @@
+--- findgllib.mk.dist	2016-05-01 23:04:03.000000000 +1200
++++ findgllib.mk	2016-09-16 13:47:21.100160762 +1200
+@@ -64,6 +64,7 @@
+         RHEL   = $(shell echo $(DISTRO) | grep -i 'red\|rhel' >/dev/null 2>&1; echo $$?)
+         CENTOS = $(shell echo $(DISTRO) | grep -i centos      >/dev/null 2>&1; echo $$?)
+         SUSE   = $(shell echo $(DISTRO) | grep -i suse        >/dev/null 2>&1; echo $$?)
++        ARCHLX = $(shell echo $(DISTRO) | grep -i arch        >/dev/null 2>&1; echo $$?)
+     ifeq ("$(UBUNTU)","0")
+       ifeq ($(HOST_ARCH)-$(TARGET_ARCH),x86_64-armv7l)
+         GLPATH := /usr/arm-linux-gnueabihf/lib
+@@ -102,6 +103,11 @@
+       GLPATH    ?= /usr/lib64/nvidia
+       GLLINK    ?= -L/usr/lib64/nvidia
+       DFLT_PATH ?= /usr/lib64
++    endif
++    ifeq ("$(ARCHLX)","0")
++      GLPATH    ?= /usr/lib64/nvidia
++      GLLINK    ?= -L/usr/lib64/nvidia
++      DFLT_PATH ?= /usr/lib64
+     endif
+   
+   # find libGL, libGLU, libXi, 

Deleted: cuda.conf
===================================================================
--- cuda.conf	2017-01-10 00:56:04 UTC (rev 206329)
+++ cuda.conf	2017-01-10 00:56:25 UTC (rev 206330)
@@ -1,4 +0,0 @@
-/opt/cuda/lib64
-/opt/cuda/lib
-/opt/cuda/nvvm/lib64
-/opt/cuda/nvvm/lib

Copied: cuda/repos/community-x86_64/cuda.conf (from rev 206329, cuda/trunk/cuda.conf)
===================================================================
--- cuda.conf	                        (rev 0)
+++ cuda.conf	2017-01-10 00:56:25 UTC (rev 206330)
@@ -0,0 +1,4 @@
+/opt/cuda/lib64
+/opt/cuda/lib
+/opt/cuda/nvvm/lib64
+/opt/cuda/nvvm/lib

Deleted: cuda.install
===================================================================
--- cuda.install	2017-01-10 00:56:04 UTC (rev 206329)
+++ cuda.install	2017-01-10 00:56:25 UTC (rev 206330)
@@ -1,11 +0,0 @@
-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"
-    post_upgrade
-}
-
-post_upgrade() {
-    ldconfig -r .
-}

Copied: cuda/repos/community-x86_64/cuda.install (from rev 206329, cuda/trunk/cuda.install)
===================================================================
--- cuda.install	                        (rev 0)
+++ cuda.install	2017-01-10 00:56:25 UTC (rev 206330)
@@ -0,0 +1,11 @@
+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"
+    post_upgrade
+}
+
+post_upgrade() {
+    ldconfig -r .
+}

Deleted: cuda.sh
===================================================================
--- cuda.sh	2017-01-10 00:56:04 UTC (rev 206329)
+++ cuda.sh	2017-01-10 00:56:25 UTC (rev 206330)
@@ -1 +0,0 @@
-export PATH=$PATH:/opt/cuda/bin

Copied: cuda/repos/community-x86_64/cuda.sh (from rev 206329, cuda/trunk/cuda.sh)
===================================================================
--- cuda.sh	                        (rev 0)
+++ cuda.sh	2017-01-10 00:56:25 UTC (rev 206330)
@@ -0,0 +1 @@
+export PATH=$PATH:/opt/cuda/bin



More information about the arch-commits mailing list