[MacPorts] #44165: Incomplete mpkg of gtk2 port

MacPorts noreply at macports.org
Sat Aug 27 05:59:11 PDT 2016


#44165: Incomplete mpkg of gtk2 port
----------------------------------+--------------------------------
  Reporter:  manuel.op.de.coul@…  |      Owner:  macports-tickets@…
      Type:  defect               |     Status:  new
  Priority:  Normal               |  Milestone:
 Component:  ports                |    Version:  2.3.0
Resolution:                       |   Keywords:
      Port:  shared-mime-info     |
----------------------------------+--------------------------------
Changes (by ctreleaven@…):

 * port:  gtk2 => shared-mime-info


Comment:

 Based on a quick test, the reported problem can be fixed with the
 following patch to shared-mime-info IF base is patched to to add asroot
 capability to the pkg phase:

 {{{
 $ svn diff
 Index: Portfile
 ===================================================================
 --- Portfile    (revision 151946)
 +++ Portfile    (working copy)
 @@ -47,5 +47,12 @@
      system "${prefix}/bin/update-mime-database -V ${prefix}/share/mime"
  }

 +pkg.asroot          yes
 +
 +pre-pkg {
 +    ui_debug "Creating MIME database for inclusion in component
 package..."
 +    system "${destroot}${prefix}/bin/update-mime-database -V
 ${destroot}${prefix}/share/mime"
 +}
 +
  livecheck.type      regex
  livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)
 }}}

 Basically, we replicate the post-activate step in the pre-pkg phase.  We
 need root permissions to create these mime files.  The results are then
 included in the component package to be installed on the destination
 system.

-- 
Ticket URL: <https://trac.macports.org/ticket/44165#comment:11>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list