Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259922 - provide additional features of scm (dev-scheme/scm)
Summary: provide additional features of scm (dev-scheme/scm)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Scheme Project
: 259935 (view as bug list)
Depends on:
Reported: 2009-02-22 17:08 UTC by Vadim Kuznetsov (RETIRED)
Modified: 2013-02-02 12:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

patch that adds use flags for almost every scm feature (scm-with-features.patch,4.01 KB, patch)
2009-09-15 03:25 UTC, Tomás Touceda (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim Kuznetsov (RETIRED) gentoo-dev 2009-02-22 17:08:36 UTC
It would be nice to have feature rich gentoo-way enabled scm ebuild.

Reproducible: Always

Steps to Reproduce:
Comment 1 Tony Vroon gentoo-dev 2009-02-22 18:59:39 UTC
It is not clear to me what package this bug is filed for. Please add more specific information to your bug, consider rewriting the subject the line and then reopen your report so it can be considered by the bug wranglers again.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-02-22 20:23:54 UTC
*** Bug 259935 has been marked as a duplicate of this bug. ***
Comment 3 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-02-22 20:38:51 UTC
Current scm ebuild builds scm with two features: macro and inexact.

The defined scm features are:

    Alias for ARRAYS 
    array-map! and array-for-each (arrays must also be featured). 
    Use if you want arrays, uniform-arrays and uniform-vectors. 
    Large precision integers. 
    Treating strings as byte-vectors. 
    Byte/number conversions 
    Define this for extra checking of interrupt masking and some simple checks for proper use of malloc and free. This is for debugging C code in `sys.c', `eval.c', `repl.c' and makes the interpreter several times slower than usual. 
    Normally, the number of arguments arguments to interpreted closures (from LAMBDA) are checked if the function part of a form is not a symbol or only the first time the form is executed if the function part is a symbol. defining `reckless' disables any checking. If you want to have SCM always check the number of arguments to interpreted closures define feature `cautious'. 
    If you only need straight stack continuations, executables compile with this feature will run faster and use less storage than not having it. Machines with unusual stacks need this. Also, if you incorporate new C code into scm which uses VMS system services or library routines (which need to unwind the stack in an ordrly manner) you may need to use this feature. 
    Use if you want to use compiled closures. 
    For the curses screen management package. 
    Turns on the features `cautious' and `careful-interrupt-masking'; uses -g flags for debugging SCM source code. 
    Sequence comparison 
    SCM normally converts references to local variables to ILOCs, which make programs run faster. If SCM is badly broken, try using this option to disable the MEMOIZE_LOCALS feature. 
    Convert a running scheme program into an executable file. 
    Be able to load compiled files while running. 
    interface to the editline or GNU readline library. 
    Use if you want floats to display in engineering notation (exponents always multiples of 3) instead of scientific notation. 
    make_gsubr for arbitrary (< 11) arguments to C functions. 
    Commonly available I/O extensions: exec, line I/O, file positioning, file delete and rename, and directory functions. 
    Use if you want floating point numbers. 
    Lightweight -- no features 
    C level support for hygienic and referentially transparent macros (syntax-rules macros). 
    Client connections to the mysql databases. 
    Use if you want segments of unused heap to not be freed up after garbage collection. This may increase time in GC for *very* large working sets. 
    No features 
    Posix functions available on all Unix-like systems. fork and process functions, user and group IDs, file permissions, and link. 
    If your scheme code runs without any errors you can disable almost all error checking by compiling all files with `reckless'. 
    The Record package provides a facility for user to define their own record data types. See SLIB for documentation. 
    String regular expression matching. 
    These procedures were specified in the Revised^2 Report on Scheme but not in R4RS. 
    Use if you want to run code from: Harold Abelson and Gerald Jay Sussman with Julie Sussman. Structure and Interpretation of Computer Programs. The MIT Press, Cambridge, Massachusetts, USA, 1985. Differences from R5RS are:

        * (eq? '() '#f)
        * (define a 25) returns the symbol a.
        * (set! a 36) returns 36. 

    Use if you want all inexact real numbers to be single precision. This only has an effect if SINGLES is also defined (which is the default). This does not affect complex numbers. 
    BSD socket interface. Socket addr functions require inexacts or bignums for 32-bit precision. 
    Use if you want the ticks and ticks-interrupt functions. 
    Turtle graphics calls for both Borland-C and X11 from 
    Those unix features which have not made it into the Posix specs: nice, acct, lstat, readlink, symlink, mknod and sync. 
    WB database with relational wrapper. 
    Microsoft Windows executable. 
    Alias for Xlib feature. 
    Interface to Xlib graphics routines. 
Comment 4 Tomás Touceda (RETIRED) gentoo-dev 2009-09-15 03:25:46 UTC
Created attachment 204159 [details, diff]
patch that adds use flags for almost every scm feature

This patch lets you build scm-5.5.5-r1 with any feature you want. There were some features that gave me some errors. As commented in the ebuild:

# Some features give errors, here's a detailed list:
# mysql              --> ERROR: database.c not found
# dynamic-linking    --> It hasn't been implemented 
# caution            --> Causes errors
# edit-line          --> Dependency problem with ltermcap
# reckless           --> repl.c and eval.c doesn't build with this feature
# wb                 --> It gives these errors:
#                                      gcc: db.o: No such file or directory
#                                      gcc: wbsys.o: No such file or directory
#                                      gcc: stats.o: No such file or directory
#                                      gcc: segs.o: No such file or directory
#                                      gcc: scan.o: No such file or directory
#                                      gcc: prev.o: No such file or directory
#                                      gcc: handle.o: No such file or directory
#                                      gcc: ents.o: No such file or directory
#                                      gcc: del.o: No such file or directory
#                                      gcc: blkio.o: No such file or directory
#                                      gcc: blink.o: No such file or directory

I've tested building every feature, but as usual it's better if someone else gives it a try.