summaryrefslogtreecommitdiff
path: root/lang/ocaml
AgeCommit message (Collapse)AuthorFilesLines
2017-09-21ocaml: Fix PKGMANDIR.jperkin2-175/+177
Add a PRINT_PLIST_AWK to help avoid this being removed again in the future, though with all the PLIST_VARS used it's still difficult to keep updated. It is probably worth splitting the vars into individual PLIST files instead.
2017-09-10Honor LDFLAGS again. Fixes RELRO build.wiz3-9/+65
2017-09-08Updated package to latest version, 4.05.jaapb24-1091/+1172
Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-07-18Support -Wl,-z in ocamlmklib. Needed for RELRO support e.g. in ocaml-lablgtk.wiz3-9/+18
Bump PKGREVISION.
2017-07-17Honor LDFLAGS. Fixes RELRO build.wiz6-11/+114
2017-07-17Corrected some PLIST duplicationjaapb1-7/+1
2017-07-12A preexisting pkgsrc patch changed the "man page output suffix" fromhe3-3/+29
.3o to just .3, so adapt this test's Makefile to follow suit. Brings the number of failing self-tests down from 1 to 0. Bump PKGREVISION.
2017-07-11Add the required glue to make this work again on NetBSD/powerpc.he5-15/+51
Pkgsrc changes: * Add required macros for accessing ucontext for NetBSD/powerpc * Omit files from PLIST.opt which are in PLIST.natdynlink. So far macppc doesn't do "natdynlink", tests are failing. * Adapt Makefile to features enabled on NetBSD/powerpc. * Bump PKGREVISION. The self-test results are nearly the same as on NetBSD/i386, with one test failing, difference is one unexpected failure related to native dynlink which I thought I had not enabled, and which obviously needs more attention since it tries to reference a Linux linker script. ... Summary: 637 tests passed 13 tests skipped 1 tests failed 1 unexpected errors 652 tests considered List of failed tests: tests/tool-ocamldoc-man/Inline_records.mli List of unexpected errors: tests/lib-dynlink-native ...
2017-07-11Updated package to newest version, 4.04.2. Changes include:jaapb3-10/+10
OCaml 4.04.2 (23 Jun 2017): --------------------------- ### Security fix: - Local privilege escalation issue with ocaml binaries. (Damien Doligez, report by Eric Milliken, review by Xavier Leroy) OCaml 4.04.1 (14 Apr 2017): --------------------------- ### Code generation and optimizations: - Consider arrays of length zero as constants when using Flambda. (Pierre Chambart, review by Mark Shinwell and Leo White) ### Standard library: - fix a bug in Set.map as introduced in 4.04.0 (Gabriel Scherer, report by Thomas Leonard) ### Tools: - ocamldoc, avoid nested <pre> tags in module description. (Florian Angeletti, report by user 'kosik') - ocamldoc, wrong Latex output for variant types with constructors without arguments. (Florian Angeletti, report by Xavier Leroy) ### Build system: - New flexlink target in Makefile.nt to bootstrap the flexlink binary only, rather than the flexlink binary and the FlexDLL C objects. (David Allsopp) ### Bug fixes - Str.regexp raises "Invalid_argument: index out of bounds" (Damien Doligez, report by John Whitington) - Fix ocamlmklib with bootstrapped FlexDLL. Bootstrapped FlexDLL objects are now installed to a subdirectory flexdll of the Standard Library which allows the compilers to pick them up explicitly and also ocamlmklib to include them without unnecessarily adding the entire Standard Library. (David Allsopp) - fix incorrect timestamps returned by Unix.stat on Windows when either TZ is set or system date is in DST. (David Allsopp, report and initial fix by Nicolás Ojeda Bär, review and superior implementation suggestion by Xavier Leroy) - s390x: Fix address of caml_raise_exn in native dynlink modules (Richard Jones, review by Xavier Leroy) - ensure 16 byte stack alignment inside caml_allocN on x86-64 for ocaml build with WITH_FRAME_POINTERS defined (Christoph Cullmann) - fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - a case of double free in the systhreads library (POSIX implementation) (Xavier Leroy, report by Chet Murthy) - catch uncaught exception when unknown files are passed as argument (regression in 4.04.0) (Bernhard Schommer, review by Florian Angeletti and Gabriel Scherer, report by Stephen Dolan) - Memory cannot be released after calling Bigarray.Genarray.change_layout. (Damien Doligez and Xavier Leroy, report by Liang Wang) - Fix segfault in Unix.create_process on Windows caused by wrong header configuration. (David Allsopp) - add dynlink options to ocamlbytecomp.cmxa to allow ocamlopt.opt to load plugins. See http://github.com/OCamlPro/ocamlc-plugins for examples. (Fabrice Le Fessant, review by David Allsopp) - caml-types.el: Fix missing format argument, so that it can show kind of call at point correctly. (Chunhui He) - Allow Windows CRLF line-endings in ocamlyacc on Unix and Cygwin. (David Allsopp, review by Damien Doligez and Xavier Leroy) - Fix segfault in Sys.runtime_parameters when exception backtraces are enabled. (Olivier Andrieu)
2017-03-27Enable profiling on SunOS/x86_64. Note to DragonFly developers that thejperkin3-11/+11
existing patch for enabling profiling for that platform is clearly incorrect, but I'm not going to change it without being able to test it.
2017-03-27Move some files from PLIST.prof to the main PLIST, as the install phasejperkin2-6/+6
creates symlinks for them if profiling is not supported by the target.
2017-03-27Move raw_spacetime_lib components to a separate PLIST file, they are onlyjperkin4-10/+16
built for native 64-bit targets.
2017-03-23Restore PKGMANDIR support lost in previous update.jperkin1-173/+173
2017-03-23Restore x86_64-*-solaris support lost in previous update.jperkin2-10/+18
2016-12-30Updated package to latest version, ocaml 4.04.0. This involved removingjaapb18-562/+453
some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-11-04lang/ocaml: regenerate checksum for configure patchmarino1-2/+2
distinfo from cvs: trusted to convey hashes patches from same cvs: untrusted thus require hashes to verify absurdness: Any intruder that can modify the patch in cvs can also modify the distinfo file. Only externally hosted patches require hashes. Hopefully some day thousands of future commits to distinfo files everywhere can be avoided by making the framework smarter. </rant>
2016-11-04lang/ocaml: update configure patch to fix packaging on DragonFlymarino1-6/+41
2016-08-24Update HOMEPAGE.wiz1-2/+2
2016-07-15Fix build on 32-bit SunOS with 64-bit native assembler.jperkin2-5/+7
2016-07-13Don't use GNU ld flags on x86_64 SunOS. Fixes various dependencies.jperkin3-12/+20
Bump PKGREVISION.
2016-07-13Fix build on 32-bit SunOS.jperkin2-18/+21
2016-07-07Use the GCC front-end for linking on SunOS, resolves issues with SSPjperkin3-5/+15
and passing incompatible ld arguments. Bump PKGREVISION.
2016-07-06Fix _XOPEN_SOURCE failure on SunOS.jperkin2-1/+18
2016-07-06Move profiling files to the correct PLIST.jperkin3-7/+7
2016-05-26Add support for CFLAGSkhorben1-3/+3
This fixes the build with PKGSRC_MKPIE.
2016-05-19PKGMANDIR fixes.jperkin1-22/+22
2016-05-05Recursive revbump associated with ocaml update.jaapb1-2/+2
2016-05-05Updated package to latest version, 4.03.0. Also removed some obsolete andjaapb36-689/+827
unneeded patches. The list of changes is a thousand lines long, so I'm not including it here: details can be found in the Changes file in the top directory of the package after extraction.
2016-02-29Support natdynlink on SunOS. Bump PKGREVISION.jperkin3-18/+21
2016-02-29Ensure linker arguments get passed to ocamlmklib correctly.jperkin2-5/+10
2016-02-25Use OPSYSVARS.jperkin1-6/+4
2016-01-16Added some wrapper utilities to OCAMLBIN_WRAPPERS variablejaapb1-2/+2
2015-12-29Add patch comments.dholland33-66/+99
2015-11-03Add SHA512 digests for distfiles for lang categoryagc1-1/+2
Problems found with existing digests: Package nhc98 distfile nhc98src-1.22.tar.gz a8adc8f22371998ee0657bc0e01058a57d876abc [recorded] 81975fcb5f1dda5efeaabc30ce8c6dceae55e591 [calculated] Problems found locating distfiles: Package gcc-aux: missing distfile ada-bootstrap.i386.dragonfly.36A.tar.bz2 Package gcc-aux: missing distfile ada-bootstrap.i386.freebsd.84.tar.bz2 Package gcc-aux: missing distfile ada-bootstrap.x86_64.dragonfly.36A.tar.bz2 Package gcc-aux: missing distfile ada-bootstrap.x86_64.freebsd.84.tar.bz2 Package gcc-aux: missing distfile ada-bootstrap.x86_64.solaris.511.tar.bz2 Package gcc5-aux: missing distfile ada-bootstrap.i386.dragonfly.36A.tar.bz2 Package gcc5-aux: missing distfile ada-bootstrap.i386.freebsd.84.tar.bz2 Package gcc5-aux: missing distfile ada-bootstrap.x86_64.dragonfly.36A.tar.bz2 Package gcc5-aux: missing distfile ada-bootstrap.x86_64.freebsd.84.tar.bz2 Package gcc5-aux: missing distfile ada-bootstrap.x86_64.solaris.511.tar.bz2 Package ghc7: missing distfile ghc-7.6.3-boot-i386-unknown-freebsd.tar.xz Package icc11: missing distfile l_cproc_p_11.1.080.tgz Package jini: missing distfile jini-1_2_1_001-src.zip Package oo2c: missing distfile oo2c_32-2.0.11.tar.bz2 Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-freebsd-10-amd64-20150301.tar.xz Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-5-i386-20150301.tar.xz Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-6-i386-20150301.tar.xz Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-earmv6hf-20150306.tar.xz Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-sparc64-20150301.tar.xz Package openjdk7: missing distfile openjdk7/bootstrap-jdk7u60-bin-dragonfly-3.8-amd64-20140719.tar.bz2 Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-freebsd-10-amd64-20150301.tar.xz Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-5-i386-20150301.tar.xz Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-6-i386-20150301.tar.xz Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-earmv6hf-20150306.tar.xz Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-sparc64-20150301.tar.xz Package openjdk8: missing distfile openjdk7/bootstrap-jdk7u60-bin-dragonfly-3.8-amd64-20140719.tar.bz2 Package oracle-jdk8: missing distfile jdk-8u60-linux-i586.tar.gz Package oracle-jdk8: missing distfile jdk-8u60-solaris-x64.tar.gz Package oracle-jre8: missing distfile jre-8u60-linux-i586.tar.gz Package oracle-jre8: missing distfile jre-8u60-solaris-x64.tar.gz Package sun-jdk6: missing distfile jdk-6u45-linux-i586.bin Package sun-jdk6: missing distfile jdk-6u45-solaris-i586.sh Package sun-jdk7: missing distfile jdk-7u72-linux-i586.tar.gz Package sun-jdk7: missing distfile jdk-7u72-solaris-i586.tar.gz Package sun-jre6: missing distfile jce_policy-6.zip Package sun-jre6: missing distfile jre-6u45-linux-x64.bin Package sun-jre6: missing distfile jre-6u45-solaris-x64.sh Package sun-jre7: missing distfile jre-7u72-linux-i586.tar.gz Package sun-jre7: missing distfile jre-7u72-solaris-i586.tar.gz Otherwise, existing SHA1 digests verified and found to be the same on the machine holding the existing distfiles (morden). All existing SHA1 digests retained for now as an audit trail.
2015-09-30Previous update incorrectly introduced .p.cmt files into the common PLIST.fhajny2-51/+51
Move into PLIST.prof, fix build on several platforms.
2015-09-08Avoid UB of left-shift of negative values by replacing it with ajoerg3-4/+17
multiplication. Remove duplicate PKGREVISION. Bump revision.
2015-09-07Now that _STRIPFLAG_INSTALL is disabled by default on Darwin, remove manualjperkin2-8/+3
settings of INSTALL_UNSTRIPPED=yes for Darwin in individual packages.
2015-09-02PLIST.prof is now needed on FreeBSD x86_64. See build report just in.dholland1-2/+3
PKGREVISION -> 1.
2015-08-22Patch for OS X 32-bit ABI, as supplied by Mansour Moufid. See alsojaapb4-25/+49
http://mail-index.netbsd.org/pkgsrc-users/2015/07/22/msg021910.html
2015-08-09Added patch for x11/ocaml-graphics. This does not change any functionality,jaapb2-1/+17
but is necessary for a Makefile substitution in that package.
2015-08-07This is an update of lang/ocaml to its latest version, 4.02.3. Changesjaapb6-211/+628
include: Bug fixes: - Top-level custom printing for GADTs: interface change in 4.02.2 (Grégoire Henry, report by Jeremy Yallop) - corrupted final_table (ygrek) - R#6926: Regression: ocamldoc lost unattached comment (Damien Doligez, report by François Bobot) - Aliased result type of GADT constructor results in assertion failure (Jacques Garrigue) Feature wishes: - PR#6691: install .cmt[i] files for stdlib and compiler-libs (David Sheets, request by Gabriel Radanne) - New primitive: caml_alloc_dummy_function (Hugo Heuzard)
2015-07-04Removed a superfluous (and breakage-causing) -p from a patch. Thanks tojaapb2-6/+6
BulkTracker for pointing me to this bug.
2015-06-30Updated lang/ocaml to newest version 4.02.2. Changes apart from bugfixesjaapb19-172/+139
include: - #6583: add a new class of binary operators with the same syntactic precedence as method calls; these operators start with # followed by a non-empty sequence of operator symbols (for instance #+, #!?). It is also possible to use '#' as part of these extra symbols (for instance ##, or #+#); this is rejected by the type-checker, but can be used e.g. by ppx rewriters. * #6016: add a "nonrec" keyword for type declarations - #6600: make -short-paths faster by building the printing map incrementally - #6642: replace $CAMLORIGIN in -ccopt with the path to cma or cmxa to output an object file with included runtime and autolink libraries - #6845: -no-check-prims to tell ocamlc not to check primitives in runtime - G#149: Attach documentation comments to parse tree - G#159: Better locations for structure/signature items - #5958: generalized polymorphic #install_printer - #6237: explicit "infer" tag to control or disable menhir --infer - #6625: pass -linkpkg to files built with -output-obj. - #6712: Ignore common VCS directories - #6720: pass -g to C compilers when tag 'debug' is set - #6733: add .byte.so and .native.so targets to pass -output-obj -cclib -shared. - #6733: "runtime_variant(X)" to pass -runtime-variant X option. - #6774: new menhir-specific flags "only_tokens" and "external_tokens(Foo)" - #6285: Add support for nanosecond precision in Unix.stat() - #6781: Add higher baud rates to Unix termios - #6834: Add Obj.{first,last}_non_constant_constructor_tag - #6078: Release the runtime system when calling caml_dlopen - #6675: GC hooks - #5418 (comments) : generate dependencies with $(CC) instead of gcc - #6266: Cross compilation for iOs, Android etc - Update instructions for x86-64 PIC mode and POWER architecture builds - #6452, G#140: add internal suport for custom printing formats - #6641: add -g, -ocamlcflags, -ocamloptflags options to ocamlmklib - #6693: also build libasmrun_shared.so and lib{asm,caml}run_pic.a - #6842: export Typemod.modtype_of_package - G#139: more versatile specification of locations of .annot - G#157: store the path of cmos inside debug section at link time - G#191: Making gc.h and some part of memory.h public
2015-04-17Extended gdt's i386 ucontext signal handler patch to amd64. This shouldn'tjaapb3-7/+31
affect anything that isn't NetBSD/amd64.
2015-04-02Avoid using the "3o" man page section, since plist-man.awk can't handle it.tnn6-151/+179
Instead treat ocaml like we do with lang/perl5 and install the man pages in the "3" section in /usr/pkg/lib/ocaml/man/man3.
2015-03-17Detect 64-bit SunOS.jperkin2-11/+13
2015-03-14Fix i386 signal handler.gdt2-11/+34
ocaml has a twisty maze of ifdefs to define signal handler types and obtain the faulting address. NetBSD no longer has sigcontext (available to user space) and instead the more POSIXy ucontext; this commit changes the patch to use that. Fixes build on i386, and the resulting package can run unison. In theory !i386 is unchanged.
2015-03-11ocamlrun needs dlopentnn1-1/+2
2015-01-26Added a patch that fixes signal handlers on i386.jaapb2-6/+16
2015-01-20This is an update of OCaml to 4.02.1. Changes are listed below. There is alsojaapb16-37/+254
a new patch to include a -pkgsrc-runtime compilation option. This option is needed to compile devel/pcre-ocaml due to buildlink shenanigans (see http://mail-index.netbsd.org/pkgsrc-users/2014/12/18/msg020800.html ) Changes: (Changes that can break existing programs are marked with a "*") Standard library: * Add optional argument ?limit to Arg.align. - Bug in Makefile.nt: won't stop on error - Improve MSVC build - Configure doesn't detect features correctly on Haiku - Non-exhaustive matching warning message for open types is confusing - fix quadratic-time algorithm in Consistbl.extract. - Add stack overflow handling for native code (OpenBSD i386 and amd64) - broken semantics of %(%) when substitued by a box - legacy support for %.10s - better documentation of flag # in format strings - Bytes and CamlinternalFormat missing from threads stdlib.cma - -dsource omits parens for `List ((`String "A")::[]) in patterns - __MODULE__ aborts the compiler if the module name cannot be inferred - Debug section is sometimes not readable when using -pack - Missing command line options for ocamldoc - fix race condition when retrieving backtraces - String.sub throws Invalid_argument("Bytes.sub") - Fix ocamldebug module source lookup - Inclusion of packs failing to run module initializers - infinite loop in Mtype.remove_aliases - compilation fails with Env.Error(_) - -short-paths and signature inclusion errors - Fatal error with recursive modules - Recursive module containing alias causes Segmentation fault - Some bugs in generative functors - ocamldep support for "-open M" - Code generation errors for ARM - Improve Windows (MSVC and mingw) build - ocamlbuild: add -bin-annot when using -pack - Fatal error when tracing a function with abstract type - ocamlbuild: add an -ocamlmklib option to change the ocamlmklib command