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

Stéphane Gaudreault stephane at archlinux.org
Tue Jun 14 00:31:13 UTC 2011


    Date: Monday, June 13, 2011 @ 20:31:12
  Author: stephane
Revision: 127379

FS#2399, prepare 3.2.1

Modified:
  python/trunk/PKGBUILD

----------+
 PKGBUILD |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-06-14 00:07:11 UTC (rev 127378)
+++ PKGBUILD	2011-06-14 00:31:12 UTC (rev 127379)
@@ -23,6 +23,9 @@
 build() {
   cd "${srcdir}/Python-${pkgver}"
 
+  # FS#2399
+  sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
+
   # Ensure that we are using the system copy of various libraries (expat, zlib and libffi),
   # rather than copies shipped in the tarball
   rm -r Modules/expat
@@ -64,7 +67,7 @@
     "${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}mu/libpython${_pybasever}mu.so"
 
   # Clean-up reference to build directory
-  sed -i "s#$srcdir/Python-${pkgver}:##" "$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}mu/Makefile"
+  sed -i "s|$srcdir/Python-${pkgver}:||" "$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}mu/Makefile"
 
   # License
   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"




More information about the arch-commits mailing list