Building app-containers/conmon with a cross-compiling toolchain fails because the compiler searches the wrong PKG_CONFIG_PATH. aarch64-unknown-linux-gnu-gcc -O2 -pipe -fomit-frame-pointer -DVERSION=\"2.1.6\" -DGIT_COMMIT=\"v2.1.6\" -D USE_JOURNALD=1 -D USE_SECCOMP=1 -o src/ctr_logging.o -c src/ctr_logging.c In file included from src/conmon.c:8: src/utils.h:9:10: fatal error: glib.h: No such file or directory 9 | #include <glib.h> | ^~~~~~~~ compilation terminated. Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable Package 'glib-2.0', required by 'virtual:world', not found Fortunately, the fix for this is to simply add PKG_CONFIG to the list of environment variables to export with the `tc-export` function.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dea7603af7d03c0f314a9f423b9392cd8058035f commit dea7603af7d03c0f314a9f423b9392cd8058035f Author: Rahil Bhimjiani <rahil3108@gmail.com> AuthorDate: 2023-09-25 21:09:31 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2023-09-26 02:15:44 +0000 app-containers/conmon: add live, 2.1.8 & proxy-maint improved ebuild & possibly closing a bug Closes: https://github.com/gentoo/gentoo/pull/33059 Bug: https://bugs.gentoo.org/901481 Signed-off-by: Rahil Bhimjiani <rahil3108@gmail.com> Signed-off-by: Zac Medico <zmedico@gentoo.org> app-containers/conmon/Manifest | 1 + app-containers/conmon/conmon-2.1.8.ebuild | 62 ++++++++++++++++++++++ app-containers/conmon/conmon-9999.ebuild | 62 ++++++++++++++++++++++ app-containers/conmon/files/001-conmon-basic.patch | 45 ++++++++++++++++ app-containers/conmon/metadata.xml | 10 ++++ 5 files changed, 180 insertions(+)
Please reopen if it's not fixed in conmon-2.1.8. Thanks!