summaryrefslogtreecommitdiffstats
path: root/extra/python/python-internal-expat.patch
diff options
context:
space:
mode:
authorsibel <lesibel@free.fr>2010-12-27 13:26:40 +0000
committersibel <lesibel@free.fr>2010-12-27 13:26:40 +0000
commit65dca74d95d843ff83283c3473bb71286c21f3a6 (patch)
tree16abe61fccf3438af6d8950ef6b30e2fafc20fef /extra/python/python-internal-expat.patch
parentc33c8eb43b016ef83a0ed8d43057c6dfaa085659 (diff)
downloadnutyx-pakxe-65dca74d95d843ff83283c3473bb71286c21f3a6.tar.gz
nutyx-pakxe-65dca74d95d843ff83283c3473bb71286c21f3a6.tar.bz2
nutyx-pakxe-65dca74d95d843ff83283c3473bb71286c21f3a6.tar.xz
nutyx-pakxe-65dca74d95d843ff83283c3473bb71286c21f3a6.zip
python#3.1.3-4, maj port
Diffstat (limited to 'extra/python/python-internal-expat.patch')
-rw-r--r--extra/python/python-internal-expat.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/extra/python/python-internal-expat.patch b/extra/python/python-internal-expat.patch
new file mode 100644
index 000000000..b1b17f01d
--- /dev/null
+++ b/extra/python/python-internal-expat.patch
@@ -0,0 +1,33 @@
+--- setup.py 2010-11-26 06:56:26.000000000 -0500
++++ setup.py 2010-11-29 07:51:25.000000031 -0500
+@@ -1227,18 +1227,15 @@
+ #
+ # More information on Expat can be found at www.libexpat.org.
+ #
+- expatinc = os.path.join(os.getcwd(), srcdir, 'Modules', 'expat')
+- define_macros = [
+- ('HAVE_EXPAT_CONFIG_H', '1'),
+- ]
++ # Use system expat
++ expatinc = '/usr/include'
++ define_macros = []
+
+ exts.append(Extension('pyexpat',
+ define_macros = define_macros,
+ include_dirs = [expatinc],
++ libraries = ['expat'],
+ sources = ['pyexpat.c',
+- 'expat/xmlparse.c',
+- 'expat/xmlrole.c',
+- 'expat/xmltok.c',
+ ],
+ ))
+
+@@ -1250,6 +1247,7 @@
+ exts.append(Extension('_elementtree',
+ define_macros = define_macros,
+ include_dirs = [expatinc],
++ libraries = ['expat'],
+ sources = ['_elementtree.c'],
+ ))
+ else: