Move OCaml standard library to /usr/lib/ocaml
authorStephane Glondu <steph@glondu.net>
Tue, 16 Jun 2009 22:30:10 +0000 (00:30 +0200)
committerStephane Glondu <steph@glondu.net>
Tue, 16 Jun 2009 23:27:42 +0000 (01:27 +0200)
debian/changelog
debian/ocaml-base-nox.postinst.in
debian/ocaml.files.in [deleted file]
debian/rules

index 6d461166ef837dd6bf073f2764e86ff3fdf7df1a..af34ec4249cfd9a6d916a73892918eb16ffa8a24 100644 (file)
@@ -18,6 +18,7 @@ ocaml (3.11.1-1) UNRELEASED; urgency=low
     - 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>  Fri, 12 Jun 2009 15:50:22 +0200
 
index 2913dbccbc4f9b16cb760307a88393e6cac36e59..589d8c8859836022ce404e65cc81d565979efdf3 100644 (file)
@@ -18,7 +18,7 @@ if [ ! -e /usr/local/lib/ocaml/@OCamlABI@/stublibs ]; then
     fi
 fi
 
-for i in /usr/lib/ocaml/3.06 /etc/ocaml /var/lib/ocaml /usr/lib/ocaml; \
+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";                    \
diff --git a/debian/ocaml.files.in b/debian/ocaml.files.in
deleted file mode 100644 (file)
index 558c8bf..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-usr/bin/labltk
-usr/bin/ocamlbrowser
-usr/lib/ocaml/#OcamlABI#/graphics.cmi
-usr/lib/ocaml/#OcamlABI#/graphicsX11.cmi
-usr/lib/ocaml/#OcamlABI#/graphics.mli
-usr/lib/ocaml/#OcamlABI#/graphicsX11.mli
-usr/lib/ocaml/#OcamlABI#/labltk
-usr/lib/ocaml/#OcamlABI#/libgraphics.a
-OPT: usr/bin/labltk
-OPT: usr/lib/ocaml/#OcamlABI#/labltk
-OPT: usr/lib/ocaml/#OcamlABI#/graphics.cmx
-OPT: usr/lib/ocaml/#OcamlABI#/graphics.cmxa
-OPT: usr/lib/ocaml/#OcamlABI#/graphics.a
index 91a6db39a8001a47790778a2925b2e36ce98ce38..60dd3233017d18bcb95bdf35d2c61aab706a17f4 100755 (executable)
@@ -11,7 +11,7 @@ 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_ABI)
+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))
@@ -45,8 +45,8 @@ CONFIGURE_OPTS := \
 
 CONFIGURE_SED := \
   -e "s%MANDIR=.*$$%MANDIR=\$$(PREFIX)/share/man%g" \
-  -e "s%LIBDIR=.*$$%LIBDIR=\$$(PREFIX)/lib/ocaml/$(OCAML_ABI)%g" \
-  -e "s%STUBLIBDIR=.*$$%STUBLIBDIR=\$$(PREFIX)/lib/ocaml/$(OCAML_ABI)/stublibs%g"
+  -e "s%LIBDIR=.*$$%LIBDIR=\$$(PREFIX)/lib/ocaml%g" \
+  -e "s%STUBLIBDIR=.*$$%STUBLIBDIR=\$$(PREFIX)/lib/ocaml/stublibs%g"
 
 
 $(QUILT_STAMPFN): debian/$(SRCTARBALL)