FreeBSD Bugzilla – Attachment 156373 Details for
Bug 197757
lang/python{27,32,33}: pythonX.Y-config --ldflags missing -L/usr/local/lib for shared library path
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch tested on python27
python27.diff (text/plain), 2.50 KB, created by
Antoine Brodin
on 2015-05-05 13:11:31 UTC
(
hide
)
Description:
patch tested on python27
Filename:
MIME Type:
Creator:
Antoine Brodin
Created:
2015-05-05 13:11:31 UTC
Size:
2.50 KB
patch
obsolete
>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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197757
:
153794
| 156373