* Add logic in debian/rules to detect raspbian and give the upstream
configure script the correct instructions.
+ [changes introduced in 4.08.1-4+rpi1 by Peter Michael Green]
+ * Add symlinks so upstream build system can find the compilers when using the correct triplet for raspbian.
+
-- Peter Michael Green <plugwash@raspbian.org> Mon, 25 Nov 2019 01:15:30 +0000
ocaml (4.08.1-4) unstable; urgency=medium
include /usr/share/dpkg/pkg-info.mk
include /usr/share/dpkg/buildflags.mk
+export PATH :=$(PATH):$(CURDIR)/compilersymlinks
+
PACKAGE := ocaml
ALL_PACKAGES := $(shell dh_listpackages)
sed -e 's/@OCamlNativeArchs@/$(OCAML_NATIVE_ARCHS)/g' debian/control.in > $@
pre-config-stamp: $(TARBALL_TARGET)
+ mkdir -p compilersymlinks
+ ln -s /usr/bin/arm-linux-gnueabihf-gcc compilersymlinks/armv6-unknown-linux-gnueabihf-gcc
+ ln -s /usr/bin/arm-linux-gnueabihf-g++ compilersymlinks/armv6-unknown-linux-gnueabihf-g++
+ ln -s /usr/bin/arm-linux-gnueabihf-as compilersymlinks/armv6-unknown-linux-gnueabihf-as
# Backup upstream config.{sub,guess}, and use most up-to-date ones
set -e; for ext in sub guess; do \
if [ -f /usr/share/misc/config.$$ext ] && \
done
# Remaining stuff
-rm -Rf debian/$(SRCTARBALL) $(TESTDIR)
+ rm -rf compilersymlinks
.PHONY: override_dh_auto_install-arch override_dh_auto_install-indep
override_dh_auto_install-arch: install-stamp-arch