Bug 299339 - x11/kitty needs an option to not require rl9 Linux base
Summary: x11/kitty needs an option to not require rl9 Linux base
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Nicola Vitale
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-10-12 17:38 UTC by Martin Cracauer
Modified: 2026-10-14 08:44 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Cracauer freebsd_committer freebsd_triage 2026-10-12 17:38:03 UTC
Since the last update the kitty port requires graphics/linux-slang, which pulls in the entire rl9 Linux base and requires the Linux module to be loaded into the kernel.

That is too heavy-handed. The port needs an option to compile without slang, and that option needs to be turned off by default.
Comment 1 Nicola Vitale freebsd_committer freebsd_triage 2026-10-13 15:00:13 UTC
Hi, thanks for the PR. It is impossible to compile the port without shader-slang. I can only make it a build dependency.
Comment 2 commit-hook freebsd_committer freebsd_triage 2026-10-13 15:48:40 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=aac6578ac275a85f7267cb8650192bd3721bdd30

commit aac6578ac275a85f7267cb8650192bd3721bdd30
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2026-10-13 15:21:24 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2026-10-13 15:48:23 +0000

    x11/kitty: Add option CUSTOM_SHADERS

    - The new option enables custom shaders in Kitty and is off by default
      (to avoid the dependency on Linuxator at runtime).
    - Add a patch to fix the error message when the user has added custom
      shaders in the config file, but shader-slang is not installed
    - Pet portfmt
    - Bump PORTREVISION (list of dependencies changed)

    PR:             299339

 x11/kitty/Makefile                                 | 15 +++++++++------
 x11/kitty/files/patch-kitty_shaders_slang.py (new) | 11 +++++++++++
 2 files changed, 20 insertions(+), 6 deletions(-)
Comment 3 Nicola Vitale freebsd_committer freebsd_triage 2026-10-13 16:15:05 UTC
Fixed. Thank you for the PR!
Comment 4 Tom 2026-10-14 07:09:34 UTC
Thanks Nicola for the fast fix. Unfortunately emulators/linux-rl9 still gets pulled in as a run dependency with 'CUSTOM_SHADERS=off'. It appears that 'USES= linux:rl9' is responsible.

x11/kitty % make showconfig | grep SHADERS
     CUSTOM_SHADERS=off: Enable custom shaders

x11/kitty % make run-depends-list | grep -e linux
/usr/ports/emulators/linux_base-rl9

As far as I can tell, graphics/linux-slang is the only run dependency that requires emulators/linux-rl9 as a run dependency, none of the other run dependencies depend on it. With CUSTOM_SHADERS=off it shouldn't require linux-rl9 as a run dependency.

With 'CUSTOM_SHADERS=off' or '=on', x11/kitty itself doesn't require emulators/linux-rl9 as a build dependency either:

x11/kitty % make build-depends-list | grep linux
/usr/ports/graphics/linux-slang

Best regards.
Comment 5 commit-hook freebsd_committer freebsd_triage 2026-10-14 08:38:00 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f6ad0eb6e98dc0854436fbd3d857076da1cebc44

commit f6ad0eb6e98dc0854436fbd3d857076da1cebc44
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2026-10-14 08:29:55 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2026-10-14 08:29:55 +0000

    x11/kitty: Remove dependency on linux:rl9

    - Linuxator is an indirect dependency only when custom shaders are
      enabled.
    - Bump PORTREVISION

    PR:     299339

 x11/kitty/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 6 Nicola Vitale freebsd_committer freebsd_triage 2026-10-14 08:44:46 UTC
Fixed. Thank you, Tom.