[MacPorts] #59168: clamav @0.102.0 does not build on PPC Tiger, Mac Os X 10.4.11, because of "fatal error: Security/SecRequirement.h: No such file or directory"

MacPorts noreply at macports.org
Sat Oct 5 04:42:57 UTC 2019


#59168: clamav @0.102.0 does not build on PPC Tiger, Mac Os X 10.4.11, because of
"fatal error: Security/SecRequirement.h: No such file or directory"
------------------------+--------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.1
Resolution:             |   Keywords:  tiger
      Port:  clamav     |
------------------------+--------------------

Comment (by kencu):

 Peter, try adding this block to the Portfile, just above `test.run  yes`.
 It passes all the tests for me on 10.6.8.
 {{{
 # use linux version of openssl cert util on systems < 10.7
 # that don't support the macOS version
 # ./shared/linux/cert_util_linux.c -> ./shared/mac/cert_util_mac.m
 post-extract {
  if { ${os.platform} eq "darwin" && ${os.major} < 11 } {
     ui_msg "replacing mac security with linux security"
     delete ${worksrcpath}/shared/mac/cert_util_mac.m
     copy ${worksrcpath}/shared/linux/cert_util_linux.c \
          ${worksrcpath}/shared/mac/cert_util_mac.m
   }
 }
 }}}

 I haven't yet figured out if the linux version actually replaces all the
 functionality of the mac version with respect to openssl on older systems,
 but - I suspect it does.

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


More information about the macports-tickets mailing list