guix_mirror_bot pushed a commit to branch next-master
in repository guix.

commit 66cc4bf47fd835940621765ee797bcd4ed4a12cb
Author: Cayetano Santos <[email protected]>
AuthorDate: Sat Jan 17 12:53:04 2026 +0100

    gnu: pocl: Apply style and modernize.
    
    * gnu/packages/opencl.scm (pocl): Indent, move inputs after arguments.
    [arguments]: Use G-Expressions.
    
    Change-Id: I93650da0ea95b2a6de41a89deed546ad84a04172
---
 gnu/packages/opencl.scm | 92 ++++++++++++++++++++++++++-----------------------
 1 file changed, 48 insertions(+), 44 deletions(-)

diff --git a/gnu/packages/opencl.scm b/gnu/packages/opencl.scm
index 50483a3b71..63328c8a9d 100644
--- a/gnu/packages/opencl.scm
+++ b/gnu/packages/opencl.scm
@@ -207,52 +207,56 @@ incorporate inside an OpenCL implementation to give it 
ICD functionalities.")
   (package
     (name "pocl")
     (version "3.1")
-    (source (origin
-              (method git-fetch)
-              (uri (git-reference
-                    (url "https://github.com/pocl/pocl";)
-                    (commit (string-append "v" version))))
-              (sha256
-               (base32
-                "1pw4q0hi5ynx34fvzryravz3jbh89f9cg60fkjj77sxh9xw8phdd"))
-              (file-name (git-file-name name version))
-              (modules '((guix build utils)))
-              (snippet
-                 '(begin
-                        ;; "kernel/test_printf_vectors" and
-                        ;; "kernel/test_printf_vectors_ulongn"
-                        ;; fail on aarch5 and likely other platforms
-                        ;; as commented in CMakeLists.txt
-                        ;; thus disable the block in CMakeList.txt adding
-                        ;; these two tests
-                       (substitute* "tests/kernel/CMakeLists.txt"
-                         (("NOT ENABLE_POCL_FLOAT_CONVERSION") "false"))))))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/pocl/pocl";)
+              (commit (string-append "v" version))))
+       (sha256
+        (base32
+         "1pw4q0hi5ynx34fvzryravz3jbh89f9cg60fkjj77sxh9xw8phdd"))
+       (file-name (git-file-name name version))
+       (modules '((guix build utils)))
+       (snippet
+        #~(begin
+            ;; "kernel/test_printf_vectors" and
+            ;; "kernel/test_printf_vectors_ulongn"
+            ;; fail on aarch5 and likely other platforms
+            ;; as commented in CMakeLists.txt
+            ;; thus disable the block in CMakeList.txt adding
+            ;; these two tests
+            (substitute* "tests/kernel/CMakeLists.txt"
+              (("NOT ENABLE_POCL_FLOAT_CONVERSION") "false"))))))
     (build-system cmake-build-system)
-    (native-inputs (list libltdl pkg-config python-3))
-    (inputs (list clang-15 llvm-15
-                  `(,hwloc-2 "lib") opencl-icd-loader))
     (arguments
-     `(#:configure-flags (let* ((libdir (string-append (assoc-ref %outputs
-                                                                  "out")
-                                                       "/lib")))
-                           (list "-DENABLE_ICD=ON"
-                                 "-DENABLE_TESTSUITES=ON"
-                                 ;; We are not developers, don't run 
conformance suite.
-                                 "-DENABLE_CONFORMANCE=OFF"
-                                 (string-append "-DEXTRA_HOST_LD_FLAGS=-L"
-                                                (assoc-ref %build-inputs
-                                                           "libc") "/lib")
-                                 ;; We need both libdir and libdir/pocl in 
RUNPATH.
-                                 (string-append "-DCMAKE_INSTALL_RPATH="
-                                                libdir ";" libdir "/pocl")))
-       #:phases (modify-phases %standard-phases
-                  (add-before 'check 'set-HOME
-                    (lambda _
-                      (setenv "HOME" "/tmp")
-
-                      ;; Since 2.9.0, hwloc fails when /sys is missing, so 
provide a
-                      ;; fake topology.
-                      (setenv "HWLOC_SYNTHETIC" "4"))))))
+     (list
+      #:configure-flags
+      #~(let* ((libdir (string-append #$output "/lib")))
+          (list "-DENABLE_ICD=ON"
+                "-DENABLE_TESTSUITES=ON"
+                ;; We are not developers, don't run conformance suite.
+                "-DENABLE_CONFORMANCE=OFF"
+                (string-append "-DEXTRA_HOST_LD_FLAGS=-L"
+                               (assoc-ref %build-inputs "libc") "/lib")
+                ;; We need both libdir and libdir/pocl in RUNPATH.
+                (string-append "-DCMAKE_INSTALL_RPATH="
+                               libdir ";" libdir "/pocl")))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'set-HOME
+            (lambda _
+              (setenv "HOME" "/tmp")
+              ;; Since 2.9.0, hwloc fails when /sys is missing, so provide a
+              ;; fake topology.
+              (setenv "HWLOC_SYNTHETIC" "4"))))))
+    (inputs
+     (list clang-15
+           llvm-15
+           `(,hwloc-2 "lib")
+           opencl-icd-loader))
+    (native-inputs
+     (list libltdl pkg-config python-3))
     (home-page "http://portablecl.org/";)
     (synopsis "Portable Computing Language (pocl), an OpenCL implementation")
     (description

Reply via email to