ports/67515: [PATCH] lang/python: [${CC} friendly to other ports]
michael johnson
ahze at ahze.net
Thu Jun 3 05:40:19 UTC 2004
>Number: 67515
>Category: ports
>Synopsis: [PATCH] lang/python: [${CC} friendly to other ports]
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Jun 02 22:40:18 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: michael johnson
>Release: FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD gentoo.ahze.net 5.2-CURRENT FreeBSD 5.2-CURRENT #45: Mon May 3 05:09:04 EDT
>Description:
- Make ${CC} friendly to other ports.
this patch doesn't change the way python builds at all, but some ports
(ie. x11-toolkits/py-wxPython) use the python Makefile in ${LOCALBASE}/lib/python-*/config/Makefile
and if you use ccache, distcc, etc linking libs does not work correctly
Port maintainer (perky at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
install devel/ccache
install lang/python with CC="ccache cc"
build x11-toolkits/py-wxPython
(a few other ports also don't link correctly)
>Fix:
--- python-2.3.4.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/lang/python/Makefile,v
retrieving revision 1.130
diff -u -r1.130 Makefile
--- Makefile 27 May 2004 15:58:02 -0000 1.130
+++ Makefile 3 Jun 2004 05:12:06 -0000
@@ -121,6 +121,9 @@
${REINPLACE_CMD} -e \
's,/usr/doc/python-docs-,${PREFIX}/share/doc/python,g' \
${WRKSRC}/Lib/pydoc.py
+ ${REINPLACE_CMD} -e \
+ 's,LDSHARED="cc,LDSHARED="${CC},g' \
+ ${WRKSRC}/configure
post-configure: ${STACKLESS_POST_CONFIGURE}
@# prepare a subdir for shared build
--- python-2.3.4.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list