Fix broken doc symlinks (Closes: #877267)
authorStephane Glondu <steph@glondu.net>
Thu, 11 Jul 2019 11:40:58 +0000 (13:40 +0200)
committerStephane Glondu <steph@glondu.net>
Thu, 11 Jul 2019 12:18:02 +0000 (14:18 +0200)
debian/MANIFEST
debian/OCaml_for_Debian [new file with mode: 0644]
debian/README.Debian [deleted file]
debian/ocaml-base-nox.README.Debian [deleted file]
debian/ocaml-base-nox.docs
debian/rules

index 35f86190722994b8e165eef45fdb9ab0b596f04f..7198450aae10ef0a38cb3a72876c61f58f345ef5 100644 (file)
@@ -1,5 +1,5 @@
 debian/MANIFEST
-debian/README.Debian
+debian/OCaml_for_Debian
 debian/README.source
 debian/TODO.Debian
 debian/changelog
@@ -15,7 +15,6 @@ debian/man/ocamldumpobj.1
 debian/man/ocamlmklib.1
 debian/man/ocamlobjinfo.1
 debian/native-archs
-debian/ocaml-base-nox.README.Debian
 debian/ocaml-base-nox.dirs.in
 debian/ocaml-base-nox.docs
 debian/ocaml-base-nox.install.in
diff --git a/debian/OCaml_for_Debian b/debian/OCaml_for_Debian
new file mode 100644 (file)
index 0000000..67213a3
--- /dev/null
@@ -0,0 +1,70 @@
+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-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 responsibility 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 around 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.
+
+ -- Ralf Treinen <treinen@debian.org>, Fri, 15 Jul 2016 22:08:59 +0200
+
+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
+
+Debug information produced by ocamlc
+====================================
+
+In upstream OCaml, “ocamlc -custom” produces executables that cannot
+be stripped (more precisely, the bytecode, which is not part of the
+ELF data, is removed by strip). This Debian version is patched (and
+the patch has been rejected by upstream [1], but is available
+separately in debian/patches) so that the bytecode is embedded in the
+executable and can be stripped. This new behaviour is optional, and
+can be enabled by setting the OCAML_CUSTOM_EMBED environment variable
+to “y”.
+
+[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=49;bug=256900
+
+ -- Stéphane Glondu <glondu@debian.org>, Tue, 26 Jun 2012 07:27:05 +0200
diff --git a/debian/README.Debian b/debian/README.Debian
deleted file mode 100644 (file)
index 7a63ebc..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-OCaml Debian package
-====================
-
-In upstream OCaml, “ocamlc -custom” produces executables that cannot
-be stripped (more precisely, the bytecode, which is not part of the
-ELF data, is removed by strip). This Debian version is patched (and
-the patch has been rejected by upstream [1], but is available
-separately in debian/patches) so that the bytecode is embedded in the
-executable and can be stripped. This new behaviour is optional, and
-can be enabled by setting the OCAML_CUSTOM_EMBED environment variable
-to “y”.
-
-[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=49;bug=256900
-
- -- Stéphane Glondu <glondu@debian.org>, Tue, 26 Jun 2012 07:27:05 +0200
diff --git a/debian/ocaml-base-nox.README.Debian b/debian/ocaml-base-nox.README.Debian
deleted file mode 100644 (file)
index cda8aaf..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-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-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 responsibility 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 around 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.
-
- -- Ralf Treinen <treinen@debian.org>, Fri, 15 Jul 2016 22:08:59 +0200
-
-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
index 52e22424932c294c23b25e4114e0873b9f21e990..dd2b95c617a40c21917b0c49b0ebf5962c4123d8 100644 (file)
@@ -1 +1,2 @@
+debian/OCaml_for_Debian
 README.adoc
index ebd129eef5f4b6b0ca5885e49c540553fea09b01..718a4e6095ac7338dc5445b6c62acfe39eb24ae5 100755 (executable)
@@ -206,12 +206,6 @@ endif
            cp tools/$$u debian/ocaml-nox/usr/bin/ocaml$$u; \
          fi \
        done
-       set -e; for pkg in ocaml ocaml-nox ocaml-base; do ( \
-         mkdir -p debian/$$pkg/usr/share/doc/$$pkg && \
-         cd debian/$$pkg/usr/share/doc/$$pkg && \
-         ln -sf ../ocaml-base-nox/README.gz . && \
-         ln -sf ../ocaml-base-nox/README.Debian .; \
-       ); done
 endif
 # Remaining stuff
        touch $@
@@ -269,7 +263,8 @@ endif
 
 .PHONY: override_dh_installdocs
 override_dh_installdocs:
-       dh_installdocs --ignore debian/README.Debian
+       dh_installdocs --package=ocaml-base-nox --doc-main-package=ocaml
+       dh_installdocs --remaining-packages
 
 .PHONY: override_dh_missing
 override_dh_missing: