ports/185884: [patch] Miscellaneous ports fixes for python 3
Nathan Whitehorn
nwhitehorn at freebsd.org
Sat Jan 25 22:20:01 UTC 2014
The following reply was made to PR ports/185884; it has been noted by GNATS.
From: Nathan Whitehorn <nwhitehorn at freebsd.org>
To: bug-followup at FreeBSD.org, nwhitehorn at FreeBSD.org
Cc:
Subject: Re: ports/185884: [patch] Miscellaneous ports fixes for python 3
Date: Sat, 25 Jan 2014 16:16:28 -0600
This is a multi-part message in MIME format.
--Boundary_(ID_tBmBruLoENg/I66fQNBM6w)
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT
Here's another patch (an addition to the last rather than a replacement)
that fixes sphinx. Doing the grammar pickle generation post-build
happens before 2to3 is run, with the result that the command will fail
to execute. Running it in the stage directory solves the problem.
-Nathan
--Boundary_(ID_tBmBruLoENg/I66fQNBM6w)
Content-type: text/plain; CHARSET=US-ASCII; name=py3-sphinx.diff
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=py3-sphinx.diff
Index: Makefile
===================================================================
--- Makefile (revision 341085)
+++ Makefile (working copy)
@@ -25,15 +25,11 @@
PYDISTUTILS_AUTOPLIST= yes
PYDISTUTILS_PKGNAME= Sphinx
-post-build:
- cd ${WRKSRC} && \
+post-install:
+ cd ${STAGEDIR}/${PYTHONPREFIX_SITELIBDIR}/${PYEASYINSTALL_EGG} && \
${SETENV} PYTHONPATH=${STAGEDIR}/${PYTHONPREFIX_SITELIBDIR}:${PYTHONPREFIX_SITELIBDIR} \
- ${PYTHON_CMD} -m sphinx.pycode.pgen2.driver -c 'import load_grammar'
+ ${PYTHON_CMD} -m sphinx.pycode.pgen2.driver -c 'load_grammar(force=True)'
-post-install:
- ${INSTALL_DATA} ${WRKSRC}/sphinx/pycode/Grammar${PYTHON_VER}.pickle \
- ${STAGEDIR}/${PYTHONPREFIX_SITELIBDIR}/${PYEASYINSTALL_EGG}/sphinx/pycode/
-
${ECHO_CMD} ${PYTHON_SITELIBDIR:S;${PYTHONBASE}/;;}/${PYEASYINSTALL_EGG}/sphinx/pycode/Grammar${PYTHON_VER}.pickle >> ${TMPPLIST}
.include <bsd.port.mk>
--Boundary_(ID_tBmBruLoENg/I66fQNBM6w)--
More information about the freebsd-ports-bugs
mailing list