rpms/liboil/devel liboil-0.3.12-altivec-no-sigill.patch, NONE, 1.1 liboil.spec, 1.14, 1.15

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


Author: hadess

Update of /cvs/pkgs/rpms/liboil/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18867

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-5
- 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/devel/liboil.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- liboil.spec	5 Aug 2007 16:34:13 -0000	1.14
+++ liboil.spec	14 Aug 2007 16:06:20 -0000	1.15
@@ -1,7 +1,7 @@
 Summary: Library of Optimized Inner Loops, CPU optimized functions
 Name: liboil
 Version: 0.3.12
-Release: 4%{?dist}
+Release: 5%{?dist}
 # See COPYING which details everything, various BSD licenses apply
 License: BSD
 Group: System Environment/Libraries
@@ -10,6 +10,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
 
@@ -40,6 +41,9 @@
 %setup -q
 %patch1 -p1 -b .s390
 %patch2 -p0 -b .ppc64
+pushd liboil/
+%patch3 -p0 -b .altivec
+popd
 
 %build
 %configure
@@ -83,6 +87,10 @@
 
 
 %changelog
+* Tue Aug 14 2007 - Bastien Nocera <bnocera at redhat.com> - 0.3.12-5
+- Add upstream patch to not crash on PPC machines without Altivec
+  (#252179)
+
 * Sun Aug  5 2007 Matthias Saou <http://freshrpms.net/> 0.3.12-4
 - Update License field.
 - Remove standard gcc-c++ build requirement.




More information about the fedora-extras-commits mailing list