Now only depend on debhelper 4.0.2, since i removed the .dpatch from 00list.
Removed leftover 3.06 ld.conf cruft.
+ocaml (3.07-7) unstable; urgency=low
+
+ * Fixed hppa build problem : hppa needs doubleword aligned doubles.
+ * Removed .dpatch extensions for debian/patches/00list, should enable to
+ build with older versions of debhelper, like the one in woody.
+ (Closes: #214967).
+ * Removed leftover ocaml 3.06 ld.conf stuff. (Closes: #214772)
+
+ -- Sven Luther <luther@debian.org> Thu, 16 Oct 2003 16:18:51 +0200
+
ocaml (3.07-6) unstable; urgency=low
* Changed from the -a to the -s option in debhelper functions. Fixed FTBFS
Section: devel
Priority: optional
Maintainer: Sven Luther <luther@debian.org>
-Build-Depends: debhelper (>> 4.1.0), tcl8.4-dev, tk8.4-dev, libncurses5-dev, libgdbm-dev, dpatch, bzip2
+Build-Depends: debhelper (>> 4.0.2), tcl8.4-dev, tk8.4-dev, libncurses5-dev, libgdbm-dev, dpatch, bzip2
Standards-Version: 3.6.0
Package: ocaml
#!/bin/sh
mkdir -p /usr/local/lib/ocaml/3.07/stublibs || true
+for i in /usr/lib/ocaml/3.06 /etc/ocaml /var/lib/ocaml; do \
+ if [ -e $i/ld.conf ]; then \
+ echo "Removing leftover $i.ld.conf"; \
+ rm -f $i/ld.conf; \
+ rmdir --ignore-fail-on-non-empty $i; \
+ fi; \
+done
+
#DEBHELPER#
-versioned_libdir.dpatch
-objinfo.dpatch
-camlp4_optional.dpatch
+versioned_libdir
+objinfo
+camlp4_optional
+hppa
--- /dev/null
+#! /bin/sh -e
+## hppa.dpatch by <luther@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Makefiles, configure scripts and other build stuff adapted for
+## DP: debian package creation
+
+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@
+--- ocaml-3.07/configure.orig 2003-10-16 13:15:23.000000000 +0000
++++ ocaml-3.07/configure 2003-10-16 13:15:54.000000000 +0000
+@@ -401,9 +401,10 @@
+ # Determine alignment constraints
+
+ case "$host" in
+- sparc-*-*)
++ sparc-*-*|hppa*-*-*)
+ # On Sparc V9 with certain versions of gcc, determination of double
+ # alignment is not reliable (PR#1521), hence force it
++ # Same goes for hppa.
+ echo "Doubles must be doubleword-aligned."
+ echo "#define ARCH_ALIGN_DOUBLE" >> m.h;;
+ *)