[MacPorts] #32185: glib2, glib2-devel: build fails when pkgconfig is not installed

MacPorts noreply at macports.org
Thu Nov 24 05:00:07 PST 2011


#32185: glib2, glib2-devel: build fails when pkgconfig is not installed
-----------------------------------+----------------------------------------
 Reporter:  jerkejacobs@…          |       Owner:  ryandesign@…           
     Type:  defect                 |      Status:  new                    
 Priority:  Normal                 |   Milestone:                         
Component:  ports                  |     Version:  2.0.3                  
 Keywords:                         |        Port:  glib2, glib2-devel     
-----------------------------------+----------------------------------------

Comment(by bonoba@…):

 '''UPDATE'''

 Okay, here is a good description of the problem with glib-2.30.2 +
 pango-1.28.x:
 [http://forums.gentoo.org/viewtopic-t-896464-start-0.html]

 I have managed to compile gconf and other packages by slightly changing
 the file
   /opt/local/include/glib-2.0/glib/gmacros.h
 like this:
 {{{
 --- glib/gmacros.h.orig 2011-11-24 13:40:01.000000000 +0200
 +++ glib/gmacros.h      2011-11-24 13:40:16.000000000 +0200
 @@ -254,13 +254,11 @@
  #endif

  /* Deprecated -- do not use. */
 -#ifndef G_DISABLE_DEPRECATED
  #ifdef G_DISABLE_CONST_RETURNS
  #define G_CONST_RETURN
  #else
  #define G_CONST_RETURN const
  #endif
 -#endif

  /*
   * The G_LIKELY and G_UNLIKELY macros let the programmer give hints to
 }}}

 Of course it's not a right solution, instead I should have made a patch
 for the glib or pango package, but I needed a result fast (compiling wine-
 devel now), and it did the trick.

-- 
Ticket URL: <https://trac.macports.org/ticket/32185#comment:48>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list