[MacPorts] #19176: patch to fixup existing uninstall implementation

MacPorts noreply at macports.org
Tue May 26 08:59:54 PDT 2009


#19176: patch to fixup existing uninstall implementation
----------------------------------------+-----------------------------------
 Reporter:  david.osguthorpe@…          |       Owner:  macports-tickets@…                   
     Type:  enhancement                 |      Status:  new                                  
 Priority:  Normal                      |   Milestone:  MacPorts Future                      
Component:  base                        |     Version:  1.7.0                                
 Keywords:                              |        Port:                                       
----------------------------------------+-----------------------------------

Comment(by david.osguthorpe@…):

 Replying to [comment:2 blb@…]:
 > Since pkg_uninstall is not actually used, perhaps it would be best to
 simply delete its handling.  Especially as it seems to be a bit messy in
 usage since as you say in that comment, a number of variables aren't
 available.

 I added this because someone was asking for such a procedure on the
 mailing list recently - Im not sure what you mean by pkg_uninstall is not
 actually used - you mean that no Portfile defines it - it would only be
 defined in Portfiles - not in base itself

 Well it does actually enable you to do something at uninstall - I was just
 pointing out that its run in a different context to the rest of the
 Portfile - its actually probably not useful that destroot is defined - by
 uninstall time for a normal port install the whole work directory would
 have been deleted at the install stage in any case - Ive just never sorted
 out in detail what variables are defined - but theres enough information
 to operate explicitly on paths you know about - which is what I am using
 it for (since 1.3/4 odd)

-- 
Ticket URL: <http://trac.macports.org/ticket/19176#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list