Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 857918 - x11-terms/kitty-0.25.2: need virtual/opengl as a dependency?
Summary: x11-terms/kitty-0.25.2: need virtual/opengl as a dependency?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal trivial
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-14 05:46 UTC by Debanil Chowdhury
Modified: 2022-07-14 06:36 UTC (History)
2 users (show)

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 Debanil Chowdhury 2022-07-14 05:46:07 UTC
with -X set in USE flags, kitty fails to compile.

Log output - 

 * Package:    x11-terms/kitty-0.25.2
 * Repository: gentoo
 * Maintainer: ionen@gentoo.org pabloorduna98@gmail.com,proxy-maint@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_single_target_python3_10 userland_GNU wayland
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Using python3.10 to build
>>> Unpacking source...
>>> Unpacking kitty-0.25.2.tar.xz to /var/tmp/portage/x11-terms/kitty-0.25.2/work
>>> Source unpacked in /var/tmp/portage/x11-terms/kitty-0.25.2/work
>>> Preparing source in /var/tmp/portage/x11-terms/kitty-0.25.2/work/kitty-0.25.2 ...
 * Applying kitty-0.23.1-flags.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-terms/kitty-0.25.2/work/kitty-0.25.2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-terms/kitty-0.25.2/work/kitty-0.25.2 ...
python3.10 setup.py linux-package --disable-link-time-optimization --ignore-compiler-warnings --libdir-name=lib64 --shell-integration=enabled no-rc --update-check-interval=0 --verbose
CC: ['x86_64-pc-linux-gnu-gcc'] (11, 3)
Package gl was not found in the pkg-config search path.
Perhaps you should add the directory containing `gl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gl', required by 'virtual:world', not found
The package gl was not found on your system
 * ERROR: x11-terms/kitty-0.25.2::gentoo failed (compile phase):
 *   setup.py failed to compile kitty
 * 
 * Call stack:
 *     ebuild.sh, line 127:  Called src_compile
 *   environment, line 2274:  Called die
 * The specific snippet of code:
 *       "${setup[@]}" || die "setup.py failed to compile ${PN}";
 * 
 * If you need support, post the output of `emerge --info '=x11-terms/kitty-0.25.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-terms/kitty-0.25.2::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/x11-terms/kitty-0.25.2:20220714-045434.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-terms/kitty-0.25.2/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-terms/kitty-0.25.2/work/kitty-0.25.2'
 * S: '/var/tmp/portage/x11-terms/kitty-0.25.2/work/kitty-0.25.2'



However after emerging virtual/opengl it works.
Suggested fix- add virtual/opengl as a dependency to ebuild
Comment 1 Larry the Git Cow gentoo-dev 2022-07-14 06:36:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6413e0964cf0b75e3acc63bf60e7f323c25994e9

commit 6413e0964cf0b75e3acc63bf60e7f323c25994e9
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-07-14 06:10:31 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-07-14 06:34:59 +0000

    x11-terms/kitty: don't check for unused GL with USE=-X
    
    Thought had tested this, but apparently I didn't.
    
    glfw uses libEGL.so with wayland, so there's no sense in checking
    for libGL with -X. Unfortunately X11 (or anything) being optional
    at build time is our invention, so needs more sed.
    
    Closes: https://bugs.gentoo.org/857918
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 x11-terms/kitty/kitty-0.25.2.ebuild | 1 +
 x11-terms/kitty/kitty-9999.ebuild   | 1 +
 2 files changed, 2 insertions(+)