Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build with using glib<2.63.1 #651

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

psaavedra
Copy link
Member

Add GLIB_CHECK_VERSION to verify if we really can use the g_warning_once and avoid the undefined reference to g_warning_once link error.

@psaavedra psaavedra added the enhancement New feature or request label Nov 6, 2023
@psaavedra psaavedra self-assigned this Nov 6, 2023
Add GLIB_CHECK_VERSION to verify if we really can use the
g_warning_once and avoid the undefined reference to
g_warning_once link error.
@psaavedra psaavedra force-pushed the psaavedra/fix_warning_once_with_old_glib branch from a8c996e to b849e83 Compare November 7, 2023 13:00
@@ -125,9 +125,19 @@ cog_platform_init_web_view (CogPlatform *platform,
CogPlatformClass *klass = COG_PLATFORM_GET_CLASS(platform);
if (klass->init_web_view) {
if (klass->get_view_type) {
#if GLIB_CHECK_VERSION(2, 63, 1)
Copy link
Member

Choose a reason for hiding this comment

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

GLib 2.63.1 was released in October 2019. That's more than four years ago... so now I am wondering in which environment this is a problem.

I suggest we add a check in the top-level meson.build file to make sure the GLib version is new enough.

Copy link
Member Author

Choose a reason for hiding this comment

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

On Yocto Dunfell with long time support until April of 2024 [ref] so you could expect this issue affecting to environments still supported in meta-webkit. If you think this is not a good argument, I could move it as an adaptation patch inside meta-webkit.

Copy link
Member

Choose a reason for hiding this comment

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

Ahm, fair. Let's merge this and bump the GLib dependency in the next cycle after March-April 2024.

@psaavedra psaavedra merged commit 0c3c7d2 into master Nov 7, 2023
5 checks passed
@psaavedra psaavedra deleted the psaavedra/fix_warning_once_with_old_glib branch November 7, 2023 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants