[MacPorts] #59397: openssh @8.1_1: fails to build on 10.6: audit-bsm.c:66:10: fatal error: 'bsm/audit_session.h' file not found

MacPorts noreply at macports.org
Sat Oct 26 00:59:42 UTC 2019


#59397: openssh @8.1_1: fails to build on 10.6: audit-bsm.c:66:10: fatal error:
'bsm/audit_session.h' file not found
-------------------------+----------------------------------------
  Reporter:  grumpybozo  |      Owner:  Ionic
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.1
Resolution:  fixed       |   Keywords:  snowleopard lion legacy-os
      Port:  openssh     |
-------------------------+----------------------------------------

Comment (by Mihai Moldovan <ionic@…>):

 In [changeset:"10282bf4b5b49925d40eaa687604eed1235d58de/macports-ports"
 10282bf4b5b49925d40eaa687604eed1235d58de/macports-ports] (master):
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="10282bf4b5b49925d40eaa687604eed1235d58de"
 net/openssh: fix build failures on 10.7-. Round six.

 YES and NO are macros defined in /usr/include/objc/objc.h - but their
 definitions differs based on OS version.

 10.8+ define them as "((BOOL)X)", while earlier versions define them as
 "(BOOL)X".

 When later used in an expression such as "@X", the latter (older)
 definition is causing compile errors and needs to be wrapped in an extra
 pair of parentheses.

 Newer versions are not negatively affected by the extra pair of
 parentheses, so we can keep them around in shared code paths (but not
 unnecessarily for code paths only enabled for newer OS versions).

 This change should finally allow successful building on 10.7 and 10.6,
 and potentially on even older platforms.

 I cannot, however, guarantee that it actually works correctly.

 Additionally, fix up copyright header of the Object Subscripting compat
 implementation.

 No revbump since this only fixes build failures.

 Fixes: https://trac.macports.org/ticket/59397
 }}}

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


More information about the macports-tickets mailing list