https://github.com/gtk2hs/gtk2hs/issues/276 https://bugs.gentoo.org/712988 The following patches fix the problem: dev-haskell/glib-0.13.7.0: Author: Ilias Tsitsimpis <iliastsi@debian.org> --- haskell-glib-0.13.7.0.orig/glib.cabal +++ haskell-glib-0.13.7.0/glib.cabal @@ -41,9 +41,9 @@ Library bytestring >= 0.9.1.10 && < 0.11, text >= 1.0.0.0 && < 1.3, containers - cpp-options: -U__BLOCKS__ + cpp-options: -U__BLOCKS__ -D__attribute__(A)= if os(darwin) || os(freebsd) - cpp-options: -D__attribute__(A)= -D_Nullable= -D_Nonnull= -D_Noreturn= + cpp-options: -D_Nullable= -D_Nonnull= -D_Noreturn= if flag(closure_signals) cpp-options: -DUSE_GCLOSURE_SIGNALS_IMPL c-sources: System/Glib/hsgclosure.c dev-haskell/gtk-0.14.10-r2: From 4d35bf54cd79d2895195482a07d7fde9e1706ec1 Mon Sep 17 00:00:00 2001 From: William <william@undefined.re> Date: Fri, 5 Jun 2020 11:00:23 +0200 Subject: [PATCH] lol --- gtk.cabal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk.cabal b/gtk.cabal index 6fd58ed..e69941f 100644 --- a/gtk.cabal +++ b/gtk.cabal @@ -381,9 +381,9 @@ Library -- needs to be imported from this module: x-Signals-Import: Graphics.UI.Gtk.General.Threading include-dirs: . - cpp-options: -U__BLOCKS__ + cpp-options: -U__BLOCKS__ -D__attribute__(A)= if os(darwin) || os(freebsd) - cpp-options: -D__attribute__(A)= -D_Nullable= -D_Nonnull= + cpp-options: -D_Nullable= -D_Nonnull= -D_Noreturn= if !flag(deprecated) cpp-options: -DDISABLE_DEPRECATED else -- 2.26.2 dev-haskell/gio-0.13.6.0: From b796a7da6bc8be0d33853cb04c822b76bc80831e Mon Sep 17 00:00:00 2001 From: William <william@undefined.re> Date: Fri, 5 Jun 2020 10:54:57 +0200 Subject: [PATCH] lol --- gio.cabal | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gio.cabal b/gio.cabal index b1f1d7a..45c32b5 100644 --- a/gio.cabal +++ b/gio.cabal @@ -80,10 +80,10 @@ Library default-language: Haskell98 default-extensions: ForeignFunctionInterface - - cpp-options: -U__BLOCKS__ -Ubool + + cpp-options: -U__BLOCKS__ -D__attribute__(A)= if os(darwin) || os(freebsd) - cpp-options: -D__attribute__(A)= -D_Nullable= -D_Nonnull= -D_Noreturn= + cpp-options: -D_Nullable= -D_Nonnull= -D_Noreturn= x-Signals-File: System/GIO/Signals.chs x-Signals-Modname: System.GIO.Signals -- 2.26.2 Reproducible: Always
It seems as if the 0.13.8.1 upstream release of dev-haskell/{glib,gio,pango} and 0.15.5 upstream release of dev-haskell/{gtk,gtk3} have this fix
Actually the commit has these tags: pango-0.13.8.1 pango-0.13.6.1 gtk3-0.15.5 gtk3-0.15.3 gtk2hs-buildtools-0.13.5.4 gtk2hs-buildtools-0.13.5.3 gtk-0.15.5 gtk-0.15.3 glib-0.13.8.1 glib-0.13.7.1 gio-0.13.8.1 gio-0.13.6.1 cairo-0.13.8.1 cairo-0.13.6.1
I believe all 3 packages mentioned in subject were bumped in ::gentoo. If I missed something and some are still failing I suggest filing individual bugs for them. They will need individual fixes/backports.