[arch-commits] Commit in python/trunk (3 files)

Allan McRae allan at archlinux.org
Mon Oct 27 11:17:42 UTC 2008


    Date: Monday, October 27, 2008 @ 07:17:42
  Author: allan
Revision: 17263

upgpkg: python 2.6-2

Added:
  python/trunk/ChangeLog
  python/trunk/python-2.6-internal-expat.patch
Modified:
  python/trunk/PKGBUILD

---------------------------------+
 ChangeLog                       |    3 +++
 PKGBUILD                        |    8 ++++++--
 python-2.6-internal-expat.patch |   33 +++++++++++++++++++++++++++++++++
 3 files changed, 42 insertions(+), 2 deletions(-)

Added: ChangeLog
===================================================================
--- ChangeLog	                        (rev 0)
+++ ChangeLog	2008-10-27 11:17:42 UTC (rev 17263)
@@ -0,0 +1,3 @@
+2008-10-27  Allan McRae <allan at archlinux.org>
+	* python 2.6-2
+	* patched to use internal expat
\ No newline at end of file

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-10-27 10:13:02 UTC (rev 17262)
+++ PKGBUILD	2008-10-27 11:17:42 UTC (rev 17263)
@@ -4,7 +4,7 @@
 
 pkgname=python
 pkgver=2.6
-pkgrel=1
+pkgrel=2
 _pybasever=2.6
 pkgdesc="A high-level scripting language"
 arch=('i686' 'x86_64')
@@ -16,15 +16,19 @@
 provides=('python-elementtree' 'python-ctypes')
 replaces=('python-elementtree' 'python-ctypes')
 source=(http://www.python.org/ftp/python/${pkgver}/Python-${pkgver}.tar.bz2
+	python-2.6-internal-expat.patch
 	modulator-launcher
 	pynche-launcher)
 md5sums=('1b3c31fc54be2250ed18eb089b4d2779'
+         '993800dbcc0c4f199c1ceee998a06e71'
          'faa0d4b947bfe67fc8684b5c464f46f2'
          '60a44af1d8af276274e20c564c0f3d8b')
 
 build() {
-  cd ${startdir}/src/Python-${pkgver}
+  cd ${srcdir}/Python-${pkgver}
 
+  patch -Np0 -i ${srcdir}/python-2.6-internal-expat.patch
+
   ./configure --prefix=/usr --enable-shared --with-threads --enable-unicode
   
   # temporary backwards compatibility stuff...

Added: python-2.6-internal-expat.patch
===================================================================
--- python-2.6-internal-expat.patch	                        (rev 0)
+++ python-2.6-internal-expat.patch	2008-10-27 11:17:42 UTC (rev 17263)
@@ -0,0 +1,33 @@
+--- setup.py    2008-04-22 12:12:24.613554757 +0300
++++ setup.py    2008-04-22 12:13:09.276544063 +0300
+@@ -1035,18 +1035,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',
+                                          ],
+                               ))
+
+@@ -1058,6 +1055,7 @@
+             exts.append(Extension('_elementtree',
+                                   define_macros = define_macros,
+                                   include_dirs = [expatinc],
++                                  libraries = ['expat'],
+                                   sources = ['_elementtree.c'],
+                                   ))
+




More information about the arch-commits mailing list