[MacPorts] #44395: glib2, glib2-devel: don't add -I${prefix}/include to glib-2.0.pc

MacPorts noreply at macports.org
Fri Feb 16 11:32:35 UTC 2018


#44395: glib2, glib2-devel: don't add -I${prefix}/include to glib-2.0.pc
--------------------------------+------------------------
  Reporter:  ryandesign         |      Owner:  ryandesign
      Type:  defect             |     Status:  accepted
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.3.1
Resolution:                     |   Keywords:
      Port:  glib2 glib2-devel  |
--------------------------------+------------------------
Changes (by ryandesign):

 * status:  new => accepted


Comment:

 Yes, the problem the patch solves (gi18n.h uses `#include <libintl.h>` so
 the path to libintl.h needs to be provided in the compile flags; see
 #9937) is still relevant; see comment:ticket:55577:3.

 comment:ticket:55577:4 suggests an alternate fix for the problem: instead
 of adding `-I/opt/local/include` to Cflags in glib-2.0.pc, patch the two
 files that `#include <libintl.h>` to so that they `#include
 </opt/local/include/libintl.h>` instead. While disagreeing with the
 premise that ports should not use `-I/opt/local/include` or provide .pc
 files that do so, I'm willing to make this change because it is a less
 invasive solution to the problem.

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


More information about the macports-tickets mailing list