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

pango: Fix build with gcc-13 #92

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
From e93dbd66973040f1e0afcba0dc7c712c27d75d59 Mon Sep 17 00:00:00 2001
From: Matthias Clasen <[email protected]>
Date: Mon, 1 May 2023 23:27:52 -0400
Subject: [PATCH] Drop -Werror=array-bounds

gcc has strange issues with this and produces false
positives that recently started breaking the build of
pango as a subproject in gtk.

See e.g. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
---
meson.build | 2 --
1 file changed, 2 deletions(-)

diff --git a/meson.build b/meson.build
index 930f4108..2d30c014 100644
--- a/meson.build
+++ b/meson.build
@@ -89,7 +89,6 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
'-Wuninitialized',
'-Wunused',
'-Werror=address',
- '-Werror=array-bounds',
'-Werror=empty-body',
'-Werror=implicit',
'-Werror=implicit-fallthrough',
@@ -132,7 +131,6 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
'-Werror=sequence-point',
'-Werror=return-type',
'-Werror=trigraphs',
- '-Werror=array-bounds',
'-Werror=write-strings',
'-Werror=address',
'-Werror=int-to-pointer-cast',
--
2.39.2

1 change: 1 addition & 0 deletions meta/recipes-graphics/pango/pango_1.50.14.bb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ GIR_MESON_DISABLE_FLAG = "disabled"

SRC_URI += "file://run-ptest \
file://0001-Skip-running-test-layout-test.patch \
file://0001-Drop-Werror-array-bounds.patch \
"

SRC_URI[archive.sha256sum] = "1d67f205bfc318c27a29cfdfb6828568df566795df0cb51d2189cde7f2d581e8"
Expand Down