commit:     5694ee9f68b4dded44d3aa5d6bb5de47ded9b30f
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 10 16:02:43 2025 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Mon Nov 10 16:21:34 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5694ee9f

net-misc/tigervnc: fix wayland dependencies

Wayland dependencies were still required even with USE=-wayland.

Closes: https://bugs.gentoo.org/965904
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 .../tigervnc-1.15.90-disable-server-and-pam.patch  | 32 ++++++++++++++++++----
 ...c-1.15.90.ebuild => tigervnc-1.15.90-r1.ebuild} |  4 +--
 2 files changed, 28 insertions(+), 8 deletions(-)

diff --git 
a/net-misc/tigervnc/files/tigervnc-1.15.90-disable-server-and-pam.patch 
b/net-misc/tigervnc/files/tigervnc-1.15.90-disable-server-and-pam.patch
index 181a1a0cee1c..a7a13028185e 100644
--- a/net-misc/tigervnc/files/tigervnc-1.15.90-disable-server-and-pam.patch
+++ b/net-misc/tigervnc/files/tigervnc-1.15.90-disable-server-and-pam.patch
@@ -38,19 +38,39 @@ Do not define _FORTIFY_SOURCE, it is already defined in 
Gentoo.
    find_package(PAM REQUIRED)
  endif()
  
-@@ -391,7 +391,7 @@ if(UNIX AND NOT APPLE)
+@@ -391,21 +391,9 @@ if(UNIX AND NOT APPLE)
  endif()
  
  # check for libraries needed for wayland support
 -if(UNIX AND NOT APPLE)
 +if(BUILD_SERVER AND UNIX AND NOT APPLE)
    trioption(ENABLE_WAYLAND "Enable wayland support")
-   if(ENABLE_WAYLAND STREQUAL "AUTO")
-     find_package(GLib)
-@@ -423,6 +423,8 @@ if(UNIX AND NOT APPLE)
-     set(ENABLE_WAYLAND 0)
-     message(WARNING "GLib, Gio, Gobject, PipeWire, Uuid, WaylandClient or 
Xkbcommon NOT found. w0vncserver disabled.")
+-  if(ENABLE_WAYLAND STREQUAL "AUTO")
+-    find_package(GLib)
+-    find_package(Gio)
+-    find_package(Gobject)
+-
+-    # Portals specific
+-    find_package(PipeWire)
+-    find_package(Uuid)
+-
+-    # wlroots specific
+-    find_package(WaylandClient)
+-    find_package(Xkbcommon)
+-  else()
++  if(ENABLE_WAYLAND)
+     find_package(GLib REQUIRED)
+     find_package(Gio REQUIRED)
+     find_package(Gobject REQUIRED)
+@@ -418,11 +406,8 @@ if(UNIX AND NOT APPLE)
+     find_package(WaylandClient REQUIRED)
+     find_package(Xkbcommon REQUIRED)
    endif()
+-  if(NOT GLIB_FOUND OR NOT GIO_FOUND OR NOT GOBJECT_FOUND OR NOT 
PIPEWIRE_FOUND
+-     OR NOT UUID_FOUND OR NOT WAYLANDCLIENT_FOUND OR NOT XKBCOMMON_FOUND)
+-    set(ENABLE_WAYLAND 0)
+-    message(WARNING "GLib, Gio, Gobject, PipeWire, Uuid, WaylandClient or 
Xkbcommon NOT found. w0vncserver disabled.")
+-  endif()
 +else()
 +  set(ENABLE_WAYLAND 0)
  endif()

diff --git a/net-misc/tigervnc/tigervnc-1.15.90.ebuild 
b/net-misc/tigervnc/tigervnc-1.15.90-r1.ebuild
similarity index 99%
rename from net-misc/tigervnc/tigervnc-1.15.90.ebuild
rename to net-misc/tigervnc/tigervnc-1.15.90-r1.ebuild
index 466c6ca75b5e..46f1553cbb0b 100644
--- a/net-misc/tigervnc/tigervnc-1.15.90.ebuild
+++ b/net-misc/tigervnc/tigervnc-1.15.90-r1.ebuild
@@ -38,7 +38,7 @@ COMMON_DEPEND="
        dev-libs/gmp:=
        dev-libs/nettle:=
        media-libs/libjpeg-turbo:=
-       virtual/zlib
+       virtual/zlib:=
        x11-libs/libX11
        x11-libs/libXext
        x11-libs/libXrandr
@@ -79,7 +79,7 @@ COMMON_DEPEND="
        )
        viewer? (
                media-video/ffmpeg:=
-               <x11-libs/fltk-1.4:1=
+               <x11-libs/fltk-1.4:1
                x11-libs/libXi
                x11-libs/libXrender
                !net-misc/turbovnc[viewer]

Reply via email to