[MacPorts] #54948: optipng 0.7.6: error: no member named 'st_atim' in 'struct stat'

MacPorts noreply at macports.org
Sat Dec 9 17:25:26 UTC 2017


#54948: optipng 0.7.6:  error: no member named 'st_atim' in 'struct stat'
----------------------+------------------------
  Reporter:  fracai   |      Owner:  ryandesign
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:  highsierra
      Port:  optipng  |
----------------------+------------------------

Comment (by ryandesign):

 Replying to [comment:12 phriedrich]:
 > Is there an option in MacPorts to patch the source for a certain version
 of macOS?

 Of course. For example, to add a patch only on darwin 17 (macOS High
 Sierra) and later:

 {{{
 if {${os.platform} eq "darwin" && ${os.major} >= 17} {
     patchfiles-append something.patch
 }
 }}}

 But older OS versions shouldn't see this code at all since they don't have
 the requisite OS functions, so a conditional patch shouldn't be needed.

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


More information about the macports-tickets mailing list