[mutter-wayland] - fix build on big endians

Dan Horák sharkcz at fedoraproject.org
Thu Sep 26 09:29:56 UTC 2013


commit 6442e88a98ed1fdb0de9fbd82e95336f033e4750
Author: Dan Horák <dan at danny.cz>
Date:   Thu Sep 26 11:29:43 2013 +0200

    - fix build on big endians

 mutter-wayland-3.10.0.1-bigendian.patch |   12 ++++++++++++
 mutter-wayland.spec                     |    8 +++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/mutter-wayland-3.10.0.1-bigendian.patch b/mutter-wayland-3.10.0.1-bigendian.patch
new file mode 100644
index 0000000..9626cef
--- /dev/null
+++ b/mutter-wayland-3.10.0.1-bigendian.patch
@@ -0,0 +1,12 @@
+diff -up mutter-wayland-3.10.0.1/src/core/meta-cursor-tracker.c.bigendian mutter-wayland-3.10.0.1/src/core/meta-cursor-tracker.c
+--- mutter-wayland-3.10.0.1/src/core/meta-cursor-tracker.c.bigendian	2013-09-26 10:48:35.000000000 +0200
++++ mutter-wayland-3.10.0.1/src/core/meta-cursor-tracker.c	2013-09-26 10:48:48.000000000 +0200
+@@ -320,7 +320,7 @@ meta_cursor_reference_from_buffer (MetaC
+             cogl_internal_format = COGL_PIXEL_FORMAT_ANY;
+             gbm_format = GBM_FORMAT_ARGB8888;
+             break;
+-          case WL_SHM_FORMAT_XRGB32:
++          case WL_SHM_FORMAT_XRGB8888:
+             cogl_format = COGL_PIXEL_FORMAT_ARGB_8888;
+             cogl_internal_format = COGL_PIXEL_FORMAT_RGB_888;
+             gbm_format = GBM_FORMAT_XRGB8888;
diff --git a/mutter-wayland.spec b/mutter-wayland.spec
index 6c76e20..fd6d542 100644
--- a/mutter-wayland.spec
+++ b/mutter-wayland.spec
@@ -6,7 +6,7 @@
 
 Name:          mutter-wayland
 Version:       3.10.0.1
-Release:       1%{?dist}
+Release:       2%{?dist}
 Summary:       Mutter window manager with experimental Wayland support
 
 Group:         User Interface/Desktops
@@ -14,6 +14,8 @@ License:       GPLv2+
 #VCS:          git:git://git.gnome.org/mutter
 URL:           https://wiki.gnome.org/ThreePointNine/Features/WaylandSupport
 Source0:       http://download.gnome.org/sources/%{name}/3.10/%{name}-%{version}.tar.xz
+# big endian fix - https://bugzilla.gnome.org/show_bug.cgi?id=708813
+Patch0:        mutter-wayland-3.10.0.1-bigendian.patch
 
 BuildRequires: clutter-devel >= 1.13.5
 BuildRequires: pango-devel
@@ -81,6 +83,7 @@ utilities for testing Metacity/Mutter themes.
 
 %prep
 %setup -q
+%patch0 -p1 -b .bigendian
 
 %build
 (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi;
@@ -147,6 +150,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 %exclude %{_datadir}/gtk-doc
 
 %changelog
+* Thu Sep 26 2013 Dan Horák <dan[at]danny.cz> - 3.10.0.1-2
+- fix build on big endians
+
 * Wed Sep 25 2013 Florian Müllner <fmuellner at redhat.com> - 3.10.0.1-1
 - Update to 3.10.0.1
 


More information about the scm-commits mailing list