pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/ghc88 ghc88: Copy files rather than using hardlinks.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/da75d0354754
branches:  trunk
changeset: 459132:da75d0354754
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Sep 30 10:32:20 2021 +0000

description:
ghc88: Copy files rather than using hardlinks.

Fixes behaviour of "ln -f" when creating bootstrap kit on SunOS.

diffstat:

 lang/ghc88/distinfo                   |   4 ++--
 lang/ghc88/patches/patch-configure.ac |  27 +++++++++++++++++++++++----
 2 files changed, 25 insertions(+), 6 deletions(-)

diffs (64 lines):

diff -r 2ccdbd56e9c9 -r da75d0354754 lang/ghc88/distinfo
--- a/lang/ghc88/distinfo       Thu Sep 30 10:00:07 2021 +0000
+++ b/lang/ghc88/distinfo       Thu Sep 30 10:32:20 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.18 2021/05/01 03:00:06 pho Exp $
+$NetBSD: distinfo,v 1.19 2021/09/30 10:32:20 jperkin Exp $
 
 SHA1 (ghc-8.4.4-boot-i386-unknown-freebsd.tar.xz) = 04981802730423aa12999e59679be198d540222a
 RMD160 (ghc-8.4.4-boot-i386-unknown-freebsd.tar.xz) = f617e67f2c2f07c7211cb391a4bc2e7b304045e2
@@ -30,7 +30,7 @@
 Size (netbsd-9.0-amd64-libterminfo.tar.gz) = 27744 bytes
 SHA1 (patch-aclocal.m4) = 16ac8899a7d87cf93a6139edba9e5222eb4c5c66
 SHA1 (patch-compiler_main_DynFlags.hs) = 07bb2a5afdd087f4d2da5c035feecc13273aec70
-SHA1 (patch-configure.ac) = 6e5cec26e440ccd71343a1981b415459813f88be
+SHA1 (patch-configure.ac) = bb5bcc27efeeda7b6990cb146fc34c0242532d36
 SHA1 (patch-ghc.mk) = 1a4de0f175b0b73dc6d09a26b8c55bb6e0be0e18
 SHA1 (patch-ghc_ghc.mk) = 9c639cc95cb79e4ffbd9b5fce311edba54939b5e
 SHA1 (patch-libraries_Cabal_Cabal_Distribution_Simple_GHC.hs) = a4c82b1282c0580a7945be8c3b9d38bc760db99f
diff -r 2ccdbd56e9c9 -r da75d0354754 lang/ghc88/patches/patch-configure.ac
--- a/lang/ghc88/patches/patch-configure.ac     Thu Sep 30 10:00:07 2021 +0000
+++ b/lang/ghc88/patches/patch-configure.ac     Thu Sep 30 10:32:20 2021 +0000
@@ -1,11 +1,30 @@
-$NetBSD: patch-configure.ac,v 1.3 2020/02/17 17:26:53 jperkin Exp $
+$NetBSD: patch-configure.ac,v 1.4 2021/09/30 10:32:20 jperkin Exp $
 
 Don't use non-portable operator ==:
 https://gitlab.haskell.org/ghc/ghc/merge_requests/2497
 
---- configure.ac.orig  2019-08-25 12:03:36.000000000 +0000
+Copy files rather than relying on hardlink behaviour.
+
+--- configure.ac.orig  2020-07-12 16:04:30.000000000 +0000
 +++ configure.ac
-@@ -829,7 +829,7 @@ if test "x$EnableDtrace" = "xyes"; then
+@@ -685,11 +685,11 @@ dnl ------------------------------------
+ dnl ** Copy the files from the "fs" utility into the right folders.
+ dnl --------------------------------------------------------------
+ AC_MSG_NOTICE([Creating links for in-tree file handling routines.])
+-ln -f utils/fs/fs.* utils/lndir/
+-ln -f utils/fs/fs.* utils/unlit/
+-ln -f utils/fs/fs.* rts/
+-ln -f utils/fs/fs.h libraries/base/include/
+-ln -f utils/fs/fs.c libraries/base/cbits/
++cp -p utils/fs/fs.* utils/lndir/
++cp -p utils/fs/fs.* utils/unlit/
++cp -p utils/fs/fs.* rts/
++cp -p utils/fs/fs.h libraries/base/include/
++cp -p utils/fs/fs.c libraries/base/cbits/
+ AC_MSG_NOTICE([Routines in place. Packages can now be build normally.])
+ 
+ dnl --------------------------------------------------------------
+@@ -843,7 +843,7 @@ if test "x$EnableDtrace" = "xyes"; then
    if test -n "$DtraceCmd"; then
      if test "x$TargetOS_CPP-$TargetVendor_CPP" = "xdarwin-apple" \
        -o "x$TargetOS_CPP-$TargetVendor_CPP" = "xfreebsd-portbld" \
@@ -14,7 +33,7 @@
        HaveDtrace=YES
      fi
    fi
-@@ -936,7 +936,7 @@ FP_CHECK_SIZEOF_AND_ALIGNMENT(uint64_t)
+@@ -950,7 +950,7 @@ FP_CHECK_SIZEOF_AND_ALIGNMENT(uint64_t)
  
  dnl for use in settings.in
  TargetWordSize=$ac_cv_sizeof_void_p



Home | Main Index | Thread Index | Old Index