Package: ocaml / 4.01.0-5

Metadata

Package Version Patches format
ocaml 4.01.0-5 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Pass no relax to ld on alpha.patch | (download)

configure | 4 3 + 1 - 0 !
1 file changed, 3 insertions(+), 1 deletion(-)

 pass --no-relax to ld on alpha

Pass the --no-relax option to ld to fix a segfault in initialization
code (bug#338437)

0002 Call ld with proper flags.patch | (download)

configure | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 call ld with proper flags

Filter linkflags passed to ld by ocamlopt -pack and -output-obj
to remove the "-Wl," parts, which are only used when ocamlopt calls
gcc.

0003 Don t use rpath.patch | (download)

tools/ocamlmklib.mlp | 5 5 + 0 - 0 !
1 file changed, 5 insertions(+)

 don't use rpath


0004 Put manpages in section 3o instead of 3.patch | (download)

ocamldoc/Makefile | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 put manpages in section 3o instead of 3


0005 Patch config.sh for installation.patch | (download)

build/install.sh | 2 1 + 1 - 0 !
build/partial-install.sh | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

 patch config.sh for installation

Use for installatation a patched config.sh (created by debian/rules).

0006 Install ocamlbuild as a link on either .native or .b.patch | (download)

build/partial-install.sh | 17 16 + 1 - 0 !
1 file changed, 16 insertions(+), 1 deletion(-)

 install ocamlbuild as a link on either .native or .byte


0007 Avoid multiple declarations in generated .c files in.patch | (download)

bytecomp/bytelink.ml | 17 15 + 2 - 0 !
bytecomp/symtable.ml | 8 5 + 3 - 0 !
bytecomp/symtable.mli | 2 1 + 1 - 0 !
3 files changed, 21 insertions(+), 6 deletions(-)

 avoid multiple declarations in generated .c files in -output-obj

In -output-obj mode, <caml/mlvalues.h> (which contains some
primitives) is included in the generated .c file, leading to errors
when compiling with g++ (multiple declarations).

There are probably better implementations (in particular, in this one,
care must be taken when changing the list of primitives available in
mlvalues.h), but this is a small and (not too) intrusive patch.

Bug: http://caml.inria.fr/mantis/view.php?id=5254
Signed-off-by: Stephane Glondu <steph@glondu.net>

0008 Embed bytecode in C object when using custom.patch | (download)

bytecomp/bytelink.ml | 42 38 + 4 - 0 !
testsuite/tests/basic-manyargs/Makefile | 3 3 + 0 - 0 !
testsuite/tests/callback/Makefile | 3 3 + 0 - 0 !
testsuite/tests/embedded/Makefile | 4 4 + 0 - 0 !
testsuite/tests/gc-roots/Makefile | 3 3 + 0 - 0 !
testsuite/tests/lib-dynlink-bytecode/Makefile | 3 3 + 0 - 0 !
testsuite/tests/lib-marshal/Makefile | 3 3 + 0 - 0 !
7 files changed, 57 insertions(+), 4 deletions(-)

 embed bytecode in c object when using -custom

This patch fixes non-strippability of bytecode executables linked with
custom runtime. The new behaviour is enabled when OCAML_CUSTOM_EMBED
is set to "y", or when DEB_HOST_ARCH is non-empty.

0009 Fix typos and other wording issues.patch | (download)

man/ocaml.m | 2 1 + 1 - 0 !
man/ocamlc.m | 2 1 + 1 - 0 !
man/ocamldoc.m | 2 1 + 1 - 0 !
man/ocamlopt.m | 2 1 + 1 - 0 !
stdlib/printexc.mli | 6 3 + 3 - 0 !
5 files changed, 7 insertions(+), 7 deletions(-)

 fix typos and other wording issues

Bug: http://caml.inria.fr/mantis/view.php?id=6231

0010 Add const qualifiers in Tcl Tk bindings.patch | (download)

otherlibs/labltk/support/camltk.h | 4 2 + 2 - 0 !
otherlibs/labltk/support/cltkCaml.c | 2 1 + 1 - 0 !
otherlibs/labltk/support/cltkUtf.c | 8 4 + 4 - 0 !
3 files changed, 7 insertions(+), 7 deletions(-)

 add const qualifiers in tcl/tk bindings

Bug: http://caml.inria.fr/mantis/view.php?id=6230

0011 Enable mkstemp in yacc.patch | (download)

yacc/main.c | 5 5 + 0 - 0 !
1 file changed, 5 insertions(+)

 enable mkstemp in yacc

Use the feature test macro found in the mkstemp(3) manpage.

Bug: http://caml.inria.fr/mantis/view.php?id=6232

0012 Fix ocamlopt on sparc.patch | (download)

asmcomp/interf.ml | 6 5 + 1 - 0 !
asmcomp/sparc/emit.mlp | 12 6 + 6 - 0 !
2 files changed, 11 insertions(+), 7 deletions(-)

 fix ocamlopt on sparc

Bug: http://caml.inria.fr/mantis/view.php?id=6227

0013 Tune resource usage of some tests.patch | (download)

testsuite/tests/lib-threads/sieve.ml | 2 1 + 1 - 0 !
testsuite/tests/lib-threads/sieve.reference | 80 0 + 80 - 0 !
testsuite/tests/lib-threads/testsieve.ml | 2 1 + 1 - 0 !
testsuite/tests/lib-threads/testsieve.reference | 70 0 + 70 - 0 !
testsuite/tests/lib-threads/token1.ml | 2 1 + 1 - 0 !
testsuite/tests/lib-threads/token2.ml | 2 1 + 1 - 0 !
6 files changed, 4 insertions(+), 154 deletions(-)

 tune resource usage of some tests

The original tests trigger some limits and fail on kfreebsd-i386 with
uncaught exception Sys_error("Thread.create: Resource temporarily
unavailable").

0014 Native backtraces don t work on powerpc and sparc.patch | (download)

testsuite/tests/backtrace/Makefile | 5 4 + 1 - 0 !
1 file changed, 4 insertions(+), 1 deletion(-)

 native backtraces don't work on powerpc and sparc


0015 Fix native backtraces on arm.patch | (download)

asmcomp/linearize.ml | 6 6 + 0 - 0 !
asmcomp/linearize.mli | 3 3 + 0 - 0 !
asmcomp/schedgen.ml | 3 2 + 1 - 0 !
3 files changed, 11 insertions(+), 1 deletion(-)

 fix native backtraces on arm*

0016 Make ocamlopt g more resistant to ill formed locatio.patch | (download)

asmcomp/emitaux.ml | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 make "ocamlopt -g" more resistant to ill-formed locations

0017 Fix lost locations in out of bounds exceptions.patch | (download)

asmcomp/schedgen.ml | 5 2 + 3 - 0 !
1 file changed, 2 insertions(+), 3 deletions(-)

 fix lost locations in out-of-bounds exceptions