[MacPorts] #57551: cmake @3.12.4 does not build on Mac OS X 10.4.11, Tiger, because it does not knaw hat unsetenv() does no exist here

MacPorts noreply at macports.org
Sat Nov 10 01:52:11 UTC 2018


#57551: cmake @3.12.4 does not build on Mac OS X 10.4.11, Tiger, because it does
not knaw hat unsetenv() does no exist here
------------------------+--------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.4
Resolution:  duplicate  |   Keywords:  tiger
      Port:  cmake      |
------------------------+--------------------

Comment (by kencu):

 The libuv version in cmake fails in a whole bunch of places on Tiger.

 This particular error is best fixed on Tiger by #defining
 `__DARWIN_UNIX03` to get the newer definition in `stdlib.h`, so it's an
 easy one to fix, viz this bit from `stdlib.h` on Tiger:
 {{{
 #if __DARWIN_UNIX03
 int      unsetenv(const char *) __DARWIN_ALIAS(unsetenv);
 #else /* !__DARWIN_UNIX03 */
 void     unsetenv(const char *);
 #endif /* __DARWIN_UNIX03 */
 }}}

 Much harder are all the other things that need to be fixed. Upstream is
 totally uninterested.

 So far, best I have been able to do is get an older version of `libuv` to
 build with some modest modifications:
 {{{
 $ port -v installed libuv
 The following ports are currently installed:
   libuv @1.7.5_0 (active) platform='darwin 8' archs='ppc'
 date='2018-11-09T17:48:55-0800'
 }}}

 Anyone interested can get that in the TigerPorts repo at:
 <http://github.com/kencu/TigerPorts>.

 That is not quite new enough for cmake to use it as a `system-libuv`
 instead of it's internal `libuv`, but it's getting close.

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


More information about the macports-tickets mailing list