tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

scanner problem with packages depending on devel/glib2



I am running into problems building packages that depend on devel/glib2.  One example is devel/gobject-introspection.  When the scanner is run during the build it cannot find some of the glib2 header files, one example of which is include/glib/glib-2.0/glib/gmacros.h.  All the normal compiling and linking seems to work fine, so the problem is apparently limited to the scanner.  The following patch (and a similar one for tests/offsets/Makefile.in) fixes the problem.

--- Makefile.in.orig    2017-10-02 12:22:46.000000000 +0000
+++ Makefile.in
@@ -978,6 +978,9 @@ INTROSPECTION_SCANNER = \
 INTROSPECTION_SCANNER_ARGS = \
     --verbose \
     -I$(top_srcdir) \
+    -I@BUILDLINK_DIR@/include/glib/glib-2.0 \
+    -I@BUILDLINK_DIR@/include/glib/gio-unix-2.0 \
+    -I@BUILDLINK_DIR@/lib/glib-2.0/include \
     --add-include-path=$(srcdir) \
     --add-include-path=$(top_srcdir)/gir \
     --add-include-path=$(builddir) \

Additionally, the same problem crops up with, for example, devel/atk and I expect it will happen with other packages that depend on devel/glib2.  There must be some systematic problem rather than a need to patch all the depending packages.

The system in question is running CentOS.

Please advise how to go about figuring out the culprit.

Thanks you very much for your help.

Cheers,
Brook







Home | Main Index | Thread Index | Old Index