Bug 179612 - [PATCH] devel/py27-distribute: Fix reinstall
Summary: [PATCH] devel/py27-distribute: Fix reinstall
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Kubilay Kocak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-16 12:30 UTC by nemysis
Modified: 2013-06-17 01:41 UTC (History)
1 user (show)

See Also:


Attachments
py27-distribute-0.6.35.patch (610 bytes, patch)
2013-06-16 12:30 UTC, nemysis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2013-06-16 12:30:00 UTC
- Fix reinstall

Port maintainer (python@FreeBSD.org) is cc'd.

Generated and tested manually, tested with port test and with RedPorts, sent with FreeBSD Port Tools 0.99_7 (mode: change, diff: ports)

How-To-Repeat: 
Build log

https://redports.org/buildarchive/20130616111201-523/
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-16 12:30:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2013-06-16 12:41:34 UTC
Responsible Changed
From-To: freebsd-python->koobs

I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179612 

Date: Sun, 16 Jun 2013 14:34:27 +0100
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-06-16 12:47:04 UTC
Author: koobs
Date: Sun Jun 16 11:46:51 2013
New Revision: 321041
URL: http://svnweb.freebsd.org/changeset/ports/321041

Log:
  devel/py-distribute: Fix reinstall
  
  - Correctly use -sf flags for ${LN}
  
  PR:		ports/179612
  Submitted by:	nemysis <nemysis@gmx.ch>
  Reviewed by:	sbz, Johannes Meixner <xmj@chaot.net>

Modified:
  head/devel/py-distribute/Makefile

Modified: head/devel/py-distribute/Makefile
==============================================================================
--- head/devel/py-distribute/Makefile	Sun Jun 16 11:37:55 2013	(r321040)
+++ head/devel/py-distribute/Makefile	Sun Jun 16 11:46:51 2013	(r321041)
@@ -65,7 +65,7 @@ post-install:
 	${PYTHON_CMD} -m py_compile ${SITE_PY}
 	${PYTHON_CMD} -OO -m py_compile ${SITE_PY}
 	${CP} ${EASYINSTALL_PTH} ${EASYINSTALL_PTH}.dist
-	${LN} ${EASYINSTALL_PTH}.dist ${PYTHON_SITELIBDIR}/distribute.pth
+	${LN} -sf ${EASYINSTALL_PTH}.dist ${PYTHON_SITELIBDIR}/distribute.pth
 	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 	if [ -f ${PKGMESSAGE} ]; then ${CAT} ${PKGMESSAGE}; fi
 
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2013-06-16 12:47:55 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 5 nemysis 2013-06-16 14:57:52 UTC
> 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