[MacPorts] #53975: GnuTLS @3.5.11 fails to build to PPC Tiger, Mac OS X 10.4.11, because of unavailable Availability.h C header file

MacPorts noreply at macports.org
Fri Apr 14 17:33:29 UTC 2017


#53975: GnuTLS @3.5.11 fails to build to PPC Tiger, Mac OS X 10.4.11, because of
unavailable Availability.h C header file
------------------------+-------------------------
  Reporter:  ballapete  |      Owner:  Schamschula
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:             |   Keywords:  tiger
      Port:  gnutls     |
------------------------+-------------------------

Comment (by kencu):

 Marius,

 that patch needed one more #endif to work, but did work
 {{{
 $ port -v installed gnutls
 The following ports are currently installed:
   gnutls @3.3.21_0 platform='darwin 8' archs='ppc'
 date='2016-03-01T11:45:13-0800'
   gnutls @3.4.13_0 platform='darwin 8' archs='ppc'
 date='2016-07-11T19:36:18-0700'
   gnutls @3.4.14_0 platform='darwin 8' archs='ppc'
 date='2016-08-23T00:01:51-0700'
   gnutls @3.4.15_0 platform='darwin 8' archs='ppc'
 date='2016-09-13T22:48:22-0700'
   gnutls @3.4.16_1 platform='darwin 8' archs='ppc'
 date='2016-10-15T15:49:43-0700'
   gnutls @3.4.17_0 platform='darwin 8' archs='ppc'
 date='2016-12-23T16:49:05-0800'
   gnutls @3.5.8_0 platform='darwin 8' archs='ppc'
 date='2017-02-08T15:28:19-0800'
   gnutls @3.5.9_0 platform='darwin 8' archs='ppc'
 date='2017-02-24T18:04:11-0800'
   gnutls @3.5.10_0 platform='darwin 8' archs='ppc'
 date='2017-03-27T04:51:37-0700'
   gnutls @3.5.11_0 (active) platform='darwin 8' archs='ppc'
 date='2017-04-14T10:27:24-0700'
 }}}

 here's the revised bit
 {{{
 #ifdef __APPLE__
 # include <CoreFoundation/CoreFoundation.h>
 # include <Security/Security.h>
 #ifndef __MAC_OS_X_VERSION_MIN_REQUIRED
 #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
 # include <Availability.h>
 #else
 # include <AvailabilityMacros.h>
 #endif
 #endif
 #endif
 }}}

 Of note, it also works perfectly well to do this instead:
 {{{
 sudo ln -s /usr/include/AvailabilityMacros.h /usr/include/Availability.h
 }}}
 even tho that is terribly evil and to be scorned. :>

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


More information about the macports-tickets mailing list