Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK)) by mollari.NetBSD.org (Postfix) with ESMTPS id B83D07A3D5 for ; Sun, 3 Jul 2016 19:35:15 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 683F985EA1; Sun, 3 Jul 2016 19:35:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id EE77285E99 for ; Sun, 3 Jul 2016 19:35:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id MC5PiG2Y0-xC for ; Sun, 3 Jul 2016 19:35:14 +0000 (UTC) Received: from cvs.NetBSD.org (unknown [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id E14FE84CE9 for ; Sun, 3 Jul 2016 19:35:13 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id DB565FBB5; Sun, 3 Jul 2016 19:35:13 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1467574513140340" MIME-Version: 1.0 Date: Sun, 3 Jul 2016 19:35:13 +0000 From: "David A. Holland" Subject: CVS commit: pkgsrc/lang/smlnj To: pkgsrc-changes@NetBSD.org Reply-To: dholland@netbsd.org X-Mailer: log_accum Message-Id: <20160703193513.DB565FBB5@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk This is a multi-part message in MIME format. --_----------=_1467574513140340 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: dholland Date: Sun Jul 3 19:35:13 UTC 2016 Modified Files: pkgsrc/lang/smlnj: Makefile distinfo pkgsrc/lang/smlnj/patches: patch-ao Added Files: pkgsrc/lang/smlnj/patches: patch-src_runtime_c-libs_posix-filesys_stat.c patch-src_runtime_c-libs_posix-filesys_stat__64.c patch-src_runtime_c-libs_posix-procenv_time.c patch-src_runtime_c-libs_smlnj-date_mktime.c patch-src_runtime_c-libs_smlnj-runtime_gc-ctl.c patch-src_runtime_gc_c-globals-tbl.c patch-src_runtime_gc_heap-out-util.c patch-src_runtime_gc_mem-writer.c patch-src_runtime_kernel_main.c Log Message: Patch up some compiler warnings in the hope of fixing the crashy build. No such luck though... To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 pkgsrc/lang/smlnj/Makefile cvs rdiff -u -r1.23 -r1.24 pkgsrc/lang/smlnj/distinfo cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/smlnj/patches/patch-ao cvs rdiff -u -r0 -r1.1 \ pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_posix-filesys_stat.c \ pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_posix-filesys_stat__64.c \ pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_posix-procenv_time.c \ pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_smlnj-date_mktime.c \ pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_smlnj-runtime_gc-ctl.c \ pkgsrc/lang/smlnj/patches/patch-src_runtime_gc_c-globals-tbl.c \ pkgsrc/lang/smlnj/patches/patch-src_runtime_gc_heap-out-util.c \ pkgsrc/lang/smlnj/patches/patch-src_runtime_gc_mem-writer.c \ pkgsrc/lang/smlnj/patches/patch-src_runtime_kernel_main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1467574513140340 Content-Disposition: inline Content-Length: 13473 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/smlnj/Makefile diff -u pkgsrc/lang/smlnj/Makefile:1.32 pkgsrc/lang/smlnj/Makefile:1.33 --- pkgsrc/lang/smlnj/Makefile:1.32 Sun Jul 3 19:26:35 2016 +++ pkgsrc/lang/smlnj/Makefile Sun Jul 3 19:35:13 2016 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.32 2016/07/03 19:26:35 dholland Exp $ +# $NetBSD: Makefile,v 1.33 2016/07/03 19:35:13 dholland Exp $ # DISTNAME= boot.${BOX}-unix @@ -51,6 +51,9 @@ BUILD_ENV+= SMLNJ_HOME="${WRKDIR}" # the build uses patch directly (yuk) BUILD_ENV+= PATCH=${PATCH:Q} PATCH_ARGS=${PATCH_ARGS:Q} +# useful for debugging +#CFLAGS+= -Wall + # note that this includes bsd.prefs.mk .include "../../lang/smlnj/Makefile.common" Index: pkgsrc/lang/smlnj/distinfo diff -u pkgsrc/lang/smlnj/distinfo:1.23 pkgsrc/lang/smlnj/distinfo:1.24 --- pkgsrc/lang/smlnj/distinfo:1.23 Sun Jul 3 19:29:27 2016 +++ pkgsrc/lang/smlnj/distinfo Sun Jul 3 19:35:13 2016 @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.23 2016/07/03 19:29:27 dholland Exp $ +$NetBSD: distinfo,v 1.24 2016/07/03 19:35:13 dholland Exp $ SHA1 (smlnj-110.73/MLRISC.tgz) = 59a38a4a1c63cecf97764a99577b3f929b5ccbc9 RMD160 (smlnj-110.73/MLRISC.tgz) = dd951776482f37421a17701d67c051741691c6cb @@ -90,13 +90,22 @@ SHA1 (patch-aj) = 6318548da4c943c60fe63d SHA1 (patch-ak) = 6fb3d4444c75123dc8c5fa7bb6cea835c78ef6e3 SHA1 (patch-am) = 95f3e5a041163279f68e782469a30f6f765b7511 SHA1 (patch-an) = 3d750d5d20b2d3ab69b492eb60e27aded45ec3f7 -SHA1 (patch-ao) = 1c66024c5949269291cbf6f815baf6162db47d31 +SHA1 (patch-ao) = 1cf3dfb01314556bcb0cd61e2d0d1577e1cebc04 SHA1 (patch-ap) = af8b50c0f21e969e036064f5c808eaccc79d5c4b SHA1 (patch-aq) = 32d96ad2552d5ac914581686904e94a96e5ca059 SHA1 (patch-at) = cd7d23adaf8882e9b431d6581283fdb58044e05c SHA1 (patch-config___arch-n-opsys) = b0c952b0b9ed6312a115761fdbd4c30aaa208b4c +SHA1 (patch-src_runtime_c-libs_posix-filesys_stat.c) = d5a315ac342a8a59099ae9eb131c899250a2404f +SHA1 (patch-src_runtime_c-libs_posix-filesys_stat__64.c) = 2a3e1f6ffc8f688e3c2ebf8b5913481093feb0fa +SHA1 (patch-src_runtime_c-libs_posix-procenv_time.c) = 4c38da9110687b179237deef7fee389e0bbece4c +SHA1 (patch-src_runtime_c-libs_smlnj-date_mktime.c) = a3bcb173a99972ab65208f65083bb30a7e09ab67 +SHA1 (patch-src_runtime_c-libs_smlnj-runtime_gc-ctl.c) = 673d04282ef95093012a2c1e2b66d867357ee4ef +SHA1 (patch-src_runtime_gc_c-globals-tbl.c) = 19ac4ccc3ed0e784c1aeab0fe3ed781417540561 SHA1 (patch-src_runtime_gc_gc-stats.h) = af61db9d1f04e566d4c5c2bc5dcf4c6958f0ea78 +SHA1 (patch-src_runtime_gc_heap-out-util.c) = 214c673e57efda9346b200509a1beb48af2aa443 SHA1 (patch-src_runtime_gc_init-gc.c) = 5d1d5a13a51d732590dd4f375824bbc389a0525d +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_unix-prof.c) = 90a4b81e2a8532e4e06f29bfe42c55423a0f4154 SHA1 (patch-src_runtime_objs_mk.alpha32-dunix) = 9e3a36f4663cd685459f2fbde41b8c5f154bd9c2 Index: pkgsrc/lang/smlnj/patches/patch-ao diff -u pkgsrc/lang/smlnj/patches/patch-ao:1.2 pkgsrc/lang/smlnj/patches/patch-ao:1.3 --- pkgsrc/lang/smlnj/patches/patch-ao:1.2 Tue Jul 1 23:19:14 2003 +++ pkgsrc/lang/smlnj/patches/patch-ao Sun Jul 3 19:35:13 2016 @@ -1,8 +1,11 @@ -$NetBSD: patch-ao,v 1.2 2003/07/01 23:19:14 jtb Exp $ +$NetBSD: patch-ao,v 1.3 2016/07/03 19:35:13 dholland Exp $ ---- src/runtime/kernel/boot.c.orig +- use fgetc correctly +- fix uninitialized variable detected by gcc5 + +--- src/runtime/kernel/boot.c.orig 2005-11-02 22:24:39.000000000 +0000 +++ src/runtime/kernel/boot.c -@@ -124,7 +124,7 @@ +@@ -130,7 +130,7 @@ PVT ml_val_t BuildFileList (ml_state_t * ml_val_t fileList; # define SIZE_BUF_LEN 128 /* this should be plenty for two numbers */ char sizeBuf[SIZE_BUF_LEN]; @@ -11,3 +14,13 @@ $NetBSD: patch-ao,v 1.2 2003/07/01 23:19 numFiles = 0; +@@ -175,6 +175,9 @@ PVT ml_val_t BuildFileList (ml_state_t * + } + fclose (listF); + } ++ else { ++ *mbplp = 0; ++ } + + /* create the in-heap list */ + for (fileList = LIST_nil, i = numFiles; --i >= 0; ) { Added files: Index: pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_posix-filesys_stat.c diff -u /dev/null pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_posix-filesys_stat.c:1.1 --- /dev/null Sun Jul 3 19:35:13 2016 +++ pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_posix-filesys_stat.c Sun Jul 3 19:35:13 2016 @@ -0,0 +1,40 @@ +$NetBSD: patch-src_runtime_c-libs_posix-filesys_stat.c,v 1.1 2016/07/03 19:35:13 dholland Exp $ + +Be explicit about truncating times, and avoid compiler warning. + +--- src/runtime/c-libs/posix-filesys/stat.c~ 2000-06-01 18:34:03.000000000 +0000 ++++ src/runtime/c-libs/posix-filesys/stat.c +@@ -3,6 +3,7 @@ + * COPYRIGHT (c) 1995 by AT&T Bell Laboratories. + */ + ++#include + #include "ml-unixdep.h" + #include + #include +@@ -34,6 +35,7 @@ + PVT ml_val_t mkStatRep (ml_state_t *msp, struct stat *buf) + { + int ftype; ++ int32_t tmp; + ml_val_t mode, ino, dev, uid, gid, nlink, sr, atime, mtime, ctime; + + #if ((S_IFDIR != 0x4000) || (S_IFCHR != 0x2000) || (S_IFBLK != 0x6000) || (S_IFREG != 0x8000) || (S_IFIFO != 0x1000) || (S_IFLNK != 0xA000) || (S_IFSOCK != 0xC000)) +@@ -59,9 +61,14 @@ PVT ml_val_t mkStatRep (ml_state_t *msp, + WORD_ALLOC (msp, nlink, (Word_t)(buf->st_nlink)); + WORD_ALLOC (msp, uid, (Word_t)(buf->st_uid)); + WORD_ALLOC (msp, gid, (Word_t)(buf->st_gid)); +- INT32_ALLOC (msp, atime, buf->st_atime); +- INT32_ALLOC (msp, mtime, buf->st_mtime); +- INT32_ALLOC (msp, ctime, buf->st_ctime); ++ ++ /* XXX y2038 */ ++ tmp = buf->st_atime; ++ INT32_ALLOC (msp, atime, tmp); ++ tmp = buf->st_mtime; ++ INT32_ALLOC (msp, mtime, tmp); ++ tmp = buf->st_ctime; ++ INT32_ALLOC (msp, ctime, tmp); + + /* allocate the stat record */ + ML_AllocWrite(msp, 0, MAKE_DESC(11, DTAG_record)); Index: pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_posix-filesys_stat__64.c diff -u /dev/null pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_posix-filesys_stat__64.c:1.1 --- /dev/null Sun Jul 3 19:35:13 2016 +++ pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_posix-filesys_stat__64.c Sun Jul 3 19:35:13 2016 @@ -0,0 +1,41 @@ +$NetBSD: patch-src_runtime_c-libs_posix-filesys_stat__64.c,v 1.1 2016/07/03 19:35:13 dholland Exp $ + +Be explicit about truncating times, and avoid compiler warning. + +--- src/runtime/c-libs/posix-filesys/stat_64.c.orig 2004-11-24 20:27:30.000000000 +0000 ++++ src/runtime/c-libs/posix-filesys/stat_64.c +@@ -4,6 +4,8 @@ + * + * Copyright (c) 2004 by The Fellowship of SML/NJ + */ ++ ++#include + #include "ml-unixdep.h" + #include + #include +@@ -36,6 +38,7 @@ + PVT ml_val_t mkStatRep (ml_state_t *msp, struct stat *buf) + { + int ftype; ++ int32_t tmp; + ml_val_t mode, ino, dev, uid, gid, nlink, sr, atime, mtime, ctime, + szhi, szlo; + +@@ -68,9 +71,14 @@ PVT ml_val_t mkStatRep (ml_state_t *msp, + WORD_ALLOC (msp, szhi, (Word_t)0); + } + WORD_ALLOC (msp, szlo, (Word_t)(buf->st_size)); +- INT32_ALLOC (msp, atime, buf->st_atime); +- INT32_ALLOC (msp, mtime, buf->st_mtime); +- INT32_ALLOC (msp, ctime, buf->st_ctime); ++ ++ /* XXX y2038 */ ++ tmp = buf->st_atime; ++ INT32_ALLOC (msp, atime, tmp); ++ tmp = buf->st_mtime; ++ INT32_ALLOC (msp, mtime, tmp); ++ tmp = buf->st_ctime; ++ INT32_ALLOC (msp, ctime, tmp); + + /* allocate the stat record */ + ML_AllocWrite(msp, 0, MAKE_DESC(12, DTAG_record)); Index: pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_posix-procenv_time.c diff -u /dev/null pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_posix-procenv_time.c:1.1 --- /dev/null Sun Jul 3 19:35:13 2016 +++ pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_posix-procenv_time.c Sun Jul 3 19:35:13 2016 @@ -0,0 +1,30 @@ +$NetBSD: patch-src_runtime_c-libs_posix-procenv_time.c,v 1.1 2016/07/03 19:35:13 dholland Exp $ + +Be explicit about truncating times, and avoid compiler warning. + +--- src/runtime/c-libs/posix-procenv/time.c~ 2000-06-01 18:34:03.000000000 +0000 ++++ src/runtime/c-libs/posix-procenv/time.c +@@ -3,6 +3,7 @@ + * COPYRIGHT (c) 1995 by AT&T Bell Laboratories. + */ + ++#include + #include "ml-base.h" + #include "ml-values.h" + #include "ml-objects.h" +@@ -17,11 +18,14 @@ + ml_val_t _ml_P_ProcEnv_time (ml_state_t *msp, ml_val_t arg) + { + time_t t; ++ int32_t tt; + ml_val_t res; + + t = time (NIL(time_t*)); + +- INT32_ALLOC(msp, res, t); ++ /* XXX y2038 */ ++ tt = t; ++ INT32_ALLOC(msp, res, tt); + return res; + + } /* end of _ml_P_ProcEnv_time */ Index: pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_smlnj-date_mktime.c diff -u /dev/null pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_smlnj-date_mktime.c:1.1 --- /dev/null Sun Jul 3 19:35:13 2016 +++ pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_smlnj-date_mktime.c Sun Jul 3 19:35:13 2016 @@ -0,0 +1,29 @@ +$NetBSD: patch-src_runtime_c-libs_smlnj-date_mktime.c,v 1.1 2016/07/03 19:35:13 dholland Exp $ + +Use standard headers. +Be explicit about truncating times, and avoid compiler warning. + +--- src/runtime/c-libs/smlnj-date/mktime.c~ 2007-06-01 16:19:33.000000000 +0000 ++++ src/runtime/c-libs/smlnj-date/mktime.c +@@ -3,6 +3,8 @@ + * COPYRIGHT (c) 1995 AT&T Bell Laboratories. + */ + ++#include ++#include + #include + #include "ml-base.h" + #include "ml-c.h" +@@ -40,8 +41,11 @@ ml_val_t _ml_Date_mktime (ml_state_t *ms + } + else { + ml_val_t res; ++ /* XXX y2038 */ ++ int32_t tt; + +- INT32_ALLOC(msp, res, t); ++ tt = t; ++ INT32_ALLOC(msp, res, tt); + return res; + } + Index: pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_smlnj-runtime_gc-ctl.c diff -u /dev/null pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_smlnj-runtime_gc-ctl.c:1.1 --- /dev/null Sun Jul 3 19:35:13 2016 +++ pkgsrc/lang/smlnj/patches/patch-src_runtime_c-libs_smlnj-runtime_gc-ctl.c Sun Jul 3 19:35:13 2016 @@ -0,0 +1,14 @@ +$NetBSD: patch-src_runtime_c-libs_smlnj-runtime_gc-ctl.c,v 1.1 2016/07/03 19:35:13 dholland Exp $ + +Use standard headers. + +--- src/runtime/c-libs/smlnj-runtime/gc-ctl.c~ 2005-05-05 16:25:12.000000000 +0000 ++++ src/runtime/c-libs/smlnj-runtime/gc-ctl.c +@@ -5,6 +5,7 @@ + * General interface for GC control functions. + */ + ++#include + #include "ml-base.h" + #include "ml-values.h" + #include "ml-state.h" Index: pkgsrc/lang/smlnj/patches/patch-src_runtime_gc_c-globals-tbl.c diff -u /dev/null pkgsrc/lang/smlnj/patches/patch-src_runtime_gc_c-globals-tbl.c:1.1 --- /dev/null Sun Jul 3 19:35:13 2016 +++ pkgsrc/lang/smlnj/patches/patch-src_runtime_gc_c-globals-tbl.c Sun Jul 3 19:35:13 2016 @@ -0,0 +1,14 @@ +$NetBSD: patch-src_runtime_gc_c-globals-tbl.c,v 1.1 2016/07/03 19:35:13 dholland Exp $ + +Use standard headers. + +--- src/runtime/gc/c-globals-tbl.c~ 2000-06-01 18:34:03.000000000 +0000 ++++ src/runtime/gc/c-globals-tbl.c +@@ -6,6 +6,7 @@ + * in the ML heap (e.g., references to C functions). + */ + ++#include + #include "ml-base.h" + #include "tags.h" + #include "ml-values.h" Index: pkgsrc/lang/smlnj/patches/patch-src_runtime_gc_heap-out-util.c diff -u /dev/null pkgsrc/lang/smlnj/patches/patch-src_runtime_gc_heap-out-util.c:1.1 --- /dev/null Sun Jul 3 19:35:13 2016 +++ pkgsrc/lang/smlnj/patches/patch-src_runtime_gc_heap-out-util.c Sun Jul 3 19:35:13 2016 @@ -0,0 +1,14 @@ +$NetBSD: patch-src_runtime_gc_heap-out-util.c,v 1.1 2016/07/03 19:35:13 dholland Exp $ + +Use standard headers. + +--- src/runtime/gc/heap-out-util.c~ 2000-06-01 18:34:03.000000000 +0000 ++++ src/runtime/gc/heap-out-util.c +@@ -5,6 +5,7 @@ + * Utility routines to export (or blast) an ML heap image. + */ + ++#include + #include "ml-base.h" + #include "heap.h" + #include "ml-values.h" Index: pkgsrc/lang/smlnj/patches/patch-src_runtime_gc_mem-writer.c diff -u /dev/null pkgsrc/lang/smlnj/patches/patch-src_runtime_gc_mem-writer.c:1.1 --- /dev/null Sun Jul 3 19:35:13 2016 +++ pkgsrc/lang/smlnj/patches/patch-src_runtime_gc_mem-writer.c Sun Jul 3 19:35:13 2016 @@ -0,0 +1,14 @@ +$NetBSD: patch-src_runtime_gc_mem-writer.c,v 1.1 2016/07/03 19:35:13 dholland Exp $ + +Use standard headers. + +--- src/runtime/gc/mem-writer.c~ 2000-06-01 18:34:03.000000000 +0000 ++++ src/runtime/gc/mem-writer.c +@@ -5,6 +5,7 @@ + * An implementation of the abstract writers on top of memory regions. + */ + ++#include + #include "ml-base.h" + #include "writer.h" + Index: pkgsrc/lang/smlnj/patches/patch-src_runtime_kernel_main.c diff -u /dev/null pkgsrc/lang/smlnj/patches/patch-src_runtime_kernel_main.c:1.1 --- /dev/null Sun Jul 3 19:35:13 2016 +++ pkgsrc/lang/smlnj/patches/patch-src_runtime_kernel_main.c Sun Jul 3 19:35:13 2016 @@ -0,0 +1,14 @@ +$NetBSD: patch-src_runtime_kernel_main.c,v 1.1 2016/07/03 19:35:13 dholland Exp $ + +Use standard headers. + +--- src/runtime/kernel/main.c~ 2005-05-05 16:25:12.000000000 +0000 ++++ src/runtime/kernel/main.c +@@ -6,6 +6,7 @@ + */ + + #include ++#include + #include + #include "ml-base.h" + #include "ml-options.h" --_----------=_1467574513140340--