commit:     f688df5100ef2b88c975ecd40fd343c62e2ab276
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 26 02:10:54 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Apr 26 02:10:54 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f688df51

x11-libs/pango: workaround -Werror=array-bounds issue w/ GCC 13

Seems to be a false positive. Reported upstream by Adrien at 
https://gitlab.gnome.org/GNOME/pango/-/issues/740.

Happens w/ GCC 13 combined with -O3 at least but may happen for other
combinations too. Can't append -Wno-error=... because of the order the flags
are added, unfortunately.

Closes: https://bugs.gentoo.org/903259
Signed-off-by: Sam James <sam <AT> gentoo.org>

 x11-libs/pango/pango-1.50.14.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/x11-libs/pango/pango-1.50.14.ebuild 
b/x11-libs/pango/pango-1.50.14.ebuild
index 6160dd53090e..690dbbb2d084 100644
--- a/x11-libs/pango/pango-1.50.14.ebuild
+++ b/x11-libs/pango/pango-1.50.14.ebuild
@@ -45,6 +45,10 @@ src_prepare() {
        default
        xdg_environment_reset
        gnome2_environment_reset
+
+       # False positive with GCC 13 and -O3 at least, see bug #903259
+       # https://gitlab.gnome.org/GNOME/pango/-/issues/740
+       sed -i -e '/\-Werror=array-bounds/d' meson.build || die
 }
 
 multilib_src_configure() {

Reply via email to