core-plans icon indicating copy to clipboard operation
core-plans copied to clipboard

Building glib package

Open sajjaphani opened this issue 3 years ago • 2 comments

I have observed a dependency error reporting cmake not found while building the package locally. Which requires this to add core/cmake as a dev dependency.

Then, I've observed the include files are part of two sub-directories (gio-unix-2.0, glib-2.0). Which should have been exposed with the pkg_include_dirs=(include/gio-unix-2.0 include/glib-2.0) rather than pkg_include_dirs=(include)

I guess this may be the reason for some packages (pango?) not being able to be built.

sajjaphani avatar Jan 06 '22 14:01 sajjaphani

After building glib without pkg_include_dirs=(include/gio-unix-2.0 include/glib-2.0) iam able to find both directories gio-unix-2.0 and glib-2.0 in the include directory of final built directory

raviduddela avatar Jan 06 '22 19:01 raviduddela

pkg_include_dirs=(...) Will populate the entries, otherwise they are there but other packages can't find them. https://docs.chef.io/habitat/plan_settings/

sajjaphani avatar Jan 07 '22 09:01 sajjaphani