From: Sven Luther Date: Thu, 16 Oct 2003 14:31:48 +0000 (+0000) Subject: Fixed hppa build problem. X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~817 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d598d016ae14dc54f63ead924721da7586b54496;p=ocaml.git Fixed hppa build problem. Now only depend on debhelper 4.0.2, since i removed the .dpatch from 00list. Removed leftover 3.06 ld.conf cruft. --- diff --git a/debian/changelog b/debian/changelog index 78b42fb9..6a72c49a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,13 @@ +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 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 diff --git a/debian/control b/debian/control index a4c0e4e5..0c9d8680 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: ocaml Section: devel Priority: optional Maintainer: Sven Luther -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 diff --git a/debian/ocaml-base.postinst b/debian/ocaml-base.postinst index 2396b214..1c4bce5f 100644 --- a/debian/ocaml-base.postinst +++ b/debian/ocaml-base.postinst @@ -1,4 +1,12 @@ #!/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# diff --git a/debian/patches/00list b/debian/patches/00list index 1ab5cda8..4ecaabea 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -1,3 +1,4 @@ -versioned_libdir.dpatch -objinfo.dpatch -camlp4_optional.dpatch +versioned_libdir +objinfo +camlp4_optional +hppa diff --git a/debian/patches/hppa.dpatch b/debian/patches/hppa.dpatch new file mode 100644 index 00000000..0f14eedb --- /dev/null +++ b/debian/patches/hppa.dpatch @@ -0,0 +1,35 @@ +#! /bin/sh -e +## hppa.dpatch by +## +## 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;; + *)