Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-ghc-hs-meta for openSUSE:Factory 
checked in at 2026-11-24 12:38:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-ghc-hs-meta (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-ghc-hs-meta.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-ghc-hs-meta"

Tue Nov 24 12:38:34 2026 rev:2 rq:1399443 version:0.1.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-ghc-hs-meta/ghc-ghc-hs-meta.changes  
2026-11-06 19:54:00.434209983 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-ghc-hs-meta.new.1340718/ghc-ghc-hs-meta.changes 
    2026-11-24 12:44:53.460378994 +0100
@@ -1,0 +2,5 @@
+Thu Nov 19 20:53:21 UTC 2026 - Peter Simons <[email protected]>
+
+- Add "support-ghc-9.14.patch" to fix building with GHC 9.14.1.
+
+-------------------------------------------------------------------
@@ -5 +9,0 @@
-

New:
----
  support-ghc-9.14.patch

----------(New B)----------
  New:
- Add "support-ghc-9.14.patch" to fix building with GHC 9.14.1.
----------(New E)----------

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

Other differences:
------------------
++++++ ghc-ghc-hs-meta.spec ++++++
--- /var/tmp/diff_new_pack.BeFwiY/_old  2026-11-24 12:44:54.676430532 +0100
+++ /var/tmp/diff_new_pack.BeFwiY/_new  2026-11-24 12:44:54.678430617 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-ghc-hs-meta
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,32 +17,38 @@
 
 
 %global pkg_name ghc-hs-meta
-%global pkgver %{pkg_name}-%{version}
+%bcond_with ghc_prof
 %bcond_with tests
-Name:           ghc-%{pkg_name}
+Name:           ghc-%pkg_name
 Version:        0.1.5.0
 Release:        0
+%global pkgver %pkg_name-%{version}
 Summary:        Translate Haskell source to Template Haskell expression
 License:        BSD-3-Clause
-URL:            https://hackage.haskell.org/package/%{pkg_name}
-Source0:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
+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/zacwood9/ghc-hs-meta/commit/5cf5705f3e47da79fb5580ec63c00d125cf4554a.patch#/support-ghc-9.14.patch
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-base-devel
-BuildRequires:  ghc-base-prof
 BuildRequires:  ghc-bytestring-devel
-BuildRequires:  ghc-bytestring-prof
 BuildRequires:  ghc-ghc-boot-devel
-BuildRequires:  ghc-ghc-boot-prof
 BuildRequires:  ghc-ghc-devel
-BuildRequires:  ghc-ghc-prof
-BuildRequires:  ghc-rpm-macros
+BuildRequires:  ghc-rpm-macros >= 2.9.2
 BuildRequires:  ghc-template-haskell-devel
-BuildRequires:  ghc-template-haskell-prof
 ExcludeArch:    %{ix86}
+%if %{with ghc_prof}
+BuildRequires:  ghc-base-prof
+BuildRequires:  ghc-bytestring-prof
+BuildRequires:  ghc-ghc-boot-prof
+BuildRequires:  ghc-ghc-prof
+BuildRequires:  ghc-template-haskell-prof
+%endif
 %if %{with tests}
 BuildRequires:  ghc-hspec-devel
+%if %{with ghc_prof}
 BuildRequires:  ghc-hspec-prof
 %endif
+%endif
 
 %description
 Translate from Haskell source code to Template Haskell expressions using the
@@ -58,24 +64,27 @@
 %description devel
 This package provides the Haskell %{pkg_name} library development files.
 
-%package -n ghc-%{pkg_name}-doc
+%package -n ghc-%pkg_name-doc
 Summary:        Haskell %{pkg_name} library documentation
 Requires:       ghc-filesystem
 BuildArch:      noarch
 
-%description -n ghc-%{pkg_name}-doc
+%description -n ghc-%pkg_name-doc
 This package provides the Haskell %{pkg_name} library documentation.
 
-%package -n ghc-%{pkg_name}-prof
+%if %{with ghc_prof}
+%package -n ghc-%pkg_name-prof
 Summary:        Haskell %{pkg_name} profiling library
-Requires:       ghc-%{pkg_name}-devel = %{version}-%{release}
-Supplements:    (ghc-%{pkg_name}-devel and ghc-prof)
+Requires:       ghc-%pkg_name-devel = %{version}-%{release}
+Supplements:    (ghc-%pkg_name-devel and ghc-prof)
 
-%description -n ghc-%{pkg_name}-prof
+%description -n ghc-%pkg_name-prof
 This package provides the Haskell %{pkg_name} profiling library.
+%endif
+
 
 %prep
-%autosetup -n %{pkg_name}-%{version}
+%autosetup -p1 -n %pkg_name-%{version}
 
 %build
 %ghc_lib_build
@@ -99,9 +108,11 @@
 %files devel -f %{name}-devel.files
 %doc CHANGELOG.md README.md
 
-%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
+%files -n ghc-%pkg_name-doc -f ghc-%pkg_name-doc.files
 %license LICENSE
 %license LICENSE-PyF
 
-%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
+%if %{with ghc_prof}
+%files -n ghc-%pkg_name-prof -f ghc-%pkg_name-prof.files
+%endif
 

++++++ support-ghc-9.14.patch ++++++
>From 5cf5705f3e47da79fb5580ec63c00d125cf4554a Mon Sep 17 00:00:00 2001
From: Li-yao Xia <[email protected]>
Date: Sat, 29 Aug 2026 17:19:46 +0200
Subject: [PATCH] Update for GHC 9.14

---
 ghc-hs-meta.cabal                      |  9 +++++----
 src/Language/Haskell/Meta/Settings.hs  | 10 ++++++++++
 src/Language/Haskell/Meta/Translate.hs | 16 ++++++++++++++--
 3 files changed, 29 insertions(+), 6 deletions(-)

diff --git a/ghc-hs-meta.cabal b/ghc-hs-meta.cabal
index 5dfcd22..ed718ee 100644
--- a/ghc-hs-meta.cabal
+++ b/ghc-hs-meta.cabal
@@ -21,6 +21,7 @@ tested-with:
   ghc ==9.8.4
   ghc ==9.10.1
   ghc ==9.12.1
+  ghc ==9.14.1
 
 extra-source-files:
   CHANGELOG.md
@@ -41,11 +42,11 @@ library
 
   ghc-options: -Wall
   build-depends:
-    base >=4.14 && <4.22,
+    base >=4.14 && <4.23,
     bytestring >=0.10 && <0.13,
-    ghc >=8.10.7 && <9.13,
-    ghc-boot >=8.10.7 && <9.13,
-    template-haskell >=2.16.0 && <2.24,
+    ghc >=8.10.7 && <9.15,
+    ghc-boot >=8.10.7 && <9.15,
+    template-haskell >=2.16.0 && <2.25,
 
   default-language: Haskell2010
 
diff --git a/src/Language/Haskell/Meta/Settings.hs 
b/src/Language/Haskell/Meta/Settings.hs
index 5b84a83..bc7a002 100644
--- a/src/Language/Haskell/Meta/Settings.hs
+++ b/src/Language/Haskell/Meta/Settings.hs
@@ -9,6 +9,10 @@ module Language.Haskell.Meta.Settings (baseDynFlags) where
 
 {- ORMOLU_DISABLE -}
 
+#if MIN_VERSION_ghc(9, 14, 0)
+import GHC.Unit.Types (stringToUnitId)
+#endif
+
 #if MIN_VERSION_ghc(9,0,0)
 import GHC.Settings.Config
 import GHC.Driver.Session
@@ -98,6 +102,9 @@ fakeSettings = Settings
   , sTargetPlatform=platform
   , sPlatformMisc=platformMisc
   , sToolSettings=toolSettings
+#if MIN_VERSION_ghc(9, 14, 0)
+  , sUnitSettings=unitSettings
+#endif
   }
 #elif MIN_VERSION_ghc(8, 10, 0)
   { sGhcNameVersion=ghcNameVersion
@@ -168,6 +175,9 @@ fakeSettings = Settings
     platformConstants =
       PlatformConstants{pc_DYNAMIC_BY_DEFAULT=False,pc_WORD_SIZE=8}
 #endif
+#if MIN_VERSION_ghc(9, 14, 0)
+    unitSettings = UnitSettings { unitSettings_baseUnitId = stringToUnitId "" }
+#endif
 
 #if MIN_VERSION_ghc(9, 6, 0)
 applyFakeLlvmConfig :: a -> a
diff --git a/src/Language/Haskell/Meta/Translate.hs 
b/src/Language/Haskell/Meta/Translate.hs
index 4bd1bdc..734cc83 100644
--- a/src/Language/Haskell/Meta/Translate.hs
+++ b/src/Language/Haskell/Meta/Translate.hs
@@ -16,6 +16,9 @@ import GHC.Hs.Types (HsWildCardBndrs (..), HsType (..), 
HsImplicitBndrs (HsIB, h
 import HsTypes (HsWildCardBndrs (..), HsType (..), HsImplicitBndrs (HsIB), 
hsib_body)
 #endif
 
+#if MIN_VERSION_ghc(9,13,0)
+import Language.Haskell.Syntax.Extension (dataConCantHappen)
+#endif
 #if MIN_VERSION_ghc(9,6,0)
 import Language.Haskell.Syntax.Basic (FieldLabelString (..))
 #endif
@@ -87,8 +90,12 @@ toLit (HsIntPrim _ i) = TH.IntPrimL i
 toLit (HsWordPrim _ i) = TH.WordPrimL i
 toLit (HsInt64Prim _ i) = TH.IntegerL i
 toLit (HsWord64Prim _ i) = TH.WordPrimL i
+#if MIN_VERSION_ghc(9,13,0)
+toLit (XLit x) = dataConCantHappen x
+#else
 toLit (HsInteger _ i _) = TH.IntegerL i
 toLit (HsRat _ f _) = TH.FloatPrimL (fl_value f)
+#endif
 toLit (HsFloatPrim _ f) = TH.FloatPrimL (fl_value f)
 toLit (HsDoublePrim _ f) = TH.DoublePrimL (fl_value f)
 #if MIN_VERSION_ghc(9,12,0)
@@ -141,7 +148,10 @@ toExp _ (Expr.HsVar _ n) =
         then TH.ConE (toName n')
         else TH.VarE (toName n')
 
-#if MIN_VERSION_ghc(9,0,0)
+#if MIN_VERSION_ghc(9,13,0)
+toExp _ (Expr.HsHole (HoleVar (L _ n))) = TH.UnboundVarE (TH.mkName . 
occNameString . occName $ n)
+toExp _ (Expr.HsHole HoleError) = error "HoleError"
+#elif MIN_VERSION_ghc(9,0,0)
 toExp _ (Expr.HsUnboundVar _ n)              = TH.UnboundVarE (TH.mkName . 
occNameString . occName $ n)
 #else
 toExp _ (Expr.HsUnboundVar _ n)              = TH.UnboundVarE (TH.mkName . 
occNameString . Expr.unboundVarOcc $ n)
@@ -180,7 +190,9 @@ toExp d (Expr.NegApp _ e _)
   = TH.AppE (TH.VarE 'negate) (toExp d . unLoc $ e)
 
 -- NOTE: for lambda, there is only one match
-#if MIN_VERSION_ghc(9,12,0)
+#if MIN_VERSION_ghc(9,14,0)
+toExp d (Expr.HsLam _ LamSingle (Expr.MG _ (unLoc -> (map unLoc -> [Expr.Match 
_ _ (map unLoc . unLoc -> ps) (Expr.GRHSs _ ((unLoc -> Expr.GRHS _ _ (unLoc -> 
e)) NonEmpty.:| []) _)]))))
+#elif MIN_VERSION_ghc(9,12,0)
 toExp d (Expr.HsLam _ LamSingle (Expr.MG _ (unLoc -> (map unLoc -> [Expr.Match 
_ _ (map unLoc . unLoc -> ps) (Expr.GRHSs _ [unLoc -> Expr.GRHS _ _ (unLoc -> 
e)] _)]))))
 #elif MIN_VERSION_ghc(9,10,0)
 toExp d (Expr.HsLam _ LamSingle (Expr.MG _ (unLoc -> (map unLoc -> [Expr.Match 
_ _ (map unLoc -> ps) (Expr.GRHSs _ [unLoc -> Expr.GRHS _ _ (unLoc -> e)] 
_)]))))

Reply via email to