Merge ocaml-native-compilers into ocaml-nox
authorXimin Luo <infinity0@debian.org>
Fri, 3 Mar 2017 13:15:56 +0000 (14:15 +0100)
committerXimin Luo <infinity0@debian.org>
Fri, 3 Mar 2017 13:15:56 +0000 (14:15 +0100)
debian/changelog
debian/control
debian/control.in
debian/ocaml-base-nox.README.Debian
debian/ocaml-native-compilers.install [deleted file]
debian/ocaml-native-compilers.links [deleted file]
debian/ocaml-nox.install.in
debian/rules

index e90f8d8c40593941f16867621403c0a88385201a..c148d2e3c6218478fe679e37cea4684ea99d32eb 100644 (file)
@@ -5,6 +5,7 @@ ocaml (4.04.0-1) UNRELEASED; urgency=medium
 
   [ Ximin Luo ]
   * New upstream release.
+  * Merge ocaml-native-compilers into ocaml-nox.
 
  -- Ximin Luo <infinity0@debian.org>  Sun, 06 Nov 2016 19:58:56 +0100
 
index 64902a0af4d3f4ee5c2bbf5adec6d791506b9c77..c1305ee3a9ffe699cfd576df43c478b8cbff6ba2 100644 (file)
@@ -37,7 +37,8 @@ Depends:
  binutils
 Provides:
  ${ocaml:Provides},
- ${F:BestProvides},
+ ocaml-best-compilers (= ${binary:Version}),
+ ${F:NativeProvides},
  libnums-ocaml-dev
 Suggests:
  ocaml-doc,
@@ -146,26 +147,6 @@ Description: Runtime system for OCaml bytecode executables
  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 arm64 armel armhf hurd-i386 i386 kfreebsd-i386 kfreebsd-amd64 lpia powerpc ppc64 ppc64el sparc s390x
-Depends:
- ocaml-nox (= ${binary:Version}),
- gcc, binutils,
- ${shlibs:Depends},
- ${misc:Depends}
-Provides: ocaml-best-compilers (= ${binary:Version})
-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
- (ocamlc.opt, ocamllex.opt, ocamlopt.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}
index 91de5876ad92722e673b698c54a47e8f95fce97c..ba3dae372acab5c7ec4058d9a7a56320c909293b 100644 (file)
@@ -37,7 +37,8 @@ Depends:
  binutils
 Provides:
  ${ocaml:Provides},
- ${F:BestProvides},
+ ocaml-best-compilers,
+ ${F:NativeProvides},
  libnums-ocaml-dev
 Suggests:
  ocaml-doc,
@@ -146,26 +147,6 @@ Description: Runtime system for OCaml bytecode executables
  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 (= ${binary:Version})
-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
- (ocamlc.opt, ocamllex.opt, ocamlopt.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}
index 6497fcf9392f1634f64153b62ff59869334f6cc3..cda8aafe06098c201a3463d388116c60192f4e33 100644 (file)
@@ -8,8 +8,6 @@ OCaml for Debian
   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)
   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
diff --git a/debian/ocaml-native-compilers.install b/debian/ocaml-native-compilers.install
deleted file mode 100644 (file)
index 438b2f4..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-usr/bin/ocamlc.opt
-usr/bin/ocamlcp.opt
-usr/bin/ocamldep.opt
-usr/bin/ocamldoc.opt
-usr/bin/ocamllex.opt
-usr/bin/ocamlopt.opt
-usr/bin/ocamloptp.opt
-usr/bin/ocamlmklib.opt
-usr/bin/ocamlmktop.opt
-usr/bin/ocamlprof.opt
-usr/bin/ocamlobjinfo.opt
-debian/ocamlfind/ocaml-native-compilers.conf usr/share/ocaml-findlib/
diff --git a/debian/ocaml-native-compilers.links b/debian/ocaml-native-compilers.links
deleted file mode 100644 (file)
index 6367664..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-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
index 46b820d7ef0005c0c51bf03532d6f47a9d4b1bd5..eac29e22307d0513739e2d190f602e2a26eda3a9 100644 (file)
@@ -9,6 +9,18 @@
      usr/bin/ocamlprof
      usr/bin/ocamlyacc
      usr/bin/ocamlobjinfo
+     usr/bin/ocamlc.*
+     usr/bin/ocamlcp.*
+     usr/bin/ocamldep.*
+     usr/bin/ocamldoc.*
+     usr/bin/ocamllex.*
+     usr/bin/ocamlopt.*
+     usr/bin/ocamloptp.*
+     usr/bin/ocamlmklib.*
+     usr/bin/ocamlmktop.*
+     usr/bin/ocamlprof.*
+     usr/bin/ocamlobjinfo.*
+debian/ocamlfind/ocaml-native-compilers.conf usr/share/ocaml-findlib/
      @OCamlStdlibDir@/objinfo_helper
      debian/native-archs @OCamlStdlibDir@
 OPT: usr/bin/ocamlopt
index 053cf10a848595a3ac77074920f799c0674a2307..0c7f4c0345c3f206439875e28eed7705bbacbeea 100755 (executable)
@@ -53,9 +53,6 @@ export OCAMLOBJINFO = OCAMLLIB=tools boot/ocamlrun tools/objinfo
 #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
@@ -248,9 +245,9 @@ override_dh_gencontrol:
          echo 'F:OCamlABI=$(OCAML_ABI)' >> debian/$$u.substvars; \
        done
 ifeq (,$(OCAML_OPT_ARCH))
-       echo 'F:BestProvides=ocaml-best-compilers (= $${binary:Version})' >> debian/ocaml-nox.substvars
+       echo 'F:NativeProvides=' >> debian/ocaml-nox.substvars
 else
-       echo 'F:BestProvides=' >> debian/ocaml-nox.substvars
+       echo 'F:NativeProvides=ocaml-native-compilers (= $${binary:Version})' >> debian/ocaml-nox.substvars
 endif
 # Create .md5sums files and compute dependencies. Use $(OCAML_ABI)
 # because we know that OCaml ABI represents best dependencies for