From: Stephane Glondu Date: Tue, 20 Jan 2009 23:36:22 +0000 (+0100) Subject: Add dbm_ldopts.dpatch, adding missing linking options for dbm X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~449^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=767a359b435e97062a9fd6ad707787991a9247a7;p=ocaml.git Add dbm_ldopts.dpatch, adding missing linking options for dbm --- diff --git a/debian/changelog b/debian/changelog index fbe000c6..71a26f1c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Wed, 21 Jan 2009 01:00:18 +0100 + ocaml (3.11.0-1) experimental; urgency=low * New upstream release: diff --git a/debian/patches/00list b/debian/patches/00list index 094fc1f4..e73b5290 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -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 index 00000000..31d782f9 --- /dev/null +++ b/debian/patches/dbm_ldopts.dpatch @@ -0,0 +1,32 @@ +#! /bin/sh -e +## dbm_ldopts.dpatch by Stephane Glondu +## +## 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 +