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

MacPorts noreply at macports.org
Tue Jan 31 00:19:30 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 pixilla):

 Replying to [comment:13 ctreleaven]:
 > New patch attached using Ryan's tip about using xinstall.
 >
 > Re the launchd plist name, adding 'pkg' isn't appropriate.  Keep in mind
 that a standalone installer only makes sense where MacPorts isn't
 installed.  We won't be changing anything owned by port because there are
 no ports!
 >
 > The postinstall script may be run on a virgin system or where a previous
 version of our payload is already in place.  Say the user had used our
 installer for MariaDB 5.5.n and now has our new installer for MariaDB
 5.5.n+1.  In this case, we need to have launchd unload the old version
 before we mess with it.  With a 'belt and suspenders' approach, I attempt
 the unload both in the preinstall script and the postinstall script.
 After our n+1 payload is copied into place, the postinstall script uses
 launchd to load the new version so the user can go merrily along their
 way.
 >
 > Does that clarify?

 We cannot control what others do. You assume no one will ever use "pkg" on
 a system where port is installed. This feels like it is designed to break
 and I would like this change reverted.

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


More information about the macports-tickets mailing list