Bug 97144 - Fix pkg-plist of x11-toolkits/py-wxPython26
Summary: Fix pkg-plist of x11-toolkits/py-wxPython26
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: Stefan Walter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-11 18:10 UTC by Neal Nelson
Modified: 2006-05-13 22:41 UTC (History)
0 users

See Also:


Attachments
file.diff (104 bytes, patch)
2006-05-11 18:10 UTC, Neal Nelson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Neal Nelson 2006-05-11 18:10:12 UTC
	The file wx.pth is created if no other wxPython version is installed but it not
deleted on port removal. On deinstallation the path of the version being
deinstalled should be removed from the file and if the file contains no other
paths it should be deleted.

Fix: 

RUN_DEPENDS=   ${PYTHON_SITELIBDIR}/OpenGL/__init__.py:${PORTSDIR}/graphics/py-opengl

+BROKEN=                Incomplete pkg-plist
+
 WRKSRC=                ${WRKDIR}/${DISTNAME}/wxPython

 USE_GMAKE=     yes--kZkc6y0unElee2hu0cDJAfp0gLBAtjjos4IKRt5BqApTlcJj
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- pkg-plist.orig   Thu May 11 18:01:48 2006
+++ pkg-plist   Thu May 11 16:24:34 2006
@@ -824,4 +824,3 @@
 @dirrm %%PYTHON_SITELIBDIR%%/%%WX_PYTHON_DIR%%
 @exec echo %%WX_PYTHON_DIR%% >> %D/%%PYTHON_SITELIBDIR%%/wx.pth 2>/dev/null || true
 @exec chmod 0444 %D/%%PYTHON_SITELIBDIR%%/wx.pth 2>/dev/null || true
-@unexec sed -i -e /%%WX_PYTHON_DIR%%/d %D/%%PYTHON_SITELIBDIR%%/wx.pth; if [ ! -s %D/%%PYTHON_SITELIBDIR%%/wx.pth ]; then rm %D/%%PYTHON_SITELIBDIR%%/wx.pth; fi
How-To-Repeat: 	Install and deinstall the port and the file wx.pth will be in /usr/local/lib/python2.4/site-packages.
Comment 1 Stefan Walter freebsd_committer 2006-05-13 20:07:20 UTC
State Changed
From-To: open->closed

Port has already been marked BROKEN.
Comment 2 Stefan Walter freebsd_committer 2006-05-13 20:19:45 UTC
State Changed
From-To: closed->open

Reopen this PR. Sorry, the reversed patch confused me. 


Comment 3 Stefan Walter freebsd_committer 2006-05-13 20:19:45 UTC
Responsible Changed
From-To: freebsd-ports-bugs->stefan

Take.
Comment 4 Stefan Walter freebsd_committer 2006-05-13 22:40:48 UTC
State Changed
From-To: open->closed

Committed, thanks!