added ocaml 3.10.0~beta branch (does not yet build succesfully)
authorStefano Zacchiroli <zack@debian.org>
Wed, 11 Apr 2007 09:26:43 +0000 (09:26 +0000)
committerStefano Zacchiroli <zack@debian.org>
Wed, 11 Apr 2007 09:26:43 +0000 (09:26 +0000)
debian/cdbs/ocaml-vars.mk
debian/changelog
debian/copyright.in
debian/ocaml-compiler-libs.copyright
debian/patches/00list
debian/patches/alpha_ld_no-relax.dpatch
debian/patches/call_ld_with_proper_flags.dpatch
debian/patches/no_rpath.dpatch
debian/rules

index 5c1fb9cdf0e370cecd60f8662c8574e7ca1979fb..c333d6e4fdf59258241373eb255754ca1f01a7fa 100644 (file)
@@ -16,7 +16,7 @@
 # this program; if not, write to the Free Software Foundation, Inc., 51
 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 #
-# $Id: ocaml-vars.mk 3440 2007-01-02 18:38:11Z zack $
+# $Id: ocaml-vars.mk 3667 2007-04-11 09:26:43Z zack $
 
 _cdbs_scripts_path ?= /usr/lib/cdbs
 _cdbs_rules_path ?= /usr/share/cdbs/1/rules
@@ -25,7 +25,7 @@ _cdbs_class_path ?= /usr/share/cdbs/1/class
 ifndef _cdbs_class_ocaml_vars
 _cdbs_class_ocaml_vars = 1
 
-# current OCaml ABI version (ATM 3.09.2).
+# current OCaml ABI version (e.g. 3.09.2).
 # Used internally by ocaml.mk (substituted for @OCamlABI@ in $(OCAML_IN_FILES)
 # below), may be useful to debian/rules writers as well
 OCAML_ABI := $(shell /usr/bin/ocamlc -version)
index d2abcad2ca0bc325af915fbd16782d4b89172965..da55dc0c0f3ead1e66dc5c15f80239a6f3e25dad 100644 (file)
@@ -1,9 +1,14 @@
-ocaml (3.09.3-2) UNRELEASED; urgency=low
+ocaml (3.10.0~beta-1) UNRELEASED; urgency=low
 
   [ Samuel Mimram ]
   * Ship dh_ocaml into ocaml-nox
 
   [ Stefano Zacchiroli ]
+  * New upstream beta release (3.10.0).
+  * debian/patches/*
+    - removed: versioned_libdir (no longer needed with this upstream)
+    - ported to this upstream: call_ld_with_proper_flags, alpha_ld_no-relax,
+      no_rpath
   * CDBS class
     - added support for the OCAML_DLL_DIR variable, pointing ATM to the
       stublibs/ subdirectory of the standard library directory. It's
@@ -14,7 +19,7 @@ ocaml (3.09.3-2) UNRELEASED; urgency=low
     - mandate the compilation of *.cm[ao] with debugging information for
       libraries and forbid it for bytecode programs
 
- -- Stefano Zacchiroli <zack@debian.org>  Mon, 09 Apr 2007 19:46:36 +0200
+ -- Stefano Zacchiroli <zack@debian.org>  Wed, 11 Apr 2007 11:13:11 +0200
 
 ocaml (3.09.3-1) experimental; urgency=low
 
index 6bdf4aa87db51cbdcbfdfc510c38bcda50993275..bd1e9e94a9830798fcfd8e6f7d439f1e5455f657 100644 (file)
@@ -2,7 +2,8 @@ This package was debianized by Sven Luther <luther@debian.org> on
 Fri, 14 Dec 2001 12:44:03 +0100.
 
 It was downloaded from:
-http://caml.inria.fr/pub/distrib/ocaml-3.09/ocaml-3.09.2.tar.gz
+
+  http://caml.inria.fr/pub/distrib/ocaml-3.10/
 
 Upstream Authors: Xavier Leroy, Jerome Vouillon and Damien Doligez
 Upstream Author for the camlp4 part: Daniel de Rauglaudre
index 9677dacaf1f07d3f49c99de92e5028d569f8aebd..742ec9b19bc7a07348cb560ee946406a00176d87 100644 (file)
@@ -1,9 +1,9 @@
 This package was debianized by Sven Luther <luther@debian.org> on
 Fri, 14 Dec 2001 12:44:03 +0100.
 
-It was downloaded from
+It was downloaded from:
 
-  http://caml.inria.fr/pub/distrib/ocaml-3.09/ocaml-3.09.2.tar.gz
+  http://caml.inria.fr/pub/distrib/ocaml-3.10/
 
 Upstream Authors: Xavier Leroy, Jerome Vouillon and Damien Doligez
 Upstream Author for the camlp4 part: Daniel de Rauglaudre
index 80204ef918fd8a56394a88da964694a91450b226..6af82a6cee6b3deacacd0b773086ae6ce6188131 100644 (file)
@@ -1,4 +1,4 @@
-versioned_libdir
+#versioned_libdir
 objinfo
 dumpobj
 man-ocamlmklib
index 244ad0cc866a10f6f12ef2157db54c770a6176a7..a359d35d78d76cce78f918520e087472946ce920 100644 (file)
@@ -1,15 +1,16 @@
 #! /bin/sh /usr/share/dpatch/dpatch-run
-## alpha_ld_no-relax.dpatch by Steve Langasek <vorlon@debian.org>
+## alpha_ld_no-relax.dpatch by Stefano Zacchiroli <zack@debian.org>
 ##
 ## All lines beginning with `## DP:' are a description of the patch.
-## DP: Pass the --no-relax option to ld to fix a segfault in initialization 
+## DP: Pass the --no-relax option to ld to fix a segfault in initialization
 ## DP: code (bug#338437)
 
+
 @DPATCH@
-diff -urNad ocaml-3.09.1+3.09.2rc1~/configure ocaml-3.09.1+3.09.2rc1/configure
---- ocaml-3.09.1+3.09.2rc1~/configure  2006-03-30 17:39:44.000000000 +0200
-+++ ocaml-3.09.1+3.09.2rc1/configure   2006-03-30 17:39:49.000000000 +0200
-@@ -268,7 +268,8 @@
+diff -urNad trunk~/configure trunk/configure
+--- trunk~/configure   2007-03-06 16:02:09.000000000 +0000
++++ trunk/configure    2007-04-10 17:08:18.000000000 +0000
+@@ -271,7 +271,8 @@
    gcc,alpha*-*-linux*)
      if cc="$bytecc" sh ./hasgot -mieee; then
        bytecccompopts="-mieee $bytecccompopts";
@@ -19,10 +20,10 @@ diff -urNad ocaml-3.09.1+3.09.2rc1~/configure ocaml-3.09.1+3.09.2rc1/configure
    cc,mips-*-irix6*)
      # Add -n32 flag to ensure compatibility with native-code compiler
      bytecccompopts="-n32"
-@@ -623,6 +624,7 @@
+@@ -630,6 +631,7 @@
                         nativecccompopts="$gcc_warnings -DSHRINKED_GNUC";;
-   *,*,rhapsody,*)
-                  nativecccompopts="$gcc_warnings -DDARWIN_VERSION_6 $dl_defs";;
+   *,*,rhapsody,*)      nativecccompopts="$gcc_warnings -DDARWIN_VERSION_6 $dl_defs"
+                        if $arch64; then partialld="ld -r -arch ppc64"; fi;;
 +  alpha,gcc*,linux*,*) nativecclinkopts="-Wl,--no-relax";;
    *,gcc*,cygwin,*)     nativecccompopts="$gcc_warnings -U_WIN32";;
    *,gcc*,*,*)          nativecccompopts="$gcc_warnings";;
index feaa200741b7cf154883c2ab2c1ce52dd61c458b..07c85907e0edb98d30bf0c9db807bcc87eb2cb27 100644 (file)
@@ -1,5 +1,5 @@
 #! /bin/sh /usr/share/dpatch/dpatch-run
-## call_ld_with_proper_flags.dpatch by Julien Cristau <julien.cristau@ens-lyon.org>
+## call_ld_with_proper_flags.dpatch by Stefano Zacchiroli <zack@debian.org>
 ##
 ## All lines beginning with `## DP:' are a description of the patch.
 ## DP: Filter linkflags passed to ld by ocamlopt -pack and -output-obj
@@ -7,10 +7,10 @@
 ## DP: gcc.
 
 @DPATCH@
-diff -urNad ocaml-3.09.1+3.09.2rc1~/Makefile ocaml-3.09.1+3.09.2rc1/Makefile
---- ocaml-3.09.1+3.09.2rc1~/Makefile   2006-03-30 17:40:58.000000000 +0200
-+++ ocaml-3.09.1+3.09.2rc1/Makefile    2006-03-30 17:41:00.000000000 +0200
-@@ -313,6 +313,7 @@
+diff -urNad trunk~/Makefile trunk/Makefile
+--- trunk~/Makefile    2007-03-05 10:18:22.000000000 +0100
++++ trunk/Makefile     2007-04-11 10:51:08.000000000 +0200
+@@ -314,6 +314,7 @@
  partialclean::
        rm -f ocaml toplevel/toplevellib.cma
  
@@ -18,14 +18,14 @@ diff -urNad ocaml-3.09.1+3.09.2rc1~/Makefile ocaml-3.09.1+3.09.2rc1/Makefile
  # The configuration file
  
  utils/config.ml: utils/config.mlp config/Makefile
-@@ -324,8 +325,8 @@
+@@ -325,8 +326,8 @@
              -e 's|%%BYTELINK%%|$(BYTECC) $(BYTECCLINKOPTS)|' \
              -e 's|%%NATIVECC%%|$(NATIVECC) $(NATIVECCCOMPOPTS)|' \
              -e 's|%%NATIVELINK%%|$(NATIVECC) $(NATIVECCLINKOPTS)|' \
--            -e 's|%%PARTIALLD%%|ld -r $(NATIVECCLINKOPTS)|' \
--            -e 's|%%PACKLD%%|ld -r $(NATIVECCLINKOPTS)|' \
-+            -e 's|%%PARTIALLD%%|ld -r $(subst $(Wl),,$(NATIVECCLINKOPTS))|' \
-+            -e 's|%%PACKLD%%|ld -r $(subst $(Wl),,$(NATIVECCLINKOPTS))|' \
+-            -e 's|%%PARTIALLD%%|$(PARTIALLD) $(NATIVECCLINKOPTS)|' \
+-            -e 's|%%PACKLD%%|$(PARTIALLD) $(NATIVECCLINKOPTS) -o |' \
++            -e 's|%%PARTIALLD%%|$(PARTIALLD) $(subst $(Wl),,$(NATIVECCLINKOPTS))|' \
++            -e 's|%%PACKLD%%|$(PARTIALLD) $(subst $(Wl),,$(NATIVECCLINKOPTS)) -o |' \
              -e 's|%%BYTECCLIBS%%|$(BYTECCLIBS)|' \
              -e 's|%%NATIVECCLIBS%%|$(NATIVECCLIBS)|' \
              -e 's|%%RANLIBCMD%%|$(RANLIBCMD)|' \
index 024259492d8ca1ea4c954add08e662ebe591325f..0a098965425bcc1777a27900f8b924e47c8ca8e5 100755 (executable)
@@ -1,37 +1,22 @@
 #! /bin/sh /usr/share/dpatch/dpatch-run
-## no_rpath.dpatch by Red Hat people
+## no_rpath.dpatch by Stefano Zacchiroli <zack@debian.org>
 ##
 ## All lines beginning with `## DP:' are a description of the patch.
-## DP: Don't use rpath. This was shamelessly taken from
-## DP: http://cvs.fedora.redhat.com/lxr/extras/source/devel/ocaml/ocaml-rpath.patch
+## DP: Don't use rpath.
 
 @DPATCH@
-diff -urNad ocaml-3.09.2~/tools/Makefile ocaml-3.09.2/tools/Makefile
---- ocaml-3.09.2~/tools/Makefile       2006-05-04 00:05:39.000000000 +0200
-+++ ocaml-3.09.2/tools/Makefile        2006-05-04 00:05:40.000000000 +0200
-@@ -104,9 +104,6 @@
-       sed -e "s|%%BINDIR%%|$(BINDIR)|" \
-             -e "s|%%SUPPORTS_SHARED_LIBRARIES%%|$(SUPPORTS_SHARED_LIBRARIES)|" \
-             -e "s|%%MKSHAREDLIB%%|$(MKSHAREDLIB)|" \
--            -e "s|%%BYTECCRPATH%%|$(BYTECCRPATH)|" \
--            -e "s|%%NATIVECCRPATH%%|$(NATIVECCRPATH)|" \
--            -e "s|%%MKSHAREDLIBRPATH%%|$(MKSHAREDLIBRPATH)|" \
-             -e "s|%%RANLIB%%|$(RANLIB)|" \
-           ocamlmklib.mlp >> ocamlmklib.ml
+diff -urNad trunk~/tools/ocamlmklib.mlp trunk/tools/ocamlmklib.mlp
+--- trunk~/tools/ocamlmklib.mlp        2007-02-07 11:31:36.000000000 +0100
++++ trunk/tools/ocamlmklib.mlp 2007-04-11 11:10:26.000000000 +0200
+@@ -33,6 +33,11 @@
+ and implib = ref ""         (* windows implib flag *)
+ and verbose = ref false
  
-diff -urNad ocaml-3.09.2~/tools/ocamlmklib.mlp ocaml-3.09.2/tools/ocamlmklib.mlp
---- ocaml-3.09.2~/tools/ocamlmklib.mlp 2006-05-04 00:01:58.000000000 +0200
-+++ ocaml-3.09.2/tools/ocamlmklib.mlp  2006-05-04 00:05:40.000000000 +0200
-@@ -17,9 +17,9 @@
- let bindir = "%%BINDIR%%"
- and supports_shared_libraries = %%SUPPORTS_SHARED_LIBRARIES%%
- and mksharedlib = "%%MKSHAREDLIB%%"
--and bytecc_rpath = "%%BYTECCRPATH%%"
--and nativecc_rpath = "%%NATIVECCRPATH%%"
--and mksharedlib_rpath = "%%MKSHAREDLIBRPATH%%"
-+and bytecc_rpath = ""
-+and nativecc_rpath = ""
-+and mksharedlib_rpath = ""
- and ranlib = "%%RANLIB%%"
- let bytecode_objs = ref []  (* .cmo,.cma,.ml,.mli files to pass to ocamlc *)
++(* Debian specific: inhibit rpath *)
++let byteccrpath = ""
++and nativeccrpath = ""
++and mksharedlibrpath = ""
++
+ let starts_with s pref =
+   String.length s >= String.length pref &&
+   String.sub s 0 (String.length pref) = pref
index 4c1cccf6144689117ed74eea4a24ab0a9ee46f10..befa6aa02a9989c73807356de0f3af2fb4ca9ec8 100755 (executable)
@@ -8,8 +8,8 @@
 # We want to use dpatch.
 include /usr/share/dpatch/dpatch.make
 PACKAGE = ocaml
-OCAMLMAJOR = 3.09
-OCAMLMINOR = 3
+OCAMLMAJOR = 3.10
+OCAMLMINOR = 0
 OCAMLABI = $(OCAMLMAJOR).$(OCAMLMINOR)
 STDLIBDIR = /usr/lib/ocaml/$(OCAMLABI)
 MD5SUMSDIR = /var/lib/ocaml/md5sums