From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jan 25 22:20:01 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 66D95517 for ; Sat, 25 Jan 2014 22:20:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 506AE1D23 for ; Sat, 25 Jan 2014 22:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0PMK1vo050387 for ; Sat, 25 Jan 2014 22:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0PMK1GR050386; Sat, 25 Jan 2014 22:20:01 GMT (envelope-from gnats) Date: Sat, 25 Jan 2014 22:20:01 GMT Message-Id: <201401252220.s0PMK1GR050386@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org Cc: From: Nathan Whitehorn Subject: Re: ports/185884: [patch] Miscellaneous ports fixes for python 3 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Nathan Whitehorn List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jan 2014 22:20:01 -0000 The following reply was made to PR ports/185884; it has been noted by GNATS. From: Nathan Whitehorn To: bug-followup@FreeBSD.org, nwhitehorn@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 --Boundary_(ID_tBmBruLoENg/I66fQNBM6w)--