From d0b861f727abc7e89a62e526b385072ba4802181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Audrius=20Ka=C5=BEukauskas?= Date: Sun, 10 Feb 2013 18:32:01 -0600 Subject: python/python3: More path fixes; use system expat and libffi Signed-off-by: Robby Workman --- python/python3/python3.SlackBuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'python/python3/python3.SlackBuild') diff --git a/python/python3/python3.SlackBuild b/python/python3/python3.SlackBuild index 05f2520e62..da7bbe8c4d 100644 --- a/python/python3/python3.SlackBuild +++ b/python/python3/python3.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python3 -# Copyright 2012 Audrius Kažukauskas +# Copyright 2012-2013 Audrius Kažukauskas # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=python3 VERSION=${VERSION:-3.3.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -75,6 +75,9 @@ if [ "$ARCH" = "x86_64" ]; then patch -p1 < $CWD/patches/python3.x86_64.diff fi +# Fix python3 path in cgi.py. +sed -i '1s|^#.*/usr/local/bin/python|#!/usr/bin/python3|' Lib/cgi.py + chown -R root:root . chmod -R u+w,go+r-w,a-s+X . @@ -86,6 +89,8 @@ chmod -R u+w,go+r-w,a-s+X . --with-threads \ --enable-ipv6 \ --enable-shared \ + --with-system-expat \ + --with-system-ffi \ --build=$ARCH-slackware-linux make -- cgit v1.2.3