--- ocaml-3.11.2.orig/debian/ocaml-base-nox.dirs.in
+++ ocaml-3.11.2/debian/ocaml-base-nox.dirs.in
@@ -0,0 +1,4 @@
+usr/bin
+usr/share/man/man1
+@OCamlStdlibDir@
+@OCamlDllDir@
--- ocaml-3.11.2.orig/debian/native-archs
+++ ocaml-3.11.2/debian/native-archs
@@ -0,0 +1 @@
+amd64 hurd-i386 i386 kfreebsd-i386 kfreebsd-amd64 lpia powerpc sparc
--- ocaml-3.11.2.orig/debian/ocaml-nox.manpages.in
+++ ocaml-3.11.2/debian/ocaml-nox.manpages.in
@@ -0,0 +1,6 @@
+debian/man/ocamlmklib.1
+debian/man/ocamldumpobj.1
+debian/man/ocamlobjinfo.1
+debian/man/ocamlbyteinfo.1
+OPT: debian/man/ocamldumpapprox.1
+OPT: debian/man/ocamlplugininfo.1
--- ocaml-3.11.2.orig/debian/ocaml-base-nox.prerm.in
+++ ocaml-3.11.2/debian/ocaml-base-nox.prerm.in
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+rmdir /usr/local/lib/ocaml/@OCamlABI@/stublibs 2>/dev/null || true
+rmdir /usr/local/lib/ocaml/@OCamlABI@ 2>/dev/null || true
+rmdir /usr/local/lib/ocaml 2>/dev/null || true
+
+#DEBHELPER#
--- ocaml-3.11.2.orig/debian/compat
+++ ocaml-3.11.2/debian/compat
@@ -0,0 +1 @@
+7
--- ocaml-3.11.2.orig/debian/camlp4.links.in
+++ ocaml-3.11.2/debian/camlp4.links.in
@@ -0,0 +1,9 @@
+     usr/share/man/man1/camlp4.1.gz usr/share/man/man1/mkcamlp4.1.gz
+     usr/share/man/man1/camlp4.1.gz usr/share/man/man1/camlp4o.1.gz
+OPT: usr/share/man/man1/camlp4.1.gz usr/share/man/man1/camlp4o.opt.1.gz
+     usr/share/man/man1/camlp4.1.gz usr/share/man/man1/camlp4r.1.gz
+OPT: usr/share/man/man1/camlp4.1.gz usr/share/man/man1/camlp4r.opt.1.gz
+     usr/share/man/man1/camlp4.1.gz usr/share/man/man1/camlp4o.1.gz
+OPT: usr/share/man/man1/camlp4.1.gz usr/share/man/man1/camlp4o.opt.1.gz
+     usr/share/man/man1/camlp4.1.gz usr/share/man/man1/camlp4r.1.gz
+OPT: usr/share/man/man1/camlp4.1.gz usr/share/man/man1/camlp4r.opt.1.gz
--- ocaml-3.11.2.orig/debian/TODO.Debian
+++ ocaml-3.11.2/debian/TODO.Debian
@@ -0,0 +1,15 @@
+TODO list for ocaml 3.10.0 (and beyond ...)
+
+- lintian warnings
+
+  lintian /home/srv/debian/pkg-ocaml-maint/packages/ocaml/build-area/ocaml_3.10.0-3_i386.changes
+
+  W: ocaml-nox: script-not-executable ./usr/lib/ocaml/3.10.0/camlheader
+  W: ocaml-mode: binary-without-manpage usr/bin/ocamltags
+  E: ocaml-compiler-libs: copyright-should-refer-to-common-license-file-for-gpl
+  W: ocaml: binary-without-manpage usr/bin/labltk
+  W: ocaml: binary-without-manpage usr/bin/ocamlbrowser
+
+- old bugreports
+
+  * http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=255245 is (will be) fixed in 3.12
--- ocaml-3.11.2.orig/debian/ocaml.examples
+++ ocaml-3.11.2/debian/ocaml.examples
@@ -0,0 +1 @@
+debian/examples/*
--- ocaml-3.11.2.orig/debian/ocaml-base-nox.README.Debian
+++ ocaml-3.11.2/debian/ocaml-base-nox.README.Debian
@@ -0,0 +1,56 @@
+OCaml for Debian
+----------------
+
+  1) The OCaml package has been split into different binary packages:
+
+  o ocaml: contains the full OCaml suite
+  o ocaml-nox: the full suite except for the Graphics and Tk modules
+  o ocaml-base: contains the runtime stuff (ocamlrun + dlls + Tk)
+  o ocaml-base-nox: contains the runtime stuff (ocamlrun + dlls - Tk)
+
+  o ocaml-native-compilers: contains the native built part of the OCaml suite
+    (ocamlc.opt, ocamlopt.opt, ocamllex.opt, camlp4o.opt and camlp4r.opt)
+  o ocaml-compiler-libs: contains several modules used internally by
+    the OCaml compilers.  They are not needed for normal OCaml
+    development, but may be helpful in the development of certain
+    applications.
+  o ocaml-source: contains the full OCaml source for the (few) packages which
+    need them at build time or for personal use (it should _not_ be used to
+    build OCaml itself).
+
+  o ocaml-mode: contains a major mode for editing OCaml files in Emacs.
+
+  2) The caml include files are found under /usr/lib/ocaml/<ocaml_version>/caml.
+  A symlink is provided from /usr/include/caml for convenience. If
+  /usr/include/caml was previously a directory, for whatever reason, a warning
+  will be issued and the file moved to /usr/include/caml.bad. This can be
+  safely erased later on.
+
+  3) User-installed stuff should not go under /usr/lib/ocaml/<ocaml_version>,
+  but rather under /usr/local/lib/ocaml/<ocaml_version>.
+  We will take no responsability for people who break this rule and mess things
+  up.
+
+  4) Starting from OCaml 3.05, all dll.so files are now put into a common
+  stublibs directory, so the ocaml-ldconf tool for handling the ld.conf
+  file is not needed anymore, but we will still keep it aroung until all
+  libraries are ported. As of OCaml 3.08, ocaml-ldconf is now deprecated
+  and not available anymore.
+  Notice that user-installed dll.so files should go into
+  /usr/local/lib/ocaml/<ocaml_version>/stublibs which is searched before
+  /usr/lib/ocaml/<ocaml_version>/stublibs.
+
+ -- Jerome Marant <jerome@debian.org>, Sat Aug 20 11:51:32 2005
+
+ocamldoc's LaTeX output
+-----------------------
+
+ocamldoc can generated documentation in LaTeX format which can be later on
+compiled using a LaTeX environment. The LaTeX sources generated by ocamldoc
+exploits the fullpage.sty style, which is not included in a default texlive
+installation (the Debian LaTeX environment of choice).
+
+In order to be able to compile ocamldoc generated LaTeX sources you will need
+to install the "texlive-latex-extra" package.
+
+ -- Stefano Zacchiroli <zack@debian.org>  Sun, 02 Sep 2007 18:22:14 +0200
--- ocaml-3.11.2.orig/debian/ocaml-source.install.in
+++ ocaml-3.11.2/debian/ocaml-source.install.in
@@ -0,0 +1 @@
+debian/ocaml-source-@OCamlABI@.tar.bz2 /usr/src/
--- ocaml-3.11.2.orig/debian/ocaml-base-nox.install.in
+++ ocaml-3.11.2/debian/ocaml-base-nox.install.in
@@ -0,0 +1,78 @@
+     usr/bin/ocamlrun
+     usr/share/man/man1/ocamlrun.1
+     toplevel/*.mli @OCamlStdlibDir@
+     @OCamlDllDir@/dllunix.so
+     @OCamlDllDir@/dllstr.so
+     @OCamlDllDir@/dllbigarray.so
+     @OCamlDllDir@/dllthreads.so
+     @OCamlDllDir@/dllvmthreads.so
+     @OCamlDllDir@/dllmldbm.so
+     @OCamlDllDir@/dllnums.so
+     @OCamlStdlibDir@/ld.conf
+     debian/ld.conf @OCamlStdlibDir@
+     @OCamlStdlibDir@/dbm.cma
+OPT: @OCamlStdlibDir@/dbm.cmxs
+     @OCamlStdlibDir@/unix.cma
+OPT: @OCamlStdlibDir@/unix.cmxs
+     @OCamlStdlibDir@/str.cma
+OPT: @OCamlStdlibDir@/str.cmxs
+     @OCamlStdlibDir@/bigarray.cma
+OPT: @OCamlStdlibDir@/bigarray.cmxs
+     @OCamlStdlibDir@/nums.cma
+OPT: @OCamlStdlibDir@/nums.cmxs
+     @OCamlStdlibDir@/arg.cmi
+     @OCamlStdlibDir@/array.cmi
+     @OCamlStdlibDir@/arrayLabels.cmi
+     @OCamlStdlibDir@/buffer.cmi
+     @OCamlStdlibDir@/callback.cmi
+     @OCamlStdlibDir@/camlinternalOO.cmi
+     @OCamlStdlibDir@/char.cmi
+     @OCamlStdlibDir@/complex.cmi
+     @OCamlStdlibDir@/digest.cmi
+     @OCamlStdlibDir@/filename.cmi
+     @OCamlStdlibDir@/format.cmi
+     @OCamlStdlibDir@/gc.cmi
+     @OCamlStdlibDir@/genlex.cmi
+     @OCamlStdlibDir@/hashtbl.cmi
+     @OCamlStdlibDir@/int32.cmi
+     @OCamlStdlibDir@/int64.cmi
+     @OCamlStdlibDir@/lazy.cmi
+     @OCamlStdlibDir@/lexing.cmi
+     @OCamlStdlibDir@/list.cmi
+     @OCamlStdlibDir@/listLabels.cmi
+     @OCamlStdlibDir@/map.cmi
+     @OCamlStdlibDir@/marshal.cmi
+     @OCamlStdlibDir@/moreLabels.cmi
+     @OCamlStdlibDir@/nativeint.cmi
+     @OCamlStdlibDir@/obj.cmi
+     @OCamlStdlibDir@/oo.cmi
+     @OCamlStdlibDir@/parsing.cmi
+     @OCamlStdlibDir@/pervasives.cmi
+     @OCamlStdlibDir@/printexc.cmi
+     @OCamlStdlibDir@/printf.cmi
+     @OCamlStdlibDir@/queue.cmi
+     @OCamlStdlibDir@/random.cmi
+     @OCamlStdlibDir@/scanf.cmi
+     @OCamlStdlibDir@/set.cmi
+     @OCamlStdlibDir@/sort.cmi
+     @OCamlStdlibDir@/stack.cmi
+     @OCamlStdlibDir@/stdLabels.cmi
+     @OCamlStdlibDir@/std_exit.cmi
+     @OCamlStdlibDir@/stream.cmi
+     @OCamlStdlibDir@/string.cmi
+     @OCamlStdlibDir@/stringLabels.cmi
+     @OCamlStdlibDir@/sys.cmi
+     @OCamlStdlibDir@/weak.cmi
+     @OCamlStdlibDir@/toploop.cmi
+     @OCamlStdlibDir@/topdirs.cmi
+     @OCamlStdlibDir@/topmain.cmi
+     @OCamlStdlibDir@/unix.cmi
+     @OCamlStdlibDir@/unixLabels.cmi
+     @OCamlStdlibDir@/str.cmi
+     @OCamlStdlibDir@/dynlink.cmi
+     @OCamlStdlibDir@/bigarray.cmi
+     @OCamlStdlibDir@/big_int.cmi
+     @OCamlStdlibDir@/nat.cmi
+     @OCamlStdlibDir@/num.cmi
+     @OCamlStdlibDir@/ratio.cmi
+     @OCamlStdlibDir@/arith_status.cmi
--- ocaml-3.11.2.orig/debian/ocaml-mode.emacsen-startup
+++ ocaml-3.11.2/debian/ocaml-mode.emacsen-startup
@@ -0,0 +1,22 @@
+;; -*-emacs-lisp-*-
+;;
+;; Emacs startup file for the Debian GNU/Linux ocaml package
+;;
+;; Originally contributed by Nils Naumann <naumann@unileoben.ac.at>
+;; Modified by Dirk Eddelbuettel <edd@debian.org>
+;; Adapted for dh-make by Jim Van Zandt <jrv@vanzandt.mv.com>
+
+;; The ocaml package follows the Debian/GNU Linux 'emacsen' policy and
+;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
+;; xemacs19, emacs20, xemacs20...).  The compiled code is then
+;; installed in a subdirectory of the respective site-lisp directory.
+;; We have to add this to the load-path:
+(setq load-path
+      (nconc load-path
+	     (list (concat "/usr/share/"
+			   (symbol-name flavor)
+			   "/site-lisp/ocaml-mode"))))
+(setq auto-mode-alist
+          (cons '("\\.ml[iylp]?\\'" . caml-mode) auto-mode-alist))
+(autoload 'caml-mode "caml" "Major mode for editing Caml code." t)
+(autoload 'run-caml "inf-caml" "Run an inferior Caml process." t)
--- ocaml-3.11.2.orig/debian/rules
+++ ocaml-3.11.2/debian/rules
@@ -0,0 +1,257 @@
+#!/usr/bin/make -f
+include /usr/share/quilt/quilt.make
+
+PACKAGE := ocaml
+ALL_PACKAGES := $(shell sed -ne 's/^Package: //p' debian/control)
+OCAMLMAJOR := 3.11
+OCAMLMINOR := 2
+
+# Build cache (for Debian debugging)
+BUILDCACHE := $(wildcard ../ocaml.cache)
+
+# These are defined here to avoid definition of them in ocamlvars.mk
+OCAML_ABI := $(OCAMLMAJOR).$(OCAMLMINOR)
+OCAML_STDLIB_DIR := /usr/lib/ocaml
+OCAML_NATIVE_ARCHS := $(shell cat debian/native-archs)
+DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+OCAML_OPT_ARCH := $(findstring $(DEB_BUILD_ARCH),$(OCAML_NATIVE_ARCHS))
+OCAML_HAVE_OCAMLOPT := $(if $(OCAML_OPT_ARCH),yes,no)
+OCAML_OCAMLDOC_DESTDIR_HTML =
+
+# dh_ocamlinit cannot be used for ocaml itself
+include debian/ocamlinit.mk
+
+MD5SUMSDIR = /var/lib/ocaml/md5sums
+INSTDIR = $(CURDIR)/debian/tmp/usr
+DISTDIR = $(PACKAGE)-$(OCAML_ABI)
+SRCTARBALL = $(PACKAGE)-source-$(OCAML_ABI).tar.bz2
+
+# Environment variable for dh_ocaml
+OCAMLBYTEINFO = boot/ocamlrun debian/ocamlbyteinfo/ocamlbyteinfo
+OCAMLPLUGININFO = debian/ocamlbyteinfo/ocamlplugininfo
+OCAMLDUMPAPPROX = boot/ocamlrun tools/dumpapprox
+OCAMLOBJINFO = boot/ocamlrun tools/objinfo
+export OCAMLBYTEINFO
+export OCAMLPLUGININFO
+export OCAMLDUMPAPPROX
+export OCAMLOBJINFO
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export DH_OPTIONS
+ifeq ($(OCAML_OPT_ARCH),)
+  DH_OPTIONS += -Nocaml-native-compilers
+endif
+
+# This has to be exported to make gen_modules work
+export OCAML_OPT_ARCH
+export OCAML_STDLIB_DIR
+
+CONFIGURE_OPTS := \
+  --with-pthread -prefix /usr \
+  -libdir $(OCAML_STDLIB_DIR) \
+  -mandir /usr/share/man \
+  -tkdefs "-I/usr/include/tcl8.5" \
+  -tklibs "-L/usr/lib -ltk8.5 -ltcl8.5"
+
+CONFIGURE_SED := \
+  -e "s%MANDIR=.*$$%MANDIR=\$$(PREFIX)/share/man%g" \
+  -e "s%LIBDIR=.*$$%LIBDIR=\$$(PREFIX)/lib/ocaml%g" \
+  -e "s%STUBLIBDIR=.*$$%STUBLIBDIR=\$$(PREFIX)/lib/ocaml/stublibs%g"
+
+
+$(QUILT_STAMPFN): debian/$(SRCTARBALL)
+ocamlinit-stamp: debian/$(SRCTARBALL)
+
+# Generate ocaml-native-compilers' Architecture field.
+# Should never be called automatically.
+.PHONY: debian/control
+debian/control:
+	sed -e 's/@OCamlNativeArchs@/$(OCAML_NATIVE_ARCHS)/g' debian/control.in > $@
+
+pre-config-stamp: debian/$(SRCTARBALL)
+	chmod +x debian/gen_modules.pl
+# Backup upstream config.{sub,guess}, and use most up-to-date ones
+	for ext in sub guess; do \
+	  if [ -f /usr/share/misc/config.$$ext ] && \
+	    ! [ -f debian/config.orig.$$ext ]; then \
+	    mv config/gnu/config.$$ext debian/config.orig.$$ext; \
+	    cp -f /usr/share/misc/config.$$ext config/gnu/config.$$ext; \
+	  fi; \
+	done
+	touch $@
+
+debian/$(SRCTARBALL):
+	ln -fs . $(DISTDIR)	# beware of the symlink recursion!
+	tar --anchored -chjf $@ \
+	  --exclude=$(DISTDIR)/$(DISTDIR)	\
+	  --exclude-from=debian/ocaml-source.exclude \
+	  $(DISTDIR)/
+	rm -f $(DISTDIR)
+
+config-stamp: pre-config-stamp $(QUILT_STAMPFN) ocamlinit-stamp
+	dh build --before dh_auto_configure
+	./configure $(CONFIGURE_OPTS)
+	sed -i $(CONFIGURE_SED) config/Makefile
+	if test -z "`grep "OTHERLIBRARIES.*labltk" config/Makefile`"; then \
+	  echo "Error, labltk library was not detected"; \
+	  echo "Check your tcl/tk development packages"; \
+	  echo "Aborting."; \
+	  exit 1; \
+	fi
+	touch $@
+
+$(QUILT_STAMPFN): ocamlinit-stamp
+
+build: build-stamp
+build-stamp: config-stamp
+	if test ! -d boot.debian; then \
+	  cp -xa boot boot.debian; \
+	fi
+	rm -Rf debian/examples && mkdir debian/examples
+	cp -a otherlibs/labltk/examples_labltk debian/examples/labltk
+	find debian/examples/labltk -name .cvsignore -delete
+ifeq ($(BUILDCACHE),)
+	$(MAKE) world
+	$(MAKE) bootstrap
+	$(MAKE) -C tools objinfo dumpobj
+ifeq (,$(OCAML_OPT_ARCH))
+# As of 3.11.0, manpages are made only in `make opt.opt'
+	make -C ocamldoc manpages \
+	  OCAMLDOC_RUN="../boot/ocamlrun -I ../otherlibs/unix -I ../otherlibs/str ./ocamldoc"
+	$(MAKE) -f debian/ocamlbyteinfo/Makefile ocamlbyteinfo
+else
+	@echo "Building native compilers"
+	$(MAKE) opt opt.opt
+	$(MAKE) -C tools dumpapprox
+	$(MAKE) -f debian/ocamlbyteinfo/Makefile
+	touch opt-built-stamp
+endif
+else
+	@echo "===> WARNING: $(BUILDCACHE) detected, compilation skipped! <==="
+	rsync -a --exclude=debian --exclude=.git $(BUILDCACHE)/ .
+	rsync -a $(BUILDCACHE)/debian/ocamlbyteinfo/ debian/ocamlbyteinfo/
+	rm -f build-stamp install-stamp
+endif
+	dh build --after dh_auto_test
+	touch $@
+
+clean: unpatch ocamlinit-clean
+	dh clean --before dh_auto_clean
+ifneq ($(wildcard $(CURDIR)/config/Makefile),)
+	$(MAKE) clean
+	$(MAKE) -C emacs clean
+endif
+# Restore files altered by the build process
+	if test -d boot.debian; then \
+	  rm -Rf boot; \
+	  mv boot.debian boot; \
+	fi
+	for ext in sub guess; do \
+	  if [ -f debian/config.orig.$$ext ] ; then \
+	    mv -f debian/config.orig.$$ext config/gnu/config.$$ext; \
+	  fi; \
+	done
+	if head -n 1 emacs/ocamltags.in | grep -q '^#!/bin/sh'; then \
+		sed -i 1d emacs/ocamltags.in; \
+	fi
+# Remaining stuff
+	-rm -Rf debian/$(SRCTARBALL) debian/examples
+	$(MAKE) -f debian/ocamlbyteinfo/Makefile clean
+	dh clean --after dh_auto_clean
+
+install: install-stamp
+install-stamp:
+	dh install --before dh_auto_install
+# Install Emacs files
+	$(MAKE) -C emacs \
+	  EMACSDIR=$(CURDIR)/debian/ocaml-mode/usr/share/emacs/site-lisp/ocaml-mode \
+	  NOCOMPILE=true simple-install
+	if ! head -n 1 emacs/ocamltags.in | grep -q '^#!/bin/sh'; then \
+	  sed -i -e '1 i #!/bin/sh' emacs/ocamltags.in; \
+	fi
+	$(MAKE) -C emacs SCRIPTDIR=$(CURDIR)/debian/ocaml-mode/usr/bin install-ocamltags
+# Install OCaml
+	sed -e 's|PREFIX=\"/.*\"|PREFIX=\"$(INSTDIR)"|' < config/config.sh > config/config.debian.install.sh
+	$(MAKE) install PREFIX=$(INSTDIR)
+# To avoid erroneous dh_install warnings
+	rm -f $(INSTDIR)/share/man/man1/ocamlopt.opt.1 $(INSTDIR)/share/man/man1/ocamlc.opt.1
+# Dispatch files with dh_install
+	cd debian && \
+	for u in ocaml ocaml-nox; do \
+	  DESTDIR=tmp ./gen_modules.pl $$u.install > $$u.install.new; \
+	  mv $$u.install.new $$u.install; \
+	done
+	if ! dh_install --list-missing; then \
+	  echo "===> dh_install has failed <==="; \
+	  find debian/tmp; \
+	  exit 1; \
+	fi
+# Install additional files not handled by dh_install
+# Beware: dh_install does not handle renamings, please pay attention
+	cp otherlibs/labltk/README debian/ocaml/usr/share/doc/ocaml/README.labltk
+	for u in dumpobj objinfo dumpapprox; do \
+	  if [ -f tools/$$u ]; then \
+	    cp tools/$$u debian/ocaml-nox/usr/bin/ocaml$$u; \
+	  fi \
+	done
+	for u in ocamlbyteinfo ocamlplugininfo; do \
+	  if [ -f debian/ocamlbyteinfo/$$u ]; then \
+	    cp debian/ocamlbyteinfo/$$u debian/ocaml-nox/usr/bin/$$u; \
+	  fi \
+	done
+	for mli in `find camlp4 -name '*.mli'` ; do \
+	  cp --parents $$mli debian/camlp4$(OCAML_STDLIB_DIR); \
+	done
+	for pkg in ocaml ocaml-nox ocaml-base; do ( \
+	  cd debian/$$pkg/usr/share/doc/$$pkg && \
+	  ln -sf ../ocaml-base-nox/Changes.gz . && \
+	  ln -sf ../ocaml-base-nox/README.gz . && \
+	  ln -sf ../ocaml-base-nox/README.Debian .; \
+	); done
+# Remove empty directory
+	rmdir $(CURDIR)/debian/ocaml-nox$(OCAML_STDLIB_DIR)/ocamldoc/custom
+# Remaining stuff
+	dh install --after dh_install --before dh_compress
+	dh_compress -Xexamples/labltk
+	dh install --after dh_compress
+	touch $@
+
+binary-stamp: install-stamp
+	dh binary --before dh_gencontrol
+	for u in $(ALL_PACKAGES); do \
+	  echo 'F:OCamlABI=$(OCAML_ABI)' >> debian/$$u.substvars; \
+	done
+ifeq (,$(OCAML_OPT_ARCH))
+	echo 'F:BestProvides=ocaml-best-compilers' >> debian/ocaml-nox.substvars
+else
+	echo 'F:BestProvides=' >> debian/ocaml-nox.substvars
+endif
+	# Create .md5sums files and compute dependencies. Use
+	# $(OCAML_ABI) because we know that OCaml ABI represents
+	# best dependencies for OCaml package.
+	dh_ocaml -Xcompiler-libs -Xcamlp4-extra \
+	 --runtime-map ocaml-nox:ocaml-base-nox,ocaml:ocaml-base,camlp4 \
+	 --checksum $(OCAML_ABI)
+	dh_gencontrol
+	# Check that OCAML_ABI is correct
+	if [ "$(OCAML_ABI)" != "$(shell boot/ocamlrun ocamlc -version)" ]; then \
+	  echo "Please adjust OCAML_ABI in debian/rules"; \
+	  exit 2; \
+	fi
+	dh binary --after dh_gencontrol
+	touch $@
+
+binary: binary-arch binary-indep
+binary-arch: binary-stamp
+binary-indep: binary-stamp
+
+.PHONY: build clean binary-indep binary-arch binary install build ocamlinit
+
+.PHONY: redo-patches
+redo-patches:
+	rm -f debian/patches/*
+	git format-patch -N -o debian/patches upstream...patch-queue | \
+	  sed -e 's%debian/patches/%%' > debian/patches/series
+	sed -i -e 1d debian/patches/*.patch
--- ocaml-3.11.2.orig/debian/ocaml-nox.dirs.in
+++ ocaml-3.11.2/debian/ocaml-nox.dirs.in
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/doc/ocaml-nox
--- ocaml-3.11.2.orig/debian/camlp4.manpages
+++ ocaml-3.11.2/debian/camlp4.manpages
@@ -0,0 +1 @@
+debian/man/camlp4.1
--- ocaml-3.11.2.orig/debian/ocaml-nox.lintian-overrides.in
+++ ocaml-3.11.2/debian/ocaml-nox.lintian-overrides.in
@@ -0,0 +1 @@
+ocaml-nox: script-not-executable .@OCamlStdlibDir@/camlheader
--- ocaml-3.11.2.orig/debian/ocaml-nox.preinst
+++ ocaml-3.11.2/debian/ocaml-nox.preinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+if [ ! -h /usr/include/caml ] && [ -e /usr/include/caml ]; then
+	echo "WARNING, /usr/include/caml is not a symlink !!!!"
+fi
+
+#DEBHELPER#
--- ocaml-3.11.2.orig/debian/ld.conf.in
+++ ocaml-3.11.2/debian/ld.conf.in
@@ -0,0 +1,2 @@
+/usr/local/lib/ocaml/@OCamlABI@/stublibs
+@OCamlDllDir@
--- ocaml-3.11.2.orig/debian/ocaml-mode.dirs
+++ ocaml-3.11.2/debian/ocaml-mode.dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/emacs/site-lisp/ocaml-mode
--- ocaml-3.11.2.orig/debian/control
+++ ocaml-3.11.2/debian/control
@@ -0,0 +1,299 @@
+Source: ocaml
+Section: ocaml
+Priority: optional
+Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
+Uploaders:
+ Stefano Zacchiroli <zack@debian.org>,
+ Samuel Mimram <smimram@debian.org>,
+ Sylvain Le Gall <gildor@debian.org>,
+ Ralf Treinen <treinen@debian.org>,
+ Stéphane Glondu <glondu@debian.org>,
+ Mehdi Dogguy <mehdi@debian.org>
+Build-Depends:
+ debhelper (>= 7),
+ autotools-dev,
+ tcl8.5-dev,
+ tk8.5-dev,
+ libncurses5-dev,
+ libgdbm-dev,
+ quilt,
+ bzip2,
+ dh-ocaml (>= 0.9)
+Standards-Version: 3.8.4
+Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/ocaml.git
+Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/ocaml.git
+Homepage: http://caml.inria.fr/
+
+Package: ocaml-nox
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ${ocaml:Depends},
+ libncurses5-dev,
+ ocaml-interp (= ${binary:Version}),
+ gcc,
+ binutils
+Provides:
+ ${ocaml:Provides},
+ ${F:BestProvides},
+ libnums-ocaml-dev
+Suggests:
+ ocaml-doc,
+ libgdbm-dev,
+ tuareg-mode | ocaml-mode
+Recommends:
+ camlp4,
+ file
+Replaces:
+ ocaml-interp (<< 3.11.1-3),
+ camlp4 (<< 3.10.0),
+ focaml (<< 3.07.2a-3),
+ libnums-ocaml-dev
+Conflicts:
+ ocaml-interp (<< 3.11.1-3),
+ camlp4 (<< 3.10.0),
+ camlidl (<< 1.04),
+ ocaml (<< 3.07.2a-3),
+ libnums-ocaml-dev
+Description: ML implementation with a class-based object system (no X)
+ Objective Caml (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ OCaml comprises two compilers. One generates bytecode
+ which is then interpreted by a C program. This compiler runs quickly,
+ generates compact code with moderate memory requirements, and is
+ portable to essentially any 32 or 64 bit Unix platform. Performance of
+ generated programs is quite good for a bytecoded implementation:
+ almost twice as fast as Caml Light 0.7. This compiler can be used
+ either as a standalone, batch-oriented compiler that produces
+ standalone programs, or as an interactive, toplevel-based system.
+ .
+ The other compiler generates high-performance native code for a number
+ of processors. Compilation takes longer and generates bigger code, but
+ the generated programs deliver excellent performance, while retaining
+ the moderate memory requirements of the bytecode compiler. It is not
+ available on all arches though.
+ .
+ This package contains everything needed to develop OCaml applications
+ that do not require the graphics library.
+
+Package: camlp4
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ${ocaml:Depends}
+Provides:
+ ${ocaml:Provides}
+Description: Pre Processor Pretty Printer for OCaml
+ Objective Caml (OCaml) is an implementation of the ML language,
+ based on the Caml Light dialect extended with a complete
+ class-based object system and a powerful module system in the
+ style of Standard ML.
+ .
+ CamlP4 is a Pre-Processor-Pretty-Printer for Objective Caml. It
+ offers tools for syntax (Stream Parsers and Grammars) and the
+ ability to modify the concrete syntax of the language
+ (Quotations, Syntax Extensions).
+ .
+ This package contains the basic CamlP4 executables and libraries
+ for pre-processing and pretty-printing OCaml sources both
+ interactively and in a batch fashion.
+
+Package: camlp4-extra
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ${ocaml:Depends},
+ ocaml-nox-${F:OCamlABI},
+ camlp4-${F:OCamlABI}
+Description: Pre Processor Pretty Printer for OCaml - extras
+ Objective Caml (OCaml) is an implementation of the ML language,
+ based on the Caml Light dialect extended with a complete
+ class-based object system and a powerful module system in the
+ style of Standard ML.
+ .
+ CamlP4 is a Pre-Processor-Pretty-Printer for Objective Caml. It
+ offers tools for syntax (Stream Parsers and Grammars) and the
+ ability to modify the concrete syntax of the language
+ (Quotations, Syntax Extensions).
+ .
+ This package contains pre-linked executables and libraries for
+ pre-processing and pretty-printing OCaml sources out of the box
+ for various common needs.
+
+Package: ocaml
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ${ocaml:Depends},
+ libx11-dev
+Provides:
+ ${ocaml:Provides}
+Suggests:
+ tcl8.5-dev,
+ tk8.5-dev
+Replaces: ocaml-nox (<< 3.11.0-2)
+Description: ML language implementation with a class-based object system
+ Objective Caml (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ OCaml comprises two compilers. One generates bytecode
+ which is then interpreted by a C program. This compiler runs quickly,
+ generates compact code with moderate memory requirements, and is
+ portable to essentially any 32 or 64 bit Unix platform. Performance of
+ generated programs is quite good for a bytecoded implementation:
+ almost twice as fast as Caml Light 0.7. This compiler can be used
+ either as a standalone, batch-oriented compiler that produces
+ standalone programs, or as an interactive, toplevel-based system.
+ .
+ The other compiler generates high-performance native code for a number
+ of processors. Compilation takes longer and generates bigger code, but
+ the generated programs deliver excellent performance, while retaining
+ the moderate memory requirements of the bytecode compiler. It is not
+ available on all arches though.
+ .
+ This package contains everything needed to develop OCaml applications,
+ including the graphics libraries.
+
+Package: ocaml-base-nox
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ${ocaml:Depends}
+Provides:
+ ${ocaml:Provides}
+Replaces:
+ ocaml-interp (<< 3.11.1-3),
+ ocaml-base (<< 3.07.2a-3),
+ libnums-ocaml
+Conflicts:
+ ocaml-interp (<< 3.11.1-3),
+ ocaml (<< 3.04-2),
+ ocaml-base (<< 3.07.2a-3),
+ libnums-ocaml
+Description: Runtime system for OCaml bytecode executables (no X)
+ Objective Caml (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ This package contains only the runtime system needed to run bytecode
+ executables that do not use the graphics library. The 'ocaml' package
+ contains the full development suite of Objective Caml.
+
+Package: ocaml-base
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ${ocaml:Depends}
+Provides:
+ ${ocaml:Provides}
+Description: Runtime system for OCaml bytecode executables
+ Objective Caml (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ This package contains only the runtime system needed to run bytecode
+ executables. The 'ocaml' package contains the full development suite of
+ Objective Caml.  You may wish to install the 'ocaml-base-nox' package if
+ you do not require any graphical capabilities for your runtime.
+
+Package: ocaml-native-compilers
+Architecture: amd64 hurd-i386 i386 kfreebsd-i386 kfreebsd-amd64 lpia powerpc sparc
+Depends:
+ ocaml-nox (= ${binary:Version}),
+ gcc, binutils,
+ ${shlibs:Depends},
+ ${misc:Depends}
+Provides: ocaml-best-compilers
+Replaces: ocaml-nox (<= 3.09.2-3)
+Description: Native code compilers of the OCaml suite (the .opt ones)
+ Objective Caml (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ This package contains the native code version of the compilers and lexer
+ (ocamlc.opt, ocamllex.opt, ocamlopt.opt, camlp4o.opt and camlp4r.opt).
+ The normal version of these programs are found in the 'ocaml' package.
+ For big source codes, these packages can be two to three times faster, but
+ for most normal sized sources, the difference won't be noticeable.
+
+Package: ocaml-source
+Architecture: all
+Depends: ${misc:Depends}
+Provides: ocaml-source-${F:OCamlABI}
+Description: Sources for Objective Caml
+ Objective Caml (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ This package contains the sources needed to build some packages which build
+ depend on the OCaml source. Notice that if you want to rebuild OCaml, these
+ will not work, consider using the source package instead.
+
+Package: ocaml-interp
+Architecture: any
+Depends:
+ ${ocaml:Depends},
+ ${shlibs:Depends},
+ ${misc:Depends}
+Provides:
+ ocaml-interp-${F:OCamlABI}
+Recommends: ledit | readline-editor
+Replaces: ocaml (<< 3.07.2a-3)
+Conflicts: ocaml (<< 3.07.2a-3)
+Description: OCaml interactive interpreter and standard libraries
+ Objective Caml (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ This package contains the files required to run an OCaml shell from the
+ command line.
+
+Package: ocaml-compiler-libs
+Architecture: any
+Depends:
+ ${ocaml:Depends},
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ocaml-nox-${F:OCamlABI}
+Provides:
+ ocaml-compiler-libs-${F:OCamlABI}
+Description: OCaml interpreter and standard libraries
+ Objective (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ This package contains several modules used internally by the OCaml
+ compilers.  They are not needed for normal OCaml development, but may
+ be helpful in the development of certain applications.
+
+Package: ocaml-mode
+Architecture: all
+Depends:
+ emacs23 | emacsen,
+ ${shlibs:Depends},
+ ${misc:Depends}
+Suggests: ocaml
+Conflicts: ocaml-nox (<< 3.08.3-8)
+Description: A major mode for editing Objective Caml in Emacs
+ Objective (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ This package provides support for editing both Objective Caml and
+ Caml Light programs with Emacs and XEmacs.
+ .
+ Caml-mode supports:
+  - indentation
+  - compilation and error retrieving
+  - interaction with the toplevel
+  - font-lock
+  - imenu
--- ocaml-3.11.2.orig/debian/ocaml-nox.links.in
+++ ocaml-3.11.2/debian/ocaml-nox.links.in
@@ -0,0 +1,2 @@
+     usr/share/man/man1/ocamlbuild.1.gz usr/share/man/man1/ocamlbuild.byte.1.gz
+OPT: usr/share/man/man1/ocamlbuild.1.gz usr/share/man/man1/ocamlbuild.native.1.gz
--- ocaml-3.11.2.orig/debian/control.in
+++ ocaml-3.11.2/debian/control.in
@@ -0,0 +1,299 @@
+Source: ocaml
+Section: ocaml
+Priority: optional
+Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
+Uploaders:
+ Stefano Zacchiroli <zack@debian.org>,
+ Samuel Mimram <smimram@debian.org>,
+ Sylvain Le Gall <gildor@debian.org>,
+ Ralf Treinen <treinen@debian.org>,
+ Stéphane Glondu <glondu@debian.org>,
+ Mehdi Dogguy <mehdi@debian.org>
+Build-Depends:
+ debhelper (>= 7),
+ autotools-dev,
+ tcl8.5-dev,
+ tk8.5-dev,
+ libncurses5-dev,
+ libgdbm-dev,
+ quilt,
+ bzip2,
+ dh-ocaml (>= 0.9)
+Standards-Version: 3.8.3
+Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/ocaml.git
+Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/ocaml.git
+Homepage: http://caml.inria.fr/
+
+Package: ocaml-nox
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ${ocaml:Depends},
+ libncurses5-dev,
+ ocaml-interp (= ${binary:Version}),
+ gcc,
+ binutils
+Provides:
+ ${ocaml:Provides},
+ ${F:BestProvides},
+ libnums-ocaml-dev
+Suggests:
+ ocaml-doc,
+ libgdbm-dev,
+ tuareg-mode | ocaml-mode
+Recommends:
+ camlp4,
+ file
+Replaces:
+ ocaml-interp (<< 3.11.1-3),
+ camlp4 (<< 3.10.0),
+ focaml (<< 3.07.2a-3),
+ libnums-ocaml-dev
+Conflicts:
+ ocaml-interp (<< 3.11.1-3),
+ camlp4 (<< 3.10.0),
+ camlidl (<< 1.04),
+ ocaml (<< 3.07.2a-3),
+ libnums-ocaml-dev
+Description: ML implementation with a class-based object system (no X)
+ Objective Caml (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ OCaml comprises two compilers. One generates bytecode
+ which is then interpreted by a C program. This compiler runs quickly,
+ generates compact code with moderate memory requirements, and is
+ portable to essentially any 32 or 64 bit Unix platform. Performance of
+ generated programs is quite good for a bytecoded implementation:
+ almost twice as fast as Caml Light 0.7. This compiler can be used
+ either as a standalone, batch-oriented compiler that produces
+ standalone programs, or as an interactive, toplevel-based system.
+ .
+ The other compiler generates high-performance native code for a number
+ of processors. Compilation takes longer and generates bigger code, but
+ the generated programs deliver excellent performance, while retaining
+ the moderate memory requirements of the bytecode compiler. It is not
+ available on all arches though.
+ .
+ This package contains everything needed to develop OCaml applications
+ that do not require the graphics library.
+
+Package: camlp4
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ${ocaml:Depends}
+Provides:
+ ${ocaml:Provides}
+Description: Pre Processor Pretty Printer for OCaml
+ Objective Caml (OCaml) is an implementation of the ML language,
+ based on the Caml Light dialect extended with a complete
+ class-based object system and a powerful module system in the
+ style of Standard ML.
+ .
+ CamlP4 is a Pre-Processor-Pretty-Printer for Objective Caml. It
+ offers tools for syntax (Stream Parsers and Grammars) and the
+ ability to modify the concrete syntax of the language
+ (Quotations, Syntax Extensions).
+ .
+ This package contains the basic CamlP4 executables and libraries
+ for pre-processing and pretty-printing OCaml sources both
+ interactively and in a batch fashion.
+
+Package: camlp4-extra
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ${ocaml:Depends},
+ ocaml-nox-${F:OCamlABI},
+ camlp4-${F:OCamlABI}
+Description: Pre Processor Pretty Printer for OCaml - extras
+ Objective Caml (OCaml) is an implementation of the ML language,
+ based on the Caml Light dialect extended with a complete
+ class-based object system and a powerful module system in the
+ style of Standard ML.
+ .
+ CamlP4 is a Pre-Processor-Pretty-Printer for Objective Caml. It
+ offers tools for syntax (Stream Parsers and Grammars) and the
+ ability to modify the concrete syntax of the language
+ (Quotations, Syntax Extensions).
+ .
+ This package contains pre-linked executables and libraries for
+ pre-processing and pretty-printing OCaml sources out of the box
+ for various common needs.
+
+Package: ocaml
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ${ocaml:Depends},
+ libx11-dev
+Provides:
+ ${ocaml:Provides}
+Suggests:
+ tcl8.5-dev,
+ tk8.5-dev
+Replaces: ocaml-nox (<< 3.11.0-2)
+Description: ML language implementation with a class-based object system
+ Objective Caml (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ OCaml comprises two compilers. One generates bytecode
+ which is then interpreted by a C program. This compiler runs quickly,
+ generates compact code with moderate memory requirements, and is
+ portable to essentially any 32 or 64 bit Unix platform. Performance of
+ generated programs is quite good for a bytecoded implementation:
+ almost twice as fast as Caml Light 0.7. This compiler can be used
+ either as a standalone, batch-oriented compiler that produces
+ standalone programs, or as an interactive, toplevel-based system.
+ .
+ The other compiler generates high-performance native code for a number
+ of processors. Compilation takes longer and generates bigger code, but
+ the generated programs deliver excellent performance, while retaining
+ the moderate memory requirements of the bytecode compiler. It is not
+ available on all arches though.
+ .
+ This package contains everything needed to develop OCaml applications,
+ including the graphics libraries.
+
+Package: ocaml-base-nox
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ${ocaml:Depends}
+Provides:
+ ${ocaml:Provides}
+Replaces:
+ ocaml-interp (<< 3.11.1-3),
+ ocaml-base (<< 3.07.2a-3),
+ libnums-ocaml
+Conflicts:
+ ocaml-interp (<< 3.11.1-3),
+ ocaml (<< 3.04-2),
+ ocaml-base (<< 3.07.2a-3),
+ libnums-ocaml
+Description: Runtime system for OCaml bytecode executables (no X)
+ Objective Caml (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ This package contains only the runtime system needed to run bytecode
+ executables that do not use the graphics library. The 'ocaml' package
+ contains the full development suite of Objective Caml.
+
+Package: ocaml-base
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ${ocaml:Depends}
+Provides:
+ ${ocaml:Provides}
+Description: Runtime system for OCaml bytecode executables
+ Objective Caml (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ This package contains only the runtime system needed to run bytecode
+ executables. The 'ocaml' package contains the full development suite of
+ Objective Caml.  You may wish to install the 'ocaml-base-nox' package if
+ you do not require any graphical capabilities for your runtime.
+
+Package: ocaml-native-compilers
+Architecture: @OCamlNativeArchs@
+Depends:
+ ocaml-nox (= ${binary:Version}),
+ gcc, binutils,
+ ${shlibs:Depends},
+ ${misc:Depends}
+Provides: ocaml-best-compilers
+Replaces: ocaml-nox (<= 3.09.2-3)
+Description: Native code compilers of the OCaml suite (the .opt ones)
+ Objective Caml (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ This package contains the native code version of the compilers and lexer
+ (ocamlc.opt, ocamllex.opt, ocamlopt.opt, camlp4o.opt and camlp4r.opt).
+ The normal version of these programs are found in the 'ocaml' package.
+ For big source codes, these packages can be two to three times faster, but
+ for most normal sized sources, the difference won't be noticeable.
+
+Package: ocaml-source
+Architecture: all
+Depends: ${misc:Depends}
+Provides: ocaml-source-${F:OCamlABI}
+Description: Sources for Objective Caml
+ Objective Caml (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ This package contains the sources needed to build some packages which build
+ depend on the OCaml source. Notice that if you want to rebuild OCaml, these
+ will not work, consider using the source package instead.
+
+Package: ocaml-interp
+Architecture: any
+Depends:
+ ${ocaml:Depends},
+ ${shlibs:Depends},
+ ${misc:Depends}
+Provides:
+ ocaml-interp-${F:OCamlABI}
+Recommends: ledit | readline-editor
+Replaces: ocaml (<< 3.07.2a-3)
+Conflicts: ocaml (<< 3.07.2a-3)
+Description: OCaml interactive interpreter and standard libraries
+ Objective Caml (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ This package contains the files required to run an OCaml shell from the
+ command line.
+
+Package: ocaml-compiler-libs
+Architecture: any
+Depends:
+ ${ocaml:Depends},
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ocaml-nox-${F:OCamlABI}
+Provides:
+ ocaml-compiler-libs-${F:OCamlABI}
+Description: OCaml interpreter and standard libraries
+ Objective (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ This package contains several modules used internally by the OCaml
+ compilers.  They are not needed for normal OCaml development, but may
+ be helpful in the development of certain applications.
+
+Package: ocaml-mode
+Architecture: all
+Depends:
+ emacs23 | emacsen,
+ ${shlibs:Depends},
+ ${misc:Depends}
+Suggests: ocaml
+Conflicts: ocaml-nox (<< 3.08.3-8)
+Description: A major mode for editing Objective Caml in Emacs
+ Objective (OCaml) is an implementation of the ML language, based on
+ the Caml Light dialect extended with a complete class-based object system
+ and a powerful module system in the style of Standard ML.
+ .
+ This package provides support for editing both Objective Caml and
+ Caml Light programs with Emacs and XEmacs.
+ .
+ Caml-mode supports:
+  - indentation
+  - compilation and error retrieving
+  - interaction with the toplevel
+  - font-lock
+  - imenu
--- ocaml-3.11.2.orig/debian/ocaml-compiler-libs.install.in
+++ ocaml-3.11.2/debian/ocaml-compiler-libs.install.in
@@ -0,0 +1,3 @@
+parsing/* @OCamlStdlibDir@/compiler-libs/parsing
+typing/* @OCamlStdlibDir@/compiler-libs/typing
+utils/* @OCamlStdlibDir@/compiler-libs/utils
--- ocaml-3.11.2.orig/debian/ocaml-nox.postinst.in
+++ ocaml-3.11.2/debian/ocaml-nox.postinst.in
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "configure" ]; then
+  ln -sf @OCamlStdlibDir@/caml /usr/include/
+
+  # Save Emacs conffiles from previous ocaml versions
+  for f in ocaml ocaml-nox ; do
+    file="/etc/emacs/site-start.d/50$f.el"
+    if [ -e "$file" ]; then
+      mv "$file" "$file.save"
+    fi
+  done
+fi
+
+#DEBHELPER#
--- ocaml-3.11.2.orig/debian/ocaml-base-nox.docs
+++ ocaml-3.11.2/debian/ocaml-base-nox.docs
@@ -0,0 +1,2 @@
+Changes
+README
--- ocaml-3.11.2.orig/debian/ocaml-native-compilers.files
+++ ocaml-3.11.2/debian/ocaml-native-compilers.files
@@ -0,0 +1 @@
+/usr/bin/*.opt
--- ocaml-3.11.2.orig/debian/watch
+++ ocaml-3.11.2/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://caml.inria.fr/pub/distrib/ocaml-([\d\.]+)/ocaml-([\d\.]+).tar.gz
--- ocaml-3.11.2.orig/debian/camlp4.install.in
+++ ocaml-3.11.2/debian/camlp4.install.in
@@ -0,0 +1,31 @@
+     usr/bin/camlp4
+     usr/bin/camlp4o
+OPT: usr/bin/camlp4o.opt
+     usr/bin/camlp4r
+OPT: usr/bin/camlp4r.opt
+     usr/bin/mkcamlp4
+     @OCamlStdlibDir@/camlp4/Camlp4Bin.cmi
+     @OCamlStdlibDir@/camlp4/Camlp4Bin.cmo
+OPT: @OCamlStdlibDir@/camlp4/Camlp4Bin.cmx
+OPT: @OCamlStdlibDir@/camlp4/Camlp4Bin.o
+     @OCamlStdlibDir@/camlp4/Camlp4.cmi
+     @OCamlStdlibDir@/camlp4/Camlp4_config.cmi
+     @OCamlStdlibDir@/camlp4/Camlp4Filters
+OPT: @OCamlStdlibDir@/camlp4/camlp4fulllib.a
+     @OCamlStdlibDir@/camlp4/camlp4fulllib.cma
+OPT: @OCamlStdlibDir@/camlp4/camlp4fulllib.cmxa
+     @OCamlStdlibDir@/camlp4/Camlp4_import.cmi
+OPT: @OCamlStdlibDir@/camlp4/camlp4lib.a
+     @OCamlStdlibDir@/camlp4/camlp4lib.cma
+OPT: @OCamlStdlibDir@/camlp4/camlp4lib.cmxa
+     @OCamlStdlibDir@/camlp4/camlp4o.cma
+     @OCamlStdlibDir@/camlp4/Camlp4Parsers
+     @OCamlStdlibDir@/camlp4/Camlp4Printers
+     @OCamlStdlibDir@/camlp4/camlp4prof.cmi
+     @OCamlStdlibDir@/camlp4/camlp4prof.cmo
+OPT: @OCamlStdlibDir@/camlp4/camlp4prof.cmx
+OPT: @OCamlStdlibDir@/camlp4/camlp4prof.o
+     @OCamlStdlibDir@/camlp4/camlp4r.cma
+     @OCamlStdlibDir@/camlp4/Camlp4Top
+     @OCamlStdlibDir@/camlp4/Camlp4Top.cmi
+     @OCamlStdlibDir@/camlp4/Camlp4Top.cmo
--- ocaml-3.11.2.orig/debian/ocaml-nox.postrm
+++ ocaml-3.11.2/debian/ocaml-nox.postrm
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+
+rm -f /usr/include/caml
+
+#DEBHELPER#
--- ocaml-3.11.2.orig/debian/ocaml-nox.install.in
+++ ocaml-3.11.2/debian/ocaml-nox.install.in
@@ -0,0 +1,313 @@
+     usr/bin/ocamlbuild
+     usr/bin/ocamlbuild.byte
+     usr/bin/ocamlc
+     usr/bin/ocamlcp
+     usr/bin/ocamldebug
+     usr/bin/ocamldep
+     usr/bin/ocamldoc
+     usr/bin/ocamllex
+     usr/bin/ocamlmklib
+     usr/bin/ocamlmktop
+     usr/bin/ocamlprof
+     usr/bin/ocamlyacc
+     debian/native-archs @OCamlStdlibDir@
+OPT: usr/bin/ocamlbuild.native
+OPT: usr/bin/ocamlopt
+     @OCamlStdlibDir@/stdlib.cma
+     @OCamlStdlibDir@/toplevellib.cma
+     @OCamlStdlibDir@/dynlink.cma
+     @OCamlStdlibDir@/addlabels
+     @OCamlStdlibDir@/scrapelabels
+     @OCamlStdlibDir@/caml
+     @OCamlStdlibDir@/camlheader
+     @OCamlStdlibDir@/camlheader_ur
+     @OCamlStdlibDir@/Makefile.config
+     @OCamlStdlibDir@/expunge
+     @OCamlStdlibDir@/extract_crc
+     @OCamlStdlibDir@/ocamlbuild
+     @OCamlStdlibDir@/ocamldoc
+     @OCamlStdlibDir@/threads
+     @OCamlStdlibDir@/vmthreads
+     @OCamlStdlibDir@/libbigarray.a
+OPT: @OCamlStdlibDir@/libasmrun.a
+OPT: @OCamlStdlibDir@/libasmrunp.a
+     @OCamlStdlibDir@/libcamlrun.a
+     @OCamlStdlibDir@/libcamlrun_shared.so
+     @OCamlStdlibDir@/libmldbm.a
+     @OCamlStdlibDir@/libnums.a
+     @OCamlStdlibDir@/libstr.a
+     @OCamlStdlibDir@/libthreads.a
+OPT: @OCamlStdlibDir@/libthreadsnat.a
+     @OCamlStdlibDir@/libunix.a
+     usr/share/man/man3/Arg.3o
+     usr/share/man/man3/Array.3o
+     usr/share/man/man3/ArrayLabels.3o
+     usr/share/man/man3/Bigarray.3o
+     usr/share/man/man3/Bigarray.Array1.3o
+     usr/share/man/man3/Bigarray.Array2.3o
+     usr/share/man/man3/Bigarray.Array3.3o
+     usr/share/man/man3/Bigarray.Genarray.3o
+     usr/share/man/man3/Buffer.3o
+     usr/share/man/man3/Callback.3o
+     usr/share/man/man3/CamlinternalLazy.3o
+     usr/share/man/man3/CamlinternalMod.3o
+     usr/share/man/man3/CamlinternalOO.3o
+     usr/share/man/man3/Char.3o
+     usr/share/man/man3/Complex.3o
+     usr/share/man/man3/Digest.3o
+     usr/share/man/man3/Filename.3o
+     usr/share/man/man3/Format.3o
+     usr/share/man/man3/Gc.3o
+     usr/share/man/man3/Genlex.3o
+     usr/share/man/man3/Hashtbl.3o
+     usr/share/man/man3/Hashtbl.HashedType.3o
+     usr/share/man/man3/Hashtbl.Make.3o
+     usr/share/man/man3/Hashtbl.S.3o
+     usr/share/man/man3/Int32.3o
+     usr/share/man/man3/Int64.3o
+     usr/share/man/man3/Lazy.3o
+     usr/share/man/man3/Lexing.3o
+     usr/share/man/man3/List.3o
+     usr/share/man/man3/ListLabels.3o
+     usr/share/man/man3/Map.3o
+     usr/share/man/man3/Map.Make.3o
+     usr/share/man/man3/Map.OrderedType.3o
+     usr/share/man/man3/Map.S.3o
+     usr/share/man/man3/Marshal.3o
+     usr/share/man/man3/MoreLabels.3o
+     usr/share/man/man3/MoreLabels.Hashtbl.3o
+     usr/share/man/man3/MoreLabels.Hashtbl.HashedType.3o
+     usr/share/man/man3/MoreLabels.Hashtbl.Make.3o
+     usr/share/man/man3/MoreLabels.Hashtbl.S.3o
+     usr/share/man/man3/MoreLabels.Map.3o
+     usr/share/man/man3/MoreLabels.Map.Make.3o
+     usr/share/man/man3/MoreLabels.Map.OrderedType.3o
+     usr/share/man/man3/MoreLabels.Map.S.3o
+     usr/share/man/man3/MoreLabels.Set.3o
+     usr/share/man/man3/MoreLabels.Set.Make.3o
+     usr/share/man/man3/MoreLabels.Set.OrderedType.3o
+     usr/share/man/man3/MoreLabels.Set.S.3o
+     usr/share/man/man3/Nativeint.3o
+     usr/share/man/man3/Num.3o
+     usr/share/man/man3/Obj.3o
+     usr/share/man/man3/Oo.3o
+     usr/share/man/man3/Parsing.3o
+     usr/share/man/man3/Pervasives.3o
+     usr/share/man/man3/Pervasives.LargeFile.3o
+     usr/share/man/man3/Printexc.3o
+     usr/share/man/man3/Printf.3o
+     usr/share/man/man3/Queue.3o
+     usr/share/man/man3/Random.3o
+     usr/share/man/man3/Random.State.3o
+     usr/share/man/man3/Scanf.3o
+     usr/share/man/man3/Scanf.Scanning.3o
+     usr/share/man/man3/Set.3o
+     usr/share/man/man3/Set.Make.3o
+     usr/share/man/man3/Set.OrderedType.3o
+     usr/share/man/man3/Set.S.3o
+     usr/share/man/man3/Sort.3o
+     usr/share/man/man3/Stack.3o
+     usr/share/man/man3/StdLabels.3o
+     usr/share/man/man3/StdLabels.Array.3o
+     usr/share/man/man3/StdLabels.List.3o
+     usr/share/man/man3/StdLabels.String.3o
+     usr/share/man/man3/Str.3o
+     usr/share/man/man3/Stream.3o
+     usr/share/man/man3/String.3o
+     usr/share/man/man3/StringLabels.3o
+     usr/share/man/man3/Sys.3o
+     usr/share/man/man3/Unix.3o
+     usr/share/man/man3/Unix.LargeFile.3o
+     usr/share/man/man3/Weak.3o
+     usr/share/man/man3/Weak.Make.3o
+     usr/share/man/man3/Weak.S.3o
+OPT: usr/share/man/man1/ocamlopt.1
+     usr/share/man/man1/ocamlprof.1
+     usr/share/man/man1/ocamlc.1
+     usr/share/man/man1/ocamldep.1
+     usr/share/man/man1/ocamlcp.1
+     usr/share/man/man1/ocamlmktop.1
+     usr/share/man/man1/ocamldoc.1
+     usr/share/man/man1/ocamlyacc.1
+     usr/share/man/man1/ocamlbuild.1
+     usr/share/man/man1/ocamldebug.1
+     usr/share/man/man1/ocamllex.1
+STD: arg.ml
+STD: arg.mli
+STD: arg.cmx
+STD: arith_flags.cmx
+STD: arith_status.cmx
+STD: arith_status.mli
+STD: arrayLabels.ml
+STD: arrayLabels.mli
+STD: arrayLabels.cmx
+STD: array.ml
+STD: array.mli
+STD: array.cmx
+STD: big_int.cmx
+STD: big_int.mli
+STD: bigarray.cmx
+STD: bigarray.cmxa
+STD: bigarray.mli
+STD: buffer.ml
+STD: buffer.mli
+STD: buffer.cmx
+STD: callback.ml
+STD: callback.mli
+STD: callback.cmx
+STD: camlinternalLazy.cmi
+STD: camlinternalLazy.cmx
+STD: camlinternalLazy.ml
+STD: camlinternalLazy.mli
+STD: camlinternalMod.cmi
+STD: camlinternalMod.cmx
+STD: camlinternalMod.ml
+STD: camlinternalMod.mli
+STD: camlinternalOO.ml
+STD: camlinternalOO.mli
+STD: camlinternalOO.cmx
+STD: char.ml
+STD: char.mli
+STD: char.cmx
+STD: complex.ml
+STD: complex.mli
+STD: complex.cmx
+STD: condition.mli
+STD: dbm.cmi
+STD: dbm.cmx
+STD: dbm.cmxa
+STD: dbm.mli
+STD: digest.ml
+STD: digest.mli
+STD: digest.cmx
+STD: dynlink.cmx
+STD: dynlink.cmxa
+STD: dynlink.mli
+STD: event.mli
+STD: filename.ml
+STD: filename.mli
+STD: filename.cmx
+STD: format.ml
+STD: format.mli
+STD: format.cmx
+STD: gc.ml
+STD: gc.mli
+STD: gc.cmx
+STD: genlex.ml
+STD: genlex.mli
+STD: genlex.cmx
+STD: hashtbl.ml
+STD: hashtbl.mli
+STD: hashtbl.cmx
+STD: int32.ml
+STD: int32.mli
+STD: int32.cmx
+STD: int64.ml
+STD: int64.mli
+STD: int64.cmx
+STD: int_misc.cmx
+STD: lazy.ml
+STD: lazy.mli
+STD: lazy.cmx
+STD: lexing.ml
+STD: lexing.mli
+STD: lexing.cmx
+STD: listLabels.ml
+STD: listLabels.mli
+STD: listLabels.cmx
+STD: list.ml
+STD: list.mli
+STD: list.cmx
+STD: map.ml
+STD: map.mli
+STD: map.cmx
+STD: marshal.ml
+STD: marshal.mli
+STD: marshal.cmx
+STD: moreLabels.ml
+STD: moreLabels.mli
+STD: moreLabels.cmx
+STD: mutex.mli
+STD: nat.cmx
+STD: nat.mli
+STD: nativeint.ml
+STD: nativeint.mli
+STD: nativeint.cmx
+STD: num.cmx
+STD: num.mli
+STD: nums.cmxa
+STD: obj.ml
+STD: obj.mli
+STD: obj.cmx
+STD: oo.ml
+STD: oo.mli
+STD: oo.cmx
+STD: outcometree.cmi
+STD: outcometree.mli
+STD: parsing.ml
+STD: parsing.mli
+STD: parsing.cmx
+STD: pervasives.ml
+STD: pervasives.mli
+STD: pervasives.cmx
+STD: printexc.ml
+STD: printexc.mli
+STD: printexc.cmx
+STD: printf.ml
+STD: printf.mli
+STD: printf.cmx
+STD: profiling.cmi
+STD: profiling.cmo
+STD: queue.ml
+STD: queue.mli
+STD: queue.cmx
+STD: random.ml
+STD: random.mli
+STD: random.cmx
+STD: ratio.cmx
+STD: ratio.mli
+STD: scanf.ml
+STD: scanf.mli
+STD: scanf.cmx
+STD: set.ml
+STD: set.mli
+STD: set.cmx
+STD: sort.ml
+STD: sort.mli
+STD: sort.cmx
+STD: stack.ml
+STD: stack.mli
+STD: stack.cmx
+STD: stdlib.cmxa
+STD: std_exit.cmo
+STD: std_exit.cmx
+STD: std_exit.ml
+STD: stdLabels.cmx
+STD: stdLabels.ml
+STD: stdLabels.mli
+STD: str.cmx
+STD: str.cmxa
+STD: str.mli
+STD: stream.ml
+STD: stream.mli
+STD: stream.cmx
+STD: string.ml
+STD: string.mli
+STD: string.cmx
+STD: stringLabels.ml
+STD: stringLabels.mli
+STD: stringLabels.cmx
+STD: sys.ml
+STD: sys.mli
+STD: sys.cmx
+STD: thread.mli
+STD: threadUnix.mli
+STD: topstart.cmo
+STD: unix.cmx
+STD: unix.cmxa
+STD: unix.mli
+STD: unixLabels.cmx
+STD: unixLabels.mli
+STD: weak.ml
+STD: weak.mli
+STD: weak.cmx
--- ocaml-3.11.2.orig/debian/ocaml-base-nox.postinst.in
+++ ocaml-3.11.2/debian/ocaml-base-nox.postinst.in
@@ -0,0 +1,32 @@
+#!/bin/sh
+set -e
+
+if [ ! -e /usr/local/lib/ocaml ]; then
+    if mkdir /usr/local/lib/ocaml 2>/dev/null; then
+	chown root:staff /usr/local/lib/ocaml
+	chmod 2775 /usr/local/lib/ocaml
+    fi
+fi
+if [ ! -e /usr/local/lib/ocaml/@OCamlABI@ ]; then
+    if mkdir /usr/local/lib/ocaml/@OCamlABI@ 2>/dev/null; then
+	chown root:staff /usr/local/lib/ocaml/@OCamlABI@
+	chmod 2775 /usr/local/lib/ocaml/@OCamlABI@
+    fi
+fi
+if [ ! -e /usr/local/lib/ocaml/@OCamlABI@/stublibs ]; then
+    if mkdir /usr/local/lib/ocaml/@OCamlABI@/stublibs 2>/dev/null; then
+	chown root:staff /usr/local/lib/ocaml/@OCamlABI@/stublibs
+	chmod 2775 /usr/local/lib/ocaml/@OCamlABI@/stublibs
+    fi
+fi
+
+for i in /usr/lib/ocaml/3.06 /etc/ocaml /var/lib/ocaml; 		\
+do									\
+	if [ -e $i/ld.conf ]; then					\
+		echo "Removing leftover $i/ld.conf";			\
+		rm -f $i/ld.conf;					\
+		rmdir --ignore-fail-on-non-empty $i;			\
+	fi;								\
+done
+
+#DEBHELPER#
--- ocaml-3.11.2.orig/debian/changelog
+++ ocaml-3.11.2/debian/changelog
@@ -0,0 +1,1759 @@
+ocaml (3.11.2-2) unstable; urgency=low
+
+  * debian/ocaml-mode.emacs-install: do not byte-compile camldebug.el
+    and inf-caml.el for xemacs21 (Closes: #508813, LP: #464587).
+
+ -- Mehdi Dogguy <mehdi@debian.org>  Tue, 05 Oct 2010 17:46:59 +0200
+
+ocaml (3.11.2-1) unstable; urgency=low
+
+  [ Stéphane Glondu ]
+  * New upstream release
+  * Bump Standards-Version to 3.8.4 (no changes)
+
+  [ Mehdi Dogguy ]
+  * camlp4-extra:
+    - Add cma files back into the package (Requested by users).
+    - Don't install a manpage for camlp4boot (which is not installed).
+  * debian/rules:
+    - Do not compute dependencies for camlp4-extra
+  * debian/control:
+    - Make camlp4-extra depend on ocaml-base-nox
+
+  [ Ralf Treinen ]
+  * debian/control.in: bump dependency of ocaml-mode on emacs22 to emacs23.
+
+ -- Stéphane Glondu <glondu@debian.org>  Sun, 07 Feb 2010 22:11:16 +0100
+
+ocaml (3.11.1-5) unstable; urgency=low
+
+  * Use Tcl/Tk 8.5
+
+ -- Stéphane Glondu <glondu@debian.org>  Tue, 15 Dec 2009 11:58:07 +0100
+
+ocaml (3.11.1-4) unstable; urgency=low
+
+  * Exclude compiler-libs from exported modules (Closes: #554871)
+
+ -- Stéphane Glondu <glondu@debian.org>  Sat, 07 Nov 2009 02:49:50 +0100
+
+ocaml (3.11.1-3) unstable; urgency=low
+
+  [ Mehdi Dogguy ]
+  * Add two tools:
+    - ocamlbyteinfo to read content of bytecode binaries
+    - ocamlplugininfo to read content of shared object files (.cmxs)
+  * Move some files from ocaml-interp to ocaml-nox and ocaml-base-nox
+  * Synchronize debian/control and debian/control.in
+  * Remove cma files shipped in camlp4 package and camlp4boot since
+    they are not used
+  * Add myself to Uploaders and update Stéphane's address
+  * Remove DMUA
+  * Use dh-ocaml (>= 0.9)
+
+  [ Stéphane Glondu ]
+  * Add build-dependency to autotools-dev (for up-to-date config.*)
+  * Maintainer scripts:
+    - explicitly use set -e
+    - remove references to ocaml-md5sums, as its jobs is handled by
+      dh_ocaml, now
+  * Remove all debian/*.dirs* files to avoid empty directories
+  * Update Standards-Version to 3.8.3 (no changes)
+
+ -- Stéphane Glondu <glondu@debian.org>  Tue, 22 Sep 2009 23:24:52 +0200
+
+ocaml (3.11.1-2) unstable; urgency=low
+
+  * Remove build-dependency to docbook-* (not needed anymore, since
+    policy has been moved to dh-ocaml)
+
+ -- Stephane Glondu <steph@glondu.net>  Wed, 24 Jun 2009 12:47:31 +0200
+
+ocaml (3.11.1-1) unstable; urgency=low
+
+  [ Samuel Mimram ]
+  * Add kfreebsd-amd64 to the list of supported native architectures.
+    (Closes: #519916)
+
+  [ Stefano Zacchiroli ]
+  * debian/control:
+    - remove recommends to ledit from ocaml-nox (does not ship "ocaml")
+
+  [ Stephane Glondu ]
+  * New upstream release:
+    - remove dbm_ldopts.dpatch (merged upstream)
+    - switch patch system to quilt
+  * debian/control:
+    - update Standards-Version to 3.8.2
+    - move to new section ocaml
+    - change Recommends from ledit to "ledit | readline-editor" for
+      ocaml-interp
+    - remove various obsolete Conflicts and Replaces
+  * Move OCaml standard library to /usr/lib/ocaml
+
+ -- Stephane Glondu <steph@glondu.net>  Wed, 24 Jun 2009 10:59:46 +0200
+
+ocaml (3.11.0-5) unstable; urgency=low
+
+  * Uploading to unstable
+  * debian/control: bump dh-ocaml to (>= 0.4) to avoid buggy ocamlinit.mk
+
+ -- Stefano Zacchiroli <zack@debian.org>  Sun, 22 Feb 2009 08:49:13 +0100
+
+ocaml (3.11.0-4) experimental; urgency=low
+
+  [ Samuel Mimram ]
+  * Add native versions of ocamldep and ocamldoc in findlib's configuration
+    when ocaml-native-compilers is installed, closes: #516085.
+
+  [ Stephane Glondu ]
+  * Add a script to handle native modules of standard library, and a
+    README.source to document it (fixes FTBFS on sparc and powerpc, which
+    are native, but do not provide .p.cmx files) (Closes: #516211)
+  * Fix FTBFS on bytecode-only architectures:
+    - generate manpages for stdlib
+    - tell debhelper to ignore ocaml-native-compilers
+  * Add lpia (from Ubuntu) to the list of native architectures
+
+ -- Stephane Glondu <steph@glondu.net>  Fri, 20 Feb 2009 09:59:31 +0100
+
+ocaml (3.11.0-3) experimental; urgency=low
+
+  * Mark libthreadsnat.a as native-only file (fix FTBFS on bytecode-only
+    architectures)
+
+ -- Stephane Glondu <steph@glondu.net>  Thu, 19 Feb 2009 07:25:27 +0100
+
+ocaml (3.11.0-2) experimental; urgency=low
+
+  [ Stephane Glondu ]
+  * Add DM-Upload-Allowed (with Stefano's blessing)
+  * Remove binary package-specific copyright files
+  * Major changes in debian/rules:
+    - more extensive use of debhelper 7
+    - do no longer use deprecated dh_movefiles and *.files
+    - get closer to CDBS API
+    - add versioned build-dependency to dh-ocaml
+    - use ocamlinit snippet provided by dh-ocaml
+    - add a build cache (for Debian debugging)
+    - do not compress labltk examples
+    - reflect original locations of camlp4 *.mli files in binary packages
+    - remove special handling of CFLAGS (handled by dpkg-buildpackage now)
+  * Add dbm_ldopts.dpatch, to add missing linking options for dbm
+    (fixes ocsigen FTBFS)
+  * Remove man-ocamlmklib.dpatch, and put manpage in debian/man
+  * Remove {dumpobj,objinfo}.dpatch, and put manpages in debian/man
+  * Build and install dumpapprox, and provide a manpage
+  * Discriminate *-nox packages in short descriptions (thanks Lintian)
+  
+  [ Stefano Zacchiroli ]
+  * debian/control:
+    - clean-up Uploaders, removing people no longer contributing and
+      handling some specific removal requests
+    - bump versioned dep on ocaml --Replaces-> ocaml-nox to avoid file
+      overwrite upgrade problems
+
+ -- Stefano Zacchiroli <zack@debian.org>  Wed, 18 Feb 2009 14:39:31 +0100
+
+ocaml (3.11.0-1) experimental; urgency=low
+
+  * New upstream release:
+    - manpages.dpatch, ocamldoc.dpatch removed (merged upstream)
+    - for_pack_static.dpatch removed (obsolete)
+    - call_ld_with_proper_flags.dpatch fixed (Closes: #506286)
+  * Add debian/changelog entry for version 3.09.2-8
+  * Install *.cmxs (and matching *.cma) in ocaml-base*
+  * Don't put .git directory in ocaml-source
+
+ -- Stephane Glondu <steph@glondu.net>  Fri, 05 Dec 2008 19:57:18 +0100
+
+ocaml (3.11.0~beta1-1) experimental; urgency=low
+
+  [ Stephane Glondu ]
+  * New upstream beta release:
+    - camlrun_shared.dpatch removed (integrated upstream)
+    - not-native-no-aspp.dpatch removed (thanks to upstream bugfix)
+    - all other patches updated
+    - manpages.dpatch and ocamldoc.dpatch added
+    - dependency to gcc-4.2 on arm removed
+  * Switching packaging to git (from svn)
+  * Bump debhelper compatibility level to 7, and use debian/clean feature
+    of dh_clean
+  * Add myself to uploaders, and update Julien's address
+  * Add explicit dependency from camlp4-extra to ocaml-nox
+
+  [ Stefano Zacchiroli ]
+  * Bump Standards-Version to 3.8.0, no changes needed
+  * No longer ship stuff that will be now shipped by the new dh-ocaml
+    package:
+    - OCaml packaging policy
+    - CDBS class ocaml.mk and related helpers
+    - dh_ocaml debhelper
+    - ocaml-md5sums (therefore also disable its usage at the end of the
+      build process)
+
+ -- Stephane Glondu <steph@glondu.net>  Mon, 03 Nov 2008 23:10:06 +0100
+
+ocaml (3.10.2-3) unstable; urgency=low
+
+  [ Stefano Zacchiroli ]
+  * debian/rules: force using gcc-4.2 on arm (fix FTBFS on arm)
+
+  [ Ralf Treinen ]
+  * Added myself to uploaders.
+
+ -- Ralf Treinen <treinen@debian.org>  Mon, 19 May 2008 23:31:52 +0200
+
+ocaml (3.10.2-2) unstable; urgency=low
+
+  [ Stefano Zacchiroli ]
+  * releasing to unstable
+  * fix "OCaml" spelling errors in package descriptions (thanks lintian!)
+
+  [ Romain Beauxis ]
+  * removed virtual package from internal dependencies in favour of strict
+    versioned dependencies. Prevents build failures under some situations.
+
+  [ Sylvain Le Gall ]
+  * changing doc-base section of generated documentation to Programming/OCaml
+    (Closes: #476647)
+  * OCaml Packaging Policy:
+    - update camlp4/camlp5 policy chapter
+    - register policy in doc-base
+
+  [ Ralf Treinen ]
+  * OCaml Packaging Policy:
+    - update OCaml version to 3.10.2
+    - add a section on where to register documentation with doc-base.
+
+ -- Stefano Zacchiroli <zack@debian.org>  Sun, 18 May 2008 21:46:38 +0200
+
+ocaml (3.10.2-1) experimental; urgency=low
+
+  [ Stefano Zacchiroli ]
+  * New upstream release
+    - bump OCAMLMINOR in debian/rules accordingly
+  * ship .mli files pertaining to ocaml-interp (Closes: #449559)
+  * ship .mli files pertaining to camlp4 (Closes: #449558)
+
+  [ Samuel Mimram ]
+  * Add a dependency from ocaml-base to libx11-dev (Closes: #465764)
+
+ -- Stefano Zacchiroli <zack@debian.org>  Mon, 03 Mar 2008 10:15:33 +0100
+
+ocaml (3.10.1-1) unstable; urgency=low
+
+  [ Samuel Mimram ]
+  * New upstream release.
+  * Removed arm_ccheckbound_typo.dpatch, integrated upstream.
+
+  [ Stefano Zacchiroli ]
+  * fix vcs-svn field to point just above the debian/ dir
+
+  [ Ralf Treinen ]
+  * Policy: add section on correct spelling OCaml, bump version to 0.7.2
+
+  [ Julien Cristau ]
+  * Add ${shlibs:Depends} and ${misc:Depends} to all packages.
+
+ -- Samuel Mimram <smimram@debian.org>  Tue, 05 Feb 2008 18:28:56 +0100
+
+ocaml (3.10.0-13) unstable; urgency=low
+
+  [ Stefano Zacchiroli ]
+  * fix the cdbs class to pass -I flags down to ocamldoc
+
+ -- Stefano Zacchiroli <zack@debian.org>  Fri, 28 Dec 2007 15:48:54 +0100
+
+ocaml (3.10.0-12) unstable; urgency=low
+
+  [ Julien Cristau ]
+  * libgraphics.a is built for ocamlc, not ocamlopt.  Install it
+    unconditionally in the ocaml package.  Have ocaml replace ocaml-nox
+    because of this move (closes: #457569).  Thanks, Peter Palfrader!
+
+ -- Samuel Mimram <smimram@debian.org>  Wed, 26 Dec 2007 14:03:36 +0100
+
+ocaml (3.10.0-11) unstable; urgency=low
+
+  [ Stefano Zacchiroli ]
+  * explicitely chmod +x ocamldoc-api-ref-config during build
+
+ -- Stefano Zacchiroli <zack@debian.org>  Wed, 19 Dec 2007 12:15:08 +0100
+
+ocaml (3.10.0-10) unstable; urgency=low
+
+  [ Stefano Zacchiroli ]
+  * ignore ocamldoc-api-ref-config when invoking dh_fixperms, so that it
+    remains executable (closes: #457014)
+
+ -- Stefano Zacchiroli <zack@debian.org>  Wed, 19 Dec 2007 08:37:02 +0100
+
+ocaml (3.10.0-9) unstable; urgency=low
+
+  [ Samuel Mimram ]
+  * Suggest "tarballs" instead of "upstream" in the policy as directory name
+    for storing upstream sources since it is more standard.
+  * Corrected emacs startup file, closes: #446177.
+
+  [ Stefano Zacchiroli ]
+  * add patch camlrun_shared, which ships an alternative version of the
+    camlrun library (called "camlrun_shared") made of PIC objects
+  * add Homepage field to debian/control
+
+  [ Sylvain Le Gall ]
+  * fixes in cdbs class for ocamldoc generation, provides
+    ocamldoc-api-ref-config to centralize generation of .ocamldoc-apiref
+  * remove ia64, arm and alpha native arches (no more ocamlopt for this arches)
+  * array is bashism, remove it from ocamldoc-api-ref-config
+  * upgrade to Standards-Version 3.7.3 (no change)
+  * make the lintian override work: add the name of the package in
+    front of each override line, place the file in
+    usr/share/lintian/overrides and not inside a directory in this
+    directory
+  * make clean cleaner (remove byterun/libcamlrun_shared.so)
+  * remove empty directories left after moving files away from ocaml-nox
+    hierarchy
+  * add a comment to install_ocamlbuild patch, to prevent lintian
+    warning
+
+ -- Sylvain Le Gall <gildor@debian.org>  Sat, 15 Dec 2007 17:57:36 +0100
+
+ocaml (3.10.0-8) unstable; urgency=low
+
+  [ Stefano Zacchiroli ]
+  * CDBS class
+    - invoke ocamldoc after dh_install has been run (otherwise ocamldoc is
+      likely to generate empty API references ...)
+    - add support for automatic generation of doc-base entries for ocamldoc
+      generated API reference
+    - better test for package membership to OCAML_OCAMLDOC_PACKAGES
+  * debian/ocaml-base-nox.README.Debian
+    - add an entry describing the requirement for compiling ocamldoc-generated
+      LaTeX documentation (closes: #420782)
+
+ -- Stefano Zacchiroli <zack@debian.org>  Sun, 02 Sep 2007 19:11:14 +0200
+
+ocaml (3.10.0-7) unstable; urgency=low
+
+  [ Sylvain Le Gall ]
+  * add patch not-native-no-aspp to workaround FTBFS, as described upstream in
+    bug 4375 (closes: #429185)
+  * don't ignore make clean error
+  * move menu section of ocaml interpreter to Applications/Programming
+    to comply with new menu structure
+
+
+  [ Stefano Zacchiroli ]
+  * CDBS class
+    - add support for specifying the target dir for generated documentation
+    - various fixes in ocamldoc invocation
+
+ -- Sylvain Le Gall <gildor@debian.org>  Sat, 01 Sep 2007 22:33:52 +0200
+
+ocaml (3.10.0-6) unstable; urgency=low
+
+  [ Stefano Zacchiroli ]
+  * debian/ocaml-nox.dirs.in
+    - avoid creating empty /usr/include/ocaml/* directory (closes: #439017)
+  * CDBS class
+    - add support for automatic ocamldoc HTML documentation generation
+  * Policy
+    - add an appendix about the CDBS class with some minimal information and
+      pointers to the commented .mk files
+
+ -- Stefano Zacchiroli <zack@debian.org>  Thu, 30 Aug 2007 15:54:24 +0200
+
+ocaml (3.10.0-5) experimental; urgency=low
+
+  [ Ralf Treinen ]
+  * ocaml-mode.emacsen-install: do not hardcode the emacs flavours for which
+    to compile ocaml-mode (closes: Bug#433082)
+  * ocaml-mode: Bump primary dependency from emacs21 to emacs22.
+
+  [ Stefano Zacchiroli ]
+  * add patch arm_ccheckbound_typo, fix a typing error typo which makes ocaml
+    FTBFS on arm
+  * ocaml-source: install ocaml tarball as
+    /usr/src/ocaml-source-VERSION.tar.bz2; the "-source" part was erroneously
+    missing and make other packages FTBFS
+  * bump debhelper dependencies and compatibility level to 5
+
+ -- Stefano Zacchiroli <zack@debian.org>  Sun, 12 Aug 2007 19:29:07 +0200
+
+ocaml (3.10.0-4) experimental; urgency=low
+
+  * debian/patches/install_ocamlbuild.dpatch
+    - patched to install ocamlbuild as .native/.byte (following upstream
+      convention which will become widespread in the future), but changes
+      ocamlbuild to be a symlink to the best ocamlbuild available
+  * CDBS class:
+    - avoid dpatch breaking upon clean if debian/patches/*.in files are in use
+    - fix the usage example for "OCAML_IN_FILES += ...", it was wrong
+
+ -- Stefano Zacchiroli <zack@debian.org>  Wed, 04 Jul 2007 11:50:43 +0200
+
+ocaml (3.10.0-3) experimental; urgency=low
+
+  * debian/patches/00list
+    - enabled install_ocamlbuild patch (was disabled by mistake) and patched
+      it fixing a wrong path
+  * debian/rules
+    - pass -libdir to configure (now that it is supported upstream) in
+      addition to sed-ing generated config Makefiles; otherwise ocamlrun won't
+      get the correct libdir setting
+  * debian/ocaml-md5sums/ocaml-md5sums.1
+    - written ocaml-md5sums manpage
+  * debian/ocaml-native-compilers.links
+    - delegated to dh_link the creation of .opt manpage symlinks and added the
+      missing one for ocamlbuild.opt
+
+ -- Stefano Zacchiroli <zack@debian.org>  Sat, 16 Jun 2007 16:17:17 +0000
+
+ocaml (3.10.0-2) experimental; urgency=low
+
+  * Split two new packages: "camlp4" and "camlp4-extra" to cope with the huge
+    size increase of the new camlp4
+  * Policy
+    - update the Vcs-Svn info to the latest PTS documentation
+    - describe dependencies from a -dev package to its companion shared stub
+      package (if any) and suggest the usage of ${binary:Version}
+  * debian/copyright
+    - added in place of copyright.in, nothing to replace there
+  * debian/man/camlp4*.1
+    - added manpages for camlp4 related executables; content partially using
+      html2man, partially taken from the camlp4 wiki
+  * debian/control
+    - moved ledit recommends from ocaml-nox to ocaml-interp (which ships the
+      interactive toplevel)
+    - minor improvements to various descriptions
+
+ -- Stefano Zacchiroli <zack@debian.org>  Sat, 16 Jun 2007 12:41:32 +0100
+
+ocaml (3.10.0-1) experimental; urgency=low
+
+  [ Stefano Zacchiroli ]
+  * New upstream (stable) release
+  * debian/patches/*
+    - removed: ocaml-interp_manpage, build_wo_debug_info (integrated upstream)
+    - updated: install_ocamlbuild
+  * ship ocaml-compiler-libs objects as STDLIB/ocaml-compiler-libs/{parsing/,
+    typing/, utils/} rather than as a flat dir tree
+  * re-enabled ocaml-source package (which ships
+    /usr/src/ocaml-3.10.0.tar.bz2), now with a better way to generate it:
+    everything in the build dir except debian/ will be copied in the resulting
+    tarball
+  * debian/ocaml-source.exclude
+    - new file: list of tar exclude patterns, matching file won't be shipped
+      in the ocaml source tarball
+
+ -- Stefano Zacchiroli <zack@debian.org>  Wed, 13 Jun 2007 17:19:10 +0200
+
+ocaml (3.10.0~beta-1) experimental; 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
+    - added: build_wo_debug_info.dpatch (avoid building camlp4/ocamldoc with
+      debug info, wont be needed for the stable release)
+  * CDBS class
+    - added support for the OCAML_DLL_DIR variable, pointing ATM to the
+      stublibs/ subdirectory of the standard library directory. It's
+      substituted for @OCamlDllDir@ in .in files
+    - remove files which have been generated from their .in counterparts upon
+      clean target invocation
+  * Policy
+    - mandate the compilation of *.cm[ao] with debugging information for
+      libraries and forbid it for bytecode programs
+  * debian/rules
+    - delegated more installation stuff to dh_install
+  * debian/control
+    - get rid of the no longer needed ocaml-source package
+
+  [Ralf Treinen]
+  * debian/patches/*
+    - added: install_scripts_config: use a patched config.sh since PREFIX is
+      diferent at compile time and at installation time
+    - added: ocaml-interp_manpage, fixes typo in ocaml manpage
+      (closes: Bug#417847).
+  * debian/rules:
+    - added creation of config/config.debian.install
+    - Patch LIBDIR and STBLIBDIR setting in config/Makefile after invokation
+      of configure
+
+ -- Stefano Zacchiroli <zack@debian.org>  Tue, 17 Apr 2007 09:57:47 +0200
+
+ocaml (3.09.3-1) experimental; urgency=low
+
+  [ Samuel Mimram ]
+  * New upstream release.
+
+ -- Julien Cristau <julien.cristau@ens-lyon.org>  Sat, 30 Sep 2006 01:15:16 +0200
+
+ocaml (3.09.3~rc1-1) experimental; urgency=low
+
+  [ Julien Cristau ]
+  * New upstream release candidate.
+
+ -- Samuel Mimram <smimram@debian.org>  Sun, 10 Sep 2006 23:11:31 +0000
+
+ocaml (3.09.2-8) unstable; urgency=low
+
+  [ Samuel Mimram ]
+   * Installing ocamlbrowser in ocaml instead of ocaml-nox, closes: #397245.
+
+  [ Julien Cristau ]
+  * Add patch stolen from 3.09.3 to fix a segfault when a file is closed
+    twice (closes: #403848).
+  * Delete directories left over by the ocaml package from sarge in
+    /usr/local (closes: #355448).
+
+ -- Samuel Mimram <smimram@debian.org>  Sat, 30 Dec 2006 19:01:12 +0000
+
+ocaml (3.09.2-7) unstable; urgency=low
+
+  [ Julien Cristau ]
+  * Fix typo in ocaml-base description (Closes: #390224).
+
+  [ Stefano Zacchiroli ]
+  * debian/control
+    - added XS-Vcs-Svn field to let users know where our svn repository is
+  * Added .txt suffix to the textual version of the policy
+  * Ship CDBS class for building OCaml related packages in
+    /usr/share/cdbs/1/; permission granted by the CDBS maintainers to
+    ship files there, see #387299. (Closes: #387299).
+  * Updated policy (now at version 0.7.1); changes:
+    - added a best-practice section about using the XS-Vcs-Svn field in
+      debian/control of OCaml related packages
+    - fixed typo in the suggested debian/rules line to fill the OFILES
+      variable
+
+  [ Samuel Mimram ]
+  * Updated policy (section 2.3) to explain how to add a conditional
+    dependency on ocaml-base-nox-VERSION for native/bytecode packages.
+
+ -- Stefano Zacchiroli <zack@debian.org>  Sat, 28 Oct 2006 15:42:08 +0200
+
+ocaml (3.09.2-6) unstable; urgency=low
+
+  * Correct /usr/include/caml symbolic link, closes: #379271.
+  * Correct symbolic links in documentation directories.
+  * Updated policy.
+
+ -- Samuel Mimram <smimram@debian.org>  Sun, 23 Jul 2006 14:37:36 +0000
+
+ocaml (3.09.2-5) unstable; urgency=low
+
+  * Added a missing dependency on docbook-xml, closes: #373996.
+
+ -- Samuel Mimram <smimram@debian.org>  Fri, 16 Jun 2006 17:58:35 +0000
+
+ocaml (3.09.2-4) unstable; urgency=low
+
+  [ Julien Cristau ]
+  * Update reference to upstream tarball location in debian/copyright.
+  * Actually apply the patch to fix the stdlib manpages' section.
+
+  [ Samuel Mimram ]
+  * Integrate the ocaml policy in the package. Added a build dependency on
+    docbook-utils to build it.
+  * Put the symbolic links directly in the packages instead of using postinst.
+  * Put forgotten ocamldep.opt in ocaml-native-compilers.
+  * We don't need to remove rpaths anymore.
+
+ -- Samuel Mimram <smimram@debian.org>  Fri, 16 Jun 2006 09:11:02 +0000
+
+ocaml (3.09.2-3) unstable; urgency=low
+
+  * Uploading to unstable.
+
+ -- Samuel Mimram <smimram@debian.org>  Mon, 15 May 2006 20:40:39 +0000
+
+ocaml (3.09.2-2) experimental; urgency=low
+
+  [ Julien Cristau ]
+  * Add a patch to put stdlib manpages in section 3o.
+  * Fix typo in ocamldumpobj(1).
+  * Add symlinks so that ocamldep.opt(1) and ocamllex.opt(1) exist.
+
+  [ Samuel Mimram ]
+  * Updated standards version to 3.7.2, no changes needed.
+
+ -- Samuel Mimram <smimram@debian.org>  Wed, 10 May 2006 21:32:57 +0000
+
+ocaml (3.09.2-1) experimental; urgency=low
+
+  * New upstream release.
+  * Added no_rpath.dpatch (taken from Red Hat) in order for caml not to put
+    rpath in generated shared libraries, closes: #361865.
+
+ -- Samuel Mimram <smimram@debian.org>  Tue, 18 Apr 2006 17:14:59 +0000
+
+ocaml (3.09.1+3.09.2rc1-1) experimental; urgency=low
+
+  [ Julien Cristau ]
+  * Remove dh_gencontrol line for ocaml-source from the binary-arch target
+    (ocaml-source is built in binary-indep).
+  * New upstream release candidate:
+    + add support for GNU/Hurd (Closes: #358274).
+    + fix handling of `new' in camlp4 which caused stack overflow (Closes:
+    #355651).
+  * Drop kbsd-gnu.dpatch, obsolete.
+
+  [ Samuel Mimram ]
+  * Use new icon, closes: #358946.
+  * Link to README.Debian instead of README.Debian.gz in
+    /usr/share/doc/ocaml-base, closes: #355975.
+
+ -- Julien Cristau <julien.cristau@ens-lyon.org>  Thu, 30 Mar 2006 15:10:14 +0200
+
+ocaml (3.09.1-3) unstable; urgency=low
+
+  * Enable ocaml-mode for emacs-snapshot (Closes: #347917).
+  * Change the patch added in 3.09.1-2, because it broke ocamlopt -pack on
+    sparc (we now filter link options to remove the "-Wl," part, and then use
+    ld). Thanks to Sylvain Le Gall for noticing, and to Samuel Thibault for
+    his help debugging this (Closes: #351853).
+  * [debian/rules] Make install-* depend on build-*, and tweak the rules to
+    not rerun configure in the 'binary' phase.
+
+ -- Julien Cristau <julien.cristau@ens-lyon.org>  Thu,  9 Feb 2006 15:14:43 +0100
+
+ocaml (3.09.1-2) unstable; urgency=low
+
+  [ Samuel Mimram ]
+  * Cleaning ocaml-md5sums, closes: #346279.
+
+  [ Julien Cristau ]
+  * build-arch is a phony target.
+  * Add patch to make ocamlopt -output-obj and ocamlopt -pack call the linker
+    via gcc instead of directly, which allows us to pass the same linking
+    options in these cases and in the common case (where ocamlopt already used
+    gcc). This should unbreak ocamlopt -pack on alpha, and thus fix the build
+    failure of camomile.
+
+ -- Julien Cristau <julien.cristau@ens-lyon.org>  Thu, 12 Jan 2006 15:33:00 +0100
+
+ocaml (3.09.1-1) unstable; urgency=low
+
+  [ Samuel Mimram ]
+  * Removing possibly leftover /usr/lib/ocaml/ld.conf, closes: #300846.
+  * Updated objinfo.dpatch.
+  * Added dumpobj.dpatch to install ocamldumpobj.
+  * Added a rule in rules to generate (manually) ocaml-source.files and
+    updated ocaml-source.files.
+  * Added a watch file.
+
+  [ Julien Cristau ]
+  * New upstream release
+    + sparc is correctly detected and alignment of doubles and 64-bit ints on
+      double-word boundaries is forced (Closes: #344615).
+  * Remove Suggests on xlibs-dev which doesn't exist anymore.
+
+ -- Samuel Mimram <smimram@debian.org>  Wed,  4 Jan 2006 20:32:13 +0100
+
+ocaml (3.09.0-4) unstable; urgency=low
+
+  [ Julien Cristau ]
+  * debian/rules: the abi-sed rule is phony, we don't want to run configure
+    twice.
+  * Stop building the native compilers on hppa, they are buggy and upstream
+    considers this port dead (see bug#342704).
+
+  [ Samuel Mimram ]
+  * Added for_pack_static.dpatch (from CVS) to correct a bug when linking,
+    disabled for now though.
+  * Added myself to uploaders.
+
+  [ Julien Cristau ]
+  * Install the list of architectures with native compilers in the ocaml-nox
+    package.
+
+  [ Sven Luther ]
+  * This version should make it into testing, so let's (Closes: #338435).
+
+ -- Sven Luther <luther@debian.org>  Mon, 19 Dec 2005 13:36:31 +0000
+
+ocaml (3.09.0-3) unstable; urgency=low
+
+  * Fix build on non-native arches which was broken by the changes to
+    debian/rules in the previous release. Sorry for this :(
+
+ -- Julien Cristau <julien.cristau@ens-lyon.org>  Fri,  9 Dec 2005 11:01:06 +0100
+
+ocaml (3.09.0-2) unstable; urgency=low
+
+  * Modified debian/rules to exit with an error when native compiler build
+    fails, instead of building a broken package.
+  * New patch kbsd-gnu.dpatch to add support for GNU/Hurd and GNU/k*BSD on
+    i386 (thanks to Robert Millan and Aurélien Jarno; Closes: #216886).
+  * Add myself to Uploaders (acked by Sven).
+  * Add patch by Steve Langasek <vorlon@debian.org> to fix native code linking
+    by passing the --no-relax option to ld (Closes: #338437).
+    Bug#335578 stays open since a proper fix to the generated asm would still
+    be better than this workaround.
+
+ -- Julien Cristau <julien.cristau@ens-lyon.org>  Thu,  8 Dec 2005 10:19:39 +0100
+
+ocaml (3.09.0-1) unstable; urgency=low
+
+  * New upstream release.
+    - self references are now ruled out (Closes: #263163, #294753)
+    - better escaping in manpages generated by ocamldoc (Closes: #301046)
+    - typo fixed in ocamldoc.1 (Closes: #304360)
+    - argument order changed in Map.fold (Closes: #327211)
+
+  [ Julien Cristau ]
+  * Cleanup debian/control: remove redundant Depends.
+  * Update location of ocaml-md5sums stuff.
+  * Build-Depend on chrpath and delete rpath from DLLs.
+  * Various lintian warnings fixed, and overrides cleaned up.
+
+  [ Sven Luther ]
+  * Updated to new upstream release.
+  * Modified the packaging ifrastructure to not use hard-coded abi number
+    except in the head of debian/rules. All else is sed'ed from #OcamlABI#
+    (and #OcamlMAJOR# for the debian/copyright file and the upstream url).
+
+ -- Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>  Mon, 07 Nov 2005 10:56:49 +0100
+
+ocaml (3.08.3-8) unstable; urgency=low
+
+  Changes by Jérôme Marant:
+  * Create a new `ocaml-mode' package dedicated at Emacs-related files
+    (Closes: Bug#312618, Bug#322210)
+  * debian/control:
+    - Add new ocaml-mode package section
+    - [ocaml-nox]
+      + Remove emacsen-common dependency
+      + Suggests tuareg-mode or ocaml-mode
+  * debian/ocaml-mode.dirs: New file
+  * debian/ocaml-nox.dirs: Remove emacsen-related files entries
+  * debian/ocaml-mode.emacsen-install,
+    debian/ocaml-mode.emacsen-remove,
+    debian/ocaml-mode.emacsen-startup: New files respectively renamed from
+    emacsen-install, emacsen-remove and emacsen-startup
+  * debian/ocaml-nox.postint: Rename previous existing emacs site
+    conffiles to <file>.save in order to avoid messing with the new
+    ocaml-mode 
+  * debian/rules: Install ocaml-mode files in their own location
+  * debian/ocaml-base-nox.README.Debian: Mention new ocaml-mode package
+  * debian/ocaml-nox.NEWS:
+    - New file
+    - Mention all emacs-related files moved to a separate ocaml-mode
+      package
+    - Mention that all previous emacs conffiles are renamed in order
+      not to mess with the new ocaml-mode
+  * debian/ocaml-mode.README.Debian:
+    - New file
+    - Explain how to override tuareg-mode in case both modes are
+      installed
+
+  * debian/changelog: Remove spurious changelog entry
+
+  * Move ocaml-md5sums from a dpatch to a debian subdirectory
+  * debian/patches/ocaml-md5sums.dpatch: Remove file
+  * debian/patches/00list: Remove ocaml-md5sums entry
+  * debian/ocaml-md5sums/{configure,feeding.sh,Makefile,ocaml-md5sums.ml.in}:
+    - New files
+  * debian/rules: Update ocaml-md5sums files location accordingly
+
+  * Move ocaml-nox menu file to ocaml-interp since the toplevel
+    is provided by ocaml-interp
+  * debian/ocaml-interp.menu:
+    - New file renamed from ocaml-nox.menu
+    - Change 'ocaml' to 'ocaml-interp' in the required package for
+      the menu to be displayed 
+  * debian/ocaml-interp.dirs: Add pixmaps directory
+  * debian/ocaml-nox.dirs: Remove pixmaps directory
+
+  * Move xpm files away from the /usr/X11R6 deprecated directory
+    hierarchy to /usr/share/pixmaps, as per Policy (11.8.7)
+  * debian/rules: install JoeCaml.xpm in /usr/share/pixmaps within the
+    ocaml-interp package
+  * debian/ocaml-interp.menu: Change pixmap location
+
+  * Really install menu files
+  * debian/rules: uncomment dh_installmenu in the build-common target
+
+  * debian/ocaml-nox.preinst: Remove bashism
+
+  * Add dependencies on gcc and binutils for all interpreters since
+    OCaml compilers may use of them (Closes: Bug#322722)
+  * debian/control:
+    - [ocaml-nox]: Add dependency on both gcc and binutils
+    - [ocaml-native-compilers]: Likewise
+
+  Changes by Stefano Zacchiroli:
+  * debian/rules
+    - remove spurious CVS directories from labltk examples
+      (Closes: Bug#322712)
+  * debian/ocamlfind/ocaml-native-compilers.conf
+    - gets installed under /usr/share/ocaml-findlib/ so that, if
+      ocamlfind is available, compiling with findlib will use the
+      native compilers
+
+ -- Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>  Thu, 08 Sep 2005 12:46:36 +0200
+
+ocaml (3.08.3-7) unstable; urgency=low
+
+  Changes by Sven Luther:
+  * debian/patches/byterun_interp_ia64_fix.dpatch
+    - Removed spurious ia64 cast which broke builds with gcc 4.0
+
+  Changes by Stefano Zacchiroli:
+  * debian/control
+    - added versioned dep from ocaml-compiler-libs to ocaml-base-nox to
+      ensure ocaml-md5sums exists at postinst invocation time
+  * debian/{ocaml-compiler-libs,ocaml-nox,ocaml}.postrm
+    - invoke ocaml-md5sums update only if it is available, if not
+      md5sums database will be updated next time ocaml-base-nox will be
+      installed (Closes: Bug#322210)
+  * debian/patches/ocaml-md5sums
+    - avoid failure on update if /var/lib/ocaml/md5sums does not exists
+
+ -- Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>  Fri, 12 Aug 2005 10:47:30 +0200
+
+ocaml (3.08.3-6) unstable; urgency=low
+
+  Changes by Stefano Zacchiroli:
+  * debian/control
+    - added versioned dep from ocaml to ocaml-base-nox to ensure
+      ocaml-md5sums exists at postinst invocation time (Closes: #320779)
+
+ -- Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>  Sun, 31 Jul 2005 11:37:24 +0200
+
+ocaml (3.08.3-5) unstable; urgency=low
+
+  Changes by Stefano Zacchiroli:
+  * debian/patches/ocaml-md5sums.dpatch
+    - use relative path for ocamlrun when compiling ocaml-md5sums
+      (Closes: #320622)
+    - enable external specification, via env var, of ocamlobjinfo path
+    - fixed bug in feeding.sh which inhibit discovery of *.cm[ao]
+  * debian/rules
+    - passes relative path of ocamlobjinfo to ocaml-md5sums
+
+ -- Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>  Fri, 29 Jul 2005 12:55:56 +0200
+
+ocaml (3.08.3-4) unstable; urgency=low
+
+  Changes by Julien Cristau:
+  * Create directories in /usr/local/lib with proper permissions in
+    ocaml-base-nox's postinst, and remove them if empty in prerm
+    (Closes: #270925).
+  * debian/patches/asmcomp_amd64_emit.mlp.dpatch: patch from upstream bugfix
+    branch by Xavier Leroy to fix code generation on amd64 (reported by John
+    Skaller).
+  * debian/patches/fix_i386_gcc4_build.dpatch: patch from upstream to fix
+    inline i386 assembly in the num library to allow building ocaml with
+    gcc-4.0 (Closes: #309317).
+  * debian/control: Add a dependency on emacsen-common, because this is needed
+    to install the caml emacs mode in ocaml-nox (Closes: #312618).
+
+  Changes by Stefano Zacchiroli:
+  * debian/patches/ocaml-md5sums, debian/rules,
+    debian/{ocaml,ocaml-nox,ocaml-compiler-libs}.{postinst,postrm}
+    - added ocaml-md5sums, ocaml md5sum registry handler for the forthcoming
+      dh_ocaml
+  * Removed debian/ocaml-compiler-libs.README.Debian (out of date copy of
+    debian/README.Debian); added symlink from ocaml-base to README.Debian
+  * Added debian/svn-deblayout to make svn structure work with
+    svn-buildpackage
+  * debian/control
+    - bumped Standards-Version to 3.6.2
+    - changed Maintainer to Debian OCaml Maintainers for this upload, set
+      Uploaders to Sven and me
+  * debian/rules
+    - ignore error on clean target for config.{sub,guess} so that
+      svn-buildpackage does not fail at clean time
+
+ -- Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>  Thu, 21 Jul 2005 00:24:26 +0200
+
+ocaml (3.08.3-3) unstable; urgency=medium
+
+  * Missed the include symlink in 3.08 -> 3.08.3 migration.
+    /me slaps myself, really need to automate this.
+
+ -- Sven Luther <luther@debian.org>  Wed, 23 Mar 2005 00:30:19 +0100
+
+ocaml (3.08.3-2) unstable; urgency=medium
+
+  * Missed some 3.08 -> 3.08.3 migration for ld.conf files.
+
+ -- Sven Luther <luther@debian.org>  Tue, 22 Mar 2005 08:06:01 +0100
+
+ocaml (3.08.3-1) unstable; urgency=medium
+
+  * New upstream stable point version.
+    - breaks binary compatibility, we thus have to up the ABI version
+      to 3.08.3.
+  * New features
+    - ignore unknown warning options for forward and backward compatibility
+    - runtime: export caml_compare_unordered (PR#3479)
+    - camlp4: install argl.* files (PR#3439)
+    - ocamldoc: add -man-section option (Closes: #287538)
+    - labltk: add the "solid" relief option (PR#3343)
+    - compiler: ocamlc -i now prints variance annotations
+  * Bug fixes:
+    - typing: fix unsoundness in type declaration variance inference.
+      Type parameters which are constrained must now have an explicit variant
+      annotation, otherwise they are invariant. This is not backward
+      compatible, so this might break code which either uses subtyping or
+      uses the relaxed value restriction (i.e. was not typable before 3.07)
+    - typing: erroneous partial match warning for polymorphic variants (PR#3424)
+    - runtime: handle the case of an empty command line (PR#3409, PR#3444)
+    - stdlib: make Sys.executable_name an absolute path in native code (PR#3303)
+    - runtime: fix memory leak in finalise.c
+    - runtime: auto-trigger compaction even if gc is called manually (PR#3392)
+    - stdlib: fix segfault in Obj.dup on zero-sized values (PR#3406)
+    - camlp4: correct parsing of the $ identifier (PR#3310, PR#3469)
+    - autoconf: better checking of SSE2 instructions (PR#3329, PR#3330)
+    - graphics: make close_graph close the X display as well as the window (PR#3312)
+    - num: fix big_int_of_string (empty string) (PR#3483)
+    - num: fix big bug on 64-bit architecture (PR#3299)
+    - str: better documentation of string_match and string_partial_match (PR#3395)
+    - unix: fix file descriptor leak in Unix.accept (PR#3423)
+    - unix: miscellaneous clean-ups
+    - unix: fix documentation of Unix.tm (PR#3341)
+    - compiler: fix error message with -pack when .cmi is missing (PR#3028)
+    - cygwin: fix problem with compilation of camlheader (PR#3485)
+    - stdlib: Filename.basename doesn't return an empty string any more (PR#3451)
+    - stdlib: better documentation of Open_excl flag (PR#3450)
+    - ocamlcp: accept -thread option (PR#3511)
+    - ocamldep: handle spaces in file names (PR#3370)
+    - compiler: remove spurious warning in pattern-matching on variants (PR#3424)
+
+ -- Sven Luther <luther@debian.org>  Mon, 21 Mar 2005 07:46:26 +0100
+
+ocaml (3.08.2-1) unstable; urgency=low
+
+  * new upstream stable release.
+
+ -- Sven Luther <luther@debian.org>  Sat, 27 Nov 2004 12:25:08 +0100
+
+ocaml (3.08.1-2) unstable; urgency=high
+
+  * Cleaned up ocaml-source location.
+
+ -- Sven Luther <luther@debian.org>  Wed, 25 Aug 2004 15:10:12 +0200
+
+ocaml (3.08.1-1) unstable; urgency=high
+
+  * New upstream stable point release.
+  * Dropped QPL 6c qnd choice of venue clause from the QPL licence.
+  * The emacs files are now under GPL, adding them again.
+  * Added ocamlmklib man page, courtesy of Samuel Mimram .
+  * Removed camlp4-coq-fix, since it is now fixed upstream.
+
+ -- Sven Luther <luther@debian.org>  Thu, 19 Aug 2004 18:49:30 +0200
+
+ocaml (3.08.0-2) unstable; urgency=low
+
+  * Applied patch adding some missing .cmx to enable coq 3.08 to build.
+  * Enabled hppa native code compiler. (Closes: #260711)
+  * Don't install native compiler libs on arches they are not built.
+  * Readded objinfo patch.
+
+ -- Sven Luther <luther@debian.org>  Mon, 26 Jul 2004 14:08:42 +0200
+
+ocaml (3.08.0-1) unstable; urgency=low
+
+  * New upstream release.
+    - Added support for IPv6 in unix library. (Closes: #223480, #234400)
+  * Do not install the emacs files, until upstream gives a response about the
+    licencing issue. (Closes: #227159, #227163)
+  * Fix non-native compiler supporting arches build. (Closes: #259261)
+  * Added amd64 native code compilers build. (Closes: #248334)
+  * Now include the nums package again, since 3.08 include the new free
+    version. (Closes: #240902)
+  * Now include ocamldoc manpage. (Closes: #255239)
+
+ -- Sven Luther <luther@debian.org>  Thu, 15 Jul 2004 09:21:55 +0200
+
+ocaml (3.07.2a-4) unstable; urgency=low
+
+  * *-nox and -interp now conflict with the package which previously
+    distributed their files as suggested in policy 7.5.1
+  * Fixed the Conflicts entries to use the proper version of ocaml:
+    3.07.2a instead of 3.07.
+
+ -- Mike Furr <mfurr@debian.org>  Mon,  5 Jul 2004 14:13:55 -0400
+
+ocaml (3.07.2a-3) unstable; urgency=low
+
+  * Split out the ocaml interpreter and all required files into ocaml-interp
+  * Split out all of the tk/xlibs stuff from ocaml into ocaml-nox and from
+    ocaml-base into ocaml-base-nox
+  * Added a bunch of internal modules from the compiler into a new binary:
+    compiler-libs.  Also added notes in REAMDE.D and copyright that these
+    are QPL, not LGPL like everything else.
+  * Changed 'Objectif' to 'Objective' in ocaml-source short description
+  * Cleaned up debian/rules.  It now uses stamp files a little more
+    intelligently so that it doesn't rebuild the whole thing every time
+  * Check to see if /usr/include/caml EXISTS and is a symblink thus 
+    eliminating a spurious warning message from ocaml-nox.preinst
+  * Removed 'num' library from ocaml-sources.files
+
+ -- Mike Furr <mfurr@debian.org>  Thu, 10 Jun 2004 22:44:34 -0400
+
+ocaml (3.07.2a-2) unstable; urgency=low
+
+  * Now install the config/Makefile so that nat/bignum can be built as an
+    external package.
+  * Modified configure so that the Makefile variables for both nat/bignum
+    implementations are written in the config/Makefile.
+
+ -- Sven Luther <luther@debian.org>  Wed, 17 Dec 2003 12:52:28 +0100
+
+ocaml (3.07.2a-1) unstable; urgency=low
+
+  * New upstream .2 release, including the ocaml-3.07-pl2 patch.
+  * Removed the otherlibs/num library, since the copyright is non-free, and
+    the copyright got lost in the HP/Compaq acquisition. Thanks to Bdale
+    Garbee for trying to solve this issue, but since the release approaches,
+    and upstream is reimplementing the library anyway, i will remove it here.
+  * Fixed broken emacs file caml-types.el. (Closes: #218226)
+
+ -- Sven Luther <luther@debian.org>  Fri, 31 Oct 2003 14:46:02 +0100
+
+ocaml (3.07-7) unstable; urgency=high
+
+  * Fixed hppa build problem : hppa needs doubleword aligned doubles.
+  * Removed .dpatch extensions for debian/patches/00list, should enable to
+    build with older versions of debhelper, like the one in woody.
+    (Closes: #214967).
+  * Removed leftover ocaml 3.06 ld.conf stuff. (Closes: #214772)
+  * Applied the ocaml-3.07-pl2 patch inplace of the previous camlp4 patch.
+    (Closes: #216152)
+
+ -- Sven Luther <luther@debian.org>  Fri, 17 Oct 2003 00:48:39 +0200
+
+ocaml (3.07-6) unstable; urgency=low
+
+  * Changed from the -a to the -s option in debhelper functions. Fixed FTBFS
+    in all non-native autobuilders.
+
+ -- Sven Luther <luther@debian.org>  Mon,  6 Oct 2003 09:07:42 +0200
+
+ocaml (3.07-5) unstable; urgency=low
+
+  * Somehow the objinfo patch forgot to install objinfo, fixed now. Also
+    renamed objinfo to ocamlobjinfo, to be more in line with the other ocaml
+    executables.
+  * Test for emacsen flavor early one and abort if unsupported.
+    (Closes: #213862)
+
+ -- Sven Luther <luther@debian.org>  Fri,  3 Oct 2003 17:08:29 +0200
+
+ocaml (3.07-4) unstable; urgency=low
+
+  * Arg, dh_gencontrol seems to not support putting stuff after the
+    substitution variable, which seems somewhat broken to me, anyway, let's
+    put the substitution variable last.
+  * Forgot to add the camlp4_optional.dpatch to the list of patches to be
+    applied. (Closes: #213881)
+
+ -- Sven Luther <luther@debian.org>  Fri,  3 Oct 2003 10:54:26 +0200
+
+ocaml (3.07-3) unstable; urgency=low
+
+  * Fixed BestProvide magic, as a space was breaking non-native builds.
+
+ -- Sven Luther <luther@debian.org>  Fri,  3 Oct 2003 08:16:18 +0200
+
+ocaml (3.07-2) unstable; urgency=low
+
+  * I mistakenly uploaded to experimental, and thus am forced to upload a -2.
+
+ -- Sven Luther <luther@debian.org>  Thu,  2 Oct 2003 11:41:53 +0200
+
+ocaml (3.07-1) experimental; urgency=low
+
+  * New upstream release.
+    - Most debian patches where included upstream.
+    - Standard library now use .3o suffixes. (Closes: #205391)
+  * Dpatchification.
+  * Applied the camlp4 optional arguments fix.
+  * Fixed emacsen-install so that caml-xemacs and caml-emacs get installed
+    only for the corresponding emacs flavors. Thanks go to Jerome Marant.
+  * Moved ocaml-source into a tarball.
+
+ -- Sven Luther <luther@debian.org>  Wed,  1 Oct 2003 13:31:23 +0200
+
+ocaml (3.06-21) unstable; urgency=low
+
+  * I botched the debian/rules in the -20 release, fixed it.
+
+ -- Sven Luther <luther@debian.org>  Wed, 20 Aug 2003 13:57:28 +0200
+
+ocaml (3.06-20) unstable; urgency=low
+
+  * Fixed BestProvides substvar stuff. (Closes: #205228, #204537)
+
+ -- Sven Luther <luther@debian.org>  Tue, 19 Aug 2003 18:36:29 +0200
+
+ocaml (3.06-19) unstable; urgency=low
+
+  * Fix a alloc_channel bug. (Closes: #204146).
+
+ -- Sven Luther <luther@debian.org>  Wed,  6 Aug 2003 10:54:38 +0200
+
+ocaml (3.06-18) unstable; urgency=low
+
+  * Dropped camlp4, libcamltk-ocaml and camltk provides as it may confuse apt.
+
+ -- Sven Luther <luther@debian.org>  Fri, 18 Jul 2003 22:29:45 +0200
+
+ocaml (3.06-17) unstable; urgency=low
+
+  * Fixes typo in ocaml_packaging_policy.
+  * Moved ocamldoc generated library manpages from section o to 3.
+  * Linked to libgdbm-compat, using the new libgdbm-dev package.
+    (Closes: #188553)
+  * Removed the /etc/magic debconf question, as ocaml is recognized by file
+    since version 4.02-1. (Closes: #190037, #189774)
+  * Uncommented site specific emacs stuff as suggested by Laurent Bonnaud and
+    okeyed by Ralf Treinen. (Closes: #192131)
+  * Conflicts with camlidl (<< 1.04), warn if /usr/include/caml is still not
+    a symlink, but this should only happen if the user did some hand
+    installation.  (Closes: #195574, #192552)
+
+ -- Sven Luther <luther@debian.org>  Sun,  8 Jun 2003 11:52:10 +0200
+
+ocaml (3.06-16) unstable; urgency=low
+
+  * Fix GC memory problem in stat_aux function in stat.c, reported in upstream
+    bug #1665 and causes random SEGVs when using Unix.Largefile.stat or
+    friends. Thanks to David Brown for providing a patch.  (Closes: #191582)
+  * Properly install the latex file ocamldoc.sty. (Closes: #175821)
+  * Fixed or overrided most lintian warnings.
+  * Fixed configure script to work around the sparc FTBFS with gcc 3.2.
+  * Applied Remi's ocaml_packaging_policy changes. (Closes: #177850)
+  * Backported the config/auto-aux/async_io.c patch from CVS, to solve the
+    graphics module/sleep problem. (Closes: #179199)
+
+ -- Sven Luther <luther@debian.org>  Sat,  3 May 2003 09:45:38 +0200
+
+ocaml (3.06-15) unstable; urgency=low
+
+  * Fixed the /usr/include/caml issue. (Closes: #173720)
+
+ -- Sven Luther <luther@debian.org>  Tue, 24 Dec 2002 10:31:55 +0100
+
+ocaml (3.06-14) unstable; urgency=low
+
+  * Removed the (bad) /usr/lib/ocaml/3.06/ld.conf that comes with the ocaml
+    package.
+  * Now run ocaml-ldconf in ocaml postinst also. This is needed since
+    /usr/lib/ocaml/3.06/ld.conf was in ocaml 3.06-13 and will thus be removed
+    when we upgradeto 3.06-14.
+  * Some script cleanup.
+
+ -- Sven Luther <luther@debian.org>  Tue, 17 Dec 2002 00:05:22 +0100
+
+ocaml (3.06-13) unstable; urgency=low
+
+  * Ocaml and ocaml-base now provides ocaml-3.06-1 and ocaml-base-3.06-1. All
+    library packages depending on ocaml-3.06 and ocaml-base-3.06 are now
+    uninstallable, and should be rebuilt with these new dependencies. Notice
+    that a bug in dpkg (Bug#170825) allows to upgrade ocaml to 3.06-13 even if
+    packages depending on the older virtual provides are still present,
+    apt-get handles this properly.
+  * Changed libdir from /usr/lib/ocaml to /usr/lib/ocaml/3.06, and adapted the
+    ocaml_packaging_policy consequently.
+  * Added Stefano's section on META files and findlib in the
+    ocaml_packaging_policy.
+  * Now /usr/include/caml is a symlink to /usr/lib/ocaml/3.06/caml, and not
+    the other side around. Need to find a nicer solution here, or even stop
+    shipping the headers in /usr/include. One solution would be to ship them
+    under /usr/include/ocaml/3.06/caml.
+  
+ -- Sven Luther <luther@debian.org>  Sat, 14 Dec 2002 22:24:05 +0100
+
+ocaml (3.06-12) unstable; urgency=low
+
+  * Fixed configure so it now builds dbm support. (Closes: #168458)
+
+ -- Sven Luther <luther@debian.org>  Mon, 11 Nov 2002 12:45:32 +0100
+
+ocaml (3.06-11) unstable; urgency=low
+
+  * Applied posix systhread patch from Xavier. Now the tick thread dies
+    properly when killing a threaded native code program. (Closes: #144719)
+
+ -- Sven Luther <luther@debian.org>  Tue, 29 Oct 2002 18:22:16 +0100
+
+ocaml (3.06-10) unstable; urgency=low
+
+  * Now call dh_installdebconf to install the debconf .templates file.
+    (Closes: #166707)
+
+ -- Sven Luther <luther@debian.org>  Mon, 28 Oct 2002 10:29:04 +0100
+
+ocaml (3.06-9) unstable; urgency=low
+
+  * Now test for the existence of /etc/magic before trying to fill it.
+
+ -- Sven Luther <luther@debian.org>  Mon, 28 Oct 2002 10:29:04 +0100
+
+ocaml (3.06-8) unstable; urgency=low
+
+  * Added objinfo man page, courtesy of Stefano Zacchiroli, and modified
+    ocamlc manpage to make reference to it.
+  * Applied Stefano's .ocamlinit patch. (Closes: #166199)
+  * Added a debconf template to fill /etc/magic with the appropriate ocaml
+    magic.
+
+ -- Sven Luther <luther@debian.org>  Sun, 27 Oct 2002 00:20:24 +0200
+
+ocaml (3.06-7) unstable; urgency=low
+
+  * Ocaml needed a rebuild, since native code compilation using the Str
+    library was broken. I don't really understand what did break, most
+    probably it is one of the developpment libraries (binutils, libc6, ...)
+    which did change in an incompatible way we are not aware of.
+  * Now ship objinfo. (Closes: #165446)
+  * Applied odoc_man.ml patch from Maxence i got out of CVS. (Closes: #159581)
+  * Removed /usr/lib/ocaml/ld.conf from the ocaml package, since it is shipped
+    with ocaml-base. (Closes: #161742)
+
+ -- Sven Luther <luther@debian.org>  Wed, 23 Oct 2002 10:20:04 +0200
+
+ocaml (3.06-6.1) unstable; urgency=low
+
+  * (NMU) recompile at maintener request
+    Since i uploaded ocam lsource only, ocaml-source was not built,
+    so i asked for an NMU, not having the bandwith for uploading ocaml-source
+    myself. (Sven Luther)
+
+ -- Remi Vanicat <vanicat@debian.org>  Tue, 24 Sep 2002 11:46:27 +0200
+
+ocaml (3.06-6) unstable; urgency=high
+
+  * ocaml-ldconf in postrm was called only on remove, not upgrade.
+    (Closes: #159859).
+  * Moved ocaml-source stuff to /usr/src.
+    (Closes: #159862).
+  * Added more verbose info to ocaml-ldconf.ml
+    (Closes: #159860).
+  * Now ocaml-ldconf also accepts the -R option to remove all directories
+    associated with the given package.
+
+ -- Sven Luther <luther@debian.org>  Fri,  6 Sep 2002 18:12:18 +0200
+
+ocaml (3.06-5) unstable; urgency=high
+
+  * Removed reference to /usr/include/ocaml in README.Debian.
+    (Closes: #158126).
+
+ -- Sven Luther <luther@debian.org>  Mon,  2 Sep 2002 14:38:22 +0200
+
+ocaml (3.06-4) unstable; urgency=high
+
+  * Apparently the dh_ocamlld patch did not do, i will now call ocaml-ldconf
+    in ocaml-base.postinst, to be sure the /usr/lib/ocaml/ld.conf is created
+    correctly (Closes: #158905).
+
+ -- Sven Luther <luther@debian.org>  Mon,  2 Sep 2002 14:04:17 +0200
+
+ocaml (3.06-3) unstable; urgency=high
+
+  * Added a Provide: ocaml-source-3.06 to the ocaml-source control file.
+    (Asked by Jerome Marant)
+
+ -- Sven Luther <luther@debian.org>  Fri, 30 Aug 2002 09:39:25 +0200
+
+ocaml (3.06-2) unstable; urgency=high
+
+  * Now we create the /usr/local/lib/ocaml directory in the postinst instead
+    of including it in the package. We also don't fail if we are not able to
+    create this directory (if /usr/local is mounted read-only for example).
+    (Closes: #157898)
+  * Now use mmap() instead of malloc() for allocation of major heap chunks,
+    for alpha (same fix as for the ia64 problem encountered previously).
+    (Closes: #158444)
+
+ -- Sven Luther <luther@debian.org>  Thu, 29 Aug 2002 08:26:53 +0200
+
+ocaml (3.06-1) unstable; urgency=high
+
+  * New upstream (bugfix) release. (Closes: Bug#139427)
+  * 3.05 as released by upstream was broken, i should not have uploaded it (as
+    it broke all the libraries) but it was too late when i was made aware of
+    the problems with 3.05.
+  * Added a statement in the ocaml-source package description that it is _not_
+    supposed to be used for building ocaml. (Closes: #150077)
+  * Now ship labltk examples and README file. (Closes: #152588)
+  * Added ia64 to the list of arches who support the native code compilers.
+    (Closes: #157110)
+  * Removed .opt man pages from the list of files of the ocaml package.
+    (Closes: #152237)
+  * Camlp4 -where now gives the correct path. (Closes: #155701)
+  * Now include a default /usr/lib/ocaml/ld.conf file in the ocaml-base
+    package. (Closes: #156042, #155428)
+  * Updated ocaml_packaging_policy and README.Debian file.
+  * ocaml-ldconf now handles directory only lines in /etc/ocaml/ld.donf as the
+    add command.
+  
+ -- Sven Luther <luther@debian.org>  Tue, 20 Aug 2002 15:36:45 +0200
+
+ocaml (3.05-1) unstable; urgency=high
+
+  * New upstream release.
+  * Now /usr/lib/ocaml/stublibs is the default path for storing dynamic stub
+    libraries. We still keep the ocaml-ldconf/dh_ocamlld stuff on, as it may
+    still be usefull and for backward compatibility, but we will slowly
+    migrate all library packages to use the new path.
+  * Some updates to the policy file (standard stublib path, findlib, ...)
+  * Now ship labltk examples and README file.
+  * This upstream release fixes the bytecode compilers for powerpc (the same
+    as the patch applied in 3.04-9) and ia64.
+
+ -- Sven Luther <luther@debian.org>  Tue, 30 Jul 2002 10:44:39 +0200
+
+ocaml (3.04-13) unstable; urgency=high
+
+  * Modified ocaml-ldconf.ml so it no longer reverse the path list
+    (contributed from Denis Barbier <barbier@debian.org>).
+
+ -- Sven Luther <luther@debian.org>  Thu, 13 Jun 2002 17:15:12 +0200
+
+ocaml (3.04-12) unstable; urgency=high
+
+  * Link the .opt manpages by hand in postinst/prerm scripts, until debhelper
+    is fixed to support .so files pointing to manpages from other binary
+    packages. (Closes: Bug#138642)
+
+ -- Sven Luther <luther@debian.org>  Wed, 24 Apr 2002 11:25:17 +0200
+
+ocaml (3.04-11) unstable; urgency=high
+
+  * Now install also the emacs caml-help.el file.
+  * Removed the "\C-c\C-b" addition bindings, since they cause conflicts with
+    xemacs21 (Closes: Bug#139812) (taken from upsteream CVS).
+
+ -- Sven Luther <luther@debian.org>  Fri, 19 Apr 2002 19:29:13 +0200
+
+ocaml (3.04-10) unstable; urgency=high
+
+  * Fixed the bad /usr/lib/ocaml/ld.conf file permissions (Closes: Bug#138495).
+  * Added the ocaml-ldconf.1 manpage.
+  * Hopefully fixed the dangling camlp4r.opt.1 and camlp4o.opt.1 symlinks
+    (Closes: Bug#138642).
+
+ -- Sven Luther <luther@debian.org>  Tue, 19 Mar 2002 09:12:59 +0100
+
+ocaml (3.04-9) unstable; urgency=high
+
+  * Applied the correct powerpc patch from upstream (Closes: Bug#134113)
+
+ -- Sven Luther <luther@debian.org>  Tue, 19 Feb 2002 18:11:56 +0100
+
+ocaml (3.04-8) unstable; urgency=high
+
+  * Removed the not working ppc patch and replaced it by the one from
+    upstream's CVS (hope it works) (Closes: Bug#134113)
+  * Fixed ocaml-ldconf so it would work even if the files did not exist, and
+    added two of the ld.conf files as conffiles (not /usr/lib/ocaml/ld.conf,
+    which is a install time generated package).
+  * Renamed the include files again to /usr/include/caml, as it breaks things
+    otherwise.
+
+ -- Sven Luther <luther@debian.org>  Mon, 18 Feb 2002 11:30:35 +0100
+
+ocaml (3.04-7) unstable; urgency=high
+
+  * Fixed the emacs problem (Closes: Bug#132955)
+  * Fixed the dh_ocamlld execution problem (Closes: Bug#132959)
+
+ -- Sven Luther <luther@debian.org>  Mon, 11 Feb 2002 17:35:52 +0100
+
+ocaml (3.04-6) unstable; urgency=low
+
+  * Added ocaml-ldconf and ld.conf handling.
+  * Added a ocaml_packaging_policy file.
+  * Fixed the emacs problem, hope it works.
+  * Added a symlink from /usr/lib/ocaml/caml to /usr/include/ocaml
+  * Fixed the ocaml-native-compilers description problem.
+
+ -- Sven Luther <luther@debian.org>  Thu,  7 Feb 2002 12:19:10 +0100
+
+ocaml (3.04-5) unstable; urgency=low
+
+  * Split ocamlc.opt, ocamlopt.opt and ocamllex.opt into the
+    ocaml-native-compilers package.
+  * The ocaml-best-compilers virtual package is provided by
+    ocaml-native-compilers if it is built and by ocaml if not.
+  * Added an ocaml-source package containing the source to ocaml for packages
+    which need them as build-depends.
+  * Applied Ian Zimmerman's caml.el patch. (Closes:#129650,#130301)
+  
+
+ -- Sven Luther <luther@debian.org>  Wed, 16 Jan 2002 18:08:39 +0100
+
+ocaml (3.04-4) unstable; urgency=low
+
+  * fixed emacs support and added ocamltags.
+
+ -- Sven Luther <luther@debian.org>  Wed, 16 Jan 2002 16:50:12 +0100
+
+ocaml (3.04-3) unstable; urgency=low
+
+  * small patch to build on powerpc.
+  * don't build opt.opt on ia64.
+  * ocaml now doesn't include the ocaml-base stuff anymore but depends on it.
+
+ -- Sven Luther <luther@debian.org>  Wed,  9 Jan 2002 17:34:00 +0100
+
+ocaml (3.04-2) unstable; urgency=low
+
+  * added runtime dynamic libraries to ocaml-base.
+  * other small fixes.
+
+ -- Sven Luther <luther@debian.org>  Thu, 20 Dec 2001 09:35:21 +0100
+
+ocaml (3.04-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Sven Luther <luther@debian.org>  Fri, 14 Dec 2001 12:44:03 +0100
+
+ocaml (3.02-3) unstable; urgency=low
+
+  * alpha lacked the -mieee flag to gcc, so the fpu exceptions were not caught
+    correctly.
+
+ -- Sven Luther <luther@debian.org>  Tue,  6 Nov 2001 12:46:52 +0100
+
+ocaml (3.02-2) unstable; urgency=low
+
+  * Build with gcc.
+
+ -- Sven Luther <luther@debian.org>  Thu,  9 Aug 2001 14:11:19 +0200
+
+ocaml (3.02-1) unstable; urgency=low
+
+  * New upstream release.
+  * This is mostly a upstream bugfix release, including fixes to the arm
+    native code compiler and the config stuff for the parisc port.
+
+ -- Sven Luther <luther@debian.org>  Mon, 30 Jul 2001 17:20:38 +0200
+
+ocaml (3.01-6.1) unstable; urgency=low
+
+  * copy in new config.{guess,sub} to get support for new architectures.
+    Closes: #94755.
+
+ -- LaMont Jones <lamont@debian.org>  Mon,  9 Jul 2001 21:39:34 -0600
+
+ocaml (3.01-6) unstable; urgency=low
+
+  * Fix from Xavier Leroy for the arm native code compiler bug.
+
+ -- Sven Luther <luther@debian.org>  Fri,  6 Apr 2001 15:34:26 +0200
+
+ocaml (3.01-5.2) unstable; urgency=low
+
+  * Adds menu file, Closes: #83490.
+
+ -- Sven Luther <luther@debian.org>  Wed,  4 Apr 2001 15:00:53 +0200
+
+ocaml (3.01-5.1) unstable; urgency=low
+
+  * Fixes configure script to automatically find tcl/tk 8.3. This will
+    enable us to build this package on potato also.
+
+ -- Sven Luther <luther@debian.org>  Tue,  3 Apr 2001 13:12:27 +0200
+
+ocaml (3.01-5) unstable; urgency=low
+
+  * Disabled native code support on the arm arch, waiting for an upstream fix
+    on it.
+  * Removed Build dependency on emacsen, since it is no longer needed at
+    build time, but at install time.
+
+ -- Sven Luther <luther@debian.org>  Thu, 29 Mar 2001 13:03:43 +0200
+
+ocaml (3.01-4) unstable; urgency=low
+
+  * fixes arm build. Fixes: #90089.
+
+ -- Sven Luther <luther@debian.org>  Thu, 22 Mar 2001 15:37:30 +0100
+
+ocaml (3.01-3) unstable; urgency=low
+
+  * clean now trully brings the package to it's previous state.
+  * added emacs patch from Ralf Treineim.
+
+ -- Sven Luther <luther@debian.org>  Thu, 22 Mar 2001 09:57:32 +0100
+
+ocaml (3.01-2) unstable; urgency=low
+
+  * Fix missing dbm and labltk builds.
+
+ -- Sven Luther <luther@debian.org>  Fri, 16 Mar 2001 10:49:02 +0100
+
+ocaml (3.01-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Sven Luther <luther@debian.org>  Fri,  9 Mar 2001 16:25:19 +0100
+
+ocaml (3.00-6) unstable; urgency=low
+
+  * Added some suggest field, Fixes: #85280.
+
+ -- Sven Luther <luther@debian.org>  Fri,  9 Feb 2001 09:40:14 +0100
+
+ocaml (3.00-5) unstable; urgency=low
+
+  * Erm, ... apparently, strip is still not behaving itself correctly, it
+    removed the bytecode from the ocamlbrowser executable :(((
+    Fixed it by don't stripping ocamlbrowser and ocamldebug manually.
+
+ -- Sven Luther <luther@debian.org>  Mon,  5 Feb 2001 14:50:54 +0100
+
+ocaml (3.00-4) unstable; urgency=low
+
+  * added debhelper to the Build-depends :((((
+
+ -- Sven Luther <luther@debian.org>  Tue, 10 Jan 2001 18:25:32 +0100
+
+ocaml (3.00-3) unstable; urgency=low
+
+  * had to rebuild due to the dpkg 1.8.1.1 bug :(((
+
+ -- Sven Luther <luther@debian.org>  Tue,  9 Jan 2001 15:45:32 +0100
+
+ocaml (3.00-2) unstable; urgency=low
+
+  * Updated to standard version 3.2.1.0.
+  * Added build dependencies, hope i didn't miss them.
+  * Needed rebuilt on alpha anyway, since the tcl/tk developpment packages
+    where missing when it got built, now, the build dependencies should handle
+    this correctly.
+  * Fixes #81337. (bcopy redefinition bug due to new libc). Thanks for
+    Paul Slootman for providing a patch to this one.
+  * Fixes #69724 (i hope). Now that strip doesn't destroy files it doesn't
+    know anything about, we can strip executables safely again.
+
+ -- Sven Luther <luther@debian.org>  Mon,  8 Jan 2001 14:34:26 +0100
+
+ocaml (3.00-1) unstable; urgency=low
+
+  * new upstream release.
+
+ -- Sven Luther <luther@debian.org>  Thu, 27 Apr 2000 00:22:42 +0200
+
+ocaml3 (2.99-1) unstable; urgency=low
+
+  * New upstream release. This is the beta version of upcomming ocaml 3.0.
+  * This package will conflict with ocaml 2.04 for now, when ocaml 3.0
+    comes out, it will replace ocaml 2.04 also. Don't know if we will need
+    a ocaml 2.04 compatibility package, i guess not, but if needed, we could
+    do it.
+
+ -- Sven Luther <luther@debian.org>  Mon,  6 Mar 2000 13:03:17 +0100
+
+ocaml (2.04-6) frozen unstable; urgency=low
+
+  * emacs mode was missing, added it again.
+
+ -- Sven Luther <luther@debian.org>  Tue, 29 Feb 2000 14:37:35 +0100
+
+ocaml (2.04-5) frozen unstable; urgency=low
+
+  * Fix the lintian error about LGPL link pointing to old place.
+
+ -- Sven Luther <luther@debian.org>  Fri,  4 Feb 2000 16:14:27 +0100
+
+ocaml (2.04-4) unstable; urgency=low
+
+  * Added a libncurses5-dev dependency, as ocamlopt needs it to compile
+    programs, not sure if a depends dependency is the right way to do things
+    though.
+
+ -- Sven Luther <luther@debian.org>  Fri,  4 Feb 2000 15:29:23 +0100
+
+ocaml (2.04-3) unstable; urgency=low
+
+  * Don't strip binaries, as stripping of ocaml binaries is not supported.
+  * Closes Bug #49637.
+
+ -- Sven Luther <luther@debian.org>  Tue, 25 Jan 2000 17:14:53 +0100
+
+ocaml (2.04-2) unstable; urgency=low
+
+  * Disables m68k nativ code compiler.
+  * Closes Bug #52130.
+
+ -- Sven Luther <luther@debian.org>  Thu,  9 Dec 1999 10:20:06 +0100
+
+ocaml (2.04-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Sven Luther <luther@debian.org>  Tue, 30 Nov 1999 14:46:37 +0100
+
+ocaml (2.03-1) unstable; urgency=low
+
+  * New upstream release.
+  * License change (QPL & LGPL mix), can go in main now.
+  * configuration patch seems to be included in main.
+
+ -- Sven Luther <luther@debian.org>  Mon, 22 Nov 1999 11:40:28 +0100
+
+ocaml (2.02-9) unstable; urgency=low
+
+  * fixed thread support for native code stuff,
+    using systhread instead of thread.
+
+ -- Sven Luther <luther@debian.org>  Thu, 18 Nov 1999 14:55:46 +0100
+
+ocaml (2.02-8) unstable; urgency=low
+
+  * fixed bad suggests line for ocaml-doc.
+
+ -- Sven Luther <luther@debian.org>  Mon,  8 Nov 1999 12:26:47 +0100
+
+ocaml (2.02-7) unstable; urgency=low
+
+  * Added a man page for ocamldebug.
+  * seems FHS compliant.
+
+ -- Sven Luther <luther@debian.org>  Sat,  9 Oct 1999 14:20:25 +0200
+
+ocaml (2.02-6) unstable; urgency=low
+
+  * Adding FHS-compliance.
+
+ -- Sven Luther <luther@debian.org>  Sat,  9 Oct 1999 12:05:47 +0200
+
+ocaml (2.02-5) unstable; urgency=low
+
+  * Removed again the m68k native code compiler, since it was buggy.
+  * Fixed a bug in the thread library.
+
+ -- Sven Luther <luther@debian.org>  Wed, 30 Jun 1999 09:13:00 +0200
+
+ocaml (2.02-4) unstable; urgency=low
+
+  * Fixed a last bug with the m68k native code compiler.
+
+ -- Sven Luther <luther@debian.org>  Sat, 29 May 1999 20:43:41 +0200
+
+ocaml (2.02-3) unstable; urgency=low
+
+  * Enabled m68k native code compiler.
+
+ -- Sven Luther <luther@debian.org>  Fri,  7 May 1999 10:24:34 +0200
+
+ocaml (2.02-2) unstable; urgency=low
+
+  * Fixed m68k build, at least i hope so, didn't test it though ...
+
+  * Fixed emacs mode build and install.
+
+ -- Sven Luther <luther@debian.org>  Thu, 29 Apr 1999 20:05:35 +0100
+
+ocaml (2.02-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Sven Luther <luther@debian.org>  Mon, 08 Mar 1999 17:50:35 +0100
+
+ocaml (2.01-5) unstable; urgency=low
+
+  * fixed the ocamlmktop bug, by removing the $PREFIX stuff from
+    tools/Makefile. It is not needed there.
+
+ -- Sven Luther <luther@debian.org>  Wed, 26 Feb 1999 07:40:35 +0100
+
+ocaml (2.01-4) unstable; urgency=low
+
+  * fixed some stuff in the $PREFIX Makefile changes.
+
+ -- Sven Luther <luther@debian.org>  Tue, 16 Feb 1999 19:55:35 +0100
+
+ocaml (2.01-3) unstable; urgency=low
+
+  * added some Makefile stuff to help build packages when native code
+    compiler is not supported.
+  * html documentation is now another package (ocaml-doc) together with
+    documentation in another format.
+
+ -- Sven Luther <luther@debian.org>  Tue, 16 Feb 1999 19:55:35 +0100
+
+ocaml (2.01-2) unstable; urgency=low
+
+  * Removed the mli2html patch again, conforming to the wishes of
+    the upstream author. Due to licensing problems, if we want it, 
+    we have to have autorization of INRIA. Anyway, the mli2html patch
+    was buggy, creating different .mli files if -html was used or not.
+  * Fixed the configure script and Makefile so that you can use -prefix
+    option and change the install prefix by changing the PREFIX variable.
+
+ -- Sven Luther <luther@debian.org>  Tue, 16 Feb 1999 10:31:35 +0100
+
+ocaml (2.01-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Sven Luther <luther@debian.org>  Tue, 11 Feb 1999 13:51:35 +0100
+
+ocaml (2.00-2) unstable; urgency=low
+
+  * added mli2html patch to create html documents from .mli files
+
+ -- Sven Luther <luther@dpt-info.u-strasbg.fr>  Sun, 13 Sep 1998 09:08:05 +0200
+
+ocaml (2.00-1) unstable; urgency=low
+
+  * new upstream source
+
+ -- Sven Luther <luther@dpt-info.u-strasbg.fr>  Mon, 31 Aug 1998 10:08:05 +0200
+
+ocaml (1.07-1) unstable; urgency=low
+
+  * new upstream source
+
+ -- Sven Luther <luther@dpt-info.u-strasbg.fr>  Sat, 21 Feb 1998 10:36:26 +0800
+
+ocaml (1.05-2) unstable; urgency=low
+
+  * Build with libc6
+
+ -- Christophe Le Bars <clebars@debian.org>  Sun, 28 Sep 1997 16:45:02 +0200
+
+ocaml (1.05-1) non-free; urgency=low
+
+  * New upstream source
+
+ -- Christophe Le Bars <clebars@debian.org>  Fri, 22 Aug 1997 23:01:51 +0200
+
+ocaml (1.03-2) frozen-non-free non-free; urgency=low
+
+  * Added ocamlmktop manpage (Bug#6264)
+
+ -- Christophe Le Bars <clebars@debian.org>  Tue, 22 Apr 1997 23:44:12 +0200
+
+ocaml (1.03-1) non-free; urgency=low
+
+  * New upstream source
+  * Added html reference manual
+
+ -- Christophe Le Bars <clebars@debian.org>  Fri, 1 Nov 1996 15:51:00 +0100
+
+ocaml (1.02-1) non-free; urgency=low
+
+  * Initial release
+  * Added Debian GNU/Linux Linux package maintenance system files
+
+ -- Christophe Le Bars <clebars@debian.org>  Fri, 11 Oct 1996 22:25:01 +0200
--- ocaml-3.11.2.orig/debian/camlp4.dirs.in
+++ ocaml-3.11.2/debian/camlp4.dirs.in
@@ -0,0 +1,2 @@
+usr/bin
+@OCamlStdlibDir@/camlp4
--- ocaml-3.11.2.orig/debian/ocaml-mode.emacsen-install
+++ ocaml-3.11.2/debian/ocaml-mode.emacsen-install
@@ -0,0 +1,55 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/ocaml-mode
+
+# Written by Jim Van Zandt <jrv@vanzandt.mv.com>, borrowing heavily
+# from the install scripts for gettext by Santiago Vila
+# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
+
+FLAVOR=$1
+PACKAGE=ocaml-mode
+
+if [ ${FLAVOR} = emacs ]; then exit 0; fi
+
+echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
+
+FLAVORTEST=`echo $FLAVOR | cut -c-6`
+if [ ${FLAVORTEST} = xemacs ] ; then
+    SITEFLAG="-no-site-file"
+else
+    SITEFLAG="--no-site-file"
+fi
+FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
+
+ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
+ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+
+# Install-info-altdir does not actually exist. 
+# Maybe somebody will write it.
+if test -x /usr/sbin/install-info-altdir; then
+    echo install/${PACKAGE}: install Info links for ${FLAVOR}
+    install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz
+fi
+
+install -m 755 -d ${ELCDIR}
+
+cd ${ELDIR}
+case "${FLAVOR}" in
+    xemacs21)
+	FILES=`ls *.el | egrep -v caml-emacs\|camldebug.el\|inf-caml.el`
+	;;
+
+    *)
+	FILES=`ls *.el | grep -v caml-xemacs`
+	;;
+
+esac
+cp ${FILES} ${ELCDIR}
+cd ${ELCDIR}
+
+cat << EOF > path.el
+(setq load-path (cons "." load-path) byte-compile-warnings nil)
+EOF
+${FLAVOR} ${FLAGS} ${FILES}
+rm -f *.el path.el
+
+exit 0
--- ocaml-3.11.2.orig/debian/clean
+++ ocaml-3.11.2/debian/clean
@@ -0,0 +1,8 @@
+build/ocamlbuild_mixed_mode
+config/Makefile
+config/config.debian.install.sh
+config/config.sh
+config/m.h
+config/s.h
+myocamlbuild_config.ml
+tools/myocamlbuild_config.ml
--- ocaml-3.11.2.orig/debian/ocaml-native-compilers.dirs
+++ ocaml-3.11.2/debian/ocaml-native-compilers.dirs
@@ -0,0 +1,3 @@
+usr/bin
+usr/share/man/man1
+usr/share/ocaml-findlib
--- ocaml-3.11.2.orig/debian/ocaml.dirs.in
+++ ocaml-3.11.2/debian/ocaml.dirs.in
@@ -0,0 +1,3 @@
+usr/bin
+usr/share/doc/ocaml/examples
+@OCamlStdlibDir@
--- ocaml-3.11.2.orig/debian/ocaml-nox.NEWS
+++ ocaml-3.11.2/debian/ocaml-nox.NEWS
@@ -0,0 +1,14 @@
+ocaml-nox (3.08.3-8) unstable; urgency=low
+
+  * The Emacs mode for editing both Objective Caml and Caml Light
+    programs which is shipped with ocaml has been moved to its own
+    `ocaml-mode' package.
+
+  * If found, previous Emacs site conffiles called
+    /etc/emacs/site-start.d/50ocaml.el and
+    /etc/emacs/site-start.d/50ocaml-nox.el are renamed to
+    <file>.save in order not to mess with the site conffile from
+    the new `ocaml-mode' package.
+
+ -- Jerome Marant <jerome@debian.org>  Sat, 20 Aug 2005 13:30:25 +0200
+
--- ocaml-3.11.2.orig/debian/ocaml-source.exclude
+++ ocaml-3.11.2/debian/ocaml-source.exclude
@@ -0,0 +1,3 @@
+*/debian
+*/*-stamp
+*/.git
--- ocaml-3.11.2.orig/debian/ocaml-mode.emacsen-remove
+++ ocaml-3.11.2/debian/ocaml-mode.emacsen-remove
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/ocaml-mode
+
+FLAVOR=$1
+PACKAGE=ocaml-mode
+
+if [ ${FLAVOR} != emacs ]; then
+    if test -x /usr/sbin/install-info-altdir; then
+        echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
+        install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/#PACKAGE#.info.gz
+    fi
+
+    echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+    rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi
--- ocaml-3.11.2.orig/debian/ocaml.xpm
+++ ocaml-3.11.2/debian/ocaml.xpm
@@ -0,0 +1,290 @@
+/* XPM */
+static char * ocaml_32_xpm[] = {
+"32 32 255 2",
+"  	c None",
+". 	c #FFFFFF",
+"+ 	c #6666FF",
+"@ 	c #CC6666",
+"# 	c #6767FF",
+"$ 	c #6969FF",
+"% 	c #6A6AFF",
+"& 	c #6E6EFF",
+"* 	c #7070FF",
+"= 	c #7373FF",
+"- 	c #7575FF",
+"; 	c #7777FF",
+"> 	c #7979FF",
+", 	c #7A7AFF",
+"' 	c #7D7DFF",
+") 	c #7F7FFF",
+"! 	c #8383FF",
+"~ 	c #8585FF",
+"{ 	c #8686FF",
+"] 	c #8888FF",
+"^ 	c #8D8DFF",
+"/ 	c #8F8FFF",
+"( 	c #9191FF",
+"_ 	c #9494FF",
+": 	c #9797FF",
+"< 	c #9999FF",
+"[ 	c #9B9BFF",
+"} 	c #9C9CFF",
+"| 	c #A3A3FF",
+"1 	c #A9A9FF",
+"2 	c #ABABFF",
+"3 	c #ADADFF",
+"4 	c #AFAFFF",
+"5 	c #B1B1FF",
+"6 	c #B5B5FF",
+"7 	c #B8B8FF",
+"8 	c #BABAFF",
+"9 	c #BEBEFF",
+"0 	c #C1C1FF",
+"a 	c #C2C2FF",
+"b 	c #C4C4FF",
+"c 	c #C9C9FF",
+"d 	c #CCCCFF",
+"e 	c #CFCFFF",
+"f 	c #D3D3FF",
+"g 	c #D4D4FF",
+"h 	c #D6D6FF",
+"i 	c #D8D8FF",
+"j 	c #DADAFF",
+"k 	c #DFDFFF",
+"l 	c #E0E0FF",
+"m 	c #E5E5FF",
+"n 	c #E6E6FF",
+"o 	c #E9E9FF",
+"p 	c #EBEBFF",
+"q 	c #ECECFF",
+"r 	c #EFEFFF",
+"s 	c #F2F2FF",
+"t 	c #F5F5FF",
+"u 	c #F7F7FF",
+"v 	c #F8F8FF",
+"w 	c #FAFAFF",
+"x 	c #FDFDFF",
+"y 	c #FEFEFF",
+"z 	c #C96464",
+"A 	c #BD5E5E",
+"B 	c #B95C5C",
+"C 	c #9D4E4E",
+"D 	c #CB6666",
+"E 	c #CA6565",
+"F 	c #C76464",
+"G 	c #C66363",
+"H 	c #C46262",
+"I 	c #C26161",
+"J 	c #BF6060",
+"K 	c #BB5E5E",
+"L 	c #BA5D5D",
+"M 	c #B75C5C",
+"N 	c #B65B5B",
+"O 	c #B35A5A",
+"P 	c #B25959",
+"Q 	c #AE5757",
+"R 	c #AB5656",
+"S 	c #AA5555",
+"T 	c #A85454",
+"U 	c #A65353",
+"V 	c #A35252",
+"W 	c #9B4E4E",
+"X 	c #964B4B",
+"Y 	c #944A4A",
+"Z 	c #924949",
+"` 	c #904848",
+" .	c #8C4646",
+"..	c #8B4646",
+"+.	c #884444",
+"@.	c #874444",
+"#.	c #854343",
+"$.	c #824141",
+"%.	c #341A1A",
+"&.	c #CD6868",
+"*.	c #CC6767",
+"=.	c #C26262",
+"-.	c #9E5050",
+";.	c #653333",
+">.	c #934B4B",
+",.	c #793E3E",
+"'.	c #673535",
+").	c #CE6B6B",
+"!.	c #CD6A6A",
+"~.	c #592E2E",
+"{.	c #B86060",
+"].	c #613333",
+"^.	c #CE6D6D",
+"/.	c #AA5A5A",
+"(.	c #A45757",
+"_.	c #BE6565",
+":.	c #CF6F6F",
+"<.	c #CF7070",
+"[.	c #9D5555",
+"}.	c #D07272",
+"|.	c #402323",
+"1.	c #D17474",
+"2.	c #6F3E3E",
+"3.	c #C26D6D",
+"4.	c #BA6868",
+"5.	c #D17676",
+"6.	c #884D4D",
+"7.	c #D27777",
+"8.	c #D27979",
+"9.	c #D47C7C",
+"0.	c #8C5252",
+"a.	c #D37C7C",
+"b.	c #BD7070",
+"c.	c #D58080",
+"d.	c #D47F7F",
+"e.	c #7D4B4B",
+"f.	c #D68383",
+"g.	c #D58282",
+"h.	c #D78585",
+"i.	c #D28383",
+"j.	c #D78787",
+"k.	c #D78888",
+"l.	c #D88989",
+"m.	c #B47373",
+"n.	c #D88B8B",
+"o.	c #A66B6B",
+"p.	c #D98D8D",
+"q.	c #D98E8E",
+"r.	c #CE8787",
+"s.	c #573A3A",
+"t.	c #926262",
+"u.	c #875B5B",
+"v.	c #DB9494",
+"w.	c #D69191",
+"x.	c #8C5F5F",
+"y.	c #BC8080",
+"z.	c #DC9797",
+"A.	c #A97474",
+"B.	c #DD9999",
+"C.	c #4E3636",
+"D.	c #DE9B9B",
+"E.	c #DD9A9A",
+"F.	c #8B6161",
+"G.	c #DE9D9D",
+"H.	c #CC9191",
+"I.	c #DF9F9F",
+"J.	c #DFA0A0",
+"K.	c #D99C9C",
+"L.	c #B18080",
+"M.	c #E0A3A3",
+"N.	c #8F6868",
+"O.	c #E1A5A5",
+"P.	c #E3AAAA",
+"Q.	c #DAA3A3",
+"R.	c #D6A0A0",
+"S.	c #9A7474",
+"T.	c #E3ACAC",
+"U.	c #C49494",
+"V.	c #E4AFAF",
+"W.	c #967373",
+"X.	c #725858",
+"Y.	c #E6B2B2",
+"Z.	c #836666",
+"`.	c #E7B5B5",
+" +	c #DAABAB",
+".+	c #E7B7B7",
+"++	c #C9A0A0",
+"@+	c #957878",
+"#+	c #E9BDBD",
+"$+	c #9D7F7F",
+"%+	c #655252",
+"&+	c #E9BEBE",
+"*+	c #B89999",
+"=+	c #C9A8A8",
+"-+	c #ECC6C6",
+";+	c #EAC5C5",
+">+	c #A58B8B",
+",+	c #EDC8C8",
+"'+	c #786666",
+")+	c #EECBCB",
+"!+	c #EDCACA",
+"~+	c #867373",
+"{+	c #EECDCD",
+"]+	c #D6B8B8",
+"^+	c #C3A8A8",
+"/+	c #EFCFCF",
+"(+	c #EACBCB",
+"_+	c #E2C4C4",
+":+	c #BBA4A4",
+"<+	c #F0D3D3",
+"[+	c #AD9999",
+"}+	c #E8CECE",
+"|+	c #C3AEAE",
+"1+	c #F3DADA",
+"2+	c #F2D9D9",
+"3+	c #E2CBCB",
+"4+	c #EAD3D3",
+"5+	c #A89797",
+"6+	c #F4DEDE",
+"7+	c #F3DDDD",
+"8+	c #9A8D8D",
+"9+	c #F6E2E2",
+"0+	c #E9D7D7",
+"a+	c #A79B9B",
+"b+	c #A29696",
+"c+	c #F7E6E6",
+"d+	c #F6E5E5",
+"e+	c #F2E2E2",
+"f+	c #EBDCDC",
+"g+	c #C8BCBC",
+"h+	c #F4E6E6",
+"i+	c #D8CCCC",
+"j+	c #F8EBEB",
+"k+	c #F6EAEA",
+"l+	c #EEE2E2",
+"m+	c #F9EEEE",
+"n+	c #FAF1F1",
+"o+	c #DED6D6",
+"p+	c #FBF3F3",
+"q+	c #F6EEEE",
+"r+	c #CDC6C6",
+"s+	c #FCF5F5",
+"t+	c #FBF5F5",
+"u+	c #F6F1F1",
+"v+	c #ECE7E7",
+"w+	c #FCF8F8",
+"x+	c #FAF6F6",
+"y+	c #E6E2E2",
+"z+	c #F0EDED",
+"A+	c #FDFBFB",
+"B+	c #F9F7F7",
+"C+	c #F7F5F5",
+"D+	c #F2F0F0",
+"E+	c #FEFDFD",
+"F+	c #FDFCFC",
+"        c.c.                                                    ",
+"      c.;+c.z.z.                                                ",
+"    c.c.c.v.^.o.                                                ",
+"  c.c.c.c.D  .:+                                                ",
+"c.c.c.a.@ L #.|+            n.n.n.              n.n.            ",
+"c.c.c.P T O W *+          z.z.n.n.z.          n.n.n.            ",
+"D.l.U U u.-.O A.          n.n.n.h.n.z.      n.n.d.8.n.          ",
+"k.N U U   8.*.=.}.      z.z.n.@ ).!.}.      !.&.^.&.@ n.        ",
+"H.U U     }.8.7.7.z.    n.@ @ @ *.@ *.&.&.*.@ @ *.D @ n.        ",
+"U           h.a.5.h.z.z.z.@ @ @ @ @ @ @ @ @ @ @ @ *.H n.n.      ",
+"            g.1.).7.l.n.@ @ @ &.@ @ @ @ @ @ @ @ @ *.&.z w.n.    ",
+"            7.^.D &.).<.<.).*.@ @ @ @ @ @ @ @ @ @ @ &.).!.n.n.n.",
+"            q.G F D @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ *.&.^.E ^.n.",
+"            e.S P I E @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ ^.^.^.n.",
+"              e.+.C B F D @ @ @ @ @ @ @ @ @ @ @ @ @ @ E V S V V ",
+"                e.e.+.R I D @ @ D E G H G z D @ @ @ @ G X ].    ",
+"                    S.Z B E @ z A S ` +.C B z @ @ @ @ I ` X.    ",
+"                      S :.!.@ H -.S S S W./.G @ @ @ @ J @.Z.    ",
+"                      S q.<.F J ` ~+S     3.D D E F F K +.@+    ",
+"                      @ p.L U N C W.      r.I I M U T P X g.    ",
+"                    @ @ =.    V Q 0.      }./.R Y 2.F.X S g.g.  ",
+"                    @ @ @     Q P @ }.      }.(.@.Z.  A.U X g.g.",
+"                    @ P @       _.Q Q       g.g.R S.    m.g.g.g.",
+"                    @ S @       4.@ @         g.1.0.      =.m.g.",
+"                    @ @ @       4.4.@         g.f.6.      g.H g.",
+"                    @ &.@         @ @ @       g.g.t.      }.1.i.",
+"                    @ S {.        @ 4.3.Q     g.a.g.        9.=.",
+"                      *.S S         4.9.K.    }.1.g.        }.}.",
+"                      S S ).@       Q 4.k.    }.z >+        }.1.",
+"                      *.*.*.S @       4.v.q.}.p.$.g.      g.7.@ ",
+"                    ;.S V S S [+    4.&.Q ` ,.s.%+g.      @ @ @ ",
+"                      ;.;.;.;.    4.4.;.;.  8+,.,.,.            "};
--- ocaml-3.11.2.orig/debian/ocaml.install.in
+++ ocaml-3.11.2/debian/ocaml.install.in
@@ -0,0 +1,11 @@
+     usr/bin/labltk
+     usr/bin/ocamlbrowser
+     @OCamlStdlibDir@/labltk
+     @OCamlStdlibDir@/libgraphics.a
+STD: graphics.cmi
+STD: graphics.cmx
+STD: graphics.cmxa
+STD: graphics.mli
+STD: graphicsX11.cmi
+STD: graphicsX11.cmx
+STD: graphicsX11.mli
--- ocaml-3.11.2.orig/debian/ocaml-source.dirs.in
+++ ocaml-3.11.2/debian/ocaml-source.dirs.in
@@ -0,0 +1 @@
+usr/src
--- ocaml-3.11.2.orig/debian/ocaml-mode.README.Debian
+++ ocaml-3.11.2/debian/ocaml-mode.README.Debian
@@ -0,0 +1,14 @@
+ocaml-mode for Debian
+---------------------
+
+ WARNING: tuareg-mode may be installed on your system. Since it
+ has a higher priority than ocaml-mode, it will be used for
+ every OCaml file loaded into (X)Emacs.
+ 
+ If you absolutely want to override those default settings and
+ use ocaml-mode instead of tuareg-mode, you only need to add the
+ following line to your .emacs:
+
+   (load-file "/etc/emacs/site-start.d/50ocaml-mode.el")
+
+ -- Jerome Marant <jerome@debian.org>, Sat Sep  3 11:41:37 2005
--- ocaml-3.11.2.orig/debian/camlp4-extra.links
+++ ocaml-3.11.2/debian/camlp4-extra.links
@@ -0,0 +1,19 @@
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4of.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4rf.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4oof.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4orf.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4prof.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4of.opt.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4rf.opt.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4oof.opt.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4orf.opt.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4boot.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4of.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4rf.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4oof.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4orf.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4prof.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4of.opt.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4rf.opt.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4oof.opt.1.gz
+usr/share/man/man1/camlp4.1.gz	  usr/share/man/man1/camlp4orf.opt.1.gz
--- ocaml-3.11.2.orig/debian/ocaml-interp.menu
+++ ocaml-3.11.2/debian/ocaml-interp.menu
@@ -0,0 +1,5 @@
+?package(ocaml-interp):needs="text" section="Applications/Programming" \
+	title="Ocaml" longtitle="Ocaml Toplevel" \
+	hints="ocaml" \
+	command="/usr/bin/ocaml" \
+	icon="/usr/share/pixmaps/ocaml.xpm"
--- ocaml-3.11.2.orig/debian/ocaml-native-compilers.install
+++ ocaml-3.11.2/debian/ocaml-native-compilers.install
@@ -0,0 +1,6 @@
+usr/bin/ocamlc.opt
+usr/bin/ocamldep.opt
+usr/bin/ocamldoc.opt
+usr/bin/ocamllex.opt
+usr/bin/ocamlopt.opt
+debian/ocamlfind/ocaml-native-compilers.conf usr/share/ocaml-findlib/
--- ocaml-3.11.2.orig/debian/ocaml-compiler-libs.dirs.in
+++ ocaml-3.11.2/debian/ocaml-compiler-libs.dirs.in
@@ -0,0 +1,3 @@
+@OCamlStdlibDir@/compiler-libs/parsing
+@OCamlStdlibDir@/compiler-libs/typing
+@OCamlStdlibDir@/compiler-libs/utils
--- ocaml-3.11.2.orig/debian/gbp.conf
+++ ocaml-3.11.2/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+pristine-tar = True
--- ocaml-3.11.2.orig/debian/camlp4-extra.install.in
+++ ocaml-3.11.2/debian/camlp4-extra.install.in
@@ -0,0 +1,13 @@
+usr/bin/camlp4of
+usr/bin/camlp4rf
+usr/bin/camlp4oof
+usr/bin/camlp4orf
+usr/bin/camlp4prof
+@OCamlStdlibDir@/camlp4/camlp4of.cma
+@OCamlStdlibDir@/camlp4/camlp4rf.cma
+@OCamlStdlibDir@/camlp4/camlp4oof.cma
+@OCamlStdlibDir@/camlp4/camlp4orf.cma
+OPT: usr/bin/camlp4of.opt
+OPT: usr/bin/camlp4rf.opt
+OPT: usr/bin/camlp4oof.opt
+OPT: usr/bin/camlp4orf.opt
--- ocaml-3.11.2.orig/debian/ocamlinit.mk
+++ ocaml-3.11.2/debian/ocamlinit.mk
@@ -0,0 +1,61 @@
+#
+# Description: Useful Makefile rules for OCaml related packages
+#
+# Copyright © 2009 Stéphane Glondu <steph@glondu.net>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301 USA.
+#
+
+_ocaml_share_path ?= /usr/share/ocaml
+
+ifndef _ocaml_share_ocamlinit
+_ocaml_share_ocamlinit = 1
+
+include $(_ocaml_share_path)/ocamlvars.mk
+
+# list of .in files contained (non-recursively) in debian/ that requires
+# pre-build filling.
+# debian/rules writers might need to add stuff to this list:
+#  e.g.: OCAML_IN_FILES += debian/patches/foo	# (no .in extension)
+OCAML_IN_FILES ?= $(filter-out debian/control,$(patsubst %.in,%,$(wildcard debian/*.in)))
+
+# WARNING: there are currently duplications with ocamlvars.mk and
+# ocaml.mk, but hopefully they will be removed at some point in the
+# future
+
+OCAMLINIT_SED := \
+  -e 's%@OCamlABI@%$(OCAML_ABI)%g' \
+  -e 's%@OCamlStdlibDir@%$(OCAML_STDLIB_DIR)%g' \
+  -e 's%@OCamlDllDir@%$(OCAML_DLL_DIR)%g'
+ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
+  OCAMLINIT_SED += -e 's/^OPT: //' -e '/^BYTE: /d'
+else
+  OCAMLINIT_SED += -e '/^OPT: /d' -e 's/^BYTE: //'
+endif
+
+ocamlinit: ocamlinit-stamp
+ocamlinit-stamp:
+	for t in $(OCAML_IN_FILES); do \
+	  sed $(OCAMLINIT_SED) $$t.in > $$t; \
+	done
+	touch $@
+
+ocamlinit-clean:
+	rm -f ocamlinit-stamp $(OCAML_IN_FILES)
+
+.PHONY: ocamlinit ocamlinit-clean
+
+endif
--- ocaml-3.11.2.orig/debian/ocaml-native-compilers.links
+++ ocaml-3.11.2/debian/ocaml-native-compilers.links
@@ -0,0 +1,5 @@
+usr/share/man/man1/ocamlc.1.gz		usr/share/man/man1/ocamlc.opt.1.gz
+usr/share/man/man1/ocamldep.1.gz	usr/share/man/man1/ocamldep.opt.1.gz
+usr/share/man/man1/ocamldoc.1.gz	usr/share/man/man1/ocamldoc.opt.1.gz
+usr/share/man/man1/ocamllex.1.gz	usr/share/man/man1/ocamllex.opt.1.gz
+usr/share/man/man1/ocamlopt.1.gz	usr/share/man/man1/ocamlopt.opt.1.gz
--- ocaml-3.11.2.orig/debian/ocaml-base.install.in
+++ ocaml-3.11.2/debian/ocaml-base.install.in
@@ -0,0 +1,5 @@
+     @OCamlDllDir@/dlllabltk.so
+     @OCamlDllDir@/dllgraphics.so
+     @OCamlDllDir@/dlltkanim.so
+     @OCamlStdlibDir@/graphics.cma
+OPT: @OCamlStdlibDir@/graphics.cmxs
--- ocaml-3.11.2.orig/debian/ocaml-base.dirs.in
+++ ocaml-3.11.2/debian/ocaml-base.dirs.in
@@ -0,0 +1,3 @@
+usr/share/doc/ocaml-base
+@OCamlDllDir@
+@OCamlStdlibDir@
--- ocaml-3.11.2.orig/debian/ocaml-interp.install.in
+++ ocaml-3.11.2/debian/ocaml-interp.install.in
@@ -0,0 +1,3 @@
+usr/bin/ocaml
+usr/share/man/man1/ocaml.1
+debian/ocaml.xpm /usr/share/pixmaps
--- ocaml-3.11.2.orig/debian/copyright
+++ ocaml-3.11.2/debian/copyright
@@ -0,0 +1,187 @@
+Packaged-By: Sven Luther <luther@debian.org>
+Packaged-Date: Fri, 14 Dec 2001 12:44:03 +0100
+Upstream-Author:
+  Xavier Leroy,
+  Damien Doligez,
+  Jacques Garrigue,
+  Nicolas Pouillard,
+  Pierre Weis,
+  Jérôme Vouillon,
+  Maxence Guesdon,
+  Alain Frisch
+Original-Source-Location: http://caml.inria.fr/
+
+Files: *
+Copyright: © 1996-2008 Institut National de Recherche en Informatique et
+                       en Automatique
+License: QPL-1 | LGPL-2 | other
+
+Files: otherlibs/labltk/*
+Copyright: © 1999-2002 Institut National de Recherche en Informatique et
+                       en Automatique and Kyoto University
+License: LGPL-2 | other
+
+Files: emacs/*
+Copyright: © 1988-1991 Free Software Foundation
+           © 1996-1998 Institut National de Recherche en Informatique et
+                       en Automatique
+           © 1996 Ian T Zimmerman <itz@rahul.net>
+License: GPL-2
+
+Files: debian/*
+Copyright: © 2001-2009 Debian OCaml Maintainers
+License: LGPL-2
+
+----------------------------------------------------------------------
+In the following, "the Library" refers to all files marked "Copyright
+INRIA" in the following directories and their sub-directories:
+
+  asmrun, byterun, camlp4, config, otherlibs, stdlib, win32caml
+
+and "the Compiler" refers to all files marked "Copyright INRIA" in the
+following directories and their sub-directories:
+
+  asmcomp, boot, bytecomp, debugger, driver, lex, ocamldoc, parsing,
+  tools, toplevel, typing, utils, yacc
+
+and the "emacs bindings" refer to all files marked "Copyright INRIA" in
+the following directory:
+
+  emacs
+
+The Compiler is distributed under the terms of the Q Public License
+version 1.0 with a change to choice of law (included below).
+
+The Library is distributed under the terms of the GNU Library General
+Public License version 2 (found in /usr/share/common-licenses/LGPL-2
+on debian systems).
+
+The emacs bindings are distributed under the terms of the GNU General
+Public License version 2 (found in /usr/share/common-licenses/GPL-2
+on debian systems).
+
+As a special exception to the Q Public Licence, you may develop
+application programs, reusable components and other software items
+that link with the original or modified versions of the Compiler
+and are not made available to the general public, without any of the
+additional requirements listed in clause 6c of the Q Public licence.
+
+As a special exception to the GNU Library General Public License, you
+may link, statically or dynamically, a "work that uses the Library"
+with a publicly distributed version of the Library to produce an
+executable file containing portions of the Library, and distribute
+that executable file under terms of your choice, without any of the
+additional requirements listed in clause 6 of the GNU Library General
+Public License.  By "a publicly distributed version of the Library",
+we mean either the unmodified Library as distributed by INRIA, or a
+modified version of the Library that is distributed under the
+conditions defined in clause 3 of the GNU Library General Public
+License.  This exception does not however invalidate any other reasons
+why the executable file might be covered by the GNU Library General
+Public License.
+
+----------------------------------------------------------------------
+
+                   THE Q PUBLIC LICENSE version 1.0
+
+              Copyright (C) 1999 Troll Tech AS, Norway.
+                  Everyone is permitted to copy and
+                  distribute this license document.
+
+The intent of this license is to establish freedom to share and change
+the software regulated by this license under the open source model.
+
+This license applies to any software containing a notice placed by the
+copyright holder saying that it may be distributed under the terms of
+the Q Public License version 1.0. Such software is herein referred to
+as the Software. This license covers modification and distribution of
+the Software, use of third-party application programs based on the
+Software, and development of free software which uses the Software.
+
+                            Granted Rights
+
+1. You are granted the non-exclusive rights set forth in this license
+provided you agree to and comply with any and all conditions in this
+license. Whole or partial distribution of the Software, or software
+items that link with the Software, in any form signifies acceptance of
+this license.
+
+2. You may copy and distribute the Software in unmodified form
+provided that the entire package, including - but not restricted to -
+copyright, trademark notices and disclaimers, as released by the
+initial developer of the Software, is distributed.
+
+3. You may make modifications to the Software and distribute your
+modifications, in a form that is separate from the Software, such as
+patches. The following restrictions apply to modifications:
+
+      a. Modifications must not alter or remove any copyright notices
+      in the Software.
+
+      b. When modifications to the Software are released under this
+      license, a non-exclusive royalty-free right is granted to the
+      initial developer of the Software to distribute your
+      modification in future versions of the Software provided such
+      versions remain available under these terms in addition to any
+      other license(s) of the initial developer.
+
+4. You may distribute machine-executable forms of the Software or
+machine-executable forms of modified versions of the Software,
+provided that you meet these restrictions:
+
+      a. You must include this license document in the distribution.
+
+      b. You must ensure that all recipients of the machine-executable
+      forms are also able to receive the complete machine-readable
+      source code to the distributed Software, including all
+      modifications, without any charge beyond the costs of data
+      transfer, and place prominent notices in the distribution
+      explaining this.
+
+      c. You must ensure that all modifications included in the
+      machine-executable forms are available under the terms of this
+      license.
+
+5. You may use the original or modified versions of the Software to
+compile, link and run application programs legally developed by you or
+by others.
+
+6. You may develop application programs, reusable components and other
+software items that link with the original or modified versions of the
+Software. These items, when distributed, are subject to the following
+requirements:
+
+      a. You must ensure that all recipients of machine-executable
+      forms of these items are also able to receive and use the
+      complete machine-readable source code to the items without any
+      charge beyond the costs of data transfer.
+
+      b. You must explicitly license all recipients of your items to
+      use and re-distribute original and modified versions of the
+      items in both machine-executable and source code forms. The
+      recipients must be able to do so without any charges whatsoever,
+      and they must be able to re-distribute to anyone they choose.
+
+      c. If the items are not available to the general public, and the
+      initial developer of the Software requests a copy of the items,
+      then you must supply one.
+
+                       Limitations of Liability
+
+In no event shall the initial developers or copyright holders be
+liable for any damages whatsoever, including - but not restricted to -
+lost revenue or profits or other direct, indirect, special, incidental
+or consequential damages, even if they have been advised of the
+possibility of such damages, except to the extent invariable law, if
+any, provides otherwise.
+
+                             No Warranty
+
+The Software and this license document are provided AS IS with NO
+WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN,
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
+                            Choice of Law
+
+This license is governed by the Laws of France.
+----------------------------------------------------------------------
--- ocaml-3.11.2.orig/debian/gen_modules.pl
+++ ocaml-3.11.2/debian/gen_modules.pl
@@ -0,0 +1,72 @@
+#!/usr/bin/perl -w
+#
+# Description: generating .install files for ocaml binary packages
+#
+# Copyright © 2009 Stéphane Glondu <steph@glondu.net>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301 USA.
+#
+
+#
+# This script takes on its standard input a .install file with
+# additional lines starting with "STD: ", which denote files that are
+# installed in OCaml library directory, and outputs the same file with
+# the special lines replaced. Special care is taken with native files:
+#
+#  - they are not in the output on bytecode-only architectures
+#  - for each .cmx, .{o,p.cmx,p.o} is added if it exists
+#  - for each .cmxa, .{a,p.cmxa,p.a} is added if it exists
+#
+
+my $opt_arch = $ENV{OCAML_OPT_ARCH};
+my $ocaml_stdlib_dir = $ENV{OCAML_STDLIB_DIR};
+my $destdir = $ENV{DESTDIR};
+
+sub print_if_existing {
+    my $name = shift;
+    if (-f "${destdir}/${name}") {
+        print "${name}\n";
+    }
+}
+
+while (<>) {
+    if (s/^STD: //) {
+        my $base;
+        my $ext;
+        s/\n$//;
+        ($base, $ext) = /^(.*)\.([^.]+)$/;
+        $prefix = "${ocaml_stdlib_dir}/${base}";
+        if ($ext eq "cmx") {
+            if ($opt_arch) {
+                print "${prefix}.cmx\n";
+                print_if_existing("${prefix}.o");
+                print_if_existing("${prefix}.p.cmx");
+                print_if_existing("${prefix}.p.o");
+            }
+        } elsif ($ext eq "cmxa") {
+            if ($opt_arch) {
+                print "${prefix}.cmxa\n";
+                print_if_existing("${prefix}.a");
+                print_if_existing("${prefix}.p.cmxa");
+                print_if_existing("${prefix}.p.a");
+            }
+        } else {
+            print "${prefix}.${ext}\n";
+        }
+    } else {
+        print;
+    }
+}
--- ocaml-3.11.2.orig/debian/README.source
+++ ocaml-3.11.2/debian/README.source
@@ -0,0 +1,22 @@
+OCaml Debian source package
+===========================
+
+Dispatching files between binary packages
+-----------------------------------------
+
+The dispatching is done as usual with *.install by dh_install, which
+are generated from *.install.in by ocamlinit.mk (from dh-ocaml), and
+the gen_modules.pl script (in ocaml source package). You should have a
+look at the comments in gen_modules.pl to understand the format of
+*.install.in files.
+
+
+Patching upstream sources
+-------------------------
+
+This source package uses quilt to apply and remove its patches. Please
+refer to `/usr/share/doc/quilt/README.source' for information about
+how to use quilt for source packages.
+
+The quilt series is generated from the Git repository. Have a look at
+the `redo-patches' target of debian/rules for more details.
--- ocaml-3.11.2.orig/debian/ocamlbyteinfo/ocamlbyteinfo.ml
+++ ocaml-3.11.2/debian/ocamlbyteinfo/ocamlbyteinfo.ml
@@ -0,0 +1,101 @@
+(***********************************************************************)
+(*                                                                     *)
+(*                           Objective Caml                            *)
+(*                                                                     *)
+(*            Xavier Leroy, projet Gallium, INRIA Rocquencourt         *)
+(*                                                                     *)
+(*  Copyright 2009 Institut National de Recherche en Informatique et   *)
+(*  en Automatique.  All rights reserved.  This file is distributed    *)
+(*  under the terms of the GNU Library General Public License, with    *)
+(*  the special exception on linking described in file ../../LICENSE.  *)
+(*                                                                     *)
+(***********************************************************************)
+
+(* $Id$ *)
+
+(* Dumps a bytecode binary file *)
+
+open Sys
+open Dynlinkaux
+
+let input_stringlist ic len =
+  let get_string_list sect len =
+    let rec fold s e acc =
+      if e != len then
+        if sect.[e] = '\000' then
+          fold (e+1) (e+1) (String.sub sect s (e-s) :: acc)
+        else fold s (e+1) acc
+      else acc
+    in fold 0 0 []
+  in
+  let sect = String.create len in
+  let _ = really_input ic sect 0 len in
+  get_string_list sect len
+
+let print = Printf.printf
+let perr s =
+  Printf.eprintf "%s\n" s;
+  exit(1)
+let p_title title = print "%s:\n" title
+
+let p_section title format pdata = function
+  | [] -> ()
+  | l ->
+      p_title title;
+      List.iter
+        (fun (name, data) -> print format (pdata data) name)
+        l
+
+let p_list title format = function
+  | [] -> ()
+  | l ->
+      p_title title;
+      List.iter
+        (fun name -> print format name)
+        l
+
+let _ =
+  try
+    let input_name = Sys.argv.(1) in
+    let ic = open_in_bin input_name in
+    Bytesections.read_toc ic;
+    List.iter
+      (fun section ->
+         try
+           let len = Bytesections.seek_section ic section in
+           if len > 0 then match section with
+             | "CRCS" ->
+                 p_section
+                   "Imported Units"
+                   "\t%s\t%s\n"
+                   Digest.to_hex
+                   (input_value ic : (string * Digest.t) list)
+             | "DLLS" ->
+                 p_list
+                   "Used Dlls" "\t%s\n"
+                   (input_stringlist ic len)
+             | "DLPT" ->
+                 p_list
+                   "Additional Dll paths"
+                   "\t%s\n"
+                   (input_stringlist ic len)
+             | "PRIM" ->
+                 let prims = (input_stringlist ic len) in
+                 print "Uses unsafe features: ";
+                 begin match prims with
+                     [] -> print "no\n"
+                   | l  -> print "YES\n";
+                       p_list "Primitives declared in this module"
+                         "\t%s\n"
+                         l
+                 end
+             | _ -> ()
+         with Not_found | Failure _ | Invalid_argument _ -> ()
+      )
+      ["CRCS"; "DLLS"; "DLPT"; "PRIM"];
+    close_in ic
+  with
+    | Sys_error msg ->
+        perr msg
+    | Invalid_argument("index out of bounds") ->
+        perr (Printf.sprintf "Usage: %s filename" Sys.argv.(0))
--- ocaml-3.11.2.orig/debian/ocamlbyteinfo/ocamlplugininfo.ml
+++ ocaml-3.11.2/debian/ocamlbyteinfo/ocamlplugininfo.ml
@@ -0,0 +1,109 @@
+(***********************************************************************)
+(*                                                                     *)
+(*                           Objective Caml                            *)
+(*                                                                     *)
+(*            Xavier Leroy, projet Gallium, INRIA Rocquencourt         *)
+(*                                                                     *)
+(*  Copyright 2009 Institut National de Recherche en Informatique et   *)
+(*  en Automatique.  All rights reserved.  This file is distributed    *)
+(*  under the terms of the GNU Library General Public License, with    *)
+(*  the special exception on linking described in file ../../LICENSE.  *)
+(*                                                                     *)
+(***********************************************************************)
+
+(* $Id$ *)
+
+(* Dumps a .cmxs file *)
+
+open Natdynlink
+open Format
+
+let file =
+  try
+    Sys.argv.(1)
+  with _ -> begin
+    Printf.eprintf "Usage: %s file.cmxs\n" Sys.argv.(0);
+    exit(1)
+  end
+
+exception Abnormal_exit
+
+let error s e =
+  let eprint = Printf.eprintf in
+  let print_exc s = function
+    | End_of_file ->
+       eprint "%s: %s\n" s file
+    | Abnormal_exit ->
+        eprint "%s\n" s
+    | e -> eprint "%s\n" (Printexc.to_string e)
+  in
+    print_exc s e;
+    exit(1)
+
+let read_in command =
+  let cmd = Printf.sprintf command file in
+  let ic = Unix.open_process_in cmd in
+  try
+    let line = input_line ic in
+    begin match (Unix.close_process_in ic) with
+      | Unix.WEXITED 0 -> Str.split (Str.regexp "[ ]+") line
+      | Unix.WEXITED _  | Unix.WSIGNALED _ | Unix.WSTOPPED _ ->
+          error
+            (Printf.sprintf
+               "Command \"%s\" exited abnormally"
+               cmd
+            )
+            Abnormal_exit
+    end
+  with e -> error "File is empty" e
+
+let get_offset adr_off adr_sec =
+  try
+    let adr = List.nth adr_off 4 in
+    let off = List.nth adr_off 5 in
+    let sec = List.hd adr_sec in
+
+    let (!) x = Int64.of_string ("0x" ^ x) in
+    let (+) = Int64.add in
+    let (-) = Int64.sub in
+
+      Int64.to_int (!off + !sec - !adr)
+
+  with Failure _ | Invalid_argument _ ->
+    error
+      "Command output doesn't have the expected format"
+      Abnormal_exit
+
+let print_infos name crc defines cmi cmx =
+  let print_name_crc (name, crc) =
+    printf "@ %s (%s)" name (Digest.to_hex crc)
+  in
+  let pr_imports ppf imps = List.iter print_name_crc imps in
+  printf "Name: %s@." name;
+  printf "CRC of implementation: %s@." (Digest.to_hex crc);
+  printf "@[<hov 2>Globals defined:";
+  List.iter (fun s -> printf "@ %s" s) defines;
+  printf "@]@.";
+  printf "@[<v 2>Interfaces imported:%a@]@." pr_imports cmi;
+  printf "@[<v 2>Implementations imported:%a@]@." pr_imports cmx
+
+let _ =
+  let adr_off = read_in "objdump -h %s | grep ' .data '" in
+  let adr_sec = read_in "objdump -T %s | grep ' caml_plugin_header$'" in
+
+  let ic = open_in file in
+  let _ = seek_in ic (get_offset adr_off adr_sec) in
+  let header  = (input_value ic : Natdynlink.dynheader) in
+    if header.magic <> Natdynlink.dyn_magic_number then
+      raise(Error(Natdynlink.Not_a_bytecode_file file))
+    else begin
+      List.iter
+        (fun ui ->
+           print_infos
+             ui.name
+             ui.crc
+             ui.defines
+             ui.imports_cmi
+             ui.imports_cmx)
+        header.units
+    end
--- ocaml-3.11.2.orig/debian/ocamlbyteinfo/Makefile
+++ ocaml-3.11.2/debian/ocamlbyteinfo/Makefile
@@ -0,0 +1,34 @@
+
+DIR=debian/ocamlbyteinfo
+BEXE=ocamlbyteinfo
+NEXE=ocamlplugininfo
+OCAMLC=./boot/ocamlrun ./ocamlc
+OCAMLOPT=./boot/ocamlrun ./ocamlopt
+OCAMLLEX=./boot/ocamlrun ./lex/ocamllex
+
+GENERATED=$(BEXE) $(NEXE) *.cm* natdynlink.* *.a *.o
+
+BDEPS=otherlibs/dynlink/dynlinkaux.cmo
+NDEPS=$(DIR)/natdynlink.cmxa
+INCLUDES= -I stdlib -I utils -I typing -I bytecomp -I $(DIR) \
+  -I otherlibs/dynlink -I otherlibs/unix -I otherlibs/str
+
+all: $(BEXE) $(NEXE)
+
+$(DIR)/natdynlink.ml:
+	cp otherlibs/dynlink/natdynlink.ml $(DIR)/
+
+$(DIR)/natdynlink.cmx: $(DIR)/natdynlink.ml
+	$(OCAMLOPT) -c $(INCLUDES) $(DIR)/natdynlink.ml
+
+$(DIR)/natdynlink.cmxa: $(DIR)/natdynlink.cmx
+	$(OCAMLOPT) $(INCLUDES) -ccopt "-Wl,-E" $^ -a -o $@
+
+$(NEXE): $(NDEPS)
+	$(OCAMLOPT) unix.cmxa str.cmxa -o $(DIR)/$(NEXE) $(INCLUDES) $(NDEPS) $(DIR)/$(NEXE).ml
+
+$(BEXE): $(BDEPS)
+	$(OCAMLC) -o $(DIR)/$(BEXE) $(INCLUDES) $(BDEPS) $(DIR)/$(BEXE).ml
+
+clean:
+	rm -f $(addprefix $(DIR)/, $(GENERATED))
--- ocaml-3.11.2.orig/debian/ocamlfind/ocaml-native-compilers.conf
+++ ocaml-3.11.2/debian/ocamlfind/ocaml-native-compilers.conf
@@ -0,0 +1,4 @@
+ocamlc="ocamlc.opt"
+ocamlopt="ocamlopt.opt"
+ocamldep="ocamldep.opt"
+ocamldoc="ocamldoc.opt"
--- ocaml-3.11.2.orig/debian/patches/0001-Pass-no-relax-to-ld-on-alpha.patch
+++ ocaml-3.11.2/debian/patches/0001-Pass-no-relax-to-ld-on-alpha.patch
@@ -0,0 +1,33 @@
+From: Stefano Zacchiroli <zack@debian.org>
+Date: Tue, 19 May 2009 17:22:39 +0200
+Subject: [PATCH] Pass --no-relax to ld on alpha
+
+Pass the --no-relax option to ld to fix a segfault in initialization
+code (bug#338437)
+---
+ configure |    4 +++-
+ 1 files changed, 3 insertions(+), 1 deletions(-)
+
+diff --git a/configure b/configure
+index 166ceaf..0327f64 100755
+--- a/configure
++++ b/configure
+@@ -282,7 +282,8 @@ case "$bytecc,$host" in
+   gcc,alpha*-*-linux*)
+     if cc="$bytecc" sh ./hasgot -mieee; then
+       bytecccompopts="-mieee $bytecccompopts";
+-    fi;;
++    fi
++    bytecclinkopts="-Wl,--no-relax";;
+   cc,mips-*-irix6*)
+     # Add -n32 flag to ensure compatibility with native-code compiler
+     bytecccompopts="-n32"
+@@ -693,6 +694,7 @@ case "$arch,$nativecc,$system,$host_type" in
+                        nativecccompopts="$gcc_warnings -DSHRINKED_GNUC";;
+   *,*,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";;
+   amd64,gcc*,macosx,*) partialld="ld -r -arch x86_64";;
+   amd64,gcc*,solaris,*) partialld="ld -r -m elf_x86_64";;
+-- 
--- ocaml-3.11.2.orig/debian/patches/series
+++ ocaml-3.11.2/debian/patches/series
@@ -0,0 +1,6 @@
+0001-Pass-no-relax-to-ld-on-alpha.patch
+0002-Call-ld-with-proper-flags.patch
+0003-Don-t-use-rpath.patch
+0004-Put-manpages-in-section-3o-instead-of-3.patch
+0005-Patch-config.sh-for-installation.patch
+0006-Install-ocamlbuild-as-a-link-on-either-.native-or-.b.patch
--- ocaml-3.11.2.orig/debian/patches/0005-Patch-config.sh-for-installation.patch
+++ ocaml-3.11.2/debian/patches/0005-Patch-config.sh-for-installation.patch
@@ -0,0 +1,37 @@
+From: Ralf Treinen <treinen@debian.org>
+Date: Tue, 19 May 2009 17:28:09 +0200
+Subject: [PATCH] Patch config.sh for installation
+
+Use for installatation a patched config.sh (created by debian/rules).
+---
+ build/install.sh         |    2 +-
+ build/partial-install.sh |    2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/build/install.sh b/build/install.sh
+index 5093f31..d4f5804 100755
+--- a/build/install.sh
++++ b/build/install.sh
+@@ -18,7 +18,7 @@ set -e
+ 
+ cd `dirname $0`/..
+ 
+-. config/config.sh
++. config/config.debian.install.sh
+ 
+ not_installed=$PWD/_build/not_installed
+ 
+diff --git a/build/partial-install.sh b/build/partial-install.sh
+index 7240fff..ea55334 100755
+--- a/build/partial-install.sh
++++ b/build/partial-install.sh
+@@ -22,7 +22,7 @@ set -e
+ 
+ cd `dirname $0`/..
+ 
+-. config/config.sh
++. config/config.debian.install.sh
+ 
+ not_installed=$PWD/_build/not_installed
+ 
+-- 
--- ocaml-3.11.2.orig/debian/patches/0002-Call-ld-with-proper-flags.patch
+++ ocaml-3.11.2/debian/patches/0002-Call-ld-with-proper-flags.patch
@@ -0,0 +1,25 @@
+From: Stefano Zacchiroli <zack@debian.org>
+Date: Tue, 19 May 2009 17:23:34 +0200
+Subject: [PATCH] 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.
+---
+ configure |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/configure b/configure
+index 0327f64..1d0d767 100755
+--- a/configure
++++ b/configure
+@@ -1566,7 +1566,7 @@ echo "DEBUGGER=$debugger" >> Makefile
+ echo "CC_PROFILE=$cc_profile" >> Makefile
+ echo "SYSTHREAD_SUPPORT=$systhread_support" >> Makefile
+ echo "PARTIALLD=$partialld" >> Makefile
+-echo "PACKLD=\$(PARTIALLD) \$(NATIVECCLINKOPTS) -o " >> Makefile
++echo "PACKLD=\$(PARTIALLD) $(echo $nativecclinkopts|sed s/-Wl,//g) -o " >> Makefile
+ echo "DLLCCCOMPOPTS=$dllccompopts" >> Makefile
+ echo "IFLEXDIR=$iflexdir" >> Makefile
+ echo "O=o" >> Makefile
+-- 
--- ocaml-3.11.2.orig/debian/patches/0004-Put-manpages-in-section-3o-instead-of-3.patch
+++ ocaml-3.11.2/debian/patches/0004-Put-manpages-in-section-3o-instead-of-3.patch
@@ -0,0 +1,22 @@
+From: Julien Cristau <julien.cristau@ens-lyon.org>
+Date: Tue, 19 May 2009 17:24:52 +0200
+Subject: [PATCH] Put manpages in section 3o instead of 3
+
+---
+ ocamldoc/Makefile |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/ocamldoc/Makefile b/ocamldoc/Makefile
+index 66f9fdd..45476ec 100644
+--- a/ocamldoc/Makefile
++++ b/ocamldoc/Makefile
+@@ -319,7 +319,7 @@ test_texi: dummy
+ stdlib_man/Pervasives.3o: $(STDLIB_MLIS)
+ 	$(MKDIR) stdlib_man
+ 	$(OCAMLDOC_RUN) -man -d stdlib_man $(INCLUDES) \
+-	-t "OCaml library" -man-mini \
++	-t "OCaml library" -man-mini -man-section 3o \
+ 	$(STDLIB_MLIS)
+ 
+ autotest_stdlib: dummy
+-- 
--- ocaml-3.11.2.orig/debian/patches/0003-Don-t-use-rpath.patch
+++ ocaml-3.11.2/debian/patches/0003-Don-t-use-rpath.patch
@@ -0,0 +1,25 @@
+From: Stefano Zacchiroli <zack@debian.org>
+Date: Tue, 19 May 2009 17:24:14 +0200
+Subject: [PATCH] Don't use rpath
+
+---
+ tools/ocamlmklib.mlp |    5 +++++
+ 1 files changed, 5 insertions(+), 0 deletions(-)
+
+diff --git a/tools/ocamlmklib.mlp b/tools/ocamlmklib.mlp
+index cec4877..4db288f 100644
+--- a/tools/ocamlmklib.mlp
++++ b/tools/ocamlmklib.mlp
+@@ -32,6 +32,11 @@ and output_c = ref ""       (* Output name for C part of library *)
+ and rpath = ref []          (* rpath options *)
+ and verbose = ref false
+ 
++(* 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
+-- 
--- ocaml-3.11.2.orig/debian/patches/0006-Install-ocamlbuild-as-a-link-on-either-.native-or-.b.patch
+++ ocaml-3.11.2/debian/patches/0006-Install-ocamlbuild-as-a-link-on-either-.native-or-.b.patch
@@ -0,0 +1,44 @@
+From: Stefano Zacchiroli <zack@debian.org>
+Date: Tue, 19 May 2009 17:28:56 +0200
+Subject: [PATCH] Install ocamlbuild as a link on either .native or .byte
+
+---
+ build/partial-install.sh |   17 ++++++++++++++++-
+ 1 files changed, 16 insertions(+), 1 deletions(-)
+
+diff --git a/build/partial-install.sh b/build/partial-install.sh
+index ea55334..a0a0028 100755
+--- a/build/partial-install.sh
++++ b/build/partial-install.sh
+@@ -60,6 +60,21 @@ installbestbin() {
+   [ -x "$3" ] || chmod +x "$3"
+ }
+ 
++installbestlink() {
++  if [ -f "$1" ]; then
++    echo "  linking binary $3 to `basename $1`"
++    ln -fs "$1" "$3"
++  else
++    if [ -f "$2" ]; then
++      echo "  linking binary $3 to `basename $2`"
++      ln -fs "$2" "$3"
++    else
++      echo "None of $1, $2 exists"
++      exit 3
++    fi
++  fi
++}
++
+ installlib() {
+   if [ -f "$1" ]; then
+     dest="$2/`basename $1`"
+@@ -156,7 +171,7 @@ echo "Installing ocamlbuild..."
+ cd ocamlbuild
+ installbin ocamlbuild.byte$EXE $BINDIR/ocamlbuild.byte$EXE
+ installbin ocamlbuild.native$EXE $BINDIR/ocamlbuild.native$EXE
+-installbestbin ocamlbuild.native$EXE ocamlbuild.byte$EXE $BINDIR/ocamlbuild$EXE
++installbestlink ocamlbuild.native$EXE ocamlbuild.byte$EXE $BINDIR/ocamlbuild$EXE
+ 
+ installlibdir \
+   ocamlbuildlib.$A \
+-- 
--- ocaml-3.11.2.orig/debian/man/ocamldumpapprox.1
+++ ocaml-3.11.2/debian/man/ocamldumpapprox.1
@@ -0,0 +1,29 @@
+.TH OCAMLDUMPAPPROX 1 "February 15, 2009"
+.SH NAME
+ocamldumpapprox \- dump an OCaml native compilation unit description
+.SH SYNOPSIS
+.B ocamldumpapprox
+.RI file\ ...
+.SH DESCRIPTION
+Dump information contained in OCaml native compilation units.
+It works on .cmx and .cmxa files.
+.sp 2
+.B ocamldumpapprox
+is able to show information regarding:
+.br
+.IP
+CRC of implementation
+.sp 2
+CRC of imported interfaces and implementations
+.sp 2
+implementation assumptions
+.PP
+depending on its invocation on .cmx or .cmxa arguments.
+.SH SEE ALSO
+.BR ocamlc (1),
+.BR ocamlopt (1),
+.BR ocamlobjinfo (1)
+.br
+.SH AUTHOR
+This manual page was written by Stéphane Glondu <steph@glondu.net>,
+for the Debian GNU/Linux system (but may be used by others).
--- ocaml-3.11.2.orig/debian/man/ocamlplugininfo.1
+++ ocaml-3.11.2/debian/man/ocamlplugininfo.1
@@ -0,0 +1,27 @@
+.TH OCAMLPLUGININFO 1 "July 21, 2009"
+.SH NAME
+ocamlplugininfo \- dump an OCaml native shared object file description
+.SH SYNOPSIS
+.B ocamlplugininfo
+.RI file
+.SH DESCRIPTION
+Dump information contained in OCaml native sahred object.
+It works on .cmxs files.
+.sp 2
+.B ocamlplugininfo
+is able to show information regarding:
+.br
+.IP
+CRC of implementation
+.sp 2
+CRC of imported interfaces and implementations
+.SH SEE ALSO
+.BR ocamlc (1),
+.BR ocamlopt (1),
+.BR ocamlobjinfo (1),
+.BR ocamlbyteinfo (1),
+.BR ocamldumpapprox (1)
+.br
+.SH AUTHOR
+This manual page was written by Mehdi Dogguy <mehdi@dogguy.org>,
+for the Debian GNU/Linux system (but may be used by others).
--- ocaml-3.11.2.orig/debian/man/ocamlmklib.1
+++ ocaml-3.11.2/debian/man/ocamlmklib.1
@@ -0,0 +1,127 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.TH OCAMLMKLIB 1 "August 19, 2004"
+.SH NAME
+ocamlmklib \- generate libraries with mixed C / Caml code.
+.SH SYNOPSIS
+.B ocalmklib
+.RI [ options ] " files"
+.SH DESCRIPTION
+The
+.B ocamlmklib
+command facilitates the construction of libraries containing both Caml code and C code, and usable both in static linking and dynamic linking modes.
+.SH OPTIONS
+.TP
+.B \-h, \-\-help
+Show summary of options.
+.TP
+.BI \-cclib\  lib
+C library passed to ocamlc
+.B \-a
+or
+.BR ocamlopt (1)
+.B \-a
+only.
+.TP
+.BI \-ccopt\  opt
+C option passed to
+.BR ocamlc (1)
+.B \-a
+or
+.BR ocamlopt (1)
+.B \-a
+only.
+.TP
+.B \-custom
+Disable dynamic loading.
+.TP
+.BI \-dllpath\  dir
+Add
+.I dir
+to the run-time search path for DLLs.
+.TP
+.BI \-I\  dir
+Add
+.I dir
+to the path searched for Caml object files.
+.TP
+.B \-failsafe
+Fall back to static linking if DLL construction failed.
+.TP
+.BI \-ldopt\ opt
+C option passed to the shared linker only.
+.TP
+.B \-linkall
+Build Caml archive with link-all behavior.
+.TP
+.BI \-l lib
+Specify a dependent C library.
+.TP
+.BI \-L dir
+Add
+.I dir
+to the path searched for C libraries.
+.TP
+.BI \-ocamlc\  cmd
+Use
+.I cmd
+in place of
+.BR ocamlc (1).
+.TP
+.BI \-ocamlopt\  cmd
+Use
+.I cmd
+in place of
+.BR ocamlopt (1).
+.TP
+.BI \-o\  name
+Generated Caml library is named
+.IR name .cma
+or
+.IR name .cmxa.
+.TP
+.BI \-oc\  name
+Generated C library is named
+.RI dll name .so
+or
+.RI lib name .a.
+.TP
+.BI \-rpath\  dir
+Same as
+.B \-dllpath
+.IR dir .
+.TP
+.BI \-R dir
+Same as
+.BR \-rpath .
+.TP
+.B \-verbose
+Print commands before executing them.
+.TP
+\fB\-Wl\fR, \fB\-rpath \fIdir
+Same as
+.B \-dllpath
+.IR dir .
+.TP
+\fB\-Wl\fR, \fB\-rpath\ \-Wl \fIdir
+Same as
+.B \-dllpath
+.IR dir .
+.TP
+\fB\-Wl\fR, \fB\-R\fIdir
+Same as
+.B \-dllpath
+.IR dir .
+.TP
+.BI \-F dir
+Specify a framework directory (MacOSX).
+.TP
+.BI \-framework\  name
+Use framework
+.I name
+(MacOSX).
+.SH SEE ALSO
+.BR ocamlc (1),
+.BR ocamlopt (1).
+.SH AUTHOR
+This manual page was written by Samuel Mimram <samuel.mimram@ens-lyon.org>,
+for the Debian project (but may be used by others).
--- ocaml-3.11.2.orig/debian/man/ocamldumpobj.1
+++ ocaml-3.11.2/debian/man/ocamldumpobj.1
@@ -0,0 +1,20 @@
+.TH OCAMLDUMPOBJ 1 "January 4, 2006"
+.SH NAME
+ocamldumpobj \- disassembler for OCaml executable and .cmo object files
+.
+.SH SYNOPSIS
+.B ocamldumpobj
+.RI file\ ...
+.
+.SH DESCRIPTION
+Disassembler for executable and .cmo object files compiled by OCaml.
+.
+.SH SEE ALSO
+.BR ocamlc (1),
+.BR ocamlopt (1),
+.BR ocamlobjinfo (1).
+.br
+.
+.SH AUTHOR
+This manual page was written by Samuel Mimram <smimram@debian.org>,
+for the Debian GNU/Linux system (but may be used by others).
--- ocaml-3.11.2.orig/debian/man/camlp4.1
+++ ocaml-3.11.2/debian/man/camlp4.1
@@ -0,0 +1,137 @@
+.TH CAMLP4 "1" "June 2007" "CamlP4 3.10.0" "User Commands"
+.SH NAME
+CamlP4 \- Pre-Processor-Pretty-Printer for Objective Caml
+.SH SYNOPSIS
+.B camlp4
+[\fIload\-options\fR] [\fI\-\-\fR] [\fIother\-options\fR]
+.SH DESCRIPTION
+Camlp4 is a Pre-Processor-Pretty-Printer for Objective Caml. It offers tools
+for syntax (Stream Parsers and Grammars) and the ability to modify the concrete
+syntax of the language (Quotations, Syntax Extensions).
+
+The Objective Caml compiler has a special option "\-pp", allowing to call any
+preprocessor. If Camlp4 is used, the parsing is done (only once) by Camlp4, and
+the Objective Caml compiler resumes the rest of the compilation (typing, code
+generation).
+
+Camlp4 can parse normal OCaml concrete syntax or any other user-definable
+syntax. As an example, an alternative syntax is provided, named Revised,
+because it tries to fix some problems of the original syntax.
+
+Camlp4 can pretty print the normal OCaml concrete syntax or the revised one
+(Pretty-Printer). It is therefore always possible to have a version of your
+sources compilable by the compiler Objective Caml without preprocessing.
+
+Camlp4 can also serve as a Program Transformation tool, the user can supply
+transformations and apply them easily as a pre-processing task. This is done
+with Filters. 
+.SH OPTIONS
+.TP
+\fB<file>.ml\fR
+Parse this implementation file
+.TP
+\fB<file>.mli\fR
+Parse this interface file
+.TP
+\fB<file>.(cmo|cma)\fR
+Load this module inside the Camlp4 core
+.TP
+\fB\-I\fR <directory>
+Add directory in search patch for object files.
+.TP
+\fB\-where\fR
+Print camlp4 library directory and exit.
+.TP
+\fB\-nolib\fR
+No automatic search for object files in library directory.
+.TP
+\fB\-intf\fR <file>
+Parse <file> as an interface, whatever its extension.
+.TP
+\fB\-impl\fR <file>
+Parse <file> as an implementation, whatever its extension.
+.TP
+\fB\-str\fR <string>
+Parse <string> as an implementation.
+.TP
+\fB\-unsafe\fR
+Generate unsafe accesses to array and strings.
+.TP
+\fB\-noassert\fR
+Obsolete, do not use this option.
+.TP
+\fB\-verbose\fR
+More verbose in parsing errors.
+.TP
+\fB\-loc\fR <name>
+Name of the location variable (default: _loc).
+.TP
+\fB\-QD\fR <file>
+Dump quotation expander result in case of syntax error.
+.TP
+\fB\-o\fR <file>
+Output on <file> instead of standard output.
+.TP
+\fB\-v\fR
+Print Camlp4 version and exit.
+.TP
+\fB\-version\fR
+Print Camlp4 version number and exit.
+.TP
+\fB\-no_quot\fR
+Don't parse quotations, allowing to use, e.g. "<:>" as token.
+.TP
+\fB\-loaded\-modules\fR
+Print the list of loaded modules.
+.TP
+\fB\-parser\fR <name>
+Load the parser Camlp4Parsers/<name>.cmo
+.TP
+\fB\-printer\fR <name>
+Load the printer Camlp4Printers/<name>.cmo
+.TP
+\fB\-filter\fR <name>
+Load the filter Camlp4Filters/<name>.cmo
+.TP
+\fB\-ignore\fR
+ignore the next argument
+.TP
+\fB\-\-\fR
+Deprecated, does nothing
+.PP
+Options added by loaded object files:
+.TP
+\fB\-I\fR <string>
+Add a directory to INCLUDE search path.
+.TP
+\fB\-U\fR <string>
+Undefine for IFDEF instruction.
+.TP
+\fB\-D\fR <string>
+Define for IFDEF instruction.
+.TP
+\fB\-meta_action\fR
+Undocumented
+.TP
+\fB\-split_gext\fR
+Old name for the option \fB\-split_ext\fR.
+.TP
+\fB\-split_ext\fR
+Split EXTEND by functions to turn around a PowerPC problem.
+.TP
+\fB\-help_seq\fR
+Print explanations about new sequences and exit.
+.SH "SEE ALSO"
+.BR ocamlc(1),
+.BR ocaml(1).
+.br
+The full documentation for
+.B CamlP4
+is being developed on a Wiki available on the web at
+.br
+.B <http://brion.inria.fr/gallium/index.php/Camlp4>.
+.SH AUTHOR
+CamlP4 is Copyright INRIA, it was mainly written by Nicolas Pouillard.
+.PP
+This manual page was written by Stefano Zacchiroli <zack@debian.org>,
+for the Debian project (but may be used by others).
--- ocaml-3.11.2.orig/debian/man/ocamlbyteinfo.1
+++ ocaml-3.11.2/debian/man/ocamlbyteinfo.1
@@ -0,0 +1,26 @@
+.TH OCAMLBYTEINFO 1 "July 21, 2009"
+.SH NAME
+ocamlbyteinfo \- dump an OCaml bytecode binary description
+.SH SYNOPSIS
+.B ocamlbyteinfo
+.RI file
+.SH DESCRIPTION
+Dump information contained in OCaml bytecode binary.
+.sp 2
+.B ocamlbyteinfo
+is able to show information regarding:
+.br
+.IP
+CRC of implementation
+.sp 2
+unsafe features
+.SH SEE ALSO
+.BR ocamlc (1),
+.BR ocamlopt (1),
+.BR ocamlobjinfo (1),
+.BR ocamlplugininfo (1),
+.BR ocamldumpapprox (1)
+.br
+.SH AUTHOR
+This manual page was written by Mehdi Dogguy <mehdi@dogguy.org>,
+for the Debian GNU/Linux system (but may be used by others).
--- ocaml-3.11.2.orig/debian/man/ocamlobjinfo.1
+++ ocaml-3.11.2/debian/man/ocamlobjinfo.1
@@ -0,0 +1,40 @@
+.TH OCAMLOBJINFO 1 "October 26, 2002"
+.SH NAME
+ocamlobjinfo \- dump an OCaml compilation unit description
+.SH SYNOPSIS
+.B ocamlobjinfo
+.RI file\ ...
+.SH DESCRIPTION
+Dump information contained in OCaml compilation units.
+Currently it works on .cmi, .cmo and .cma files.
+.sp 2
+.B ocamlobjinfo
+is able to show information regarding:
+.br
+.IP
+module names
+.sp 2
+unit name
+.sp 2
+declared primitives
+.sp 2
+imported interfaces
+.sp 2
+md5sums of imported interfaces
+.sp 2
+forced custom mode
+.sp 2
+extra C libraries needed
+.sp 2
+extra C flags needed
+.sp 2
+use of unsafe features
+.PP
+depending on its invocation on .cmi, .cmo or .cma arguments.
+.SH SEE ALSO
+.BR ocamlc (1),
+.BR ocamlopt (1)
+.br
+.SH AUTHOR
+This manual page was written by Stefano Zacchiroli <zack@debian.org>,
+for the Debian GNU/Linux system (but may be used by others).
