Bug#636167: Missing camlimages.cm{a,xa} or incorrect META file
tags 636167 patch
thanks
2011/7/31 Romain Beauxis <toots@rastageeks.org>:
> The META file provided by libcamlimages-ocaml-dev contains the following:
> --
> name = "CamlImages"
> version = "4.0.0"
> description = "Objective Caml image processing library"
>
> archive(byte) = "camlimages.cma"
> archive(native) = "camlimages.cmxa"
> --
>
> However. no camlimages.cma or camlimages.cmxa are provided. leading
> to build failures such as:
> --
> % ocamlfind ocamlopt -linkpkg -package camlimages foo.ml -o foo
> File "foo.ml", line 1, characters 0-1:
> Error: Cannot find file /usr/lib/ocaml/camlimages/camlimages.cmxa
> --
The attached patch fixes the issue by removing mentions of those
non-existant archives.
Please, let me know if it is ok to upload a new package with it.
Romain
diff --git a/debian/changelog b/debian/changelog
index 4dd1de8..6382b5e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+camlimages (1:4.0.1-4) unstable; urgency=low
+
+ * Team upload.
+ * Patched src/META.in file to remove mention
+ of non-existant camlimages.cm{a,xa}
+ Closes: #636167:
+
+ -- Romain Beauxis <toots@rastageeks.org> Thu, 04 Aug 2011 22:12:58 -0500
+
camlimages (1:4.0.1-3) unstable; urgency=low
* Team upload
diff --git a/debian/patches/fix_META.patch b/debian/patches/fix_META.patch
new file mode 100644
index 0000000..0ed94c5
--- /dev/null
+++ b/debian/patches/fix_META.patch
@@ -0,0 +1,16 @@
+Remove mentions of non-existant archives.
+
+Index: camlimages/src/META.in
+===================================================================
+--- camlimages.orig/src/META.in 2011-08-04 22:11:48.000000000 -0500
++++ camlimages/src/META.in 2011-08-04 22:12:00.000000000 -0500
+@@ -2,9 +2,6 @@
+ version = "@PACKAGE_VERSION@"
+ description = "Objective Caml image processing library"
+
+-archive(byte) = "camlimages.cma"
+-archive(native) = "camlimages.cmxa"
+-
+ package "core" (
+ archive(byte) = "camlimages_core.cma"
+ archive(native) = "camlimages_core.cmxa"
diff --git a/debian/patches/series b/debian/patches/series
index f5e0dd5..111e600 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
0001-Add-missing-cclib-in-ocamlc-a.patch
+fix_META.patch
Reply to: