0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From 1df0f4ae8fd54bc1ae940dfafa701c84d068674d Mon Sep 17 00:00:00 2001
  2. From: Koen Kooi <koen@dominion.thruhere.net>
  3. Date: Sun, 25 May 2025 12:24:16 +0000
  4. Subject: [PATCH] Fix build issue caused by OE-core changes to
  5. startup-notification:
  6. ../libwnck-43.2/libwnck/tasklist.c: In function 'sequence_timeout_callback':
  7. ../libwnck-43.2/libwnck/tasklist.c:5034:49: error: passing argument 2 of 'sn_startup_sequence_get_last_active_time' from incompatible pointer type [-Wincompatible-pointer-types]
  8. 5034 | &tv_sec, &tv_usec);
  9. | ^~~~~~~
  10. | |
  11. | long int *
  12. In file included from /build/angstrom/build/tmp/work/armv7at2hf-neon-angstrom-linux-gnueabi/libwnck3/43.2/recipe-sysroot/usr/include/startup-notification-1.0/libsn/sn.h:32,
  13. from ../libwnck-43.2/libwnck/tasklist.c:40:
  14. /build/angstrom/build/tmp/work/armv7at2hf-neon-angstrom-linux-gnueabi/libwnck3/43.2/recipe-sysroot/usr/include/startup-notification-1.0/libsn/sn-monitor.h:84:79: note: expected 'time_t *' {aka 'long long int *'} but argument is of type 'long int *'
  15. 84 | time_t *tv_sec,
  16. | ~~~~~~~~~~~~~~~~~~~^~~~~~
  17. It is caused by a patch of startup-notification in oe-core which is backported from upstream mailllist and changes the signature of function sn_startup_sequence_get_last_active_time().
  18. Upstream-Status: Inappropriate [oe-specific]
  19. Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  20. ---
  21. libwnck/tasklist.c | 2 +-
  22. 1 file changed, 1 insertion(+), 1 deletion(-)
  23. diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c
  24. index 7418f89..460e11d 100644
  25. --- a/libwnck/tasklist.c
  26. +++ b/libwnck/tasklist.c
  27. @@ -5031,7 +5031,7 @@ sequence_timeout_callback (void *user_data)
  28. WnckTask *task = WNCK_TASK (tmp->data);
  29. sn_startup_sequence_get_last_active_time (task->startup_sequence,
  30. - &tv_sec, &tv_usec);
  31. + (time_t *) &tv_sec, &tv_usec);
  32. elapsed = (now - (tv_sec * G_USEC_PER_SEC + tv_usec)) / 1000.0;
  33. --
  34. 2.33.0