From owner-svn-ports-all@FreeBSD.ORG Tue Oct 14 17:50:27 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 39093B89; Tue, 14 Oct 2014 17:50:27 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 24D92DA5; Tue, 14 Oct 2014 17:50:27 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s9EHoRSh064559; Tue, 14 Oct 2014 17:50:27 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s9EHoQ36064555; Tue, 14 Oct 2014 17:50:26 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201410141750.s9EHoQ36064555@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Tue, 14 Oct 2014 17:50:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r370875 - head/lang/smlnj/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2014 17:50:27 -0000 Author: pi Date: Tue Oct 14 17:50:26 2014 New Revision: 370875 URL: https://svnweb.freebsd.org/changeset/ports/370875 QAT: https://qat.redports.org/buildarchive/r370875/ Log: lang/smlnj: add missing two patches PR: 193431 Pointy hat to: myself Added: head/lang/smlnj/files/do-patch-base_runtime_include_ml-unixdep.h (contents, props changed) head/lang/smlnj/files/do-patch-base_system_smlnj_installer_generic-install.sml (contents, props changed) Added: head/lang/smlnj/files/do-patch-base_runtime_include_ml-unixdep.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/smlnj/files/do-patch-base_runtime_include_ml-unixdep.h Tue Oct 14 17:50:26 2014 (r370875) @@ -0,0 +1,34 @@ +--- base/runtime/include/ml-unixdep.h.orig 2014-08-17 21:09:56.000000000 +0200 ++++ base/runtime/include/ml-unixdep.h 2014-08-23 22:24:36.475122070 +0200 +@@ -33,6 +33,7 @@ + * HAS_UCONTEXT if signal handlers have a ucontext_t argument. + * HAS_STRERROR if the system provides the ISO C strerror function. + * INT_GIDLIST if the second argument to getgroups is int[]. ++ * HAS_MKSTEMP if OS provides the POSIX mkstemp function. + * + * Note that only one of the following sets of symbols should be defined: + * { HAS_MMAP, HAS_ANON_MMAP, HAS_VM_ALLOCATE } +@@ -295,6 +296,7 @@ + # define HAS_ILOGB + # define HAS_SIGCONTEXT + # define HAS_STRERROR ++# define HAS_MKSTEMP + + /* FreeBSD uses MAP_ANON for MAP_ANONYMOUS */ + # define MAP_ANONYMOUS MAP_ANON +@@ -377,6 +379,15 @@ + # define __EXTENSIONS__ + #endif + ++#if defined(OPSYS_FREEBSD) ++# if defined(INCLUDE_FREEBSD_I386__TYPES) ++# include ++# include INCLUDE_FREEBSD_I386__TYPES ++# endif ++# if defined(INCLUDE_FREEBSD_I386_SIGNAL) ++# include INCLUDE_FREEBSD_I386_SIGNAL ++# endif ++#endif + #include INCLUDE_TYPES_H + #include + #include Added: head/lang/smlnj/files/do-patch-base_system_smlnj_installer_generic-install.sml ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/smlnj/files/do-patch-base_system_smlnj_installer_generic-install.sml Tue Oct 14 17:50:26 2014 (r370875) @@ -0,0 +1,49 @@ +--- base/system/smlnj/installer/generic-install.sml.orig 2014-08-23 04:18:09.000000000 +0200 ++++ base/system/smlnj/installer/generic-install.sml 2014-08-28 21:51:06.000000000 +0200 +@@ -233,28 +233,26 @@ + (* ------------------------------ *) + + (* parse the targets file *) +- fun loop (ml, srcReqs, allsrc) = ++ fun loop (ml, allsrc) = + case getInputTokens s of +- NONE => (TextIO.closeIn s; (ml, srcReqs, allsrc)) ++ NONE => (TextIO.closeIn s; (ml, allsrc)) + | SOME [x as ("dont_move_libraries" | "move_libraries")] => + (warn ["\"", x, "\" no longer supported", + " (installer always moves libraries)\n"]; +- loop (ml, srcReqs, allsrc)) +- | SOME ["request", "src-smlnj"] => loop (ml, srcReqs, true) +- | SOME ["request", module] => if SS.member(allmoduleset, module) +- then loop (ml, module :: srcReqs, allsrc) +- else loop (module :: ml, srcReqs, allsrc) +- | SOME [] => loop (ml, srcReqs, allsrc) ++ loop (ml, allsrc)) ++ | SOME ["request", "src-smlnj"] => loop (ml, true) ++ | SOME ["request", module] => loop (module :: ml, allsrc) ++ | SOME [] => loop (ml, allsrc) + | SOME l => fail ["ill-formed targets line: ", tokenLine l, "\n"] + +- val (modules, srcReqs, allsrc) = loop ([], [], false) ++ val (modules, allsrc) = loop ([], false) + + (* now resolve dependencies; get full list of modules + * in correct build order: *) + val modules = resolve (modules, depfile) + val moduleset = SS.addList (SS.empty, modules) + val srcmoduleset = if allsrc then SS.union (moduleset, allmoduleset) +- else SS.addList (moduleset, srcReqs) ++ else moduleset + + (* fetch and unpack source trees, using auxiliary helper command + * which takes the root directory as its first and the module +@@ -386,7 +384,8 @@ + salist := (fn () => standalone args) :: (!salist) + in case SM.find (actions, module) of + SOME al => app perform (rev al) +- | NONE => fail ["unknown module: ", module, "\n"] ++ | NONE => if SS.member(allmoduleset, module) then () ++ else fail ["unknown module: ", module, "\n"] + end + in + (command_pathconfig "bindir"; (* dummy -- for CM make tool *)