Add dbm_ldopts.dpatch, adding missing linking options for dbm
authorStephane Glondu <steph@glondu.net>
Tue, 20 Jan 2009 23:36:22 +0000 (00:36 +0100)
committerStephane Glondu <steph@glondu.net>
Wed, 21 Jan 2009 00:00:38 +0000 (01:00 +0100)
debian/changelog
debian/patches/00list
debian/patches/dbm_ldopts.dpatch [new file with mode: 0755]

index fbe000c65a1ed599a373ac0ef237ba4c0da62447..71a26f1c977a06e3e0e037919142bc83a9c32b76 100644 (file)
@@ -1,3 +1,10 @@
+ocaml (3.11.0-2) UNRELEASED; urgency=low
+
+  * Add dbm_ldopts.dpatch, to add missing linking options for dbm
+    (fixes ocsigen FTBFS)
+
+ -- Stephane Glondu <steph@glondu.net>  Wed, 21 Jan 2009 01:00:18 +0100
+
 ocaml (3.11.0-1) experimental; urgency=low
 
   * New upstream release:
index 094fc1f4fcf748b3db8a1d690c71c3974b1d5969..e73b5290ad5ef722aafdf80d67a27a8751124fdd 100644 (file)
@@ -7,3 +7,4 @@ no_rpath.dpatch
 stdlib_man_section.dpatch
 install_scripts_config.dpatch
 install_ocamlbuild.dpatch
+dbm_ldopts.dpatch
diff --git a/debian/patches/dbm_ldopts.dpatch b/debian/patches/dbm_ldopts.dpatch
new file mode 100755 (executable)
index 0000000..31d782f
--- /dev/null
@@ -0,0 +1,32 @@
+#! /bin/sh -e 
+## dbm_ldopts.dpatch by Stephane Glondu <steph@glondu.net>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: add missing dynamic linking options for dbm (see OCaml PR#4699)
+
+if [ $# -ne 1 ]; then
+    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
+    exit 1
+fi
+case "$1" in
+    -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
+    -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;   
+    *)
+       echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
+       exit 1;;
+esac
+
+exit 0
+@DPATCH@
+diff --git a/otherlibs/dbm/Makefile b/otherlibs/dbm/Makefile
+index 68fd200..894c822 100644
+--- a/otherlibs/dbm/Makefile
++++ b/otherlibs/dbm/Makefile
+@@ -21,6 +21,7 @@ CAMLOBJS=dbm.cmo
+ COBJS=cldbm.o
+ EXTRACFLAGS=$(DBM_INCLUDES)
+ LINKOPTS=$(DBM_LINK)
++LDOPTS=-ldopt "$(DBM_LINK)"
+ include ../Makefile