Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 901481 - app-containers/conmon: Fails to cross-compile
Summary: app-containers/conmon: Fails to cross-compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-03-16 15:09 UTC by Dustin C. Hatch
Modified: 2023-09-26 02:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dustin C. Hatch 2023-03-16 15:09:48 UTC
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.
Comment 1 Larry the Git Cow gentoo-dev 2023-09-26 02:15:51 UTC
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(+)
Comment 2 Zac Medico gentoo-dev 2023-09-26 02:34:33 UTC
Please reopen if it's not fixed in conmon-2.1.8. Thanks!