Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-glib for openSUSE:Factory 
checked in at 2026-06-10 16:00:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-glib (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-glib.new.2375 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-glib"

Wed Jun 10 16:00:11 2026 rev:8 rq:1358371 version:0.13.12.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-glib/ghc-glib.changes        2025-03-25 
22:21:12.764494429 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-glib.new.2375/ghc-glib.changes      
2026-06-10 16:02:06.838998017 +0200
@@ -1,0 +2,7 @@
+Tue Jun  9 13:33:11 UTC 2026 - Peter Simons <[email protected]>
+
+- Apply "adapt-to-rts-api-change-in-ghc-9.12.x.patch" to fix a
+  build error with ghc-9.12.3 or later. Found at
+  https://github.com/gtk2hs/gtk2hs/pull/349.
+
+-------------------------------------------------------------------

New:
----
  adapt-to-rts-api-change-in-ghc-9.12.x.patch

----------(New B)----------
  New:
- Apply "adapt-to-rts-api-change-in-ghc-9.12.x.patch" to fix a
  build error with ghc-9.12.3 or later. Found at
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-glib.spec ++++++
--- /var/tmp/diff_new_pack.3T5x3z/_old  2026-06-10 16:02:08.567069629 +0200
+++ /var/tmp/diff_new_pack.3T5x3z/_new  2026-06-10 16:02:08.567069629 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-glib
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,7 @@
 License:        LGPL-2.1-only
 URL:            https://hackage.haskell.org/package/%{pkg_name}
 Source0:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
+Patch01:        
https://github.com/gtk2hs/gtk2hs/commit/2e1ddf6f4a28819f42db45859a83f3dd7ed14c0e.patch#/adapt-to-rts-api-change-in-ghc-9.12.x.patch
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-Cabal-prof
 BuildRequires:  ghc-base-devel
@@ -81,7 +82,7 @@
 This package provides the Haskell %{pkg_name} profiling library.
 
 %prep
-%autosetup -n %{pkg_name}-%{version}
+%autosetup -n %{pkg_name}-%{version} -p2
 
 %build
 %ghc_lib_build

++++++ adapt-to-rts-api-change-in-ghc-9.12.x.patch ++++++
>From 2e1ddf6f4a28819f42db45859a83f3dd7ed14c0e Mon Sep 17 00:00:00 2001
From: Tuong Nguyen Manh <[email protected]>
Date: Sat, 14 Feb 2026 11:58:29 +0100
Subject: [PATCH] Fix glib for RTS API change in GHC 9.12.3/9.14.1

---
 glib/System/Glib/hsgclosure.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/glib/System/Glib/hsgclosure.c b/glib/System/Glib/hsgclosure.c
index 1610702b..6049827f 100644
--- a/glib/System/Glib/hsgclosure.c
+++ b/glib/System/Glib/hsgclosure.c
@@ -107,7 +107,9 @@ gtk2hs_closure_marshal(GClosure *closure,
     WHEN_DEBUG(g_debug("gtk2hs_closure_marshal(%p): about to rts_evalIO", 
hc->callback));
     
     /* perform the call */
-    #if __GLASGOW_HASKELL__>=704
+    #if (__GLASGOW_HASKELL__>=912 && __GLASGOW_HASKELL_PATCHLEVEL1__>=3) || 
__GLASGOW_HASKELL__>=914
+    rts_evalIO(&cap, rts_apply(CAP (HaskellObj)ghc_hs_iface->runIO_closure, 
call),&ret);
+    #elif __GLASGOW_HASKELL__>=704
     rts_evalIO(&cap, rts_apply(CAP (HaskellObj)runIO_closure, call),&ret);
     #else
     cap=rts_evalIO(CAP rts_apply(CAP (HaskellObj)runIO_closure, call),&ret);

Reply via email to