pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/hs-cpphs Fix build with GHC 9.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3c921c89d80f
branches:  trunk
changeset: 373359:3c921c89d80f
user:      pho <pho%pkgsrc.org@localhost>
date:      Fri Feb 11 09:43:46 2022 +0000

description:
Fix build with GHC 9.2

diffstat:

 devel/hs-cpphs/Makefile                  |   4 ++--
 devel/hs-cpphs/distinfo                  |   4 ++--
 devel/hs-cpphs/patches/patch-cpphs.cabal |  30 +++++++++++++++++++++++-------
 3 files changed, 27 insertions(+), 11 deletions(-)

diffs (73 lines):

diff -r 88b55bb70190 -r 3c921c89d80f devel/hs-cpphs/Makefile
--- a/devel/hs-cpphs/Makefile   Fri Feb 11 09:42:25 2022 +0000
+++ b/devel/hs-cpphs/Makefile   Fri Feb 11 09:43:46 2022 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.16 2022/01/18 02:48:06 pho Exp $
+# $NetBSD: Makefile,v 1.17 2022/02/11 09:43:46 pho Exp $
 
 DISTNAME=              cpphs-1.20.9.1
-#PKGNAME=              ${DISTNAME} # XXX: This should probably be renamed to devel/cpphs.
+#PKGNAME=              ${DISTNAME} # XXX: This should be renamed to devel/cpphs.
 PKGREVISION=           2
 CATEGORIES=            devel
 
diff -r 88b55bb70190 -r 3c921c89d80f devel/hs-cpphs/distinfo
--- a/devel/hs-cpphs/distinfo   Fri Feb 11 09:42:25 2022 +0000
+++ b/devel/hs-cpphs/distinfo   Fri Feb 11 09:43:46 2022 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.9 2021/10/26 10:14:54 nia Exp $
+$NetBSD: distinfo,v 1.10 2022/02/11 09:43:46 pho Exp $
 
 BLAKE2s (cpphs-1.20.9.1.tar.gz) = 725c15d6f4f5cf1a352965c6b571dab5fde0b85360f44647fc3d9a1d497488c4
 SHA512 (cpphs-1.20.9.1.tar.gz) = bc5cd86c1e42061ae5c940612542dbea420344fb8596495d71ff2dc724bc1a3785f830e51c3ae99394488a122deabacd6433a5c919e3682c4129f3b296b7931f
 Size (cpphs-1.20.9.1.tar.gz) = 45496 bytes
-SHA1 (patch-cpphs.cabal) = 274e5753325014d152da43daf195f7d65f7204d9
+SHA1 (patch-cpphs.cabal) = f2ea981af932e6f03b2d68a53b88765eeac0a169
diff -r 88b55bb70190 -r 3c921c89d80f devel/hs-cpphs/patches/patch-cpphs.cabal
--- a/devel/hs-cpphs/patches/patch-cpphs.cabal  Fri Feb 11 09:42:25 2022 +0000
+++ b/devel/hs-cpphs/patches/patch-cpphs.cabal  Fri Feb 11 09:43:46 2022 +0000
@@ -1,12 +1,24 @@
-$NetBSD: patch-cpphs.cabal,v 1.1 2021/04/25 15:28:44 pho Exp $
+$NetBSD: patch-cpphs.cabal,v 1.2 2022/02/11 09:43:46 pho Exp $
+
+Hunk #1:
+  Fix build with GHC 9.2.
 
-This is probably a Cabal bug. When a package defines both a library
-and an executable, and they share the same set of modules, Cabal
-embeds an rpath to the build directory to the executable. We don't
-appreciate that.
+Hunk #2, #3:
+  This is probably a Cabal bug. When a package defines both a library and
+  an executable, and they share the same set of modules, Cabal embeds an
+  rpath to the build directory to the executable. We don't appreciate that.
 
 --- cpphs.cabal.orig   2001-09-09 01:46:40.000000000 +0000
 +++ cpphs.cabal
+@@ -52,7 +52,7 @@ Library
+       Hs-Source-Dirs: . old
+ 
+     else
+-      Build-Depends: time >=1.5 && <1.11
++      Build-Depends: time >=1.5 && <1.12
+       Hs-Source-Dirs: . new
+ 
+     Exposed-Modules:
 @@ -71,7 +71,7 @@ Library
          TimeCompat
  
@@ -16,8 +28,12 @@
      Main-Is: cpphs.hs
  
      if flag(old-locale)
-@@ -84,20 +84,6 @@ Executable cpphs
-       Build-Depends: time >=1.5 && <1.11
+@@ -81,23 +81,9 @@ Executable cpphs
+       Hs-Source-Dirs: . old
+ 
+     else
+-      Build-Depends: time >=1.5 && <1.11
++      Build-Depends: time >=1.5 && <1.12
        Hs-Source-Dirs: . new
  
 -    Other-Modules:



Home | Main Index | Thread Index | Old Index