Bug 108353 - [PATCH] devel/py-simplejson: doesn't delete/add its own entry from/to easy-install.pth
Summary: [PATCH] devel/py-simplejson: doesn't delete/add its own entry from/to easy-in...
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: Nicola Vitale
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-25 21:30 UTC by Nicola Vitale
Modified: 2007-01-27 00:40 UTC (History)
1 user (show)

See Also:


Attachments
py24-simplejson-1.4_1.patch (1.22 KB, patch)
2007-01-25 21:30 UTC, Nicola Vitale
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicola Vitale 2007-01-25 21:30:13 UTC
py-simplejson does not delete its own entry from
${PYTHON_SITELIBDIR}/easy-install.pth, when you
remove/unistall the package/port.
Further, it does not register it when you use
pkg_add.

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

Generated with FreeBSD Port Tools 0.77

How-To-Repeat: 
  [neither py-setuptools nor py-simplejson installed]

root # cd /usr/ports/devel/py-simplejson
root # make package
  [...]
Registering depends: py24-setuptools-0.6c3_1 python24-2.4.3_3.
Creating bzip'd tar ball in '/usr/ports/devel/py-simplejson/py24-simplejson-1.4.tbz'
root # make deinstall
===>  Deinstalling for devel/py-simplejson
===>   Deinstalling py24-simplejson-1.4
root # cd ../py-setuptools
root # make deinstall
===>  Deinstalling for devel/py-setuptools
===>   Deinstalling py24-setuptools-0.6c3_1
pkg_delete: '/usr/local/lib/python2.4/site-packages/easy-install.pth' fails original MD5 checksum - deleted anyway.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
root # make reinstall
  [...]
===>   Registering installation for py24-setuptools-0.6c3_1
root # cd ../py-simplejson
root # pkg_add py24-simplejson-1.4.tbz
root # cat /usr/local/lib/python2.4/site-packages/easy-install.pth 
import sys; sys.__plen = len(sys.path)
./setuptools-0.6c3-py2.4.egg
import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)

  [there is not simplejson and the module is not available]

root # python
Python 2.4.3 (#2, Nov 27 2006, 19:13:07) 
[GCC 3.4.6 [FreeBSD] 20060305] on freebsd6
Type "help", "copyright", "credits" or "license" for more information.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-01-25 21:30:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->python

Over to maintainer
Comment 2 Nicola Vitale freebsd_committer freebsd_triage 2007-01-26 22:12:13 UTC
Responsible Changed
From-To: python->nivit

I will take it.
Comment 3 dfilter service freebsd_committer freebsd_triage 2007-01-27 00:35:22 UTC
nivit       2007-01-27 00:35:01 UTC

  FreeBSD ports repository

  Modified files:
    devel/py-simplejson  Makefile pkg-plist 
  Log:
  - Added easy_install commands to add/remove simplejson's entry
    to/from ${PYTHON_SITELIBDIR}/easy-install.pth (it failed
    original MD5 checksum)
  - Added variable PYSIMPLEJSON_EGG
  - Bumped PORTREVISION
  
  PR:             ports/108353
  Submitted by:   Nicola Vitale <nivit at email.it>
  Approved by:    alexbl (mentor, implicit)
  
  Revision  Changes    Path
  1.5       +6 -0      ports/devel/py-simplejson/Makefile
  1.3       +4 -1      ports/devel/py-simplejson/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Nicola Vitale freebsd_committer freebsd_triage 2007-01-27 00:35:46 UTC
State Changed
From-To: open->closed

Committed, thanks!