[MacPorts] #51504: codesigning portgroup

MacPorts noreply at macports.org
Thu Sep 1 09:04:41 PDT 2016


#51504: codesigning portgroup
--------------------------+--------------------------------
  Reporter:  rjvbertin@…  |      Owner:  macports-tickets@…
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------------------

Comment (by rjvbertin@…):

 A further evolved version:

 - reads from a proper .conf file (${prefix}/etc/macports/codesigning.conf)
 - also reads a signing user name from that file
 - identity and username can be overridden from the arguments.

 There's probably little use for specifying a username from the Portfile
 but well...

 It turns out that a username is required unless you use the ad hoc
 identify ("-") or your macports user has the requested signing identity
 (certificate) in the keychain. It took me a while to realise that even if
 the MacPorts user is set to your login name (my case), "base" changes the
 `HOME` env. variable. And because of that the codesign command cannot find
 the signing certificate even if it's running as yourself.

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


More information about the macports-tickets mailing list