From owner-svn-ports-all@FreeBSD.ORG Sun Apr 20 01:35:41 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F32CB754; Sun, 20 Apr 2014 01:35:40 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DE2F216D2; Sun, 20 Apr 2014 01:35:40 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3K1ZeIg054367; Sun, 20 Apr 2014 01:35:40 GMT (envelope-from koobs@svn.freebsd.org) Received: (from koobs@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3K1Zd2o054360; Sun, 20 Apr 2014 01:35:39 GMT (envelope-from koobs@svn.freebsd.org) Message-Id: <201404200135.s3K1Zd2o054360@svn.freebsd.org> From: Kubilay Kocak Date: Sun, 20 Apr 2014 01:35:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r351610 - in head/lang: python27/files python31 python31/files python32 python32/files python33 python33/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Apr 2014 01:35:41 -0000 Author: koobs Date: Sun Apr 20 01:35:39 2014 New Revision: 351610 URL: http://svnweb.freebsd.org/changeset/ports/351610 QAT: https://qat.redports.org/buildarchive/r351610/ Log: lang/python{31,32,33}: Add clang 3.4 fix from python27 Copy change committed to python27 [1] to python31, python32 and python33 to fix builds of some extensions with Clang 3.4. Also add breadcrumbs to the patch header in lang/python27 referencing the upstream issue. [2] The Python 3.4 port (lang/python34) already carries the patch. [1] https://svnweb.freebsd.org/ports?view=revision&revision=346428 [2] http://bugs.python.org/issue20767 Added: head/lang/python31/files/patch-Lib__distutils__unixccompiler.py (contents, props changed) head/lang/python32/files/patch-Lib__distutils__unixccompiler.py (contents, props changed) head/lang/python33/files/patch-Lib__distutils__unixccompiler.py (contents, props changed) Modified: head/lang/python27/files/patch-Lib__distutils__unixccompiler.py head/lang/python31/Makefile head/lang/python32/Makefile head/lang/python33/Makefile Modified: head/lang/python27/files/patch-Lib__distutils__unixccompiler.py ============================================================================== --- head/lang/python27/files/patch-Lib__distutils__unixccompiler.py Sat Apr 19 23:11:35 2014 (r351609) +++ head/lang/python27/files/patch-Lib__distutils__unixccompiler.py Sun Apr 20 01:35:39 2014 (r351610) @@ -1,3 +1,7 @@ +# Description: Some python extensions can't be compiled with clang 3.4 +# Issue ID: http://bugs.python.org/issue20767 +# Submitted by: antoine + --- ./Lib/distutils/unixccompiler.py.orig 2013-11-10 07:36:40.000000000 +0000 +++ ./Lib/distutils/unixccompiler.py 2014-02-19 15:41:48.000000000 +0000 @@ -228,6 +228,8 @@ Modified: head/lang/python31/Makefile ============================================================================== --- head/lang/python31/Makefile Sat Apr 19 23:11:35 2014 (r351609) +++ head/lang/python31/Makefile Sun Apr 20 01:35:39 2014 (r351610) @@ -2,7 +2,7 @@ PORTNAME= python31 PORTVERSION= 3.1.5 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= lang python ipv6 MASTER_SITES= PYTHON MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} Added: head/lang/python31/files/patch-Lib__distutils__unixccompiler.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/python31/files/patch-Lib__distutils__unixccompiler.py Sun Apr 20 01:35:39 2014 (r351610) @@ -0,0 +1,15 @@ +# Description: Some python extensions can't be compiled with clang 3.4 +# Issue ID: http://bugs.python.org/issue20767 +# Submitted by: antoine + +--- ./Lib/distutils/unixccompiler.py.orig 2014-03-09 14:58:11.840899942 +1100 ++++ ./Lib/distutils/unixccompiler.py 2014-03-09 15:07:24.038743110 +1100 +@@ -285,6 +285,8 @@ + if sys.platform[:6] == "darwin": + # MacOSX's linker doesn't understand the -R flag at all + return "-L" + dir ++ elif sys.platform[:7] == "freebsd": ++ return "-Wl,-rpath=" + dir + elif sys.platform[:5] == "hp-ux": + if self._is_gcc(compiler): + return ["-Wl,+s", "-L" + dir] Modified: head/lang/python32/Makefile ============================================================================== --- head/lang/python32/Makefile Sat Apr 19 23:11:35 2014 (r351609) +++ head/lang/python32/Makefile Sun Apr 20 01:35:39 2014 (r351610) @@ -2,7 +2,7 @@ PORTNAME= python32 PORTVERSION= 3.2.5 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= lang python ipv6 MASTER_SITES= PYTHON MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} Added: head/lang/python32/files/patch-Lib__distutils__unixccompiler.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/python32/files/patch-Lib__distutils__unixccompiler.py Sun Apr 20 01:35:39 2014 (r351610) @@ -0,0 +1,15 @@ +# Description: Some python extensions can't be compiled with clang 3.4 +# Issue ID: http://bugs.python.org/issue20767 +# Submitted by: antoine + +--- ./Lib/distutils/unixccompiler.py.orig 2014-03-09 15:23:38.647562705 +1100 ++++ ./Lib/distutils/unixccompiler.py 2014-03-09 15:23:56.020904510 +1100 +@@ -225,6 +225,8 @@ + if sys.platform[:6] == "darwin": + # MacOSX's linker doesn't understand the -R flag at all + return "-L" + dir ++ elif sys.platform[:7] == "freebsd": ++ return "-Wl,-rpath=" + dir + elif sys.platform[:5] == "hp-ux": + if self._is_gcc(compiler): + return ["-Wl,+s", "-L" + dir] Modified: head/lang/python33/Makefile ============================================================================== --- head/lang/python33/Makefile Sat Apr 19 23:11:35 2014 (r351609) +++ head/lang/python33/Makefile Sun Apr 20 01:35:39 2014 (r351610) @@ -2,6 +2,7 @@ PORTNAME= python33 PORTVERSION= 3.3.5 +PORTREVISION= 1 CATEGORIES= lang python ipv6 MASTER_SITES= PYTHON MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} Added: head/lang/python33/files/patch-Lib__distutils__unixccompiler.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/python33/files/patch-Lib__distutils__unixccompiler.py Sun Apr 20 01:35:39 2014 (r351610) @@ -0,0 +1,15 @@ +# Description: Some python extensions can't be compiled with clang 3.4 +# Issue ID: http://bugs.python.org/issue20767 +# Submitted by: antoine + +--- ./Lib/distutils/unixccompiler.py.orig 2014-03-09 15:25:15.921204441 +1100 ++++ ./Lib/distutils/unixccompiler.py 2014-03-09 15:25:50.643809649 +1100 +@@ -225,6 +225,8 @@ + if sys.platform[:6] == "darwin": + # MacOSX's linker doesn't understand the -R flag at all + return "-L" + dir ++ elif sys.platform[:7] == "freebsd": ++ return "-Wl,-rpath=" + dir + elif sys.platform[:5] == "hp-ux": + if self._is_gcc(compiler): + return ["-Wl,+s", "-L" + dir]