pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/smlnj Various updates to smlnj so it builds on Ne...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3d0c81735c95
branches:  trunk
changeset: 402603:3d0c81735c95
user:      he <he%pkgsrc.org@localhost>
date:      Sat Oct 12 20:52:53 2019 +0000

description:
Various updates to smlnj so it builds on NetBSD/powerpc again:
 * Modernize the powerpc entry in signal-sysdep.h to use the
   various _UC_MACHINE_ macros.
 * mk.ppc-netbsd: don't pass an empty RANLIB variable, causing build failure.

Also make checksums of all the three arch-specific distfiles ("boxes"),
for sparc, x86 and ppc.

Bump PKGREVISION.

diffstat:

 lang/smlnj/Makefile                                           |  12 ++-
 lang/smlnj/distinfo                                           |  13 +++-
 lang/smlnj/patches/patch-af                                   |  35 ----------
 lang/smlnj/patches/patch-src_runtime_mach-dep_signal-sysdep.h |  37 +++++++++++
 lang/smlnj/patches/patch-src_runtime_objs_mk.ppc-netbsd       |  12 +++
 5 files changed, 70 insertions(+), 39 deletions(-)

diffs (175 lines):

diff -r b982241f5172 -r 3d0c81735c95 lang/smlnj/Makefile
--- a/lang/smlnj/Makefile       Sat Oct 12 20:51:48 2019 +0000
+++ b/lang/smlnj/Makefile       Sat Oct 12 20:52:53 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2016/07/03 19:38:27 dholland Exp $
+# $NetBSD: Makefile,v 1.35 2019/10/12 20:52:53 he Exp $
 #
 
 DISTNAME=      boot.${BOX}-unix
@@ -31,7 +31,7 @@
 COMMENT=       Popular functional language from Bell Labs
 
 SML_VERSION=   110.73
-PKGREVISION=   2
+PKGREVISION=   3
 
 WRKSRC=                ${WRKDIR}
 DIST_SUBDIR=   smlnj-${SML_VERSION}
@@ -57,6 +57,14 @@
 # note that this includes bsd.prefs.mk
 .include "../../lang/smlnj/Makefile.common"
 
+BOXES= x86 ppc sparc
+
+.if make(distinfo) || make(makesum) || make(mdi)
+.for B in ${BOXES}
+DISTFILES+=    boot.${B}-unix.tgz
+.endfor
+.endif
+
 #
 # For smlnj reasons the runtime system needs to be unpacked twice, once
 # in work/src and once in work/base.
diff -r b982241f5172 -r 3d0c81735c95 lang/smlnj/distinfo
--- a/lang/smlnj/distinfo       Sat Oct 12 20:51:48 2019 +0000
+++ b/lang/smlnj/distinfo       Sat Oct 12 20:52:53 2019 +0000
@@ -1,9 +1,17 @@
-$NetBSD: distinfo,v 1.24 2016/07/03 19:35:13 dholland Exp $
+$NetBSD: distinfo,v 1.25 2019/10/12 20:52:53 he Exp $
 
 SHA1 (smlnj-110.73/MLRISC.tgz) = 59a38a4a1c63cecf97764a99577b3f929b5ccbc9
 RMD160 (smlnj-110.73/MLRISC.tgz) = dd951776482f37421a17701d67c051741691c6cb
 SHA512 (smlnj-110.73/MLRISC.tgz) = e16a213face6dbc128fc117a6ea30042ee49aa3aa985b3b6a9ea4f3ebd8392e2fc9db96451f49eddeab8f35a36665c1dc3dc77b6c615eae1b277192f16805d6b
 Size (smlnj-110.73/MLRISC.tgz) = 1422538 bytes
+SHA1 (smlnj-110.73/boot.ppc-unix.tgz) = 2bad7f83e6171df410d7199d366bed61df762ce0
+RMD160 (smlnj-110.73/boot.ppc-unix.tgz) = b2cc43cbbd1ef812f5114a54304ff2c251f7c22e
+SHA512 (smlnj-110.73/boot.ppc-unix.tgz) = f8d32496c955ebf58af66f68a497b187e95300e21630db2fe46473251cf441fd03a15a486fb44a13a0dc2a14059e2fac76efd795ad2976e21a61b111f3aa31b1
+Size (smlnj-110.73/boot.ppc-unix.tgz) = 5765627 bytes
+SHA1 (smlnj-110.73/boot.sparc-unix.tgz) = 4db4998afd8280ced65fa190f55ea3ecb3ca7463
+RMD160 (smlnj-110.73/boot.sparc-unix.tgz) = 6f5781e3059434e7a3514259299f35b1ef498f69
+SHA512 (smlnj-110.73/boot.sparc-unix.tgz) = 0fe9d813db53171db401f6b6e6a8417a50d4218904f0f8fc922de9c0e86446f6f4f09550639d109efefe411b08e43e5b50601148aa938a419144e1ba4b55979e
+Size (smlnj-110.73/boot.sparc-unix.tgz) = 5890769 bytes
 SHA1 (smlnj-110.73/boot.x86-unix.tgz) = f2a6b89708d41d5968bf6f2e2ee713704f3664fd
 RMD160 (smlnj-110.73/boot.x86-unix.tgz) = c6fa71d7a14e79d095159ebd877b7562e88eeeb5
 SHA512 (smlnj-110.73/boot.x86-unix.tgz) = 389f18bf989ff70aa4b4e174547bfc1ac00e5b3d0a57d60c96fc105252b94c8233fce0bdc868670386853bad9cc2a8643e9a1d3881bed1e0367d62a6451d6b78
@@ -83,7 +91,6 @@
 SHA1 (patch-aa) = f738a6284236158b6b95928768fe1213cc77fc20
 SHA1 (patch-ad) = 67802bbdf42408c60bbce4087f20d000a3445677
 SHA1 (patch-ae) = 0ba98fb2b012daf75dcc4ac416cbf0fd3182114b
-SHA1 (patch-af) = 3a1c1cadd26eb246adafff823d49b4ab7161793b
 SHA1 (patch-ah) = 93d7453dc82d91d29662cc02dd8ab9e8b8987393
 SHA1 (patch-ai) = 6a15a5415bd73e6618bc45b9a7eb021543e9cecd
 SHA1 (patch-aj) = 6318548da4c943c60fe63d41529803ea3fa2c96e
@@ -107,6 +114,7 @@
 SHA1 (patch-src_runtime_gc_mem-writer.c) = d43974ff5e8e576490656f9d24daf66fecab4849
 SHA1 (patch-src_runtime_kernel_main.c) = db26470b16f56e93ebecc62f34aa6b7a474089ec
 SHA1 (patch-src_runtime_kernel_unix-timers.c) = 1c1db5bce0ec1e72adafb9380027884cf746c75c
+SHA1 (patch-src_runtime_mach-dep_signal-sysdep.h) = bcfeba1575b811afd2f81f88893fef6ba4a97cd1
 SHA1 (patch-src_runtime_mach-dep_unix-prof.c) = 90a4b81e2a8532e4e06f29bfe42c55423a0f4154
 SHA1 (patch-src_runtime_objs_mk.alpha32-dunix) = 9e3a36f4663cd685459f2fbde41b8c5f154bd9c2
 SHA1 (patch-src_runtime_objs_mk.alpha32x-osf1) = 6e91f672aadb77bd1d1ab65bfa66e3d7f745846c
@@ -117,6 +125,7 @@
 SHA1 (patch-src_runtime_objs_mk.ppc-darwin) = 6ae822c7b39255b5204e358e3c21aa23b93883ec
 SHA1 (patch-src_runtime_objs_mk.ppc-darwin5) = 35ddd1f10a907ebbe6b4a3310c3bded83bda8ca0
 SHA1 (patch-src_runtime_objs_mk.ppc-linux) = 171ec491a536aa782880d3b3392cf0d728fd9c03
+SHA1 (patch-src_runtime_objs_mk.ppc-netbsd) = dd532b009e08825fe7765772f93312202defabfc
 SHA1 (patch-src_runtime_objs_mk.x86-cygwin) = b9e1174a956a63b1023eaf70322776fe93717782
 SHA1 (patch-src_runtime_objs_mk.x86-darwin) = 7770986d2805f66f1c4d4faff2fb66b2fb4b7b8d
 SHA1 (patch-src_runtime_objs_mk.x86-freebsd) = 2420f6a04ae78ca306daeb94a312f0e4fdcd0410
diff -r b982241f5172 -r 3d0c81735c95 lang/smlnj/patches/patch-af
--- a/lang/smlnj/patches/patch-af       Sat Oct 12 20:51:48 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-$NetBSD: patch-af,v 1.6 2016/04/14 22:04:47 dholland Exp $
-
-Support for NetBSD, and for NetBSD on PPC.
-
---- src/runtime/mach-dep/signal-sysdep.h.orig  2006-02-27 17:47:32.000000000 +0000
-+++ src/runtime/mach-dep/signal-sysdep.h       2006-03-09 19:15:48.000000000 +0000
-@@ -171,7 +171,7 @@
-   /* disable all FP exceptions */
- #  define SIG_InitFPE()    SetFSR(0)
- 
--#  if defined(OPSYS_SUNOS)
-+#  if defined(OPSYS_SUNOS) || defined(OPSYS_NETBSD)
-     /** SPARC, SUNOS **/
- #    define USE_ZERO_LIMIT_PTR_FN
- #    define SIG_FAULT1                SIGFPE
-@@ -340,6 +340,19 @@
- #    define SIG_ResetFPE(scp)           { (scp)->regs->gpr[PT_FPSCR] = 0x0; }
-      typedef void SigReturn_t;
- 
-+#  elif (defined(TARGET_PPC) && defined(OPSYS_NETBSD))
-+    /* PPC, NetBSD */
-+
-+#    define SIG_FAULT1          SIGTRAP
-+
-+#    define INT_DIVZERO(s, c)           ((s) == SIGTRAP)
-+#    define INT_OVFLW(s, c)             ((s) == SIGTRAP)
-+#    define SIG_GetPC(scp)              ((scp)->sc_frame.srr0)
-+#    define SIG_SetPC(scp, addr)        { (scp)->sc_frame.srr0 = (long)(addr); }
-+#    define SIG_ZeroLimitPtr(scp)       { ((scp)->sc_frame.fixreg[15] = 0); } /* limitptr = 15 (see src/runtime/mach-dep/PPC.prim.asm) */
-+#    define SIG_GetCode(info,scp)       (info)
-+     typedef void SigReturn_t;
-+
- #  endif /* HOST_RS6000/HOST_PPC */
- 
- #elif defined(HOST_HPPA)
diff -r b982241f5172 -r 3d0c81735c95 lang/smlnj/patches/patch-src_runtime_mach-dep_signal-sysdep.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/smlnj/patches/patch-src_runtime_mach-dep_signal-sysdep.h     Sat Oct 12 20:52:53 2019 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-src_runtime_mach-dep_signal-sysdep.h,v 1.1 2019/10/12 20:52:54 he Exp $
+
+Support for NetBSD, and for NetBSD on PPC.
+
+--- src/runtime/mach-dep/signal-sysdep.h.orig  2009-09-13 17:50:53.000000000 +0000
++++ src/runtime/mach-dep/signal-sysdep.h
+@@ -175,7 +175,7 @@ extern void SetFSR(int);
+   /* disable all FP exceptions */
+ #  define SIG_InitFPE()    SetFSR(0)
+ 
+-#  if defined(OPSYS_SUNOS)
++#  if defined(OPSYS_SUNOS) || defined(OPSYS_NETBSD)
+     /** SPARC, SUNOS **/
+ #    define USE_ZERO_LIMIT_PTR_FN
+ #    define SIG_FAULT1                SIGFPE
+@@ -344,6 +344,21 @@ extern void SetFSR();
+ #    define SIG_ResetFPE(scp)           { (scp)->regs->gpr[PT_FPSCR] = 0x0; }
+      typedef void SigReturn_t;
+ 
++#  elif (defined(TARGET_PPC) && defined(OPSYS_NETBSD))
++    /* PPC, NetBSD */
++
++#    define SIG_FAULT1          SIGTRAP
++
++#    define INT_DIVZERO(s, c)           ((s) == SIGTRAP)
++#    define INT_OVFLW(s, c)             ((s) == SIGTRAP)
++#    define SIG_GetPC(scp)            (_UC_MACHINE_PC(scp))
++#    define SIG_SetPC(scp, addr)      { _UC_MACHINE_SET_PC(scp, ((long) (addr))); }
++#    define SIG_ZeroLimitPtr(scp)       { \
++      (scp)->uc_mcontext.__gregs[_REG_R15] = 0; \
++      } /* limitptr = 15 (see src/runtime/mach-dep/PPC.prim.asm) */
++#    define SIG_GetCode(info,scp)       ((info)->si_code)
++     typedef void SigReturn_t;
++
+ #  endif /* HOST_RS6000/HOST_PPC */
+ 
+ #elif defined(HOST_HPPA)
diff -r b982241f5172 -r 3d0c81735c95 lang/smlnj/patches/patch-src_runtime_objs_mk.ppc-netbsd
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/smlnj/patches/patch-src_runtime_objs_mk.ppc-netbsd   Sat Oct 12 20:52:53 2019 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_runtime_objs_mk.ppc-netbsd,v 1.1 2019/10/12 20:52:54 he Exp $
+
+Don't pass an empty RANLIB.
+
+--- src/runtime/objs/mk.ppc-netbsd.orig        2019-10-12 20:10:48.309504473 +0000
++++ src/runtime/objs/mk.ppc-netbsd
+@@ -22,4 +22,4 @@ VERSION =    v-ppc-netbsd
+ RUNTIME =     run.ppc-netbsd
+ 
+ all:
+-      ($(MAKE) RUNTIME="$(RUNTIME)" MAKE="$(MAKE)" VERSION="$(VERSION)" CC="$(CC)" CFLAGS="$(CFLAGS)" CPP="$(CPP)" AS="$(AS)" AR="$(AR)" RANLIB="$(RANLIB)" TARGET=$(TARGET) DEFS="$(DEFS)" 
XOBJS="$(XOBJS)" XLIBS="$(XLIBS)" LD_LIBS="$(LD_LIBS)" $(RUNTIME))
++      ($(MAKE) RUNTIME="$(RUNTIME)" MAKE="$(MAKE)" VERSION="$(VERSION)" CC="$(CC)" CFLAGS="$(CFLAGS)" CPP="$(CPP)" AS="$(AS)" AR="$(AR)" TARGET=$(TARGET) DEFS="$(DEFS)" XOBJS="$(XOBJS)" 
XLIBS="$(XLIBS)" LD_LIBS="$(LD_LIBS)" $(RUNTIME))



Home | Main Index | Thread Index | Old Index