From owner-freebsd-python@FreeBSD.ORG Sun Jun 16 14:50:39 2013 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 7F61E5C7; Sun, 16 Jun 2013 14:50:39 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [IPv6:2607:f8b0:4001:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id 4DE191B4C; Sun, 16 Jun 2013 14:50:39 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id s9so4977147iec.41 for ; Sun, 16 Jun 2013 07:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=oVDYvYE8gUd9ahNLwUuyeNvNPImTOzfWEbhWu3r5Mio=; b=wsT7FEtqCVq2aTf6fofrsb9pxe/CPattiND2+CgtTcCRxYsPd1GyQ4uG3TUP9r4lV7 14AabC/uGvf67ccN3jkn+OCfB1sNeE7VcB9JulDrKKPvtBuwZI1nxYZR7uiUWDbBVTvh 7syTIR9kEMwbIBPi2HvtASsL6n28NYUTLTfqalrppTTOnxDlwKpeb2GZqhjS1aSv2TnU wu1fE8wot5Qn3YoqKnko8KwBkVF3bWHPH2Seyl73Y24jY45wTfsiiIJSuxn3evnE94AS tv97+YxyCViEf8lDt9gOa6I23dHa1SZ0Buc6513d1iiag8deNs+miObNHy0XLXSwETPq y2Eg== X-Received: by 10.50.136.168 with SMTP id qb8mr3090661igb.5.1371394238277; Sun, 16 Jun 2013 07:50:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.28.131 with HTTP; Sun, 16 Jun 2013 07:50:08 -0700 (PDT) In-Reply-To: <20130616155752.7e70dfc8@nemysis4now> References: <20130616112242.10FF4A42@hub.freebsd.org> <951a0ffb-430f-4639-9166-96e161c65ec3.maildroid@localhost> <20130616155752.7e70dfc8@nemysis4now> From: Chris Rees Date: Sun, 16 Jun 2013 15:50:08 +0100 Message-ID: Subject: Re: [PATCH] devel/py27-distribute: Fix reinstall To: nemysis Content-Type: text/plain; charset=ISO-8859-1 Cc: Josh Paetzel , Johannes Meixner , python X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jun 2013 14:50:39 -0000 On 16 June 2013 14:57, nemysis wrote: > On Sun, 16 Jun 2013 14:34:27 +0100 > Chris Rees 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