[PATCH] devel/py27-distribute: Fix reinstall
Chris Rees
utisoft at gmail.com
Sun Jun 16 14:50:39 UTC 2013
On 16 June 2013 14:57, nemysis <nemysis at gmx.ch> wrote:
> On Sun, 16 Jun 2013 14:34:27 +0100
> Chris Rees <utisoft at gmail.com> wrote:
>
>> Why symbolic instead of hard?
>>
>> Chris
>
> When is in Makefile
>
> ${LN} ${EASYINSTALL_PTH}.dist ${PYTHON_SITELIBDIR}/distribute.pth
>
> /usr/local/bin/python2.7 -m py_compile /usr/local/lib/python2.7/site-packages/site.py
> /usr/local/bin/python2.7 -OO -m py_compile /usr/local/lib/python2.7/site-packages/site.py
> /bin/cp /usr/local/lib/python2.7/site-packages/easy-install.pth /usr/local/lib/python2.7/site-packages/easy-install.pth.dist
> /bin/ln /usr/local/lib/python2.7/site-packages/easy-install.pth.dist /usr/local/lib/python2.7/site-packages/distribute.pth
> ln: /usr/local/lib/python2.7/site-packages/distribute.pth: File exists
> *** [post-install] Error code 1
>
> Stop in /usr/local/ports/local/patch/devel/py-distribute.
> *** [reinstall] Error code 1
>
> Stop in /usr/local/ports/local/patch/devel/py-distribute.
>
>
> When is in Makefile
>
> ${LN} -sf ${EASYINSTALL_PTH}.dist ${PYTHON_SITELIBDIR}/distribute.pth
>
> /usr/local/bin/python2.7 -m py_compile /usr/local/lib/python2.7/site-packages/site.py
> /usr/local/bin/python2.7 -OO -m py_compile /usr/local/lib/python2.7/site-packages/site.py
> /bin/cp /usr/local/lib/python2.7/site-packages/easy-install.pth /usr/local/lib/python2.7/site-packages/easy-install.pth.dist
> /bin/ln -sf /usr/local/lib/python2.7/site-packages/easy-install.pth.dist /usr/local/lib/python2.7/site-packages/distribute.pth
> PKG_PREFIX=/usr/local /bin/sh /var/tmp/ports/usr/local/ports/local/patch/devel/py-distribute/work/pkg-install py27-distribute-0.6.35 POST-INSTALL
> if [ -f /usr/local/ports/local/patch/devel/py-distribute/pkg-message ]; then /bin/cat /usr/local/ports/local/patch/devel/py-distribute/pkg-message; fi
> ===> Registering installation for py27-distribute-0.6.35
> Installing py27-distribute-0.6.35... done
I understood the reason for the -f, just not the -s.
It should be:
${LN} -f ${EASYINSTALL_PTH}.dist ${PYTHON_SITELIBDIR}/distribute.pth
to preserve what was there before.
Chris
More information about the freebsd-python
mailing list