Opened 2 years ago

Closed 2 years ago

#64826 closed defect (fixed)

xar @1.8.0.482: fatal error: 'os/availability.h' file not found

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: tiger leopard snowleopard lion mountainlion mavericks yosemite elcapitan Cc:
Port: xar

Description

xar @1.8.0.482 fails to build on OS X El Capitan and earlier:

https://build.macports.org/builders/ports-10.11_x86_64-builder/builds/175772/steps/install-port/logs/stdio

include/xar.h:52:9: fatal error: 'os/availability.h' file not found
#import <os/availability.h>
        ^

The previous port version, xar @1.8.0.452, didn't have this problem.

This blocks the MacOSX.sdk subports from working.

Change History (3)

comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

The only place this is included is in xar.h.in

#ifdef __APPLE__
#import <os/availability.h>
#else
#define API_DEPRECATED(...)
#endif

Maybe instead it could be something like (untested):

#ifdef __APPLE__
#include <AvailabilityMacros.h>
#endif
#if defined(__APPLE__) && MAC_OS_X_VERSION_MAX_ALLOWED >= 101200
#import <os/availability.h>
#else
#define API_DEPRECATED(...)
#endif

comment:2 Changed 2 years ago by Schamschula (Marius Schamschula)

In 835623280353221a5cf3723ea8a1ae2d1e9ce92f/macports-ports (master):

xar: atempt to fix 'os/availability.h' file not found

See: #64826

comment:3 Changed 2 years ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.