From: Sylvain Le Gall Date: Thu, 30 Aug 2007 23:28:27 +0000 (+0000) Subject: * Add patches to prevent FTBFS on non-native arch X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~540 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7dee2c8f1b2f40b8450ff29b45a316f685f77352;p=ocaml.git * Add patches to prevent FTBFS on non-native arch * Don't ignore make clean errors --- diff --git a/debian/changelog b/debian/changelog index bdf942bf..bffb65d9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,13 @@ ocaml (3.10.0-7) UNRELEASED; urgency=low + [ Stefano Zacchiroli ] * NOT RELEASED YET - -- Stefano Zacchiroli Thu, 30 Aug 2007 16:38:26 +0200 + [ Sylvain Le Gall ] + * Add patches to workaround FTBFS, as described upstream in bug 4375 + * Don't ignore make clean error + + -- Sylvain Le Gall Fri, 31 Aug 2007 01:27:19 +0200 ocaml (3.10.0-6) unstable; urgency=low diff --git a/debian/patches/00list b/debian/patches/00list index 0fd76ca2..cee54f25 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -9,3 +9,4 @@ stdlib_man_section.dpatch install_scripts_config.dpatch install_ocamlbuild.dpatch arm_ccheckbound_typo.dpatch +not-native-no-aspp diff --git a/debian/patches/not-native-no-aspp.dpatch b/debian/patches/not-native-no-aspp.dpatch new file mode 100755 index 00000000..f11f5cc5 --- /dev/null +++ b/debian/patches/not-native-no-aspp.dpatch @@ -0,0 +1,31 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## not-native-no-aspp.dpatch by Sylvain Le Gall +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad ocaml-3.10.0~/build/mkmyocamlbuild_config.sh ocaml-3.10.0/build/mkmyocamlbuild_config.sh +--- ocaml-3.10.0~/build/mkmyocamlbuild_config.sh 2007-03-12 12:58:48.000000000 +0100 ++++ ocaml-3.10.0/build/mkmyocamlbuild_config.sh 2007-08-31 00:59:56.671774840 +0200 +@@ -3,7 +3,8 @@ + + cd `dirname $0`/.. + +-sed \ ++(echo "AS="; cat config/Makefile) | \ ++ sed \ + -e 's/^#ml \(.*\)/\1/' \ + -e 's/^\(#.*\)$/(* \1 *)/' \ + -e 's/^\(.*\$([0-9]).*\)$/(* \1 *)/' \ +@@ -13,8 +14,8 @@ + -e 's/\^""//g' \ + -e 's/^let <:lower<\(MAKE\|DO\).*$//g' \ + -e 's/"true"/true/g' \ +- -e 's/"false"/false/g' \ +- config/Makefile | \ ++ -e 's/"false"/false/g' | \ + sed -f build/tolower.sed | \ + sed -f build/tolower.sed | \ + sed -f build/tolower.sed > myocamlbuild_config.ml ++ diff --git a/debian/rules b/debian/rules index 0d7131c2..9ad636ba 100755 --- a/debian/rules +++ b/debian/rules @@ -119,28 +119,34 @@ build-indep-stamp: clean: abi-sed unpatch dh_testdir dh_testroot - rm -f build-arch-stamp build-indep-stamp config-stamp abi-sed + -$(RM) build-arch-stamp build-indep-stamp config-stamp abi-sed opt-built-stamp pre-config # Add here commands to clean up after the build process. - -$(MAKE) clean + [ ! -f "$(CURDIR)/config/Makefile" ] || $(MAKE) clean if test -d boot.debian; then \ - rm -rf boot; \ + $(RM) -r boot; \ mv boot.debian boot; \ fi - -$(MAKE) -C emacs clean - -$(MAKE) -C debian/ocaml-md5sums clean - -$(MAKE) -C debian/dh-ocaml clean - -$(MAKE) -C debian/policy clean + [ ! -f "$(CURDIR)/config/Makefile" ] || $(MAKE) -C emacs clean + $(MAKE) -C debian/ocaml-md5sums clean + $(MAKE) -C debian/dh-ocaml clean + $(MAKE) -C debian/policy clean ifneq "$(wildcard /usr/share/misc/config.sub)" "" -cp -f /usr/share/misc/config.sub config/gnu/config.sub endif ifneq "$(wildcard /usr/share/misc/config.guess)" "" -cp -f /usr/share/misc/config.guess config/gnu/config.guess endif + # File not cleaned by upstream + -$(RM) _boot_log1 + -$(RM) _boot_log2 + -$(RM) _log + -$(RM) myocamlbuild_config.ml + -$(RM) ocaml-$(OCAMLABI) dh_clean debian/README.labltk camlp4/config/Makefile.cnf camlp4/config/Makefile config/m.h config/s.h config/Makefile emacs/ocamltags driver/ocamlcomp.sh debian/rules abi-sed-clean - rm -f debian/$(SRCTARBALL) + -$(RM) debian/$(SRCTARBALL) install: install-indep install-arch install-indep: build-indep