1 |
bicatali 09/01/15 09:13:34 |
2 |
|
3 |
Added: pycxx-5.4.2-headers-c.patch |
4 |
Log: |
5 |
Initial import |
6 |
(Portage version: 2.2_rc20/cvs/Linux 2.6.25-gentoo-r7 x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-python/pycxx/files/pycxx-5.4.2-headers-c.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pycxx/files/pycxx-5.4.2-headers-c.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pycxx/files/pycxx-5.4.2-headers-c.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: pycxx-5.4.2-headers-c.patch |
15 |
=================================================================== |
16 |
--- pycxx-5.4.2.orig/setup.py |
17 |
+++ pycxx-5.4.2/setup.py |
18 |
@@ -3,7 +3,8 @@ |
19 |
from distutils.command.install import install |
20 |
from distutils.core import setup |
21 |
|
22 |
-headers = glob (os.path.join ("CXX","*.hxx")) |
23 |
+headers = glob (os.path.join ("CXX","*.hxx")) + \ |
24 |
+ glob (os.path.join ("CXX","*.h")) |
25 |
sources = glob (os.path.join ("Src", "*.cxx")) + \ |
26 |
glob (os.path.join ("Src", "*.c")) |
27 |
|
28 |
--- pycxx-5.4.2.orig/CXX/WrapPython.h |
29 |
+++ pycxx-5.4.2/CXX/WrapPython.h |
30 |
@@ -1,3 +1,4 @@ |
31 |
+/* |
32 |
//----------------------------------------------------------------------------- |
33 |
// |
34 |
// Copyright (c) 1998 - 2007, The Regents of the University of California |
35 |
@@ -34,16 +35,25 @@ |
36 |
// DAMAGE. |
37 |
// |
38 |
//----------------------------------------------------------------------------- |
39 |
+*/ |
40 |
|
41 |
#ifndef __PyCXX_wrap_python_hxx__ |
42 |
#define __PyCXX_wrap_python_hxx__ |
43 |
|
44 |
-// On some platforms we have to include time.h to get select defined |
45 |
+/* On some platforms we have to include time.h to get select defined */ |
46 |
#if !defined(__WIN32__) && !defined(WIN32) && !defined(_WIN32) && !defined(_WIN64) |
47 |
#include <sys/time.h> |
48 |
#endif |
49 |
|
50 |
-// pull in python definitions |
51 |
+/* Prevent warnings */ |
52 |
+#if defined(_XOPEN_SOURCE) |
53 |
+ #undef _XOPEN_SOURCE |
54 |
+#endif |
55 |
+#if defined(_POSIX_C_SOURCE) |
56 |
+ #undef _POSIX_C_SOURCE |
57 |
+#endif |
58 |
+ |
59 |
+/* pull in python definitions */ |
60 |
#include <Python.h> |
61 |
|
62 |
#endif |
63 |
--- pycxx-5.4.2.orig/CXX/Objects.hxx |
64 |
+++ pycxx-5.4.2/CXX/Objects.hxx |
65 |
@@ -372,7 +372,7 @@ |
66 |
// PyObject_SetItem is too weird to be using from C++ |
67 |
// so it is intentionally omitted. |
68 |
|
69 |
- void delItem (const Object& key) |
70 |
+ void delItem (const Object& /*key*/) |
71 |
{ |
72 |
//if(PyObject_DelItem(p, *key) == -1) |
73 |
// failed to link on Windows? |