guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch core-updates-frozen updated: gnu: tbb: Update to 2021.3.0.


From: guix-commits
Subject: branch core-updates-frozen updated: gnu: tbb: Update to 2021.3.0.
Date: Fri, 10 Sep 2021 15:40:58 -0400

This is an automated email from the git hooks/post-receive script.

glv pushed a commit to branch core-updates-frozen
in repository guix.

The following commit(s) were added to refs/heads/core-updates-frozen by this 
push:
     new e4b02e7  gnu: tbb: Update to 2021.3.0.
e4b02e7 is described below

commit e4b02e7e395f6b21126edc5e82071ce05bd3c24a
Author: Guillaume Le Vaillant <glv@posteo.net>
AuthorDate: Fri Sep 10 20:56:44 2021 +0200

    gnu: tbb: Update to 2021.3.0.
    
    * gnu/packages/tbb.scm (tbb): Update to 2021.3.0.
      [source]: Update repository URL. Remove snippet.
      [build-system]: Switch to 'cmake-build-system'.
      [arguments]: Add 'configure-flags'. Remove 'make-flags'.
      Remove 'fail-on-test-errors' phase.
      Remove custom 'configure' and 'install' phases.
---
 gnu/packages/tbb.scm | 67 ++++++----------------------------------------------
 1 file changed, 7 insertions(+), 60 deletions(-)

diff --git a/gnu/packages/tbb.scm b/gnu/packages/tbb.scm
index 5f14386..2aa3122 100644
--- a/gnu/packages/tbb.scm
+++ b/gnu/packages/tbb.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2016 Nikita <nikita@n0.is>
 ;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -23,79 +24,25 @@
   #:use-module (guix licenses)
   #:use-module (guix git-download)
   #:use-module (guix utils)
-  #:use-module (guix build-system gnu)
+  #:use-module (guix build-system cmake)
   #:use-module (gnu packages))
 
 (define-public tbb
   (package
     (name "tbb")
-    (version "2020.3")
+    (version "2021.3.0")
     (source (origin
               (method git-fetch)
               (uri (git-reference
-                    (url "https://github.com/01org/tbb";)
+                    (url "https://github.com/oneapi-src/oneTBB";)
                     (commit (string-append "v" version))))
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "0r9axsdlmacjlcnax4vkzg86nwf8lsx7wbqdi3wnryaxk0xvdcx6"))
-              (modules '((guix build utils)))
-              (snippet
-               '(begin
-                  (substitute* "build/common.inc"
-                    (("export tbb_build_prefix.+$")
-                     "export tbb_build_prefix?=guix\n"))
-
-                  ;; Don't capture the build time and kernel version.
-                  (substitute* "build/version_info_linux.sh"
-                    (("uname -srv") "uname -s")
-                    (("`date -u`") "01 Jan 1970"))
-
-                  (substitute* "build/linux.inc"
-                    (("os_kernel_version:=.*")
-                     "os_kernel_version:=5\n")
-                    (("os_version:=.*")
-                     "os_version:=1\n"))
-                  #t))))
-    (outputs '("out" "doc"))
-    (build-system gnu-build-system)
+                "1bz039my3ma87f24ngcsqs16f8jlpdgaqg01ab4g60nfqbrz1lkq"))))
+    (build-system cmake-build-system)
     (arguments
-     `(#:test-target "test"
-       #:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
-                                         (assoc-ref %outputs "out") "/lib"))
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'fail-on-test-errors
-           (lambda _
-             (substitute* "Makefile"
-               (("-\\$\\(MAKE") "$(MAKE"))
-             #t))
-         (replace 'configure
-           (lambda* (#:key outputs #:allow-other-keys)
-             (substitute* "build/linux.gcc.inc"
-               (("LIB_LINK_FLAGS =")
-                (string-append "LIB_LINK_FLAGS = -Wl,-rpath="
-                               (assoc-ref outputs "out") "/lib")))))
-         (replace 'install
-           (lambda* (#:key outputs #:allow-other-keys)
-             (let* ((doc      (string-append
-                               (assoc-ref outputs "doc") "/doc"))
-                    (examples (string-append doc "/examples"))
-                    (lib      (string-append
-                               (assoc-ref outputs "out") "/lib"))
-                    (include  (string-append
-                               (assoc-ref outputs "out") "/include")))
-               (mkdir-p lib)
-               (for-each
-                (lambda (f)
-                  (copy-file f
-                             (string-append lib "/"
-                                            (basename f))))
-                (find-files "build/guix_release" "\\.so"))
-               (copy-recursively "doc" doc)
-               (copy-recursively "examples" examples)
-               (copy-recursively "include" include)
-               #t))))))
+     `(#:configure-flags '("-DTBB_STRICT=OFF"))) ;; Don't fail on warnings
     (home-page "https://www.threadingbuildingblocks.org";)
     (synopsis "C++ library for parallel programming")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]