Subject: [bug#74779] [PATCH mesa-updates 3/3] gnu: mesa: Update to 24.3.1.

From: John Kehayias <[email-masked]>
Date: Wed, 11 Dec 2024 06:29:15 +0000

* gnu/packages/gl.scm (mesa): Update to 24.3.1.
[arguments]: Add 'set-home-directory phase (build tries to use a
shader cache, though this without it won't fail to build).

Change-Id: I1fd7d1fe20109ccdd7386a82ecf7d415999c262a
---
 gnu/packages/gl.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index e1dfca7ca8..418970547e 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -303,7 +303,7 @@ (define libva-without-mesa
 (define-public mesa
   (package
     (name "mesa")
-    (version "24.2.5")
+    (version "24.3.1")
     (source
      (origin
        (method url-fetch)
@@ -313,7 +313,7 @@ (define-public mesa
                                  "mesa-" version ".tar.xz")))
        (sha256
         (base32
-         "0vyrkmy8j5bygddi2bsssj9g1rrcg4vfhvw0bjxsbmif4km0ngbk"))))
+         "1bs310dw9jjzvvchszmb3jakqb5268ssp83ba9ybrrcw8h05jycw"))))
     (build-system meson-build-system)
     (propagated-inputs
      ;; The following are in the Requires.private field of gl.pc.
@@ -545,6 +545,9 @@ (define-public mesa
                                         (from-crates-io 'rust-proc-macro2-1)
                                         (from-crates-io 'rust-paste-1))))))))
                 #~())
+         (add-after 'unpack 'set-home-directory
+           ;; Build tries to use a shader cache (non-fatal error).
+           (lambda _ (setenv "HOME" "/tmp")))
          (add-before 'configure 'fix-dlopen-libnames
            (lambda* (#:key inputs #:allow-other-keys)
              (let ((out #$output))
--
2.46.0