From dfa1131c113039b002c1ea6cadb455d5d2eea8f1 Mon Sep 17 00:00:00 2001 From: corsepiu Date: Tue, 2 Feb 2010 08:56:26 +0000 Subject: [PATCH] - Apply upstream's qh_gethash patch - Silence %setup. - Remove rpath. --- qhull-2003.1-qh_gethash.patch | 25 +++++++++++++++++++++++++ qhull.spec | 16 +++++++++++++--- 2 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 qhull-2003.1-qh_gethash.patch diff --git a/qhull-2003.1-qh_gethash.patch b/qhull-2003.1-qh_gethash.patch new file mode 100644 index 0000000..851f2eb --- /dev/null +++ b/qhull-2003.1-qh_gethash.patch @@ -0,0 +1,25 @@ +diff -up qhull-2003.1/src/poly.c.qh_gethash qhull-2003.1/src/poly.c +--- qhull-2003.1/src/poly.c.qh_gethash 2004-01-31 04:00:15.000000000 -0700 ++++ qhull-2003.1/src/poly.c 2010-02-01 14:07:45.851966800 -0700 +@@ -403,6 +403,7 @@ unsigned qh_gethash (int hashsize, setT + void **elemp= SETelemaddr_(set, firstindex, void); + ptr_intT hash = 0, elem; + int i; ++ unsigned result; + + switch (size-firstindex) { + case 1: +@@ -441,9 +442,10 @@ unsigned qh_gethash (int hashsize, setT + }while(*elemp); + break; + } +- hash %= (ptr_intT) hashsize; +- /* hash= 0; for debugging purposes */ +- return hash; ++ result= (unsigned)hash; ++ result %= (unsigned)hashsize; ++ /* result= 0; for debugging purposes */ ++ return result; + } /* gethash */ + + /*- - 2003.1-14 +- Apply upstream's qh_gethash patch +- Silence %%setup. +- Remove rpath. + * Sun Jul 26 2009 Fedora Release Engineering - 2003.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild @@ -92,7 +102,7 @@ rm -rf $RPM_BUILD_ROOT * Tue Sep 05 2006 Ralf Corsépius - 2003.1-6 - Mass rebuild. -* Fri Feb 17 2006 Ralf Corsépius - 2003.1-5 +* Fri Feb 17 2006 Ralf Corsépius - 2003.1-5 - Disable static libs. - Fixup some broken links in doc. - Add %%{?dist}.