[MacPorts] #49235: policykit 0.113 cannot be built on PPC Tiger, Mac OS X 10.4.11, because Availability.h not found

MacPorts noreply at macports.org
Mon Oct 12 15:38:16 PDT 2015


#49235: policykit 0.113 cannot be built on PPC Tiger, Mac OS X 10.4.11, because
Availability.h not found
-----------------------------+--------------------------------
 Reporter:  Peter_Dyballa@…  |      Owner:  macports-tickets@…
     Type:  defect           |     Status:  new
 Priority:  Normal           |  Milestone:
Component:  ports            |    Version:  2.3.4
 Keywords:                   |       Port:  policykit
-----------------------------+--------------------------------
 This is the failure:

 {{{
 polkitagenthelperprivate.c:51:26: error: Availability.h: No such file or
 directory
 polkitagenthelperprivate.c: In function 'getdelim':
 }}}

 It is introduced by the patch file `patch-getline.diff`:

 {{{
 +// getline() is only available on OS X Lion and newer
 +
 +#ifdef __APPLE__
 +#include <Availability.h>
 +#if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1060
 }}}

 This can be avoided by adding another guard:

 {{{
 +#ifdef __APPLE__
 +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1050 ||
 __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
 +#include <Availability.h>
 +#endif
 +#if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1060
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/49235>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list