ports/186284: lang/python27: [PATCH] Several python ports fail after staging due to library that links itself

John Marino dragonflybsd at marino.st
Thu Jan 30 18:00:00 UTC 2014


>Number:         186284
>Category:       ports
>Synopsis:       lang/python27: [PATCH] Several python ports fail after staging due to library that links itself
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 30 18:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     John Marino
>Release:        
>Organization:
>Environment:
>Description:
The following ports starting failing on dragonfly:
math/gnumeric
deskutils/libopensync-plugin-python
databases/postgresql84-plpython
security/bro
games/py-poker-eval
lcms-python

The cause was a badly linked library at ${LOCALBASE}/lib/python2.7/

The attached patch fixes it.
It's fairly critical.
The other pythons need a similar fix, they are broken too.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- Makefile.orig	2014-01-30 17:16:09.811908000 +0000
+++ Makefile
@@ -262,8 +262,8 @@ post-install:
 		${STAGEDIR}${PREFIX}/lib
 	(cd ${STAGEDIR}${PREFIX}/lib; ${LN} -sf lib${PYTHON_VERSION}.so.1 \
 		lib${PYTHON_VERSION}.so)
-	${LN} -sf lib${PYTHON_VERSION}.so \
-		${STAGEDIR}${PYTHONPREFIX_LIBDIR}/config
+	(cd ${STAGEDIR}${PREFIX}/lib/${PYTHON_VERSION}/config; \
+		${LN} -sf ../../lib${PYTHON_VERSION}.so)
 	${INSTALL_PROGRAM} \
 		${SHARED_WRKSRC}/${PYTHON_VERSION:S/thon/thon-shared/} \
 		${STAGEDIR}${PREFIX}/bin


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list