Sophie

Sophie

distrib > Mageia > 9 > x86_64 > by-pkgid > 3be98cc4e8ce79d538760b81e0255238 > files > 20

glib2.0-2.76.3-1.2.mga9.src.rpm

Index: glib-2.65.2/meson.build
===================================================================
--- glib-2.65.2/meson.build
+++ glib-2.65.2/meson.build	2020-09-03 09:02:50.787565530 +0200
@@ -341,9 +341,14 @@
     return statx (AT_FDCWD, "/", AT_SYMLINK_NOFOLLOW, STATX_BASIC_STATS | STATX_BTIME, &stat_buf);
   }
   '''
-if host_system != 'android' and cc.compiles(statx_code, name : 'statx() test')
-  glib_conf.set('HAVE_STATX', 1)
-endif
+# statx usage makes Firefox and Chromium crash.
+# Upstream doesn't care, but we do.
+# https://gitlab.gnome.org/GNOME/glib/-/issues/2198
+# Reassess this when Firefox and Chromium have been fixed,
+# or when GTK folk will stop thinking only about first-party.
+#if host_system != 'android' and cc.compiles(statx_code, name : 'statx() test')
+#  glib_conf.set('HAVE_STATX', 1)
+#endif
 
 if glib_conf.has('HAVE_LOCALE_H')
   if cc.has_header_symbol('locale.h', 'LC_MESSAGES')