-ocaml (4.03.0-6) UNRELEASED; urgency=medium
+ocaml (4.04.0-1) UNRELEASED; urgency=medium
+ [ Mehdi Dogguy ]
* Use secure and canonical URIs for Vcs-* fields
- -- Mehdi Dogguy <mehdi@debian.org> Sun, 06 Nov 2016 11:01:52 +0100
+ [ Ximin Luo ]
+ * New upstream release.
+
+ -- Ximin Luo <infinity0@debian.org> Sun, 06 Nov 2016 19:58:56 +0100
ocaml (4.03.0-5) experimental; urgency=medium
--- a/configure
+++ b/configure
-@@ -374,7 +374,8 @@
+@@ -401,7 +401,8 @@
*gcc*,alpha*-*-linux*)
if cc="$bytecc" sh ./hasgot -mieee; then
bytecccompopts="-mieee $bytecccompopts";
*,mips-*-irix6*)
# Turn off warning "unused library"
bytecclinkopts="-n32 -Wl,-woff,84";;
-@@ -893,6 +894,7 @@
+@@ -922,6 +923,7 @@
case "$arch,$nativecc,$system,$model" in
*,*,nextstep,*) nativecclinkopts="-posix";;
*,*,rhapsody,*) if $arch64; then partialld="ld -r -arch ppc64"; fi;;
--- a/configure
+++ b/configure
-@@ -1782,7 +1782,7 @@
+@@ -1946,7 +1946,7 @@
echo "CC_PROFILE=$cc_profile" >> Makefile
echo "SYSTHREAD_SUPPORT=$systhread_support" >> Makefile
echo "PARTIALLD=$partialld" >> Makefile
--- a/ocamldoc/Makefile
+++ b/ocamldoc/Makefile
-@@ -328,7 +328,7 @@
+@@ -320,7 +320,7 @@
stdlib_man/Pervasives.3o: $(STDLIB_MLIS)
$(MKDIR) stdlib_man
$(OCAMLDOC_RUN) -man -d stdlib_man $(INCLUDES) \
--- a/bytecomp/bytelink.ml
+++ b/bytecomp/bytelink.ml
-@@ -440,6 +440,20 @@
+@@ -449,6 +449,20 @@
remove_file outfile;
raise x
(* Output a bytecode executable as a C file *)
let link_bytecode_as_c ppf tolink outfile =
-@@ -482,7 +496,7 @@
+@@ -491,7 +505,7 @@
(Marshal.to_string sections []);
output_string outchan "\n};\n\n";
(* The table of primitives *)
(* The entry point *)
output_string outchan "\
\nvoid caml_startup(char ** argv)\
-@@ -563,7 +577,7 @@
+@@ -580,7 +594,7 @@
#else\n\
typedef long value;\n\
#endif\n";
--- a/bytecomp/bytelink.ml
+++ b/bytecomp/bytelink.ml
-@@ -456,7 +456,7 @@
+@@ -465,7 +465,7 @@
(* Output a bytecode executable as a C file *)
let outchan = open_out outfile in
begin try
(* The bytecode *)
-@@ -498,14 +498,27 @@
+@@ -507,14 +507,27 @@
(* The table of primitives *)
Symtable.output_primitive_table outchan mlvalues_primitives;
(* The entry point *)
\n#ifdef __cplusplus\
\n}\
\n#endif\n";
-@@ -544,6 +557,17 @@
+@@ -553,6 +566,17 @@
if String.contains name '.' then name else name ^ ".exe"
| _ -> name
(* Main entry point (build a custom runtime if needed) *)
let link ppf objfiles output_name =
-@@ -558,6 +582,16 @@
+@@ -575,6 +599,16 @@
Clflags.dllibs := !lib_dllibs @ !Clflags.dllibs; (* put user's DLLs first *)
if not !Clflags.custom_runtime then
link_bytecode ppf tolink output_name true
else if not !Clflags.output_c_object then begin
let bytecode_name = Filename.temp_file "camlcode" "" in
let prim_name = Filename.temp_file "camlprim" ".c" in
-@@ -607,7 +641,7 @@
+@@ -624,7 +658,7 @@
if Sys.file_exists c_file then raise(Error(File_exists c_file));
let temps = ref [] in
try
--- a/testsuite/tests/backtrace/Makefile
+++ b/testsuite/tests/backtrace/Makefile
-@@ -24,7 +24,10 @@
+@@ -29,7 +29,10 @@
default:
@$(MAKE) byte
--- a/testsuite/tests/lib-dynlink-csharp/Makefile
+++ b/testsuite/tests/lib-dynlink-csharp/Makefile
-@@ -30,7 +30,9 @@
+@@ -31,7 +31,9 @@
prepare:
@if $(SUPPORTS_SHARED_LIBRARIES); then \
$(OCAMLC) -c plugin.ml && \
.PHONY: bytecode
--- a/testsuite/tests/link-test/Makefile
+++ b/testsuite/tests/link-test/Makefile
-@@ -15,6 +15,13 @@
+@@ -14,7 +14,13 @@
+ #* *
#**************************************************************************
- default:
+-default: byte native
++default:
++ @$(MAKE) byte
+ @if $(BYTECODE_ONLY) ; then \
+ echo " ... testing 'test.reference': => skipped"; \
+ else \
+ $(MAKE) native; \
+ fi
-+
-+native:
- printf " ... testing 'test.reference':"
- @$(OCAMLOPT) -c submodule.ml
- @$(OCAMLOPT) -c aliases.ml
+
+ native:
+ @printf " ... testing native 'test.reference':"
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/utils/clflags.ml
+++ b/utils/clflags.ml
-@@ -146,6 +146,7 @@
+@@ -147,6 +147,7 @@
let pic_code = ref (match Config.architecture with (* -fPIC *)
| "amd64" -> true
let runtime_variant = ref "";; (* -runtime-variant *)
--- a/man/ocamlopt.m
+++ b/man/ocamlopt.m
-@@ -682,10 +682,10 @@
+@@ -702,10 +702,10 @@
Select the floating-point hardware
.TP
.B \-fPIC
PACKAGE := ocaml
ALL_PACKAGES := $(shell dh_listpackages)
-OCAMLMAJOR := 4.03
+OCAMLMAJOR := 4.04
OCAMLMINOR := 0
# Build cache (for Debian debugging)