[MacPorts] #67268: gtk3 fails on 10.5 - missing type_traits

MacPorts noreply at macports.org
Sat Nov 23 11:43:37 UTC 2024


#67268: gtk3 fails on 10.5 - missing type_traits
-----------------------+----------------------------
  Reporter:  rmottola  |      Owner:  mascguy
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  leopard legacy
      Port:  gtk3      |
-----------------------+----------------------------

Comment (by DanielO):

 I ran into this today trying to build py312-matplotlib - glib2 does not
 compile.
 I ended up just patching glib-typeof.h to just not use type_traits:
 {{{
 --- glib-2.78.4/glib/glib-typeof.h.orig 2024-11-23 22:02:52
 +++ glib-2.78.4/glib/glib-typeof.h      2024-11-23 22:02:54
 @@ -34,14 +34,6 @@
   * This symbol is private.
   */
  #undef glib_typeof
 -#if !G_CXX_STD_CHECK_VERSION (11) && \
 -    (G_GNUC_CHECK_VERSION(4, 8) || defined(__clang__))
  #define glib_typeof(t) __typeof__ (t)
 -#elif G_CXX_STD_CHECK_VERSION (11) && \
 -      GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_68
 -/* C++11 decltype() is close enough for our usage */
 -#include <type_traits>
 -#define glib_typeof(t) typename std::remove_reference<decltype (t)>::type
 -#endif

  #endif /* __GLIB_TYPEOF_H__ */
 }}}
 I ended up doing it by hang and haven't made a formal patch as yet.

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


More information about the macports-tickets mailing list