Upload to experimental + patch to remove rpaths.
authorSamuel Mimram <smimram@debian.org>
Tue, 18 Apr 2006 14:39:33 +0000 (14:39 +0000)
committerSamuel Mimram <smimram@debian.org>
Tue, 18 Apr 2006 14:39:33 +0000 (14:39 +0000)
debian/changelog
debian/patches/00list
debian/patches/no_rpath.dpatch [new file with mode: 0755]

index f1656027aa011cf1fdf1cb7dcab63ef10a1cb1a6..fb1984515b0f2a4805e10d0d6360592779698d4c 100644 (file)
@@ -1,6 +1,8 @@
-ocaml (3.09.2-1) unstable; urgency=low
+ocaml (3.09.2-1) experimental; urgency=low
 
   * New upstream release.
+  * Added no_rpath.dpatch in order for caml not to put rpath in generated
+    executables, closes: #361865.
 
  -- Samuel Mimram <smimram@debian.org>  Sun, 16 Apr 2006 23:32:02 +0000
 
index f2583a23221feb724f38e9eaa39dcb3a74915c9e..e8d42fb4ef5278e70a7be4707ede671fbd7a10d3 100644 (file)
@@ -6,3 +6,4 @@ man-ocamlmklib
 alpha_ld_no-relax
 call_ld_with_proper_flags
 #pr_o
+no_rpath
diff --git a/debian/patches/no_rpath.dpatch b/debian/patches/no_rpath.dpatch
new file mode 100755 (executable)
index 0000000..94725c9
--- /dev/null
@@ -0,0 +1,37 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## no_rpath.dpatch by Red Hat people
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Don't use rpath. This was shamelessly taken from
+## DP: http://cvs.fedora.redhat.com/lxr/extras/source/devel/ocaml/ocaml-rpath.patch
+
+@DPATCH@
+diff -urNad ocaml-3.09.2~/tools/Makefile ocaml-3.09.2/tools/Makefile
+--- ocaml-3.09.2~/tools/Makefile       2006-04-18 14:25:24.000000000 +0000
++++ ocaml-3.09.2/tools/Makefile        2006-04-18 14:32:09.000000000 +0000
+@@ -102,9 +102,6 @@
+       sed -e "s|%%BINDIR%%|$(BINDIR)|" \
+             -e "s|%%SUPPORTS_SHARED_LIBRARIES%%|$(SUPPORTS_SHARED_LIBRARIES)|" \
+             -e "s|%%MKSHAREDLIB%%|$(MKSHAREDLIB)|" \
+-            -e "s|%%BYTECCRPATH%%|$(BYTECCRPATH)|" \
+-            -e "s|%%NATIVECCRPATH%%|$(NATIVECCRPATH)|" \
+-            -e "s|%%MKSHAREDLIBRPATH%%|$(MKSHAREDLIBRPATH)|" \
+             -e "s|%%RANLIB%%|$(RANLIB)|" \
+           ocamlmklib.mlp >> ocamlmklib.ml
+diff -urNad ocaml-3.09.2~/tools/ocamlmklib.mlp ocaml-3.09.2/tools/ocamlmklib.mlp
+--- ocaml-3.09.2~/tools/ocamlmklib.mlp 2004-11-27 01:04:19.000000000 +0000
++++ ocaml-3.09.2/tools/ocamlmklib.mlp  2006-04-18 14:32:09.000000000 +0000
+@@ -17,9 +17,9 @@
+ let bindir = "%%BINDIR%%"
+ and supports_shared_libraries = %%SUPPORTS_SHARED_LIBRARIES%%
+ and mksharedlib = "%%MKSHAREDLIB%%"
+-and bytecc_rpath = "%%BYTECCRPATH%%"
+-and nativecc_rpath = "%%NATIVECCRPATH%%"
+-and mksharedlib_rpath = "%%MKSHAREDLIBRPATH%%"
++and bytecc_rpath = ""
++and nativecc_rpath = ""
++and mksharedlib_rpath = ""
+ and ranlib = "%%RANLIB%%"
+ let bytecode_objs = ref []  (* .cmo,.cma,.ml,.mli files to pass to ocamlc *)