[packages/pixman] - added ssse3 patch (fix SSSE3 detection so that it won't crash on older chips having APIC, but not

qboosh qboosh at pld-linux.org
Mon Nov 11 09:43:22 CET 2013


commit ef2844a0bb0da82133149ef7a55860b56c5bb0f8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Nov 11 09:43:49 2013 +0100

    - added ssse3 patch (fix SSSE3 detection so that it won't crash on older chips having APIC, but not SSSE3)
    - release 2

 pixman-ssse3.patch | 12 ++++++++++++
 pixman.spec        |  4 +++-
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/pixman.spec b/pixman.spec
index 2a5e9fb..d25675e 100644
--- a/pixman.spec
+++ b/pixman.spec
@@ -4,11 +4,12 @@ Summary(pl.UTF-8):	Biblioteka operacji na pikselach
 Name:		pixman
 # 0.32.x is stable, 0.33.x is unstable
 Version:	0.32.0
-Release:	1
+Release:	2
 License:	MIT
 Group:		Libraries
 Source0:	http://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2
 # Source0-md5:	1b8314aff2a29c921f79efdbf07a0887
+Patch0:		%{name}-ssse3.patch
 URL:		http://pixman.org/
 BuildRequires:	autoconf >= 2.57
 BuildRequires:	automake
@@ -60,6 +61,7 @@ Ten pakiet zawiera statyczną wersję biblioteki pixman.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/pixman-ssse3.patch b/pixman-ssse3.patch
new file mode 100644
index 0000000..f196c24
--- /dev/null
+++ b/pixman-ssse3.patch
@@ -0,0 +1,12 @@
+Fix SSSE3 detection (use SSSE3, not APIC flag).
+--- pixman-0.32.0/pixman/pixman-x86.c.orig	2013-11-07 23:43:03.000000000 +0100
++++ pixman-0.32.0/pixman/pixman-x86.c	2013-11-11 09:18:08.030841057 +0100
+@@ -170,7 +170,7 @@
+ 	features |= X86_SSE;
+     if (d & (1 << 26))
+ 	features |= X86_SSE2;
+-    if (d & (1 << 9))
++    if (c & (1 << 9))
+ 	features |= X86_SSSE3;
+ 
+     /* Check for AMD specific features */
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pixman.git/commitdiff/ef2844a0bb0da82133149ef7a55860b56c5bb0f8



More information about the pld-cvs-commit mailing list