diff options
author | Daniel Bermond | 2017-05-31 18:54:16 -0300 |
---|---|---|
committer | Daniel Bermond | 2017-05-31 18:54:16 -0300 |
commit | cd8c211c6df609410fb71b4db21ec1a85d411678 (patch) | |
tree | 5d04426a3481559e91218e47d43925ba93c09767 | |
parent | b9b807373f6da7dc4e7571f945633f279a0792fa (diff) | |
download | aur-cd8c211c6df609410fb71b4db21ec1a85d411678.tar.gz |
Fix build if package is installing cuda for the first time
When installing cuda for the first time, the cuda binaries appear
on PATH only after the user do a relogin.
As a consequence, the cuda binaries will not be available if cuda
is being installed for the first time as a dependency of
ffmpeg-full-git. This can be fixed by strictly specifying the full
path of nvcc.
Reference:
----------
https://git.archlinux.org/svntogit/community.git/tree/trunk/cuda.install?h=packages/cuda
-rw-r--r-- | .SRCINFO | 4 | ||||
-rwxr-xr-x | PKGBUILD | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Wed May 31 21:39:15 UTC 2017 +# Wed May 31 21:54:07 UTC 2017 pkgbase = ffmpeg-full-git pkgdesc = Record, convert and stream audio and video (Git version with all possible libs) pkgver = N.86313.g87bddba43b - pkgrel = 3 + pkgrel = 4 url = http://www.ffmpeg.org/ arch = i686 arch = x86_64 @@ -2,7 +2,7 @@ pkgname=ffmpeg-full-git pkgver=N.86313.g87bddba43b -pkgrel=3 +pkgrel=4 pkgdesc="Record, convert and stream audio and video (Git version with all possible libs)" arch=('i686' 'x86_64') url="http://www.ffmpeg.org/" @@ -76,6 +76,10 @@ build() { fi _ldflags="--extra-ldflags=-L/opt/cuda/lib64 ${_nvidia_340xx_ldflags}" _ldflags="${_ldflags} -Wl,-rpath -Wl,/opt/intel/mediasdk/lib64" + + # strictly specifying nvcc path is needed if package is installing + # cuda for the first time + sed -i 's/^nvcc_default=.*/nvcc_default=\"\/opt\/cuda\/bin\/nvcc\"/' configure fi msg2 "Running ffmpeg configure script. Please wait..." |