Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#60653 closed enhancement (fixed)

Allow ports to customize the launchd plist files in the destroot phase

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone: MacPorts 2.7.0
Component: base Version: 2.6.2
Keywords: Cc:
Port:

Description

Currently MacPorts creates any launchd plists for startupitem / startupitems keywords after the destroot phase is completely over, even after any post-destroot blocks have run. This provides no opportunity for portfiles to customize the launchd plist. Many ports have a desire to do so and have had to resort to inelegant hacks like modifying the installed plist in a post-activate block.

Can we instead create the plist before the destroot phase runs, or after the main destroot command runs but before the post-destroot blocks?

Change History (2)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 6f7ed40b1df74c6dd62588a0f8cec5a7e8a6959e/macports-base (master):

Make startupitems before destroot phase, not after

This allows ports to customize their launchd plists during the destroot
phase. It also makes it easier for a developer to debug launchd plists
since now the entire destroot phase doesn't need to be completed before
the launchd plists are created.

Closes: #60653

comment:2 Changed 4 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.7.0
Note: See TracTickets for help on using tickets.