mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: mesa: Update to 17.0.4.
* 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.
This commit is contained in:
parent
84080b4362
commit
0315b20a2c
3 changed files with 35 additions and 9 deletions
|
@ -773,6 +773,7 @@ dist_patch_DATA = \
|
||||||
%D%/packages/patches/mcrypt-CVE-2012-4409.patch \
|
%D%/packages/patches/mcrypt-CVE-2012-4409.patch \
|
||||||
%D%/packages/patches/mcrypt-CVE-2012-4426.patch \
|
%D%/packages/patches/mcrypt-CVE-2012-4426.patch \
|
||||||
%D%/packages/patches/mcrypt-CVE-2012-4527.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/mesa-wayland-egl-symbols-check-mips.patch \
|
||||||
%D%/packages/patches/metabat-remove-compilation-date.patch \
|
%D%/packages/patches/metabat-remove-compilation-date.patch \
|
||||||
%D%/packages/patches/mhash-keygen-test-segfault.patch \
|
%D%/packages/patches/mhash-keygen-test-segfault.patch \
|
||||||
|
|
|
@ -217,17 +217,20 @@ (define libva-without-mesa
|
||||||
(define-public mesa
|
(define-public mesa
|
||||||
(package
|
(package
|
||||||
(name "mesa")
|
(name "mesa")
|
||||||
(version "13.0.5")
|
(version "17.0.4")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "ftp://ftp.freedesktop.org/pub/mesa/"
|
(uri (list (string-append "ftp://ftp.freedesktop.org/pub/mesa/"
|
||||||
version "/mesa-" version ".tar.xz"))
|
"mesa-" version ".tar.xz")
|
||||||
|
(string-append "ftp://ftp.freedesktop.org/pub/mesa/"
|
||||||
|
version "/mesa-" version ".tar.xz")))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"11zgynii1wz17131ml1mmblpwib8m88zz2jwi5h5llh1r3iagkmz"))
|
"0im3ca1vwwmkjf5w761vh7vabr4vrrdxpckr0wm974x18n2xqs8j"))
|
||||||
(patches
|
(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)
|
(build-system gnu-build-system)
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("glproto" ,glproto)
|
`(("glproto" ,glproto)
|
||||||
|
@ -281,7 +284,7 @@ (define-public mesa
|
||||||
;; Without floating point texture support, drivers such as Nouveau
|
;; Without floating point texture support, drivers such as Nouveau
|
||||||
;; are stuck at OpenGL 2.1 instead of OpenGL 3.0+.
|
;; are stuck at OpenGL 2.1 instead of OpenGL 3.0+.
|
||||||
"--enable-texture-float"
|
"--enable-texture-float"
|
||||||
|
|
||||||
;; Also enable the tests.
|
;; Also enable the tests.
|
||||||
"--enable-gallium-tests"
|
"--enable-gallium-tests"
|
||||||
|
|
||||||
|
@ -301,7 +304,8 @@ (define-public mesa
|
||||||
(substitute* "src/compiler/glsl/tests/lower_jumps/create_test_cases.py"
|
(substitute* "src/compiler/glsl/tests/lower_jumps/create_test_cases.py"
|
||||||
(("/usr/bin/env bash") (which "bash")))
|
(("/usr/bin/env bash") (which "bash")))
|
||||||
(substitute* "src/intel/genxml/gen_pack_header.py"
|
(substitute* "src/intel/genxml/gen_pack_header.py"
|
||||||
(("/usr/bin/env python2") (which "python")))))
|
(("/usr/bin/env python2") (which "python")))
|
||||||
|
#t))
|
||||||
(add-before
|
(add-before
|
||||||
'build 'fix-dlopen-libnames
|
'build 'fix-dlopen-libnames
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
@ -325,8 +329,9 @@ (define-public mesa
|
||||||
;; it's never installed since Mesa removed its
|
;; it's never installed since Mesa removed its
|
||||||
;; egl_gallium support.
|
;; egl_gallium support.
|
||||||
(("\"gbm_dri\\.so")
|
(("\"gbm_dri\\.so")
|
||||||
(string-append "\"" out "/lib/dri/gbm_dri.so")))))))))
|
(string-append "\"" out "/lib/dri/gbm_dri.so")))
|
||||||
(home-page "http://mesa3d.org/")
|
#t))))))
|
||||||
|
(home-page "https://mesa3d.org/")
|
||||||
(synopsis "OpenGL implementation")
|
(synopsis "OpenGL implementation")
|
||||||
(description "Mesa is a free implementation of the OpenGL specification -
|
(description "Mesa is a free implementation of the OpenGL specification -
|
||||||
a system for rendering interactive 3D graphics. A variety of device drivers
|
a system for rendering interactive 3D graphics. A variety of device drivers
|
||||||
|
|
20
gnu/packages/patches/mesa-skip-disk-cache-test.patch
Normal file
20
gnu/packages/patches/mesa-skip-disk-cache-test.patch
Normal file
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue