FreeBSD Bugzilla – Attachment 114321 Details for
Bug 155970
[exp-run] [patch] lang/python: speed up upgrade-site-packages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
python-2.7,2.patch
python-2.7,2.patch (text/plain), 1.70 KB, created by
Julien Laffaye
on 2011-03-27 14:20:10 UTC
(
hide
)
Description:
python-2.7,2.patch
Filename:
MIME Type:
Creator:
Julien Laffaye
Created:
2011-03-27 14:20:10 UTC
Size:
1.70 KB
patch
obsolete
>diff -ruN --exclude=CVS /usr/ports/lang/python.orig/Makefile /usr/ports/lang/python/Makefile >--- /usr/ports/lang/python.orig/Makefile 2011-03-26 13:17:41.000000000 +0000 >+++ /usr/ports/lang/python/Makefile 2011-03-27 14:09:30.000000000 +0100 >@@ -25,15 +25,9 @@ > > # Major upgrade support > PORTUPGRADE_CMD= ${LOCALBASE}/sbin/portupgrade >-PKG_WHICH_CMD= ${LOCALBASE}/sbin/pkg_which >-XARGS_CMD= ${XARGS} -0 > > .if defined(USE_PORTMASTER) > PORTUPGRADE_CMD= ${LOCALBASE}/sbin/portmaster >-PORTUPGRADE_ARGS?= "" >-PKG_WHICH_CMD= /usr/sbin/pkg_info -qW >-JOBS= ${SYSCTL} -n kern.smp.cpus >-XARGS_CMD= ${XARGS} -L 1 -0 -P $$(${JOBS}) > .endif > > upgrade-site-packages: >@@ -42,22 +36,21 @@ > ${FALSE}; \ > fi > >- @for ver in `echo ${_PYTHON_ALLBRANCHES}|${SED} 's/${PYTHON_VER}//'`; do \ >- if [ -d ${PREFIX}/lib/python$$ver ]; then \ >- UPD=`${FIND} ${PREFIX}/lib/python$$ver \ >- -type f -print0 | \ >- ${XARGS_CMD} ${PKG_WHICH_CMD} | \ >- ${GREP} -Fv '?' | \ >- ${EGREP} -v '^python2?[0-5]?-2' | \ >- ${SORT} -u`; \ >- if [ "$$UPD" ]; then \ >- if [ -n ${PORTUPGRADE_ARGS} ]; then \ >- ${PORTUPGRADE_CMD} ${PORTUPGRADE_ARGS} -f $$UPD; \ >- else \ >- ${PORTUPGRADE_CMD} -f $$UPD; \ >- fi; \ >- fi; \ >+ @GREP_ARGS="-q"; \ >+ for ver in `echo ${_PYTHON_ALLBRANCHES}|${SED} 's/${PYTHON_VER}//'`; do \ >+ GREP_ARGS="$${GREP_ARGS} -e lib/python$$ver"; \ >+ done; \ >+ UPD=""; \ >+ for pkg in `${PKG_INFO} -Ea`; do \ >+ ${PKG_INFO} -L $${pkg} | ${GREP} $${GREP_ARGS} && \ >+ UPD="$${UPD} $${pkg}"; \ >+ done; \ >+ if [ "$${UPD}" ]; then \ >+ if [ -n ${PORTUPGRADE_ARGS} ]; then \ >+ ${PORTUPGRADE_CMD} ${PORTUPGRADE_ARGS} -f $${UPD}; \ >+ else \ >+ ${PORTUPGRADE_CMD} -f $${UPD}; \ > fi; \ >- done \ >+ fi; \ > > .include <bsd.port.mk>
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 155970
: 114321