Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jan 2015 16:51:46 +0000 (UTC)
From:      Will Parsons <varro@nodomain.invalid>
To:        freebsd-ports@freebsd.org
Subject:   Re: upgrading texlive broken due to cmake
Message-ID:  <slrnmatdd2.17a.varro@anukis.local>
References:  <slrnmar6bl.23dh.varro@anukis.local> <86bnmagq03.fsf@FreeBSD.org> <CAOc73CCX7%2B2ZZh=dq0=g-tHd%2BT4PLQ9tYgM3b-Tw-c1Z-vsBOg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Ben Woods wrote:
> textproc/py-sphinx port depends on the devel/py-Jinja2 port... but the port
> only requires py-Jinja >= 2.3.
>
> Try adding this patch to your ports tree and then retry you build:
>
> Index: textproc/py-sphinx/Makefile
>===================================================================
> --- textproc/py-sphinx/Makefile (revision 376204)
> +++ textproc/py-sphinx/Makefile (working copy)
> @@ -14,9 +14,9 @@
>
>  LICENSE=       BSD2CLAUSE
>
> -BUILD_DEPENDS=
> ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.3:${PORTSDIR}/devel/py-Jinja2 \
> +BUILD_DEPENDS=
> ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.7:${PORTSDIR}/devel/py-Jinja2 \
>
> ${PYTHON_PKGNAMEPREFIX}docutils>=0.7:${PORTSDIR}/textproc/py-docutils
> -RUN_DEPENDS=
> ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.3:${PORTSDIR}/devel/py-Jinja2 \
> +RUN_DEPENDS=
> ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.7:${PORTSDIR}/devel/py-Jinja2 \
>
> ${PYTHON_PKGNAMEPREFIX}docutils>=0.7:${PORTSDIR}/textproc/py-docutils \
>
> ${PYTHON_PKGNAMEPREFIX}pygments>=1.2:${PORTSDIR}/textproc/py-pygments

I'm not too familiar with the process of applying patches, so this may
be operator error at my end, but when I attempted to apply your patch,
I got:

====
Patching file Makefile using Plan A...
patch: **** malformed patch at line 51: ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.3:${PORTSDIR}/devel/py-Jinja2 \
====

Perhaps the patch got mangled when I copied it?

Looking at the patch, it looks like the intent is to replace
Jinja2>=2.3 with Jinja2>=2.7, so I manually edited the Makefile and then
ran portmaster py27-sphinx, but it did not build:

====
cd /usr/ports/textproc/py-sphinx/work/Sphinx-1.2.3/build/lib &&  /usr/bin/env PYTHONPATH=/usr/ports/textproc/py-sphinx/work/Sphinx-1.2.3/build/lib:/usr/local/lib/python2.7/site-packages  /usr/local/bin/python2.7 -m sphinx.pycode.pgen2.driver -c 'import load_grammar'
/usr/local/bin/python2.7: No module named jinja2
*** [post-build] Error code 1

Stop in /usr/ports/textproc/py-sphinx.

===>>> make build failed for textproc/py-sphinx
===>>> Aborting update

====

Also, I seem to already have py27-Jinja2-2.7.3 installed.

-- 
Will




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?slrnmatdd2.17a.varro>