rpms/liboil/F-7 liboil-0.3.12-altivec-no-sigill.patch, NONE, 1.1 liboil.spec, 1.13, 1.14

Bastien Nocera (hadess) fedora-extras-commits at redhat.com
Tue Aug 14 16:08:31 UTC 2007


Author: hadess

Update of /cvs/pkgs/rpms/liboil/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19227

Modified Files:
	liboil.spec 
Added Files:
	liboil-0.3.12-altivec-no-sigill.patch 
Log Message:
* Tue Aug 14 2007 - Bastien Nocera <bnocera at redhat.com> - 0.3.12-4
- Add upstream patch to not crash on PPC machines without Altivec
  (#252179)


liboil-0.3.12-altivec-no-sigill.patch:

--- NEW FILE liboil-0.3.12-altivec-no-sigill.patch ---
--- liboilcpu.c	2007/02/15 00:41:39	1.40
+++ liboilcpu.c	2007/03/22 22:36:34	1.41
@@ -146,6 +146,10 @@
 illegal_instruction_handler (int num)
 {
   if (in_try_block) {
+    sigset_t set;
+    sigemptyset (&set);
+    sigaddset (&set, SIGILL);
+    sigprocmask (SIG_UNBLOCK, &set, NULL);
     longjmp (jump_env, 1);
   } else {
     abort ();


Index: liboil.spec
===================================================================
RCS file: /cvs/pkgs/rpms/liboil/F-7/liboil.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- liboil.spec	4 Jun 2007 18:39:23 -0000	1.13
+++ liboil.spec	14 Aug 2007 16:07:58 -0000	1.14
@@ -1,7 +1,7 @@
 Summary: Library of Optimized Inner Loops, CPU optimized functions
 Name: liboil
 Version: 0.3.12
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: LGPL
 Group: System Environment/Libraries
 URL: http://liboil.freedesktop.org/
@@ -9,6 +9,7 @@
 Patch1: liboil-0.3.9-s390.patch
 # http://bugzilla.redhat.com/242418
 Patch2: liboil-0.3.12-ppc64-configure.patch
+Patch3: liboil-0.3.12-altivec-no-sigill.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: glib2-devel, gcc-c++
 
@@ -39,6 +40,9 @@
 %setup -q
 %patch1 -p1 -b .s390
 %patch2 -p0 -b .ppc64
+pushd liboil/
+%patch3 -p0 -b .altivec
+popd
 
 %build
 %configure
@@ -79,6 +83,10 @@
 
 
 %changelog
+* Tue Aug 14 2007 - Bastien Nocera <bnocera at redhat.com> - 0.3.12-4
+- Add upstream patch to not crash on PPC machines without Altivec
+  (#252179)
+
 * Mon Jun 04 2007 - Bastien Nocera <bnocera at redhat.com> - 0.3.12-3
 - Add patch from David Woodhouse <dwmw2 at redhat.com> to allow building
   on ppc64 systems (#242418)




More information about the fedora-extras-commits mailing list