Index: lang/python27/Makefile =================================================================== --- lang/python27/Makefile (revision 385462) +++ lang/python27/Makefile (working copy) @@ -2,7 +2,7 @@ PORTNAME= python27 PORTVERSION= 2.7.9 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang python ipv6 MASTER_SITES= PYTHON MASTER_SITE_SUBDIR= ftp/python/${PORTVERSION} Index: lang/python27/files/patch-Misc_python-config.in =================================================================== --- lang/python27/files/patch-Misc_python-config.in (revision 0) +++ lang/python27/files/patch-Misc_python-config.in (working copy) @@ -0,0 +1,29 @@ +# Description: add missing library directory to python-config --ldflags +# PR: 197757 +# Upstream bug and patch obtained from: https://bugs.python.org/issue7352 + +--- Misc/python-config.in.orig 2014-12-10 15:59:51 UTC ++++ Misc/python-config.in +@@ -50,8 +50,21 @@ for opt in opt_flags: + # add the prefix/lib/pythonX.Y/config dir, but only if there is no + # shared library in prefix/lib/. + if opt == '--ldflags': ++ # Provide the location where the Python library is installed. ++ # We always provide it, because Python may have been installed ++ # at a non-standard location. + if not getvar('Py_ENABLE_SHARED'): +- libs.insert(0, '-L' + getvar('LIBPL')) ++ # There is no shared library in prefix/lib. The static ++ # library is in prefix/lib/pythonX.Y/config. ++ # ++ # Note that we cannot use getvar('LIBPL') like we used to, ++ # because it provides the location at build time, which might ++ # be different from the actual location at runtime. ++ libdir = sysconfig.get_python_lib(standard_lib=True) + '/config' ++ else: ++ # The Python shared library is installed in prefix/lib. ++ libdir = sysconfig.PREFIX + '/lib' ++ libs.insert(0, '-L' + libdir) + if not getvar('PYTHONFRAMEWORK'): + libs.extend(getvar('LINKFORSHARED').split()) + print ' '.join(libs) Property changes on: lang/python27/files/patch-Misc_python-config.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property