Commit graph

18 commits

Author SHA1 Message Date
asau
1c8e64c7dd Update to Poly/ML 5.6.
Changes include major improvements of FFI.
2016-03-01 19:50:10 +00:00
dholland
41c6e246f4 Add patch comments. 2015-12-29 23:34:43 +00:00
agc
54622f28e2 Add SHA512 digests for distfiles for lang category
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-11-03 22:50:31 +00:00
asau
d740bbabb1 Make compiler wrapper add RPATH. 2014-09-29 00:55:00 +00:00
asau
b310c74377 Use C++ frontend to link the code.
This makes the package build and function on FreeBSD 10 with Clang.
2014-09-24 09:47:41 +00:00
asau
9a60e2f6b3 Provide flag to set correct RPATH in pkg-config. 2014-09-23 15:13:23 +00:00
asau
f9885687af Update to Poly/ML 5.5.2
Most of the changes are bug fixes.  One major fix was to the
intermediate code optimiser reported back in September.
Other changes are the addition of PrettyStringWithWidth and
PrettyLineBreak constructors to the PolyML.pretty datatype,
Thread.Thread.numPhysicalProcessors to return the number of
physical processors and printing ?.t in circumstances where t is
bound to a different type.  The debugger has been extended to
include structures and the arguments to functors.
2014-09-13 18:23:38 +00:00
asau
eae7f1779e Fix compilation script to actually work. 2014-03-05 22:14:17 +00:00
asau
828af5795b Update to Poly/ML 5.5.1
Contributed by Imre Vadasz on pkgsrc-users (slightly adapted).


Changes in Poly/ML Version 5.5.1

Major New Features and Changes

  * The intermediate code optimiser has been largely rewritten.
    The optimiser now detects various additional cases where a
    closures or tuples can be stored on the stack rather than
    requiring heap storage
  * The match compiler that processes a sequence of patterns in a
    case or fun-binding has been reworked. This now handles
    complex matches that used to result in a code blow-up
  * A"polyc" script has been added to aid compiling and linking
    ML code to produce a stand-alone binary. This is intended as
    an analogue of cc and gcc. The easiest way to build a binary
    is now to put the ML code into a file (foo.ML) with a
    function "main" that is the entry point to the code. Then run
    polyc -o foo foo.ML
    The script takes care of any libraries that may be required.
    It does require that the poly binary and libraries have been
    installed to the location that was specified in the configure
    script.
  * Set the default in the configure script not to build a shared
    library. This can be overidden with --enable-shared. The
    advantage of this is that binaries created from Poly/ML,
    including poly itself, do not require libpolyml at run-time.
  * Additions and changes to the command-line options when
    starting the ML top-level
      + The --eval option can be followed by a string which is
        compiled and executed before the top-level is entered
      + The --script option can be used to allow ML code to be
        run as a script (a "shell script") in Unix. It reads the
        file name given as the last option, skipping the first
        line if it begins #!. Implies -q option. Note: because of
        the way scripts pass their options if used this must be
        the only option. To use ML as a script put the ML code
        into a file, put
        #! /usr/local/bin/poly --script
        as the first line, modifying the path depending on where
        poly is installed, and set the file to have execute
        permission.
      + The -q option now sets the print depth to zero as well as
        suppressing the start-up message
      + The input prompt (> or #) is only produced if the input
        is a terminal. The -i option should be used to cause the
        prompt to be produced if, for example, the input is from
        a pipe.

Minor Additions and Changes

  * The -H option now sets the initial heap size rather than
    being a synonym for --minheap
  * Add large file support
  * When printing the fields a record print them in alphabetical
    order rather than the system order used in the compiler
  * Convert the representation of the statistics to use ASN1
    encoding. This is byte-order and word-length independent and
    allows 32-bit Poly/ML to read the statistics of 64-bit Poly/
    ML on the same machine and vice-versa.
  * Add a substructure Exception to the PolyML structure to hold
    all the functions related to exceptions.
  * The default for --gc-threads is now the number of independent
    physical processors. Hyperthreaded cores are counted as
    single cores rather than dual cores.
  * Improve the GC and allocation code for very large arrays
  * Improve handling of OS.Process.system in Cygwin
  * Improved versions of Word32 and Word64. These are used for
    SystemWord and LargeWord.

Bug Fixes

  * Fix Word32.fromLargeInt which could return values outside the
    range of Word32
  * Fix segfault in PolyML.stackTrace
  * Fix errors in conversion of string to real values
  * Fix segfault when a thread created in foreign code called an
    ML callback
  * Fix profiler which could often report UNKNOWN function
  * Fix bug with overlapped areas in ArraySlice.copy
  * Fix InternalError exception with ML code where a fixed record
    type could not be found
  * Fix bug with equality on BoolVector.vector
  * Raise the correct exception (Size) for negative lengths in
    canInput and inputN
  * Fix Real.fromInt with an argument that was an arbitrary
    precision number in the long form
  * Fix error in the timing information printed with
    PolyML.timing true in Windows.
  * Fix occasional problem with input/output as a result of the
    stream token being represented by an immutable value but then
    being checked for equality
  * Fix bug in X86-64 code-generator with literal constants that
    do not fit in 32-bits. It could result in an "InternalError:
    gen32s: invalid word" exception. Includes regression test.
  * Fix LargWord.fromInt which was wrong for large negative
    values
  * Fix bug in power-of-two function in code-generator. This
    caused an infinite loop with Word.* when multiplying by a
    constant with the highest bit set and not a power of two.
  * Fix bug in structure matching code
  * Use ELF_Rela relocation structures for all relocations in
    X86-64. Some systems e.g. Solaris require this.
2013-12-15 18:35:22 +00:00
asau
027ed6f51f Use pkgsrc libffi instead of bundled one. Ride the update. 2012-10-08 14:34:06 +00:00
asau
40c33e628f Regenerate. 2012-10-08 14:33:32 +00:00
asau
131feab096 Update to Poly/ML 5.5
Changes in Poly/ML Version 5.5

Major New Features

    Storage management rewrite. The storage management system
    has been almost completely rewritten. The garbage collector
    is parallelised and a new mechanism has been introduced to
    adjust the size of the heap. When space is very short an
    extra pass may be triggered that merges immutable cells with
    the same contents. Thanks to Tobias Nipkow and the Technical
    University of Munich for support for this work.

    PolyML.shareCommonData has been parallelised and now uses a
    dynamic stack to avoid a possible segfault if the C stack
    overflows with deep data structures.

    There is now support for 64-bit on Windows using either
    mingw or Visual Studio.

    Added a PolyML.Statistics structure to extract information
    about the current ML program or that running in another
    process.

    The standard "text" and "data" areas are now used for
    exported object files. In particular this removes the need
    for --segprot when linking the object files on Mac OS X with
    previous versions.

    libffi is now used for foreign function interface
    (CInterface). Among other things this allows the full range
    of types to be use on X86/64. A version of libffi is
    included in the source but those packaging Poly/ML may
    prefer to use the --with-system-libffi option to the
    configure script to use the version installed on the
    machine.

    Withdrawn support for native-code on PPC and Sparc. The
    configure script will now fall back to the interpreted
    version on these platforms.


Minor Additions and Changes

    Added G, M, K suffix to RTS arguments for --maxheap and --minheap.

    Some changes to where "op" is allowed to conform more
    closely to the Definition.

    --debug and --logfile options. These allow fine control of
    debugging information within the run-time system.

    Added --error-exit option to terminate the top-level loop if
    any command raises an exception.

    Added PolyML.IntInf with gcd and lcm functions to use GMP's
    gcd function if available.

    Added PolyML.Compiler.allocationProfiling to work with
    PolyML.profiling 4. This causes each full GC to print a
    profile indicating where the currently live data has been
    allocated.

    Removed NetDB structure from the library since this was in
    an early draft of the basis library but not in the final book.

    Added PolyML.Codetree structure within PolyML. This allows
    ML code to build intermediate code data structures and
    generate machine code from them.

    Added "--use FILENAME" command line argument to run a command
    from a file before starting the main Read-Eval-Print loop.


Bug Fixes

    Fixes related to Word32 on X86-64 and Word.~>>.

    Vol allocation locking issue

    Floating point box issue

    Fix some functions in the Windows structure to match the
    Basis Library definition

    Fix a possible crash if a GC happened while another thread
    was in foreign code.

    Fix error in printer function for a datatype where the
    effect of PolyML.print_depth depended on the posiition
    of a constructor in the datatype.

    Fix bug with flexible record handling.

    Fix Real.fmt and Real.toString to conform to the Basis
    Library definition.

    Fix Real.abs with nan argument.

    Fix IEEEReal.toString for nan argument.

    Fix code-generator bug which resulted in incorrect result
    for Real.nextAfter.

    Fix bug the produced Subscript exceptions in stream IO.
2012-10-08 14:26:03 +00:00
asau
88feb4ac62 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-02 20:11:34 +00:00
asau
d4fd6b573b The package doesn't require GMP, turn it off, provide option instead. 2012-06-15 09:20:28 +00:00
sbd
9b51a89d48 Add missing devel/gmp buildlink.
Bump PKGREVISION.
2012-06-14 22:23:36 +00:00
asau
26be040688 Update to Poly/ML 5.4.1
Changes in Poly/ML Version 5.4

Major New Features

 * Major rewrite of the X86 code-generator and combining the 32 and
   64-bit versions into a single module. It now supports the floating
   point instructions.
 * Changes to the way functions with polymorphic equality are
   handled to eliminate the "structural equality" code.
 * Uses the GMP library if that is available when Poly/ML is
   built otherwise falls back to the old Poly/ML code.

Minor Additions and Changes

 * Added a SingleAssignment structure
 * Support for the Itanium processor using the interpreted version.
 * Various bug fixes.
2012-03-22 20:48:43 +00:00
asau
9731203d36 Update to Poly/ML Version 5.3
Major New Features

  - Addition of IDE interface support.
  - Changes to pretty-printing and equality. These are now inherited
    across module boundaries. Addition of PolyML.addPrettyPrinter
    to install a new-style pretty printer.
  - Reworked implementation of signatures reducing the memory
    requirements when a named signature is used in multiple places.
  - Improvements to printing of types and error messages.

Minor Additions and Changes

  - Support for out-of-tree builds
  - Added finalisation for foreign-function interface (CInterface)
  - Removed remaining support for ML90
  - Added PolyML.sourceLocation pseudo-function that returns the current
    source location, PolyML.raiseWithLocation that raises an exception
    with an explicit location and PolyML.exceptionLocation that returns
    the location where an exception was raised.
  - Added PolyML.Compiler.reportUnreferencedIds switch to enable reporting
    of unreferenced identifiers.
  - Added breakEx and clearEx to debugger functions.
    These enter the debugger when the code raises a given exception.
  - Improvement to resonsiveness to pipes especially in Windows.
  - Added X86-64 version of Word32 structure. 64-bit machines
    do not require 32-bit values to be "boxed".

Bug Fixes

  - Now builds on Mac OS X 10.6 (Snow Leopard)
  - Fix multi-threading on Sparc but now only supports v9 processors.
  - Fix timing-related crash when Poly/ML exits
  - Fix string argument to OS.SysErr exception
  - Fix to OS.FileSys.mkDir in Windows
  - Fix to pow(~1, n) where n is even
  - Various fixes to conform more closely to the standard.
2009-12-13 23:26:25 +00:00
asau
0264aa662c Import Poly/ML version 5.2.1
Poly/ML is Standard ML implementation originating from Cambridge University.
2009-03-20 21:12:51 +00:00