[Bug 289408] Every vim port flavor links against wayland under the hood

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 09 Sep 2025 17:04:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289408

--- Comment #2 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

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

commit 5b93ea9c8052f854c14aabeae67632f310970279
Author:     Adam Weinberger <adamw@FreeBSD.org>
AuthorDate: 2025-09-09 17:01:10 +0000
Commit:     Adam Weinberger <adamw@FreeBSD.org>
CommitDate: 2025-09-09 17:01:10 +0000

    editors/vim: Update to 9.1.1744 and handle wayland properly

    Add --without-wayland for everything except the gtk3 FLAVOR. That
    flavor now has a hard dep on wayland (it's already present from the
    default gtk30 and libxkbcommon configurations).

    This is a NOOP for everybody except gtk3 users who explicitly disabled
    wayland in both gtk30 and libxkbcommon. The only effect for those
    users is that wayland is now a LIB_DEP. There is no runtime effect
    either way.

    In the below PR, Piotr identified that vim will eagerly link against
    wayland if present, even for a pure-console build.

    The only toolkit that vim uses that can use wayland is gtk3, so
    we now specify --without-wayland for everything else.

    To complicate things, wayland support is optional in the gtk30 and
    libxkbcommon ports. If either of those ports are built with wayland,
    then vim has to link against libwayland-client regardless of the
    relevant configure switches. So, adding a WAYLAND option for the gtk3
    flavor would only work to disable wayland if it's disabled in both
    gtk30 and libxkbcommon.

    Instead, I'm making wayland a hard dep of the gtk3 flavor. For users
    of our packages, this will be a transparent change. If your goal in
    life is to never install wayland but you also want the gtk3 flavor,

    PR:             289408
    Reported by:    Piotr Smyrak

 editors/vim/Makefile | 8 +++++---
 editors/vim/distinfo | 6 +++---
 2 files changed, 8 insertions(+), 6 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.