[MacPorts] #20626: patch to allow for proper functioning of pre-/post- install/uninstall/activate/deactivate procs

MacPorts noreply at macports.org
Sun Aug 9 22:16:49 PDT 2009


#20626: patch to allow for proper functioning of pre-/post-
install/uninstall/activate/deactivate procs
----------------------------------------+-----------------------------------
 Reporter:  david.osguthorpe@…          |       Owner:  macports-tickets@…                   
     Type:  enhancement                 |      Status:  new                                  
 Priority:  Normal                      |   Milestone:                                       
Component:  base                        |     Version:  1.7.0                                
 Keywords:                              |        Port:                                       
----------------------------------------+-----------------------------------
 The current implementation of pre-/post- procs for
 install/uninstall/activate/deactivate
 has many issues.
 pre-/post- procs dont exist for deactivate/uninstall
 pre-/post- activate procs are not run when port activate is called
 directly - only from the indirect internal munging of a port install call
 pre-/post- activate procs are not run for non-image installs even though
 they perform actions such as starting daemons

 with this patch pre-/post- procs are stored in the registry and hence are
 versioned so when a specific version is re-activated (or deactivated) that
 versions specific procs are run
 activate/deactivate are treated as a sub-phase of install/uninstall rather
 than separate phases after install/before uninstall (which makes procs for
 non-image installs work and removes the internal munging of port install
 to port activate)
 (variant pre-/post- install/uninstall/activate/deactivate procs are
 treated as for current install/activate variants)

 The changes required are relatively clean hence I thought it would be
 useful to have the patch available before other changes etc. for 1.8.0
 might destroy them

 TODO: What is not implemented yet is storing procs with the archive for
 archive mode
 (which is not the default any more but important for me because I use it)

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


More information about the macports-tickets mailing list