unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: John Kehayias via Guix-patches via <guix-patches@gnu.org>
To: "49339@debbugs.gnu.org" <49339@debbugs.gnu.org>
Cc: Ricardo Wurmus <rekado@elephly.net>,
	Maxime Devos <maximedevos@telenet.be>
Subject: [bug#49339] [PATCH core-updates] gnu: mesa: Update to 21.1.4.
Date: Tue, 27 Jul 2021 21:54:40 +0000	[thread overview]
Message-ID: <9BP6BfIqSQHSXQF79ytA6BYUeMlF07ymemMi6wpkDEOZ37-waZwdekebnVWUu6UCL6AKwebIl3qR9kv-mEzot0Z-OkdGWo_A0wqltVqyIds=@protonmail.com> (raw)
In-Reply-To: <s_56Wkw6Gng1yMpobChu6yLYyAMd4xzGR1r9wrY6X0oSRi7FS9yC18ll6tt6xA-cFDJ9Y6XiQ_3v2BJ4HUAhQkFy5yC02vuzKw867EdA8is=@protonmail.com>

[-- Attachment #1: Type: text/plain, Size: 1618 bytes --]

> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>
> On Tuesday, July 13th, 2021 at 11:42 AM, John Kehayias wrote:
>
> > Hi everyone,
> >
> > Final update, we still need the mesa-skip-tests.patch, but only for the i686 part (second half). The other part of the patch is not needed as the test passes.
> >
> > Here is the final version of the patch to just update Mesa to 21.1.4. Note this depends on the libdrm update of https://issues.guix.gnu.org/49412 Mesa builds as well as descendants I've tried (like xorg and friends).
> >
> > Shall we get this merged and set the libglvnd updates after (in case we run into the core-updates freeze)? That would work well for me at least.
> >
> > Thanks everyone,
> >
> > John
>
> I forgot the copyright line, though I think this should be for Irfan. Here is mine, just in case:
>
> diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
>
> index cc5131b28d..f9b6ed9891 100644
>
> --- a/gnu/packages/gl.scm
>
> +++ b/gnu/packages/gl.scm
>
> @@ -15,6 +15,7 @@
>
> ;;; Copyright © 2020 Giacomo Leidi goodoldpaul@autistici.org
>
> ;;; Copyright © 2020 Maxim Cournoyer maxim.cournoyer@gmail.com
>
> ;;; Copyright © 2020 Kei Kebreau kkebreau@posteo.net
>
> +;;; Copyright © 2021 John Kehayias john.kehayias@protonmail.com
>
> ;;;
>
> ;;; This file is part of GNU Guix.
>
> ;;;

Apologies, the full patch was missing before. It is attached as v2 with changes noted previously (would be great to give Irfan credit here as well). Still depends on libdrm being updated, see https://issues.guix.gnu.org/49412

Thanks!

John

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: gnu-mesa-Update-to-21.1.4-v2.patch --]
[-- Type: text/x-patch; name=gnu-mesa-Update-to-21.1.4-v2.patch, Size: 3595 bytes --]

* gnu/packages/gl.scm (mesa): Update to 21.1.4.
* gnu/packages/patches/mesa-skip-tests.patch: Remove cache_test.c as it is no
longer needed (test passes).
---
 gnu/packages/gl.scm                        | 11 ++++++-----
 gnu/packages/patches/mesa-skip-tests.patch | 20 --------------------
 2 files changed, 6 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index cc5131b28d..f9b6ed9891 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -15,6 +15,7 @@
 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2020 Kei Kebreau <kkebreau@posteo.net>
+;;; Copyright © 2021 John Kehayias <john.kehayias@protonmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -237,7 +238,7 @@ also known as DXTn or DXTC) for Mesa.")
 (define-public mesa
   (package
     (name "mesa")
-    (version "20.2.6")
+    (version "21.1.4")
     (source
       (origin
         (method url-fetch)
@@ -249,7 +250,7 @@ also known as DXTn or DXTC) for Mesa.")
                                   version "/mesa-" version ".tar.xz")))
         (sha256
          (base32
-          "1nw5k2qrlcrp5bljy1lmyybgl525y0h44synkbbirw92qv3a6b7i"))
+          "02z9g6zpkg1p1sm8f84xdi7v2n7x534x9pn565bvcr411527y5qz"))
         (patches
          (search-patches "mesa-skip-tests.patch"))))
     (build-system meson-build-system)
@@ -309,7 +310,7 @@ also known as DXTn or DXTC) for Mesa.")
          "-Dglx=dri"        ;Thread Local Storage, improves performance
          ;; "-Dopencl=true"
          ;; "-Domx=true"
-         "-Dosmesa=gallium"
+         "-Dosmesa=true"
          "-Dgallium-xa=enabled"
 
          ;; features required by wayland
@@ -417,8 +418,8 @@ also known as DXTn or DXTC) for Mesa.")
              (let ((out (assoc-ref outputs "out"))
                    (bin (assoc-ref outputs "bin")))
                ;; Not all architectures have the Vulkan overlay control script.
-               (mkdir-p (string-append bin "/bin"))
-               (call-with-output-file (string-append bin "/bin/.empty")
+               (mkdir-p (string-append out "/bin"))
+               (call-with-output-file (string-append out "/bin/.empty")
                  (const #t))
                (copy-recursively (string-append out "/bin")
                                  (string-append bin "/bin"))
diff --git a/gnu/packages/patches/mesa-skip-tests.patch b/gnu/packages/patches/mesa-skip-tests.patch
index 2622d5d312..8f587ea7ef 100644
--- a/gnu/packages/patches/mesa-skip-tests.patch
+++ b/gnu/packages/patches/mesa-skip-tests.patch
@@ -1,23 +1,3 @@
-disk_cache_create() here looks up the users home directory from <pwd.h>
-which resolves to "/" in the build environment. I could not find an easy
-way to set the home directory to something else, so we disable this test
-for now.
-
---- a/src/compiler/glsl/tests/cache_test.c
-+++ b/src/compiler/glsl/tests/cache_test.c
-@@ -170,11 +170,6 @@
-    unsetenv("MESA_GLSL_CACHE_DIR");
-    unsetenv("XDG_CACHE_HOME");
- 
--   cache = disk_cache_create("test", "make_check", 0);
--   expect_non_null(cache, "disk_cache_create with no environment variables");
--
--   disk_cache_destroy(cache);
--
-    /* Test with XDG_CACHE_HOME set */
-    setenv("XDG_CACHE_HOME", CACHE_TEST_TMP "/xdg-cache-home", 1);
-    cache = disk_cache_create("test", "make_check", 0);
-
 This test fails on i686-linux. I couldn't come up with a regex that
 could be used to disable it just on i686-linux, so we disable it
 completely with this patch:
-- 
2.32.0


  reply	other threads:[~2021-07-27 21:55 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-02 15:10 [bug#49339] [PATCH core-updates] gnu: mesa: Update to 21.1.4 Irfan S
2021-07-02 19:29 ` John Kehayias via Guix-patches via
2021-07-05 15:35 ` John Kehayias via Guix-patches via
2021-07-08  1:35   ` John Kehayias via Guix-patches via
2021-07-08  2:24     ` John Kehayias via Guix-patches via
2021-07-08 15:40       ` John Kehayias via Guix-patches via
2021-07-08 20:55     ` Maxime Devos
2021-07-09  2:41       ` John Kehayias via Guix-patches via
2021-07-09 12:48         ` Maxime Devos
2021-07-09 15:34           ` John Kehayias via Guix-patches via
2021-07-13 15:42             ` John Kehayias via Guix-patches via
2021-07-13 16:26               ` John Kehayias via Guix-patches via
2021-07-27 21:54                 ` John Kehayias via Guix-patches via [this message]
2021-07-13  4:45 ` [bug#49339] Irfan S
2021-07-28 21:35 ` [bug#49339] [PATCH core-updates] gnu: mesa: Update to 21.1.4 Kaelyn via Guix-patches via
2021-07-29  4:52 ` [bug#49339] [PATCH core-updates] gnu: mesa: Update to 21.1.6 John Kehayias via Guix-patches via
2021-07-31 10:33   ` bug#49339: [PATCH core-updates] gnu: mesa: Update to 21.1.4 Ludovic Courtès
2021-07-31 14:01     ` [bug#49339] " John Kehayias via Guix-patches via
2021-08-02 13:27       ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='9BP6BfIqSQHSXQF79ytA6BYUeMlF07ymemMi6wpkDEOZ37-waZwdekebnVWUu6UCL6AKwebIl3qR9kv-mEzot0Z-OkdGWo_A0wqltVqyIds=@protonmail.com' \
    --to=guix-patches@gnu.org \
    --cc=49339@debbugs.gnu.org \
    --cc=john.kehayias@protonmail.com \
    --cc=maximedevos@telenet.be \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).