guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: mesa: Fix 'wayland-egl-symbols-check' on MIPS.


From: Mark H. Weaver
Subject: 01/01: gnu: mesa: Fix 'wayland-egl-symbols-check' on MIPS.
Date: Tue, 25 Oct 2016 02:32:06 +0000 (UTC)

mhw pushed a commit to branch core-updates
in repository guix.

commit f1267c872fcaed6c53d43b3ff51abb726f7418d6
Author: Mark H Weaver <address@hidden>
Date:   Mon Oct 24 22:28:32 2016 -0400

    gnu: mesa: Fix 'wayland-egl-symbols-check' on MIPS.
    
    * gnu/packages/patches/mesa-wayland-egl-symbols-check-mips.patch: New
    file.
    * gnu/local.mk (dist_patch_DATA): Add it.
    * gnu/packages/gl.scm (mesa)[source]: Add patch when building on MIPS.
---
 gnu/local.mk                                            |    1 +
 gnu/packages/gl.scm                                     |   10 +++++++++-
 .../patches/mesa-wayland-egl-symbols-check-mips.patch   |   15 +++++++++++++++
 3 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/gnu/local.mk b/gnu/local.mk
index adccab3..f754801 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -693,6 +693,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-wayland-egl-symbols-check-mips.patch       \
   %D%/packages/patches/metabat-remove-compilation-date.patch   \
   %D%/packages/patches/mhash-keygen-test-segfault.patch                \
   %D%/packages/patches/mpc123-initialize-ao.patch              \
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index 54ffb38..3b5c955 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -203,7 +203,15 @@ also known as DXTn or DXTC) for Mesa.")
                             version "/mesa-" version ".tar.xz"))
         (sha256
          (base32
-          "12b3i59xdn2in2hchrkgh4fwij8zhznibx976l3pdj3qkyvlzcms"))))
+          "12b3i59xdn2in2hchrkgh4fwij8zhznibx976l3pdj3qkyvlzcms"))
+        (patches
+         ;; XXX To prevent a large number of rebuilds on other systems,
+         ;; apply the following patch on MIPS systems only.  In the next
+         ;; core-updates cycle, this patch could be applied on all platforms.
+         (if (string-prefix? "mips" (or (%current-target-system)
+                                        (%current-system)))
+             (search-patches "mesa-wayland-egl-symbols-check-mips.patch")
+             '()))))
     (build-system gnu-build-system)
     (propagated-inputs
       `(("glproto" ,glproto)
diff --git a/gnu/packages/patches/mesa-wayland-egl-symbols-check-mips.patch 
b/gnu/packages/patches/mesa-wayland-egl-symbols-check-mips.patch
new file mode 100644
index 0000000..aa22786
--- /dev/null
+++ b/gnu/packages/patches/mesa-wayland-egl-symbols-check-mips.patch
@@ -0,0 +1,15 @@
+Fix 'wayland-egl-symbols-check' on mips64el-linux, where an additional symbol
+(_ftext) is present in libwayland-egl.so.
+
+Patch by Mark H Weaver <address@hidden>
+
+--- mesa-12.0.1/src/egl/wayland/wayland-egl/wayland-egl-symbols-check.orig     
2016-01-18 02:39:25.000000000 -0500
++++ mesa-12.0.1/src/egl/wayland/wayland-egl/wayland-egl-symbols-check  
2016-10-24 16:25:07.110721426 -0400
+@@ -7,6 +7,7 @@
+ wl_egl_window_destroy
+ wl_egl_window_get_attached_size
+ _fini
++_ftext
+ _init
+ EOF
+ done)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]