pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

picom: fix another compilation problem



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Thu May 1 00:31:41 2025 +0200
Changeset:	35c325973d3b81beb21a6d0bb26b33adb9dce70f

Modified Files:
	picom/distinfo
	picom/patches/patch-src_config.c
Added Files:
	picom/patches/patch-src_event.c

Log Message:
picom: fix another compilation problem

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=35c325973d3b81beb21a6d0bb26b33adb9dce70f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 picom/distinfo                   |  3 ++-
 picom/patches/patch-src_config.c |  2 +-
 picom/patches/patch-src_event.c  | 31 +++++++++++++++++++++++++++++++
 3 files changed, 34 insertions(+), 2 deletions(-)

diffs:
diff --git a/picom/distinfo b/picom/distinfo
index 189aa0aa9a..b1eb2a4701 100644
--- a/picom/distinfo
+++ b/picom/distinfo
@@ -3,4 +3,5 @@ $NetBSD: distinfo,v 1.10 2024/08/06 13:39:40 nia Exp $
 BLAKE2s (picom-12.5.tar.gz) = f6dea7e1c86386eb68905d43a3371ae339fa7d90367b95995f2317bd4c0231f5
 SHA512 (picom-12.5.tar.gz) = e4e8d8d6edc5fd5115ee880ee36e3b217b07336e09c457a3eb9a4824c19ac4f98ae807c3a902f327e7a2d036e2ae2d1ab2a5da8bdee47e33e49faebf4893a78b
 Size (picom-12.5.tar.gz) = 674165 bytes
-SHA1 (patch-src_config.c) = 59cbda328156ba888d4f1da845c7f054b7d69fbf
+SHA1 (patch-src_config.c) = 3269f8778416fa996d7c293282fdc17026df06a3
+SHA1 (patch-src_event.c) = 01a2b6defefab826a1fd357b8cd40a580c2a4e57
diff --git a/picom/patches/patch-src_config.c b/picom/patches/patch-src_config.c
index 4774c4393b..9f0f958819 100644
--- a/picom/patches/patch-src_config.c
+++ b/picom/patches/patch-src_config.c
@@ -5,7 +5,7 @@ $NetBSD$
   625 | void *parse_window_shader_prefix_with_cwd(const char *src, const char **end, void *) {
       |                                                                              ^~~~~~
 
---- src/config.c.orig	2025-04-30 22:28:32.936786751 +0000
+--- src/config.c.orig	2024-11-13 06:48:38.000000000 +0000
 +++ src/config.c
 @@ -622,7 +622,7 @@ void *parse_window_shader_prefix(const c
  	*end = endptr + 1;
diff --git a/picom/patches/patch-src_event.c b/picom/patches/patch-src_event.c
new file mode 100644
index 0000000000..d77c2e73cd
--- /dev/null
+++ b/picom/patches/patch-src_event.c
@@ -0,0 +1,31 @@
+$NetBSD$
+
+../src/event.c: In function 'update_ewmh_active_win':
+../src/event.c:203:24: error: parameter name omitted
+  203 | update_ewmh_active_win(struct x_connection * /*c*/, struct x_async_request_base *req_base,
+      |                        ^~~~~~~~~~~~~~~~~~~~~
+../src/event.c: In function 'recheck_focus':
+../src/event.c:250:27: error: parameter name omitted
+  250 | static void recheck_focus(struct x_connection * /*c*/, struct x_async_request_base *req_base,
+      |                           ^~~~~~~~~~~~~~~~~~~~~
+
+--- src/event.c.orig	2025-04-30 22:30:48.223531215 +0000
++++ src/event.c
+@@ -200,7 +200,7 @@ struct ev_ewmh_active_win_request {
+ /// Does not change anything if we fail to get the attribute or the window
+ /// returned could not be found.
+ static void
+-update_ewmh_active_win(struct x_connection * /*c*/, struct x_async_request_base *req_base,
++update_ewmh_active_win(struct x_connection *foo /*c*/, struct x_async_request_base *req_base,
+                        const xcb_raw_generic_event_t *reply_or_error) {
+ 	auto ps = ((struct ev_ewmh_active_win_request *)req_base)->ps;
+ 	free(req_base);
+@@ -247,7 +247,7 @@ struct ev_recheck_focus_request {
+  * @param ps current session
+  * @return struct _win of currently focused window, NULL if not found
+  */
+-static void recheck_focus(struct x_connection * /*c*/, struct x_async_request_base *req_base,
++static void recheck_focus(struct x_connection *foo /*c*/, struct x_async_request_base *req_base,
+                           const xcb_raw_generic_event_t *reply_or_error) {
+ 	auto ps = ((struct ev_ewmh_active_win_request *)req_base)->ps;
+ 	free(req_base);


Home | Main Index | Thread Index | Old Index