[MacPorts] #44496: startupitem_install not working as expected
#44496: startupitem_install not working as expected -----------------------------+--------------------- Reporter: ora.et.labora@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: guide | Version: 2.3.1 Keywords: | Port: -----------------------------+--------------------- The documentation at https://guide.macports.org/chunked/installing.macports.html states:
After installing the second instance you might need to add '''startupitem_install no''' to $MP_PREFIX/etc/macports/macports.conf to avoid conflicts in /Library/LaunchAgents.''
The documentation is probably not entirely precise as I assume, that nothing should be installed outside of ${MP_PREFIX-/opt/local} if this option is set to "no". Cause it does not only conflict in /Library/LaunchAgents but also in /Library/LaunchDaemons or any other "shared" place. However, even with ''startupitem_install no''' a conflict is created as the following session demonstrates: {{{ $ port version Version: 2.3.1 $ fgrep startupitem /opt/local/etc/macports/macports.conf [..] startupitem_type default startupitem_install no # check whether installed (-L to list sym links) $ find -L /Library/Launch* ~/Library/Launch* -type f | fgrep -i mysql $ sudo port install mysql56-server [..] # bingo! $ find -L /Library/Launch* ~/Library/Launch* -type f | fgrep -i mysql /Library/LaunchDaemons/org.macports.mysql56-server.plist }}} -- Ticket URL: <https://trac.macports.org/ticket/44496> MacPorts <http://www.macports.org/> Ports system for OS X
#44496: startupitem_install not working as expected ------------------------------+--------------------- Reporter: ora.et.labora@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: guide | Version: 2.3.1 Resolution: | Keywords: Port: | ------------------------------+--------------------- Comment (by larryv@…): Are you installing from a binary archive? Can you try forcing a build from source? {{{ sudo port uninstall mysql56-server sudo port -s install mysql56-server }}} -- Ticket URL: <https://trac.macports.org/ticket/44496#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#44496: startupitem_install not working as expected ------------------------------+--------------------- Reporter: ora.et.labora@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: guide | Version: 2.3.1 Resolution: | Keywords: Port: | ------------------------------+--------------------- Comment (by ora.et.labora@…): Replying to [comment:1 larryv@…]:
Are you installing from a binary archive? Can you try forcing a build from source? {{{ sudo port uninstall mysql56-server sudo port -s install mysql56-server }}}
Using `port -s install ..` did the job. This behaviour needs proper documentation or should work independent of -s | -b. ---- '''Side issue:''' Having disable startup symlinking in /Library/Launch* renders `port load|unload` unusable: {{{ $ sudo port -s install mysql56-server $ find -L /Library/Launch* ~/Library/Launch* -type f | fgrep -i mysql # ok, no symlink created! # Am I still able to start my server in background for the purpose of testing??? $ sudo port load mysql56-server Error: org.macports.load for port mysql56-server returned: Launchd plist /Library/LaunchDaemons/org.macports.mysql56-server.plist was not found }}} -- Ticket URL: <https://trac.macports.org/ticket/44496#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#44496: startupitem_install not respected when installing from binary archive ------------------------------+-------------------------------- Reporter: ora.et.labora@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.1 Resolution: | Keywords: Port: | ------------------------------+-------------------------------- Changes (by larryv@…): * owner: markd@… => macports-tickets@… * component: guide => base Comment: Replying to [comment:2 ora.et.labora@…]:
Using `port -s install ..` did the job. This behaviour needs proper documentation or should work independent of -s | -b.
Okay, the problem is that we build binary archives with default settings (including `startupitem_install yes`), so they always contain plists if a port creates them. Since installing from an archive basically consists of extracting a tarball, the plists get installed regardless of the local setting of `startupitem_install`. A workaround for now is to set `buildfromsource always`.
'''Side issue:''' Having disable startup symlinking in /Library/Launch* renders `port load|unload` unusable: {{{ $ sudo port -s install mysql56-server $ find -L /Library/Launch* ~/Library/Launch* -type f | fgrep -i mysql # ok, no symlink created! # Am I still able to start my server in background for the purpose of testing??? $ sudo port load mysql56-server Error: org.macports.load for port mysql56-server returned: Launchd plist /Library/LaunchDaemons/org.macports.mysql56-server.plist was not found }}}
#44497 -- Ticket URL: <https://trac.macports.org/ticket/44496#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#44496: startupitem_install not respected when installing from binary archive ------------------------------+-------------------------------- Reporter: ora.et.labora@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.1 Resolution: | Keywords: Port: | ------------------------------+-------------------------------- Comment (by larryv@…): I’ve updated the comments in r122832. -- Ticket URL: <https://trac.macports.org/ticket/44496#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts