Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jun 2013 15:50:08 +0100
From:      Chris Rees <utisoft@gmail.com>
To:        nemysis <nemysis@gmx.ch>
Cc:        Josh Paetzel <jpaetzel@freebsd.org>, Johannes Meixner <xmj@chaot.net>, python <python@freebsd.org>
Subject:   Re: [PATCH] devel/py27-distribute: Fix reinstall
Message-ID:  <CADLo838_2e=ht-dwY%2BWq8jJzD0Qm9nH-MLibqXEmdaG6QKoKGA@mail.gmail.com>
In-Reply-To: <20130616155752.7e70dfc8@nemysis4now>
References:  <20130616112242.10FF4A42@hub.freebsd.org> <951a0ffb-430f-4639-9166-96e161c65ec3.maildroid@localhost> <20130616155752.7e70dfc8@nemysis4now>

next in thread | previous in thread | raw e-mail | index | archive | help
On 16 June 2013 14:57, nemysis <nemysis@gmx.ch> wrote:
> On Sun, 16 Jun 2013 14:34:27 +0100
> Chris Rees <utisoft@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo838_2e=ht-dwY%2BWq8jJzD0Qm9nH-MLibqXEmdaG6QKoKGA>