OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Michael Schloh
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 05-Jun-2004 18:58:25
Branch: HEAD Handle: 2004060517582400
Added files:
openpkg-src/python python.patch
Modified files:
openpkg-src/python python.spec
Log:
Solaris 10 and later defines HUGE_VAL only with non STDC_ISO99
compilers, so use the HUGE identifier as it is still defined
consistently and works well enough
Summary:
Revision Changes Path
1.2 +16 -0 openpkg-src/python/python.patch
1.49 +3 -1 openpkg-src/python/python.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/python/python.patch
============================================================================
$ cvs diff -u -r0 -r1.2 python.patch
--- /dev/null 2004-06-05 18:58:24.000000000 +0200
+++ python.patch 2004-06-05 18:58:24.000000000 +0200
@@ -0,0 +1,16 @@
+Index: Include/pyport.h
+--- Include/pyport.h.orig 2004-06-05 18:34:53.146935009 +0200
++++ Include/pyport.h 2004-06-05 18:34:58.681503403 +0200
+@@ -238,8 +238,12 @@
+ * config to #define Py_HUGE_VAL to something that works on your platform.
+ */
+ #ifndef Py_HUGE_VAL
++#if defined (__SVR4) && defined (__sun)
++#define Py_HUGE_VAL HUGE
++#else
+ #define Py_HUGE_VAL HUGE_VAL
+ #endif
++#endif
+
+ /* Py_OVERFLOWED(X)
+ * Return 1 iff a libm function overflowed. Set errno to 0 before calling
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/python/python.spec
============================================================================
$ cvs diff -u -r1.48 -r1.49 python.spec
--- openpkg-src/python/python.spec 27 May 2004 19:02:45 -0000 1.48
+++ openpkg-src/python/python.spec 5 Jun 2004 16:58:24 -0000 1.49
@@ -34,10 +34,11 @@
Group: Language
License: GPL
Version: 2.3.4
-Release: 20040527
+Release: 20040605
# list of sources
Source0: ftp://ftp.python.org/pub/python/%{version}/Python-%{version}.tgz
+Patch0: python.patch
# build information
Prefix: %{l_prefix}
@@ -68,6 +69,7 @@
%prep
%setup -q -n Python-%{version}
+ %patch -p0
%{l_shtool} subst \
-e 's;-O3;-O2;g' \
-e 's;\(SunOS.*case \)\$CC\( in\);\1gcc\2;' \
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]