[MacPorts] #38682: Leopard: webkit-gtk: fatal error: 'Block.h' file not found

MacPorts noreply at macports.org
Sat Aug 31 14:49:29 PDT 2013


#38682: Leopard: webkit-gtk: fatal error: 'Block.h' file not found
---------------------------+---------------------------
  Reporter:  ryandesign@…  |      Owner:  jeremyhu@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.1.3
Resolution:                |   Keywords:  tiger leopard
      Port:  webkit-gtk    |
---------------------------+---------------------------

Comment (by ryandesign@…):

 The patch doesn't have the desired effect. The default for cflags,
 cxxflags, etc. is optflags, but that default is evaluated the first time
 cflags, cxxflags, etc. are accessed. cxxflags are accessed earlier than
 this in the portfile (to append `-Wno-c++11-extensions` when the compiler
 is clang), therefore changing optflags here has no effect for cxxflags, so
 the error message is the same.

 After revising the patch to order those things correctly, it fails later
 on with `cc1: error: unrecognized command line option "-fno-blocks"`. CC
 was /usr/bin/gcc-4.2, despite the fact that the port intends to blacklist
 that compiler. Again the problem is that variables were accessed in the
 wrong order: configure.cc was accessed to add CC to the build environment,
 then later compilers were blacklisted.

 Switching the order so that compilers are blacklisted before configure.cc
 is accessed works. The build succeeds on Leopard i386. The complete fix is
 attached.

-- 
Ticket URL: <https://trac.macports.org/ticket/38682#comment:11>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list