[MacPorts] #52144: mariadb: support for mpkg / mdmg

MacPorts noreply at macports.org
Wed Feb 1 01:57:40 UTC 2017


#52144: mariadb: support for mpkg / mdmg
-----------------------------+---------------------
  Reporter:  ctreleaven      |      Owner:  pixilla
      Type:  enhancement     |     Status:  closed
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:  fixed           |   Keywords:
      Port:  mariadb-server  |
-----------------------------+---------------------

Comment (by ctreleaven):

 I understand your concern about conflicts but I maintain that users should
 not mix MacPorts and package installers.  Even if the installer uses a
 custom prefix (I use /opt/dvr), as you rightly point out, there can be
 collisions in /Library/LaunchDaemons and also /Library/LaunchAgents and
 /Applications/MacPorts.  It might be better if installers created with
 MacPorts could look for an existing MacPorts installation (the presence of
 the port command, perhaps) and alert the user to the potential for
 conflicts.  Going further, the user might also have installed MySQL from
 their dmg (1) and now the various servers may be fighting over the network
 port.  At some point, the user has to take responsibility for what they're
 installing on their system.

 An easy improvement would be to expand the official MacPorts documentation
 to be more explicit about the issues and limitations of using MacPorts to
 produce installers.  I've been thinking about adding a wiki page with tips
 that I've gleaned.

 Right now, we strongly discourage folks from using MacPorts and any other
 package manager because of the potential for conflicts.  The port diagnose
 command checks for such issues but I don't see any way for it to identify
 if the user has also used other MacPorts-produced installers.

 My MythTV.28 installer includes 4 daemons:  mythbackend, mariadb, apache2
 and logrotate.  Three of the packages add stuff to /Applications/MacPorts
 (Myth, Python 2.7 and Qt 5).  I've been producing these installers for 3
 years and I've only had one case where a user wanted to switch to
 MacPorts.  My docs have a big warning about choosing one approach or the
 other.

 AFAICT, I'm one of the very few people using MacPorts to produce an
 installer (2).  The installer for Myth 0.27 has been downloaded over
 12,000 times.  I agree that there is *potential* for collisions.  It just
 doesn't seem to be a big problem in actual practise.

 (1) https://dev.mysql.com/downloads/file/?id=467574

 (2) https://sourceforge.net/projects/macportsmythtvinstaller/

--
Ticket URL: <https://trac.macports.org/ticket/52144#comment:20>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list