Skip to content

conky: add wayland support#58820

Open
nisheri-ascar wants to merge 2 commits intovoid-linux:masterfrom
nisheri-ascar:master
Open

conky: add wayland support#58820
nisheri-ascar wants to merge 2 commits intovoid-linux:masterfrom
nisheri-ascar:master

Conversation

@nisheri-ascar
Copy link

Testing the changes

  • I tested the changes in this PR: YES

Local build testing

  • I built this PR locally for my native architecture: x86_64-glibc

Hello! I added wayland support for conky. This will fix conky floating above all applications.

conky_wayland_fixed

Patch is based on #58178, specifically zlice's patch. If you need anything then let me know, thanks in advance.

@nisheri-ascar
Copy link
Author

fails on arm, i'll check on it

makedepends="alsa-lib-devel imlib2-devel libXdamage-devel libXft-devel
libXinerama-devel libcurl-devel librsvg-devel lua53-devel ncurses-devel
toluapp-devel wireless_tools-devel cairo-devel wayland-devel"
toluapp-devel wireless_tools-devel cairo-devel wayland-devel wayland-protocols"
Copy link
Contributor

@cherrybtw cherrybtw Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you forgot to add wlroots-devel. Also i can recommend moving wayland-devel to hostmakedepends to avoid the missing wayland-scanner error

configure_args="-DRELEASE=ON
-DDOC_PATH=share/doc/${pkgname} -DBUILD_CURL=ON
-DBUILD_RSS=ON -DBUILD_WLAN=ON -DBUILD_X11=ON -DBUILD_XDBE=ON
-DBUILD_RSS=ON -DBUILD_WLAN=ON -DBUILD_X11=ON -DBUILD_XDBE=ON -DBUILD_WAYLAND=ON -DBUILD_XDBE=ON
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also i can recommend to clean dubicated flags like -DBUILD_XDBE=ON :)

@nisheri-ascar
Copy link
Author

so i'm a little bit confused here, it complains with this on arm builds

-- PROTOCOL 'xdg-shell' file: /usr/aarch64-linux-gnu/usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml
CMake Error at src/CMakeLists.txt:331 (find_file):
  Could not find PROTOCOL_FILE using the following files:
  wlr-layer-shell-v1.xml, wlr-layer-shell-unstable-v1.xml
Call Stack (most recent call first):
  src/CMakeLists.txt:369 (add_protocol)

tried shuffling args around but nope, checked if it exists and yes it does, and finally confirmed that Void does not offer wlr-protocol package, which i want to make shortly but, do anyone have an idea why does it succeed on x86 platforms but not on arm? its merely a text files.. I'm having a doubt to move forward as i might waste another 3 hours, could be just cmake being funny or something else.

For now I can't work on this due to personal responsibilities, maybe I'll try next week or so. Would be nice if anyone could give me an alternate idea

@gmbeard
Copy link
Contributor

gmbeard commented Feb 6, 2026

You should be able to fix the missing protocol file error with the following patch...

(NOTE: This will probably break native builds, so may have to conditionally apply the patch on cross-builds only)

EDIT: Tested and seems to build fine with this patch applied to both native and cross-builds

diff -ur conky-1.22.2/src/CMakeLists.txt conky-1.22.2-patched/src/CMakeLists.txt
--- conky-1.22.2/src/CMakeLists.txt	2025-06-30 21:36:51.000000000 +0100
+++ conky-1.22.2-patched/src/CMakeLists.txt	2026-02-06 00:07:28.494824283 +0000
@@ -336,6 +336,7 @@
         NO_CACHE
         REQUIRED
         NO_DEFAULT_PATH
+        NO_CMAKE_FIND_ROOT_PATH
       )
       message(STATUS "PROTOCOL '${name}' ${VERSION} file: ${PROTOCOL_FILE}")
       unset(VERSION)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants