towards compiling ocaml 3.10.0
authorRalf Treinen <treinen@debian.org>
Wed, 11 Apr 2007 15:57:41 +0000 (15:57 +0000)
committerRalf Treinen <treinen@debian.org>
Wed, 11 Apr 2007 15:57:41 +0000 (15:57 +0000)
debian/changelog
debian/ocaml-mode.dirs
debian/patches/00list
debian/patches/install_scripts_config.dpatch [new file with mode: 0755]
debian/patches/ocaml-interp_manpage.dpatch [new file with mode: 0755]
debian/rules

index da55dc0c0f3ead1e66dc5c15f80239a6f3e25dad..a54923f0814b8b5a4b14ad8805b4bc2ea59b2fe2 100644 (file)
@@ -18,8 +18,19 @@ ocaml (3.10.0~beta-1) UNRELEASED; urgency=low
   * Policy
     - mandate the compilation of *.cm[ao] with debugging information for
       libraries and forbid it for bytecode programs
-
- -- Stefano Zacchiroli <zack@debian.org>  Wed, 11 Apr 2007 11:13:11 +0200
+  
+  [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
+
+ -- Ralf Treinen <treinen@debian.org>  Wed, 11 Apr 2007 16:37:21 +0200
 
 ocaml (3.09.3-1) experimental; urgency=low
 
index b211c4f76e30ee76444e971655383630d025ee87..e12d94c6869d86d2a7809a048f2b96e3071b9deb 100644 (file)
@@ -1,2 +1,2 @@
 usr/bin
-usr/share/emacs/site-lisp/ocaml-mode
\ No newline at end of file
+usr/share/emacs/site-lisp/ocaml-mode
index 6af82a6cee6b3deacacd0b773086ae6ce6188131..88c66d8d86079aa2b9388809fe3f02e2c463ffc9 100644 (file)
@@ -8,3 +8,7 @@ call_ld_with_proper_flags
 #pr_o
 no_rpath
 stdlib_man_section
+install_scripts_config
+ocaml-interp_manpage
+
+
diff --git a/debian/patches/install_scripts_config.dpatch b/debian/patches/install_scripts_config.dpatch
new file mode 100755 (executable)
index 0000000..9e6cd79
--- /dev/null
@@ -0,0 +1,32 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## install_scripts_config.dpatch by Ralf Treinen <treinen@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Use for installatation a patched config.sh (created by debian/rules)
+## DP: Ralf Treinen <treinen@debian.org>
+
+@DPATCH@
+diff -urNad ocaml-3.10.0~beta~/build/install.sh ocaml-3.10.0~beta/build/install.sh
+--- ocaml-3.10.0~beta~/build/install.sh        2007-03-06 10:48:38.000000000 +0100
++++ ocaml-3.10.0~beta/build/install.sh 2007-04-11 15:21:12.000000000 +0200
+@@ -3,7 +3,7 @@
+ cd `dirname $0`/..
+-. config/config.sh
++. config/config.debian.install.sh
+ not_installed=$PWD/_build/not_installed
+diff -urNad ocaml-3.10.0~beta~/build/partial-install.sh ocaml-3.10.0~beta/build/partial-install.sh
+--- ocaml-3.10.0~beta~/build/partial-install.sh        2007-03-06 10:48:38.000000000 +0100
++++ ocaml-3.10.0~beta/build/partial-install.sh 2007-04-11 15:21:33.000000000 +0200
+@@ -8,7 +8,7 @@
+ cd `dirname $0`/..
+-. config/config.sh
++. config/config.debian.install.sh
+ not_installed=$PWD/_build/not_installed
diff --git a/debian/patches/ocaml-interp_manpage.dpatch b/debian/patches/ocaml-interp_manpage.dpatch
new file mode 100755 (executable)
index 0000000..411b817
--- /dev/null
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## ocaml-interp_manpage.dpatch by Ralf Treinen <treinen@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: typo in ocaml manpage. <treinen@debian.org>
+
+@DPATCH@
+diff -urNad ocaml-3.10.0~beta~/man/ocaml.m ocaml-3.10.0~beta/man/ocaml.m
+--- ocaml-3.10.0~beta~/man/ocaml.m     2002-02-08 11:16:10.000000000 +0100
++++ ocaml-3.10.0~beta/man/ocaml.m      2007-04-11 17:51:50.000000000 +0200
+@@ -25,7 +25,7 @@
+ command is the toplevel system for Objective Caml,
+ that permits interactive use of the Objective Caml system through a
+ read-eval-print loop. In this mode, the system repeatedly reads Caml
+-phrases from the input, then typechecks, compile and evaluate
++phrases from the input, then typechecks, compiles and evaluates
+ them, then prints the inferred type and result value, if any. The
+ system prints a # (sharp) prompt before reading each phrase.
index befa6aa02a9989c73807356de0f3af2fb4ca9ec8..30ad6aadcc67049d50f9284c5c6550371eed3a61 100755 (executable)
@@ -70,6 +70,8 @@ config-stamp: configure abi-sed
                -tkdefs "-I/usr/include/tcl8.4"                         \
                -tklibs "-L/usr/lib -ltk8.4 -ltcl8.4"
        sed -e "s%MANDIR=.*$$%MANDIR=\$$(PREFIX)/share/man%g"           \
+           -e "s%LIBDIR=.*$$%LIBDIR=\$$(PREFIX)/lib/ocaml/$(OCAMLABI)%g" \
+           -e "s%STUBLIBDIR=.*$$%STUBLIBDIR=\$$(PREFIX)/lib/ocaml/$(OCAMLABI)/sublibs%g" \
                config/Makefile >config/Makefile.debian
        mv config/Makefile.debian config/Makefile
        if test -z "`grep "OTHERLIBRARIES.*labltk" config/Makefile`"; then\
@@ -173,6 +175,7 @@ install-arch: build-arch
        dh_installdirs -a
 
        # Let's install ocaml first.
+       sed -e 's|PREFIX=\"/.*\"|PREFIX=\"$(CURDIR)/debian/usr\"|' < config/config.sh > config/config.debian.install.sh
        $(MAKE) install PREFIX=$(CURDIR)/debian/ocaml-nox/usr
        install -m 644 debian/ocaml.xpm \
                $(CURDIR)/debian/ocaml-interp/usr/share/pixmaps