gnu: Don't use unstable tarballs in (packages opencl).

* gnu/packages/opencl.scm (opencl-clhpp, clinfo, beignet, pocl)
[source]: Use GIT-FETCH and GIT-FILE-NAME.
(pocl)[arguments]: Remove ‘remove-headers’ phase.
(make-opencl-headers)[source]: Use GIT-FILE-NAME.
This commit is contained in:
Tobias Geerinckx-Rice 2018-08-24 03:51:38 +02:00
parent 8294362688
commit d6d9ca1017
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 45 additions and 51 deletions

View File

@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com> ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -57,7 +58,7 @@
(uri (git-reference (uri (git-reference
(url "https://github.com/KhronosGroup/OpenCL-Headers.git") (url "https://github.com/KhronosGroup/OpenCL-Headers.git")
(commit commit))) (commit commit)))
(file-name (string-append name "-" commit)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"176ydpbyws5nr4av6hf8p41pkhc0rc4m4vrah9w6gp2fw2i32838")))) "176ydpbyws5nr4av6hf8p41pkhc0rc4m4vrah9w6gp2fw2i32838"))))
@ -102,15 +103,15 @@ programming.")
(package (package
(name "opencl-clhpp") (name "opencl-clhpp")
(version "2.0.10") (version "2.0.10")
(source (origin (source
(method url-fetch) (origin
(uri (string-append (method git-fetch)
"https://github.com/KhronosGroup/OpenCL-CLHPP/archive/v" (uri (git-reference
version ".tar.gz")) (url "https://github.com/KhronosGroup/OpenCL-CLHPP.git")
(commit (string-append "v" version))))
(sha256 (sha256
(base32 (base32 "0h5kpg5cl8wzfnqmv6i26aig2apv06ffm9p3rh35938n9r8rladm"))
"0awg6yznbz3h285kmnd47fykx2qa34a07sr4x1657yn3jmi4a9zs")) (file-name (git-file-name name version))))
(file-name (string-append name "-" version ".tar.gz"))))
(native-inputs (native-inputs
`(("python" ,python-wrapper))) `(("python" ,python-wrapper)))
(propagated-inputs (propagated-inputs
@ -124,7 +125,7 @@ programming.")
(string-append "-DCMAKE_INSTALL_PREFIX=" (string-append "-DCMAKE_INSTALL_PREFIX="
(assoc-ref %outputs "out") (assoc-ref %outputs "out")
"/include"))) "/include")))
;; regression tests requires a lot more dependencies ;; The regression tests require a lot more dependencies.
#:tests? #f)) #:tests? #f))
(build-system cmake-build-system) (build-system cmake-build-system)
(home-page "http://github.khronos.org/OpenCL-CLHPP/") (home-page "http://github.khronos.org/OpenCL-CLHPP/")
@ -174,15 +175,15 @@ Loader as provided by this package.")
(package (package
(name "clinfo") (name "clinfo")
(version "2.2.18.04.06") (version "2.2.18.04.06")
(source (origin (source
(method url-fetch) (origin
(uri (string-append (method git-fetch)
"https://github.com/Oblomov/clinfo/archive/" (uri (git-reference
version ".tar.gz")) (url "https://github.com/Oblomov/clinfo.git")
(file-name (string-append name "-" version ".tar.gz")) (commit version)))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32 "0y2q0lz5yzxy970b7w7340vp4fl25vndahsyvvrywcrn51ipgplx"))))
"0v7cy01irwdgns6lzaprkmm0502pp5a24zhhffydxz1sgfjj2w7p"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (native-inputs
`(("opencl-headers" ,opencl-headers))) `(("opencl-headers" ,opencl-headers)))
@ -216,16 +217,15 @@ the system.")
(package (package
(name "beignet") (name "beignet")
(version "1.3.2") (version "1.3.2")
(source (origin (source
(method url-fetch) (origin
(uri (string-append (method git-fetch)
"https://github.com/intel/beignet/archive/Release_v" (uri (git-reference
version (url "https://github.com/intel/beignet.git")
".tar.gz")) (commit (string-append "Release_v" version))))
(file-name (string-append name "-" version ".tar.gz")) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32 "0lpv3lvi2vrmzb8blflrpbd3jgin76zqmz6jcv17vn9mylqdrfnd"))
"18r0lq3dkd4yn6bxa45s2lrr9cjbg70nr2nn6xablvgqwzw0jb0r"))
(patches (search-patches "beignet-correct-file-names.patch")) (patches (search-patches "beignet-correct-file-names.patch"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
@ -295,15 +295,15 @@ back-end for the LLVM compiler framework.")
(package (package
(name "pocl") (name "pocl")
(version "1.1") (version "1.1")
(source (origin (source
(method url-fetch) (origin
(uri (string-append (method git-fetch)
"https://github.com/pocl/pocl/archive/v" (uri (git-reference
version ".tar.gz")) (url "https://github.com/pocl/pocl.git")
(file-name (string-append name "-" version ".tar.gz")) (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32 "1z3sqn20ddv1030adchpzs65qng436gc2mb99p213mkh95jkh1l5"))))
"0lrw3hlb0w53xzmrf2hvbda406l70ar4gyadflvlkj4879lx138y"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(native-inputs (native-inputs
`(("libltdl" ,libltdl) `(("libltdl" ,libltdl)
@ -323,12 +323,6 @@ back-end for the LLVM compiler framework.")
(assoc-ref %build-inputs "libc") "/lib")) (assoc-ref %build-inputs "libc") "/lib"))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'install 'remove-headers
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(delete-file-recursively
(string-append out "/include"))
#t)))
(add-before 'check 'set-HOME (add-before 'check 'set-HOME
(lambda _ (lambda _
(setenv "HOME" "/tmp") (setenv "HOME" "/tmp")