pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/chicken5 chicken5: Import chicken-5.0.0 as lang/c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b1bff012fccd
branches:  trunk
changeset: 389144:b1bff012fccd
user:      leot <leot%pkgsrc.org@localhost>
date:      Fri Dec 21 12:35:38 2018 +0000

description:
chicken5: Import chicken-5.0.0 as lang/chicken5

CHICKEN is a Scheme-to-C compiler supporting most of the language
features as defined in the Revised^5 Report on Scheme.  CHICKEN
generates quite portable C code, and files compiled by it (including
itself) should work without any changes on most platforms.

The whole package is distributed under a BSD license and as such free
to use and modify as long as you adhere to its terms (see the manual).
Linkage to C modules and C-library functions is straightforward, so
it's easy to access C from Scheme.  Compiled code can be embedded into
existing C programs without problems.  The generated code supports
full tail-recursion, first-class continuations, multiple values and
dynamic-wind.


Changes since chicken-4.13.0:
5.0.0
-----
- Runtime system
  - Added support for the full numeric tower, including various new
    procedures taken from the "numbers" egg.  All calculations will
    now return exact numbers where possible, so code relying on flonums
    being returned may need to be changed if rational numbers do not
    provide the desired performance.
  - Port directionality has been generalized from a simple input/output
    flag to a bitmap, to allow for multidirectional ports.
  - Weak symbol GC is faster, simpler, and can now collect all
    unreferenced symbols instead of a maximum of 997 per major GC.
  - The -:w option has been removed; symbols are now always collected.
  - Increased the "binary compatibility version" to 9.
  - Continuations which discard additional values beyond the first now
    also accept multiple values via direct invocation after being
    captured through `call/cc`, not just via `values` (#1390)
  - Removed the deprecated C_locative_ref and C_mutate2 C functions.
  - The trace buffer no longer holds on to thread objects, allowing them to
    be garbage collected sooner (#1356, thanks to Kristian Lein-Mathisen)
  - On Cygwin and MinGW, the "build-platform" now corresponds to the
    tool chain used (gnu, clang, unknown) like on *nix, while the
    software-version is now "cygwin" or "mingw32" instead of "unknown".
    This also means the features list will now contain the tool chain
    on all platforms.
  - Symbols starting with #% are no longer treated specially and need
    to be quoted with pipes. This makes the "%" sign available for use
    in custom/user-defined sharp-sign read syntax.

- Compiler
  - Fixed an off by one allocation problem in generated C code for (list ...).
  - The "-scrutinize" compiler option has been removed.
  - The "-module" compiler option (aliased as "-m") now expects a module name.
  - The generated C output of the compiler is now deterministic: it
    will be bit-for-bit identical when compiling the same Scheme file
    with the same version of the compiler.
  - the "-consult-type-file" and "-emit-type-file" options have been renamed
    to "-consult-types-file" and "-emit-types-file", respectively.

- Tools
  - The new "-link" option to csc allows linking with objects from extensions.
  - The new "-libdir" option to csc allows overriding the runtime library
    directory.
  - The ambiguous "-l<libname>" option for csc has been removed (#1193).
  - Removed deprecated "-n" shorthand for "-emit-inline-file" from csc.
  - Removed "chicken-bug" tool.

- Core libraries
  - Removed support for memory-mapped files (posix), queues
    (data-structures), binary-search (data-structures), scan-input-lines
    (utils), group-information (posix) object-eviction (lolevel), and
    compile-file (utils). These are now available as eggs.
  - Removed the srfi-1, srfi-13, srfi-14, srfi-18, srfi-69, and utils
    units. These are now available as eggs.
  - Added the `executable-pathname` procedure for retrieving a path to
    the currently-running executable.
  - Removed all support for SWIG.
  - Removed interrupts-enabled declaration specifier.
  - `sleep` now suspends the current thread when threading is enabled,
    otherwise it sleeps the process. The new `process-sleep` procedure
    in unit posix can be used to sleep the process unconditionally.
  - `with-error-output-to-port' from the ports module has been renamed
    to the more common `with-error-to-port', and `with-error-to-string'
    has been added for completeness (thanks to Michael Silver).
  - A new `make-bidirectional-port' procedure has been added to the
    ports unit that will combine separate input- and output- ports into
    a single bidirectional port.
  - New `input-port-open?` and `output-port-open?` procedures have been
    added for testing whether a port is open in a specific direction.
  - An `include-relative` form has been added to the (chicken base) module.
    This works like `load-relative` but for textual inclusion.
  - Keywords are now always written in "portable" style by WRITE, so
    that the reader's keyword style doesn't need to match the writer's.
  - The environment variable `CHICKEN_PREFIX` has been removed.
  - Added the `glob->sre` procedure to the irregex library.
  - Removed the `get-host-name' and `system-information' procedures.
    These are available in the "system-information" egg.
  - Removed the `eval-when`, `select` and `ensure` macros.  These are
    available in the "miscmacros" egg.
  - Removed the require-extension-for-syntax macro.
  - Renamed bit-set? to bit->boolean because of swapped argument order
    with respect to SRFI-33 and SRFI-60, which was confusing (fixes
    #1385, thanks to Lemonboy).
  - file-{read,write,execute}-access will now raise an exception when
    the file doesn't exist or some other non-access related problem is
    detected (fixes #1386, thanks to Vasilij Schneidermann).
  - `change-file-mode` was renamed to set-file-permissions! and SRFI-17
    generalized set! support has been added for `file-permissions`.
    This procedure now also accepts a file descriptor or a port.
  - `file-permissions` now returns one value: the permission integer.
  - `read-file` has been renamed to `read-list`.
  - `read-all` was dropped, as `read-string` with #f as its NUM argument
     is equivalent.
  - `read-lines` and `read-all` no longer accept a string naming a file,
     only ports.
  - The procedures for random numbers have been reimplemented;
    access to system-specific entropy is available, together with a reasonably
    good pseudo random number generator (WELL512).
  - `glob` now returns an empty list for non-existent or inaccessible
    directories, instead of erroring out.
  - `file-copy' and `file-move' have been renamed to `copy-file' and
    `move-file', for consistency with `delete-file' and `rename-file'.
  - `rename-file' now refuses to overwrite an existing file unless an
    optional "clobber" argument is provided.
  - The `r4rs` module no longer exports `eval`, which was not in R4RS.
  - `process`, `process*` and `process-execute` now expect lists of the form
    (("NAME" . "VALUE") ...) instead of the previous (("NAME=VALUE") ...)
    as their environment argument.
  - `repository-path` is now a parameter containing a list of strings instead
    of a string, as the search path for libraries can now contain multiple
    directories.
  - `file-read-access?`, `file-write-access?` and `file-execute-access?` have
    been renamed `file-readable?`, `file-writable?` and `file-executable?`
    into the (chicken file) module.

- Module system
  - The compiler has been modularised, for improved namespacing.  This
    means names from the compiler should not leak out into the compiled
    program's (macro) namespace anymore.
  - The core units have been converted to modules under the "chicken"
    namespace.
  - Added support for list-style library names.
  - The "use" and "use-for-syntax" special forms have been removed
    in favor of "import" and "import-for-syntax" to reduce confusion.
  - Module imports are now lexically scoped: identifiers provided by
    an (import ...) inside (let ...) won't be visible outside that let.
  - Modules implementing an interface can now correctly export extra
    identifiers (bug reported by Martin Schneeweis, fix by "megane").

- Syntax expander
  - Removed support for (define-syntax (foo e r c) ...), which was
    undocumented and not officially supported anyway.
  - Removed support for normal "lambda" forms as syntax transformers,
    which has been deprecated since 4.8.0.
  - define and friends are now aggressively rejected in "expression
    contexts" (i.e., anywhere but toplevel or as internal defines).
  - define-record and define-record-type now create record types
    which are tagged with the module in which they're defined, so
    predicates no longer return #t for records with the same tag
    defined in another module. This tag is now also available under
    an identifier that matches the record type name (fixes #1342).
  - `include` now splices included expressions in the context in which
    the inclusion appears and does not treat the expressions as toplevel
    expressions by default.

- Eggs management
  - Egg-installation and building has been completely overhauled.
  - .meta + .setup files have been merged into a single declarative
    ".egg" file.
  - More static checks for egg descriptions, simplified generation
    of OS-specific build + install commands that is (hopefully)
    more practical for package maintainers.
  - Egg sources are cached locally to reduce download and rebuild
    times.
  - Dropped many obscure or unimportant options and features from
    `chicken-install`: (`-keep-installed`, `-reinstall`, `-proxy`,
    `-no-install`, `-username`, `-password`, `-init`, `-deploy`,
    `-keep-going`, `-scan`, `-csi`, `-show-depends`, `-show-foreign-depends`,
    `-prefix`.
  - Added new "-from-list" option to chicken-install.
  - Eggs can now be installed and located in multiple directories,
    using the `CHICKEN_REPOSITORY_PATH` +
    `CHICKEN_INSTALL_REPOSITORY`
    environment variables.
  - Static compilation of eggs is now fully supported and static
    versions of compiled eggs are available by default.
  - In a statically built chicken, the egg-tools ("chicken-install", "...-status",
    "...-uninstall") are still available, but only support static compilation
    of eggs.

- Foreign function interface
  - The foreign type specifier "ssize_t" is now accepted, and "size_t"
    arguments now only accept positive integers.  Return values of
    type size_t are no longer truncated on 32-bit platforms.

diffstat:

 lang/chicken5/DESCR                           |   12 ++
 lang/chicken5/Makefile                        |   55 +++++++++
 lang/chicken5/PLIST                           |  146 ++++++++++++++++++++++++++
 lang/chicken5/distinfo                        |    7 +
 lang/chicken5/patches/patch-tests_runtests.sh |   18 +++
 5 files changed, 238 insertions(+), 0 deletions(-)

diffs (258 lines):

diff -r 0f9df7b28720 -r b1bff012fccd lang/chicken5/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/chicken5/DESCR       Fri Dec 21 12:35:38 2018 +0000
@@ -0,0 +1,12 @@
+CHICKEN is a Scheme-to-C compiler supporting most of the language
+features as defined in the Revised^5 Report on Scheme.  CHICKEN
+generates quite portable C code, and files compiled by it (including
+itself) should work without any changes on most platforms.
+
+The whole package is distributed under a BSD license and as such free
+to use and modify as long as you adhere to its terms (see the manual).
+Linkage to C modules and C-library functions is straightforward, so
+it's easy to access C from Scheme.  Compiled code can be embedded into
+existing C programs without problems.  The generated code supports
+full tail-recursion, first-class continuations, multiple values and
+dynamic-wind.
diff -r 0f9df7b28720 -r b1bff012fccd lang/chicken5/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/chicken5/Makefile    Fri Dec 21 12:35:38 2018 +0000
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1 2018/12/21 12:35:38 leot Exp $
+
+DISTNAME=      chicken-5.0.0
+CATEGORIES=    lang
+MASTER_SITES=  http://code.call-cc.org/releases/${PKGVERSION_NOREV}/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.call-cc.org/
+COMMENT=       Scheme to C compiler, handling R5RS
+LICENSE=       modified-bsd
+
+MAKE_JOBS_SAFE=        no
+
+USE_LIBTOOL=           yes
+USE_TOOLS+=            gmake
+UNLIMIT_RESOURCES=     datasize
+
+OWN_DIRS=              ${PREFIX}/lib/chicken ${PREFIX}/lib/chicken/9
+
+BUILD_TARGET=          all
+
+.include "../../mk/bsd.prefs.mk"
+
+# PLATFORM detection:
+.if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly"
+PLATFORM=      bsd
+.elif ${OPSYS} == "Linux"
+PLATFORM=      linux
+.elif ${OPSYS} == "Darwin"
+PLATFORM=      macosx
+.elif ${OPSYS} == "SunOS"
+PLATFORM=      solaris
+.elif ${OPSYS} == "Haiku"
+PLATFORM=      haiku
+.else
+#PLATFORM+=    ${OPSYS} == "Interix"
+# possible choices left: aix android cross-linux-mingw cygwin hurd mingw
+#                        mingw-msys
+PKG_SKIP_REASON+=      "${OPSYS} is not supported"
+.endif
+
+MAKE_FILE=     GNUmakefile
+MAKE_ENV+=     C_COMPILER=${CC:Q}
+MAKE_ENV+=     HOST=   # fix ${HOST} prepending ${CC}
+# Need to have these in MAKE_FLAGS, MAKE_ENV is not enough due to the
+# way the build system overrides them.
+MAKE_FLAGS+=   PLATFORM=${PLATFORM:Q} PREFIX=${PREFIX:Q} DESTDIR=${DESTDIR:Q}
+MAKE_FLAGS+=   MANDIR=${PREFIX:Q}/${PKGMANDIR}
+MAKE_FLAGS+=   INFODIR=${PREFIX:Q}/${PKGINFODIR:Q}
+MAKE_FLAGS+=   DOCDIR=${PREFIX:Q}/share/doc/${PKGNAME_NOREV}
+MAKE_FLAGS+=   INSTALL_PROGRAM=${INSTALL:Q}
+
+TEST_TARGET=   check
+
+.include "../../mk/bsd.pkg.mk"
diff -r 0f9df7b28720 -r b1bff012fccd lang/chicken5/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/chicken5/PLIST       Fri Dec 21 12:35:38 2018 +0000
@@ -0,0 +1,146 @@
+@comment $NetBSD: PLIST,v 1.1 2018/12/21 12:35:38 leot Exp $
+bin/chicken
+bin/chicken-do
+bin/chicken-install
+bin/chicken-profile
+bin/chicken-status
+bin/chicken-uninstall
+bin/csc
+bin/csi
+bin/feathers
+include/chicken/chicken-config.h
+include/chicken/chicken.h
+lib/chicken/9/chicken.base.import.so
+lib/chicken/9/chicken.bitwise.import.so
+lib/chicken/9/chicken.blob.import.so
+lib/chicken/9/chicken.compiler.user-pass.import.so
+lib/chicken/9/chicken.condition.import.so
+lib/chicken/9/chicken.continuation.import.so
+lib/chicken/9/chicken.csi.import.so
+lib/chicken/9/chicken.errno.import.so
+lib/chicken/9/chicken.eval.import.so
+lib/chicken/9/chicken.file.import.so
+lib/chicken/9/chicken.file.posix.import.so
+lib/chicken/9/chicken.fixnum.import.so
+lib/chicken/9/chicken.flonum.import.so
+lib/chicken/9/chicken.foreign.import.so
+lib/chicken/9/chicken.format.import.so
+lib/chicken/9/chicken.gc.import.so
+lib/chicken/9/chicken.internal.import.so
+lib/chicken/9/chicken.io.import.so
+lib/chicken/9/chicken.irregex.import.so
+lib/chicken/9/chicken.keyword.import.so
+lib/chicken/9/chicken.load.import.so
+lib/chicken/9/chicken.locative.import.so
+lib/chicken/9/chicken.memory.import.so
+lib/chicken/9/chicken.memory.representation.import.so
+lib/chicken/9/chicken.pathname.import.so
+lib/chicken/9/chicken.platform.import.so
+lib/chicken/9/chicken.plist.import.so
+lib/chicken/9/chicken.port.import.so
+lib/chicken/9/chicken.pretty-print.import.so
+lib/chicken/9/chicken.process-context.import.so
+lib/chicken/9/chicken.process-context.posix.import.so
+lib/chicken/9/chicken.process.import.so
+lib/chicken/9/chicken.process.signal.import.so
+lib/chicken/9/chicken.random.import.so
+lib/chicken/9/chicken.read-syntax.import.so
+lib/chicken/9/chicken.repl.import.so
+lib/chicken/9/chicken.sort.import.so
+lib/chicken/9/chicken.string.import.so
+lib/chicken/9/chicken.syntax.import.so
+lib/chicken/9/chicken.tcp.import.so
+lib/chicken/9/chicken.time.import.so
+lib/chicken/9/chicken.time.posix.import.so
+lib/chicken/9/srfi-4.import.so
+lib/chicken/9/types.db
+lib/libchicken.a
+lib/libchicken.so
+lib/libchicken.so.9
+man/man1/chicken-do.1
+man/man1/chicken-install.1
+man/man1/chicken-profile.1
+man/man1/chicken-status.1
+man/man1/chicken-uninstall.1
+man/man1/chicken.1
+man/man1/csc.1
+man/man1/csi.1
+man/man1/feathers.1
+share/chicken/feathers.tcl
+share/chicken/setup.defaults
+share/doc/${PKGNAME}/DEPRECATED
+share/doc/${PKGNAME}/LICENSE
+share/doc/${PKGNAME}/README
+share/doc/${PKGNAME}/manual/Accessing external objects.html
+share/doc/${PKGNAME}/manual/Acknowledgements.html
+share/doc/${PKGNAME}/manual/Bibliography.html
+share/doc/${PKGNAME}/manual/Bugs and limitations.html
+share/doc/${PKGNAME}/manual/C interface.html
+share/doc/${PKGNAME}/manual/Cross development.html
+share/doc/${PKGNAME}/manual/Data representation.html
+share/doc/${PKGNAME}/manual/Debugging.html
+share/doc/${PKGNAME}/manual/Declarations.html
+share/doc/${PKGNAME}/manual/Deployment.html
+share/doc/${PKGNAME}/manual/Deviations from the standard.html
+share/doc/${PKGNAME}/manual/Egg specification format.html
+share/doc/${PKGNAME}/manual/Embedding.html
+share/doc/${PKGNAME}/manual/Extension tools.html
+share/doc/${PKGNAME}/manual/Extensions to the standard.html
+share/doc/${PKGNAME}/manual/Extensions.html
+share/doc/${PKGNAME}/manual/Foreign type specifiers.html
+share/doc/${PKGNAME}/manual/Getting started.html
+share/doc/${PKGNAME}/manual/Included modules.html
+share/doc/${PKGNAME}/manual/Interface to external functions and variables.html
+share/doc/${PKGNAME}/manual/Module (chicken base).html
+share/doc/${PKGNAME}/manual/Module (chicken bitwise).html
+share/doc/${PKGNAME}/manual/Module (chicken blob).html
+share/doc/${PKGNAME}/manual/Module (chicken condition).html
+share/doc/${PKGNAME}/manual/Module (chicken continuation).html
+share/doc/${PKGNAME}/manual/Module (chicken csi).html
+share/doc/${PKGNAME}/manual/Module (chicken errno).html
+share/doc/${PKGNAME}/manual/Module (chicken eval).html
+share/doc/${PKGNAME}/manual/Module (chicken file posix).html
+share/doc/${PKGNAME}/manual/Module (chicken file).html
+share/doc/${PKGNAME}/manual/Module (chicken fixnum).html
+share/doc/${PKGNAME}/manual/Module (chicken flonum).html
+share/doc/${PKGNAME}/manual/Module (chicken foreign).html
+share/doc/${PKGNAME}/manual/Module (chicken format).html
+share/doc/${PKGNAME}/manual/Module (chicken gc).html
+share/doc/${PKGNAME}/manual/Module (chicken io).html
+share/doc/${PKGNAME}/manual/Module (chicken irregex).html
+share/doc/${PKGNAME}/manual/Module (chicken keyword).html
+share/doc/${PKGNAME}/manual/Module (chicken load).html
+share/doc/${PKGNAME}/manual/Module (chicken locative).html
+share/doc/${PKGNAME}/manual/Module (chicken memory representation).html
+share/doc/${PKGNAME}/manual/Module (chicken memory).html
+share/doc/${PKGNAME}/manual/Module (chicken module).html
+share/doc/${PKGNAME}/manual/Module (chicken pathname).html
+share/doc/${PKGNAME}/manual/Module (chicken platform).html
+share/doc/${PKGNAME}/manual/Module (chicken plist).html
+share/doc/${PKGNAME}/manual/Module (chicken port).html
+share/doc/${PKGNAME}/manual/Module (chicken pretty-print).html
+share/doc/${PKGNAME}/manual/Module (chicken process signal).html
+share/doc/${PKGNAME}/manual/Module (chicken process).html
+share/doc/${PKGNAME}/manual/Module (chicken process-context posix).html
+share/doc/${PKGNAME}/manual/Module (chicken process-context).html
+share/doc/${PKGNAME}/manual/Module (chicken random).html
+share/doc/${PKGNAME}/manual/Module (chicken read-syntax).html
+share/doc/${PKGNAME}/manual/Module (chicken repl).html
+share/doc/${PKGNAME}/manual/Module (chicken sort).html
+share/doc/${PKGNAME}/manual/Module (chicken string).html
+share/doc/${PKGNAME}/manual/Module (chicken syntax).html
+share/doc/${PKGNAME}/manual/Module (chicken tcp).html
+share/doc/${PKGNAME}/manual/Module (chicken time posix).html
+share/doc/${PKGNAME}/manual/Module (chicken time).html
+share/doc/${PKGNAME}/manual/Module (chicken type).html
+share/doc/${PKGNAME}/manual/Module r4rs.html
+share/doc/${PKGNAME}/manual/Module r5rs.html
+share/doc/${PKGNAME}/manual/Module scheme.html
+share/doc/${PKGNAME}/manual/Module srfi-4.html
+share/doc/${PKGNAME}/manual/Modules.html
+share/doc/${PKGNAME}/manual/The User's Manual.html
+share/doc/${PKGNAME}/manual/Types.html
+share/doc/${PKGNAME}/manual/Units and linking model.html
+share/doc/${PKGNAME}/manual/Using the compiler.html
+share/doc/${PKGNAME}/manual/Using the interpreter.html
+share/doc/${PKGNAME}/manual/manual.css
diff -r 0f9df7b28720 -r b1bff012fccd lang/chicken5/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/chicken5/distinfo    Fri Dec 21 12:35:38 2018 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2018/12/21 12:35:38 leot Exp $
+
+SHA1 (chicken-5.0.0.tar.gz) = 59e71cdee95ecfa2f7d8713c2bf7fbff54c48d32
+RMD160 (chicken-5.0.0.tar.gz) = d0b3ea5ccf7e2d0884eff4adeb9af7b9666e21cf
+SHA512 (chicken-5.0.0.tar.gz) = 615fe9141a3564873f4190d6c373ec13438785a75440fc871c486fb8112849179821e3e1d07d2a1ee2a7f51f54742ba6cb8523b007e45baaef3d722af950ba93
+Size (chicken-5.0.0.tar.gz) = 4003976 bytes
+SHA1 (patch-tests_runtests.sh) = c2bcee720a56cc399c6acdb1e002dbcd82ea272e
diff -r 0f9df7b28720 -r b1bff012fccd lang/chicken5/patches/patch-tests_runtests.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/chicken5/patches/patch-tests_runtests.sh     Fri Dec 21 12:35:38 2018 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-tests_runtests.sh,v 1.1 2018/12/21 12:35:38 leot Exp $
+
+`export -p' also exports make(1) variables that contains `.', e.g.
+`.MAKE.ENV.LEVEL'.  As part of `. ./env.out' this lead to failure because
+variable with `.' are not valid is sh(1) context.
+Filter `export -p' output to avoid that.
+
+--- tests/runtests.sh.orig     2018-09-23 09:24:46.000000000 +0000
++++ tests/runtests.sh
+@@ -64,7 +64,7 @@ cp $TYPESDB test-repository/types.db
+ 
+ echo "======================================== repository search path ..."
+ if test -z "$MSYSTEM"; then
+-  export -p >./env.out
++  export -p | sed -ne '/export [^.]*=/p' >./env.out
+   unset CHICKEN_REPOSITORY_PATH
+   $interpret -s repository-path-default.scm
+   . ./env.out



Home | Main Index | Thread Index | Old Index