libwnck3: update to 43.2 and fix build errors
PATCH 1/2 libwnck3: update to 43.2 and fix build errors
From: Koen Kooi <[email protected]>
This fixes the following build issue:
wnck-3.so.0.3.0.p/pager.c.o.d -o libwnck/libwnck-3.so.0.3.0.p/pager.c.o -c ../libwnck-43.2/libwnck/pager.c
| In file included from ../libwnck-43.2/libwnck/pager.c:34: | ../libwnck-43.2/libwnck/pager-accessible-factory.h:19: warning: header guard '__WNCK_PAGER_ACCESSIBLE_FACTORY_H__' followed by '#define' of a different macro [-Wheader-guard] | 19 | #ifndef __WNCK_PAGER_ACCESSIBLE_FACTORY_H__ | ../libwnck-43.2/libwnck/pager-accessible-factory.h:20: note: '__WBCK_PAGER_ACCESSIBLE_FACTORY_H__' is defined here; did you mean '__WNCK_PAGER_ACCESSIBLE_FACTORY_H__'? | 20 | #define __WBCK_PAGER_ACCESSIBLE_FACTORY_H__ | In file included from ../libwnck-43.2/libwnck/pager.c:35: | ../libwnck-43.2/libwnck/workspace-accessible-factory.h:19: warning: header guard '__WNCK_WORKSPACE_ACCESSIBLE_FACTORY_H__' followed by '#define' of a different macro [-Wheader-guard] | 19 | #ifndef __WNCK_WORKSPACE_ACCESSIBLE_FACTORY_H__ | ../libwnck-43.2/libwnck/workspace-accessible-factory.h:20: note: '__WBCK_WORKSPACE_ACCESSIBLE_FACTORY_H__' is defined here; did you mean '__WNCK_WORKSPACE_ACCESSIBLE_FACTORY_H__'? | 20 | #define __WBCK_WORKSPACE_ACCESSIBLE_FACTORY_H__
And the subsequent build error caused by an OE-core patch to startup-notification.
---
...caused-by-OE-core-changes-to-startup.patch | 43 +++++++++++++++++++
...40d59c32d7ebeb94d242436e3144cefc174a.patch | 40 +++++++++++++++++
.../{libwnck3_43.0.bb => libwnck3_43.2.bb} | 4 +-
3 files changed, 86 insertions(+), 1 deletion(-)
create mode 100644 meta-gnome/recipes-gnome/libwnck/files/0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch
create mode 100644 meta-gnome/recipes-gnome/libwnck/files/ef0e40d59c32d7ebeb94d242436e3144cefc174a.patch
rename meta-gnome/recipes-gnome/libwnck/{libwnck3_43.0.bb => libwnck3_43.2.bb} (75%)meta-gnome/recipes-gnome/libwnck/files/0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch new file +43 -0
@@ -0,0 +1,43 @@ +From 1df0f4ae8fd54bc1ae940dfafa701c84d068674d Mon Sep 17 00:00:00 2001 +From: Koen Kooi <[email protected]> +Date: Sun, 25 May 2025 12:24:16 +0000 +Subject: [PATCH] Fix build issue caused by OE-core changes to + startup-notification: + +../libwnck-43.2/libwnck/tasklist.c: In function 'sequence_timeout_callback': +../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] + 5034 | &tv_sec, &tv_usec); + | ^~~~~~~ + | | + | long int * +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, + from ../libwnck-43.2/libwnck/tasklist.c:40: +/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 *' + 84 | time_t *tv_sec, + | ~~~~~~~~~~~~~~~~~~~^~~~~~ + +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(). + +Upstream-Status: Inappropriate [oe-specific] + +Signed-off-by: Koen Kooi <[email protected]> +--- + libwnck/tasklist.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c +index 7418f89..460e11d 100644 +--- a/libwnck/tasklist.c ++++ b/libwnck/tasklist.c +@@ -5031,7 +5031,7 @@ sequence_timeout_callback (void *user_data) + WnckTask *task = WNCK_TASK (tmp->data); + + sn_startup_sequence_get_last_active_time (task->startup_sequence, +- &tv_sec, &tv_usec); ++ (time_t *) &tv_sec, &tv_usec); + + elapsed = (now - (tv_sec * G_USEC_PER_SEC + tv_usec)) / 1000.0; + +-- +2.33.0 +
meta-gnome/recipes-gnome/libwnck/files/ef0e40d59c32d7ebeb94d242436e3144cefc174a.patch new file +40 -0
@@ -0,0 +1,40 @@ +From ef0e40d59c32d7ebeb94d242436e3144cefc174a Mon Sep 17 00:00:00 2001 +From: correctmost <[email protected]> +Date: Thu, 20 Mar 2025 03:03:44 -0400 +Subject: [PATCH] build: fix -Wheader-guard warnings reported by clang + +Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libwnck/-/commit/ef0e40d59c32d7ebeb94d242436e3144cefc174a] +--- + libwnck/pager-accessible-factory.h | 2 +- + libwnck/workspace-accessible-factory.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libwnck/pager-accessible-factory.h b/libwnck/pager-accessible-factory.h +index 8e2fe30c..25220fc2 100644 +--- a/libwnck/pager-accessible-factory.h ++++ b/libwnck/pager-accessible-factory.h +@@ -17,7 +17,7 @@ + */ + + #ifndef __WNCK_PAGER_ACCESSIBLE_FACTORY_H__ +-#define __WBCK_PAGER_ACCESSIBLE_FACTORY_H__ ++#define __WNCK_PAGER_ACCESSIBLE_FACTORY_H__ + + #include <atk/atk.h> + +diff --git a/libwnck/workspace-accessible-factory.h b/libwnck/workspace-accessible-factory.h +index d2d4a84a..335b465b 100644 +--- a/libwnck/workspace-accessible-factory.h ++++ b/libwnck/workspace-accessible-factory.h +@@ -17,7 +17,7 @@ + */ + + #ifndef __WNCK_WORKSPACE_ACCESSIBLE_FACTORY_H__ +-#define __WBCK_WORKSPACE_ACCESSIBLE_FACTORY_H__ ++#define __WNCK_WORKSPACE_ACCESSIBLE_FACTORY_H__ + + #include <atk/atk.h> + +-- +GitLab +
meta-gnome/recipes-gnome/libwnck/libwnck3_43.2.bb renamed from meta-gnome/recipes-gnome/libwnck/libwnck3_43.0.bb +3 -1
@@ -19,7 +19,9 @@ inherit gnomebase gobject-introspection gtk-doc gettext features_check def gnome_verdir(v): return oe.utils.trim_version(v, 1) -SRC_URI[archive.sha256sum] = "905bcdb85847d6b8f8861e56b30cd6dc61eae67ecef4cd994a9f925a26a2c1fe" +SRC_URI += "file://ef0e40d59c32d7ebeb94d242436e3144cefc174a.patch;patch=1 \ + file://0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch;patch=1" +SRC_URI[archive.sha256sum] = "55a7444ec1fbb95c086d40967388f231b5c0bbc8cffaa086bf9290ae449e51d5" # gtk+3 and libepoxy need to be built with x11 PACKAGECONFIG. # cairo would at least needed to be built with xlib.
PATCH 2/2 libwnck3: fix build failure for lib32-libwnck3
From: Changqing Li <[email protected]>
Refresh patch for fix build issue
--- ...caused-by-OE-core-changes-to-startup.patch | 33 +++++++++++-------- 1 file changed, 20 insertions(+), 13 deletions(-)
meta-gnome/recipes-gnome/libwnck/files/0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch +20 -13
@@ -1,4 +1,4 @@ -From 1df0f4ae8fd54bc1ae940dfafa701c84d068674d Mon Sep 17 00:00:00 2001 +From fd075074182f756e2872569925f70f5f4e2386c2 Mon Sep 17 00:00:00 2001 From: Koen Kooi <[email protected]> Date: Sun, 25 May 2025 12:24:16 +0000 Subject: [PATCH] Fix build issue caused by OE-core changes to
@@ -21,23 +21,30 @@ It is caused by a patch of startup-notification in oe-core which is backported f Upstream-Status: Inappropriate [oe-specific] Signed-off-by: Koen Kooi <[email protected]> + +Refresh the patch +Don't use explicit type cast to avoid truncation, use long long for tv_sec. + +Signed-off-by: Changqing Li <[email protected]> + --- - libwnck/tasklist.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + libwnck/tasklist.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c -index 7418f89..460e11d 100644 +index 7418f89..f0f30b2 100644 --- a/libwnck/tasklist.c +++ b/libwnck/tasklist.c -@@ -5031,7 +5031,7 @@ sequence_timeout_callback (void *user_data) - WnckTask *task = WNCK_TASK (tmp->data); - - sn_startup_sequence_get_last_active_time (task->startup_sequence, -- &tv_sec, &tv_usec); -+ (time_t *) &tv_sec, &tv_usec); - - elapsed = (now - (tv_sec * G_USEC_PER_SEC + tv_usec)) / 1000.0; +@@ -5019,7 +5019,8 @@ sequence_timeout_callback (void *user_data) + WnckTasklist *tasklist = user_data; + GList *tmp; + gint64 now; +- long tv_sec, tv_usec; ++ long long tv_sec; ++ long tv_usec; + double elapsed; + now = g_get_real_time (); -- -2.33.0 +2.34.1
Re: [oe] [meta-gnome][walnascar][PATCH 2/2] libwnck3: fix build failure for lib32-libwnck3
Quoted 24 lines · Gyorgy Sarvari via lists.openembedded.org
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.From: Changqing Li<[email protected]>
Refresh patch for fix build issue
Signed-off-by Changqing Li<[email protected]>Signed-off-by Gyorgy Sarvari<[email protected]>--- ...caused-by-OE-core-changes-to-startup.patch | 33 +++++++++++-------- 1 file changed, 20 insertions(+), 13 deletions(-)meta-gnome/recipes-gnome/libwnck/files/0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch +1
-1@@ -1,4 +1,4 @@ -From 1df0f4ae8fd54bc1ae940dfafa701c84d068674d Mon Sep 17 00:00:00 2001 +From fd075074182f756e2872569925f70f5f4e2386c2 Mon Sep 17 00:00:00 2001 From: Koen Kooi<[email protected]> Date: Sun, 25 May 2025 12:24:16 +0000 Subject: [PATCH] Fix build issue caused by OE-core changes to
meta-gnome/recipes-gnome/libwnck/files/0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch It is caused by a patch of startup-notification in oe-core which is backported f · line 26
Quoted 6 lines
meta-gnome/recipes-gnome/libwnck/files/0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch +3
-0@@ -21,23 +21,30 @@ It is caused by a patch of startup-notification in oe-core which is backported f Upstream-Status: Inappropriate [oe-specific] Signed-off-by: Koen Kooi<[email protected]> + +Refresh the patch +Don't use explicit type cast to avoid truncation, use long long for tv_sec.
Hi, Gyorgy
Sorry to say that this patch need to update according to the following commit:
Regards
Changqing
Quoted 45 lines
meta-gnome/recipes-gnome/libwnck/files/0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch +16
-13+ +Signed-off-by: Changqing Li<[email protected]> + --- - libwnck/tasklist.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + libwnck/tasklist.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c -index 7418f89..460e11d 100644 +index 7418f89..f0f30b2 100644 --- a/libwnck/tasklist.c +++ b/libwnck/tasklist.c -@@ -5031,7 +5031,7 @@ sequence_timeout_callback (void *user_data) - WnckTask *task = WNCK_TASK (tmp->data); - - sn_startup_sequence_get_last_active_time (task->startup_sequence, -- &tv_sec, &tv_usec); -+ (time_t *) &tv_sec, &tv_usec); - - elapsed = (now - (tv_sec * G_USEC_PER_SEC + tv_usec)) / 1000.0; +@@ -5019,7 +5019,8 @@ sequence_timeout_callback (void *user_data) + WnckTasklist *tasklist = user_data; + GList *tmp; + gint64 now; +- long tv_sec, tv_usec; ++ long long tv_sec; ++ long tv_usec; + double elapsed; + now = g_get_real_time (); -- -2.33.0 +2.34.1 -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#119349):https://lists.openembedded.org/g/openembedded-devel/message/119349 Mute This Topic:https://lists.openembedded.org/mt/115171723/3616873
Group Owner:[email protected] Unsubscribe:https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-gnome][walnascar][PATCH 2/2] libwnck3: fix build failure for lib32-libwnck3
Quoted 34 lines · Changqing Li
Quoted 24 lines · Gyorgy Sarvari via lists.openembedded.org
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.From: Changqing Li <[email protected]>
Refresh patch for fix build issue
Signed-off-by Changqing Li <[email protected]>Signed-off-by Gyorgy Sarvari <[email protected]>--- ...caused-by-OE-core-changes-to-startup.patch | 33 +++++++++++-------- 1 file changed, 20 insertions(+), 13 deletions(-)meta-gnome/recipes-gnome/libwnck/files/0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch +1
-1@@ -1,4 +1,4 @@ -From 1df0f4ae8fd54bc1ae940dfafa701c84d068674d Mon Sep 17 00:00:00 2001 +From fd075074182f756e2872569925f70f5f4e2386c2 Mon Sep 17 00:00:00 2001 From: Koen Kooi <[email protected]> Date: Sun, 25 May 2025 12:24:16 +0000 Subject: [PATCH] Fix build issue caused by OE-core changes tometa-gnome/recipes-gnome/libwnck/files/0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch It is caused by a patch of startup-notification in oe-core which is backported f · line 26
Quoted 6 lines
meta-gnome/recipes-gnome/libwnck/files/0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch +3
-0@@ -21,23 +21,30 @@ It is caused by a patch of startup-notification in oe-core which is backported f Upstream-Status: Inappropriate [oe-specific] Signed-off-by: Koen Kooi <[email protected]> + +Refresh the patch +Don't use explicit type cast to avoid truncation, use long long for tv_sec.Hi, Gyorgy
Quoted 5 lines
Sorry to say that this patch need to update according to the following commit:
You are correct, the build has indeed failed eventually for libwnck.
Thank you for the review, I have submitted the missing backports.
Quoted 49 lines
Regards
Changqing
Quoted 45 lines
meta-gnome/recipes-gnome/libwnck/files/0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch +16
-13+ +Signed-off-by: Changqing Li <[email protected]> + --- - libwnck/tasklist.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + libwnck/tasklist.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c -index 7418f89..460e11d 100644 +index 7418f89..f0f30b2 100644 --- a/libwnck/tasklist.c +++ b/libwnck/tasklist.c -@@ -5031,7 +5031,7 @@ sequence_timeout_callback (void *user_data) - WnckTask *task = WNCK_TASK (tmp->data); - - sn_startup_sequence_get_last_active_time (task->startup_sequence, -- &tv_sec, &tv_usec); -+ (time_t *) &tv_sec, &tv_usec); - - elapsed = (now - (tv_sec * G_USEC_PER_SEC + tv_usec)) / 1000.0; +@@ -5019,7 +5019,8 @@ sequence_timeout_callback (void *user_data) + WnckTasklist *tasklist = user_data; + GList *tmp; + gint64 now; +- long tv_sec, tv_usec; ++ long long tv_sec; ++ long tv_usec; + double elapsed; + now = g_get_real_time (); -- -2.33.0 +2.34.1 -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#119349): https://lists.openembedded.org/g/openembedded-devel/message/119349
Mute This Topic: https://lists.openembedded.org/mt/115171723/3616873
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-