[arch-commits] Commit in cuda/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Wed Sep 13 10:49:44 UTC 2017
Date: Wednesday, September 13, 2017 @ 10:49:43
Author: svenstaro
Revision: 257410
upgpkg: cuda 8.0.61-3
Add dirty hack for glibc 2.26
Modified:
cuda/trunk/PKGBUILD
----------+
PKGBUILD | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-09-13 09:00:33 UTC (rev 257409)
+++ PKGBUILD 2017-09-13 10:49:43 UTC (rev 257410)
@@ -2,7 +2,7 @@
# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
pkgname=cuda
pkgver=8.0.61
-pkgrel=2
+pkgrel=3
pkgdesc="NVIDIA's GPU programming toolkit"
arch=('x86_64')
url="http://www.nvidia.com/object/cuda_home.html"
@@ -51,9 +51,16 @@
package() {
cd pkg
+ export PERL5LIB=.
perl install-linux.pl -prefix="${pkgdir}/opt/cuda" -noprompt
perl install-sdk-linux.pl -cudaprefix="${pkgdir}/opt/cuda" -prefix="${pkgdir}/opt/cuda/samples" -noprompt
+ # Hack we need because of glibc 2.26 (https://bugs.archlinux.org/task/55580)
+ # without which we couldn't compile anything at all.
+ # Super dirty hack. I really hope it doesn't break other stuff!
+ # Probably we can remove this for cuda 9.
+ sed -i "1 i#define _BITS_FLOATN_H" "${pkgdir}/opt/cuda/include/host_defines.h"
+
# Needs Gcc 5.x.x
ln -s /usr/bin/gcc-5 "${pkgdir}/opt/cuda/bin/gcc"
ln -s /usr/bin/g++-5 "${pkgdir}/opt/cuda/bin/g++"
More information about the arch-commits
mailing list