[MacPorts] #18273: post-activate code is not run if you call port activate
#18273: post-activate code is not run if you call port activate -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.7.0 Keywords: | Port: -------------------------------------+-------------------------------------- If you "`port install`" a port that has a post-activate block, it gets run. For example, wget's post-activate block tells you about a config file you can install (if you haven't already done so): {{{ $ sudo port install wget ---> Fetching wget ---> Verifying checksum(s) for wget ---> Extracting wget ---> Applying patches to wget ---> Configuring wget ---> Building wget ---> Staging wget into destroot ---> Installing wget @1.11.4_1 ---> Activating wget @1.11.4_1 To customize wget, you can copy wgetrc.sample to wgetrc in /opt/local/etc and then make changes. ---> Cleaning wget $ }}} However, if the port is deactivated, and you "`port activate`" it, the post-activate block does not run, which is unexpected: {{{ $ sudo port deactivate wget @1.11.4_1 ---> Deactivating wget @1.11.4_1 $ sudo port activate wget @1.11.4_1 ---> Activating wget @1.11.4_1 $ }}} -- Ticket URL: <http://trac.macports.org/ticket/18273> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18273: post-activate code is not run if you call port activate -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.7.0 Keywords: | Port: -------------------------------------+-------------------------------------- Comment(by ryandesign@…): See also #11562, the request to remove the post-activate and post-install blocks and replace them with a "finalize" phase. -- Ticket URL: <http://trac.macports.org/ticket/18273#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18273: post-activate code is not run if you call port activate -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.7.0 Keywords: | Port: -------------------------------------+-------------------------------------- Changes (by devans@…): * cc: devans@… (added) Comment: Same problem observed with ffmpeg/ffmpeg-devel -- Ticket URL: <http://trac.macports.org/ticket/18273#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18273: post-activate code is not run if you call port activate -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.7.0 Keywords: registry2.0 | Port: -------------------------------------+-------------------------------------- Changes (by raimue@…): * cc: raimue@… (added) * keywords: => registry2.0 Comment: This is a registry problem as registry1.0 does not store any hooks in the receipt. We cannot assure that the Portfile will be still valid or even available at the time of running de-/activate. I didn't check again, but registry2.0 contains stubs to store pre-/post- uninstall hooks, it should do the same for de-/activate. The notes issue will be fixed by #421. -- Ticket URL: <http://trac.macports.org/ticket/18273#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18273: post-activate code is not run if you call port activate --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: MacPorts 1.9.0 Component: base | Version: 1.7.0 Resolution: fixed | Keywords: registry2.0 Port: | --------------------------------------+------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed * milestone: MacPorts Future => MacPorts 1.9.0 Comment: r64638 & r64639 -- Ticket URL: <http://trac.macports.org/ticket/18273#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts