all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kei Kebreau <kei@openmailbox.org>
To: 26887@debbugs.gnu.org
Subject: bug#26887: [PATCH 02/11] gnu: mesa: Update to 17.0.4.
Date: Thu, 11 May 2017 11:30:12 -0400	[thread overview]
Message-ID: <20170511153021.14972-2-kei@openmailbox.org> (raw)
In-Reply-To: <20170511153021.14972-1-kei@openmailbox.org>

From: Marius Bakke <mbakke@fastmail.com>

* gnu/packages/patches/mesa-skip-disk-cache-test.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/gl.scm (mesa): Update to 17.0.4.
[source]: Adapt URI to new directory structure.
[arguments]: End phases on #t. Remove stray whitespaces.
[home-page]: Use HTTPS.
---
 gnu/local.mk                                       |  1 +
 gnu/packages/gl.scm                                | 23 +++++++++++++---------
 .../patches/mesa-skip-disk-cache-test.patch        | 20 +++++++++++++++++++
 3 files changed, 35 insertions(+), 9 deletions(-)
 create mode 100644 gnu/packages/patches/mesa-skip-disk-cache-test.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 5822add4c..552dd0549 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -775,6 +775,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/mcrypt-CVE-2012-4409.patch			\
   %D%/packages/patches/mcrypt-CVE-2012-4426.patch			\
   %D%/packages/patches/mcrypt-CVE-2012-4527.patch			\
+  %D%/packages/patches/mesa-skip-disk-cache-test.patch		\
   %D%/packages/patches/mesa-wayland-egl-symbols-check-mips.patch	\
   %D%/packages/patches/metabat-remove-compilation-date.patch	\
   %D%/packages/patches/mhash-keygen-test-segfault.patch		\
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index bb2eb768e..f43f46439 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -217,17 +217,20 @@ also known as DXTn or DXTC) for Mesa.")
 (define-public mesa
   (package
     (name "mesa")
-    (version "13.0.5")
+    (version "17.0.4")
     (source
       (origin
         (method url-fetch)
-        (uri (string-append "ftp://ftp.freedesktop.org/pub/mesa/"
-                            version "/mesa-" version ".tar.xz"))
+        (uri (list (string-append "ftp://ftp.freedesktop.org/pub/mesa/"
+                                  "mesa-" version ".tar.xz")
+                   (string-append "ftp://ftp.freedesktop.org/pub/mesa/"
+                                  version "/mesa-" version ".tar.xz")))
         (sha256
          (base32
-          "11zgynii1wz17131ml1mmblpwib8m88zz2jwi5h5llh1r3iagkmz"))
+          "0im3ca1vwwmkjf5w761vh7vabr4vrrdxpckr0wm974x18n2xqs8j"))
         (patches
-         (search-patches "mesa-wayland-egl-symbols-check-mips.patch"))))
+         (search-patches "mesa-wayland-egl-symbols-check-mips.patch"
+                         "mesa-skip-disk-cache-test.patch"))))
     (build-system gnu-build-system)
     (propagated-inputs
       `(("glproto" ,glproto)
@@ -281,7 +284,7 @@ also known as DXTn or DXTC) for Mesa.")
          ;; Without floating point texture support, drivers such as Nouveau
          ;; are stuck at OpenGL 2.1 instead of OpenGL 3.0+.
          "--enable-texture-float"
-         
+
          ;; Also enable the tests.
          "--enable-gallium-tests"
 
@@ -301,7 +304,8 @@ also known as DXTn or DXTC) for Mesa.")
              (substitute* "src/compiler/glsl/tests/lower_jumps/create_test_cases.py"
                (("/usr/bin/env bash") (which "bash")))
              (substitute* "src/intel/genxml/gen_pack_header.py"
-               (("/usr/bin/env python2") (which "python")))))
+               (("/usr/bin/env python2") (which "python")))
+             #t))
          (add-before
            'build 'fix-dlopen-libnames
            (lambda* (#:key inputs outputs #:allow-other-keys)
@@ -325,8 +329,9 @@ also known as DXTn or DXTC) for Mesa.")
                  ;; it's never installed since Mesa removed its
                  ;; egl_gallium support.
                  (("\"gbm_dri\\.so")
-                  (string-append "\"" out "/lib/dri/gbm_dri.so")))))))))
-    (home-page "http://mesa3d.org/")
+                  (string-append "\"" out "/lib/dri/gbm_dri.so")))
+               #t))))))
+    (home-page "https://mesa3d.org/")
     (synopsis "OpenGL implementation")
     (description "Mesa is a free implementation of the OpenGL specification -
 a system for rendering interactive 3D graphics.  A variety of device drivers
diff --git a/gnu/packages/patches/mesa-skip-disk-cache-test.patch b/gnu/packages/patches/mesa-skip-disk-cache-test.patch
new file mode 100644
index 000000000..437711047
--- /dev/null
+++ b/gnu/packages/patches/mesa-skip-disk-cache-test.patch
@@ -0,0 +1,20 @@
+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
+@@ -137,11 +137,6 @@
+    unsetenv("MESA_GLSL_CACHE_DIR");
+    unsetenv("XDG_CACHE_HOME");
+
+-   cache = disk_cache_create();
+-   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();
+
-- 
2.13.0

  reply	other threads:[~2017-05-11 15:55 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-11 15:30 bug#26887: [PATCH 01/11] gnu: libdrm: Update to 2.4.80 Kei Kebreau
2017-05-11 15:30 ` Kei Kebreau [this message]
2017-05-11 15:30 ` bug#26886: [PATCH 03/11] gnu: gtk+: Update to 3.22.12 Kei Kebreau
2017-05-11 15:30 ` bug#26880: [PATCH 04/11] gnu: gtk+: Enable wayland backend Kei Kebreau
2017-05-11 20:12   ` Marius Bakke
2017-05-11 21:17     ` Kei Kebreau
2017-05-11 21:37       ` Marius Bakke
2017-05-11 22:00         ` Kei Kebreau
2017-05-11 22:10           ` Marius Bakke
2017-05-11 23:34             ` Kei Kebreau
2017-05-11 15:30 ` bug#26887: [PATCH 05/11] gnu: cogl: Enable wayland support Kei Kebreau
2017-05-11 20:14   ` Marius Bakke
2017-05-11 15:30 ` bug#26887: [PATCH 06/11] gnu: gnome-desktop: Update to 3.24.1 Kei Kebreau
2017-05-11 15:30 ` bug#26884: [PATCH 07/11] gnu: gnome-bluetooth: Update to 3.20.1 Kei Kebreau
2017-05-11 15:30 ` bug#26882: [PATCH 08/11] gnu: gnome-online-accounts: Update to 3.24.0 Kei Kebreau
2017-05-11 15:30 ` bug#26881: [PATCH 09/11] gnu: gnome-control-center: Update to 3.24.1 Kei Kebreau
2017-05-11 15:30 ` bug#26885: [PATCH 10/11] gnu: gnome-session: " Kei Kebreau
2017-05-11 15:30 ` bug#26883: [PATCH 11/11] gnu: mutter: " Kei Kebreau
2017-05-11 20:23   ` Marius Bakke
2017-05-11 15:58 ` bug#26887: [PATCH 01/11] gnu: libdrm: Update to 2.4.80 Kei Kebreau
2017-05-11 20:04   ` Marius Bakke
2017-05-11 20:41     ` Kei Kebreau
2017-05-11 21:34       ` Marius Bakke
2017-05-12 23:17         ` Kei Kebreau
2017-05-13 23:36           ` Kei Kebreau
2017-05-13 23:36             ` bug#26881: " Kei Kebreau

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

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

  git send-email \
    --in-reply-to=20170511153021.14972-2-kei@openmailbox.org \
    --to=kei@openmailbox.org \
    --cc=26887@debbugs.gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.