[MacPorts] #62431: libgcrypt @1.9.2 does not build on PPC Tiger, Mac OS X 10.4.11, because of: rndlinux.c:36:26: error: Availability.h: No such file or directory

MacPorts noreply at macports.org
Thu Mar 11 15:40:33 UTC 2021


#62431: libgcrypt @1.9.2 does not build on PPC Tiger, Mac OS X 10.4.11, because of:
rndlinux.c:36:26: error: Availability.h: No such file or directory
------------------------+-------------------------
  Reporter:  ballapete  |      Owner:  Schamschula
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.4
Resolution:             |   Keywords:  tiger
      Port:  libgcrypt  |
------------------------+-------------------------

Comment (by kencu):

 Tiger does not have any header called {{{Availability.h}}}. It has only
 {{{AvailabilityMacros.h}}}.

 Personally I don't think it is going to be very reasonable to expect
 upstream to work around this. This is for MacPorts to sort out.

 The absolute simplest thing to do is to make a symlink from
 {{{Availability.h}}} to {{{AvailabilityMacros.h}}}:
 {{{
 sudo ln -s /usr/include/AvailabilityMacros.h /usr/include/Availability.h
 }}}

 build your port, and then remove it if you like.

 I might add such an include to LegacySupport to make this automatic.

 However, it is beneficial to take the {{{Availability.h}}} from Leopard,
 modify it in minor ways so it is appropriate for Tiger, and use that
 instead of a symlink. We already require people using Leopard to make some
 minor changes to their SDK, after all. It is not a completely terrible
 idea to expect Tiger users to make a couple of minor modifications as
 well.

 I have such a header, and I use it sometimes (like building clang-7.0 on
 Tiger Intel, for example).

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


More information about the macports-tickets mailing list