Add symlinks so upstream build system can find the compiler on raspbian. archive/raspbian/4.08.1-4+rpi1 raspbian/4.08.1-4+rpi1
authorPeter Michael Green <plugwash@raspbian.org>
Tue, 26 Nov 2019 02:00:41 +0000 (02:00 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 26 Nov 2019 11:52:15 +0000 (11:52 +0000)
debian/changelog
debian/rules

index 1384848ac22d170443b575e920c4de1fdc53e879..a1544eab606704aa52dfb5a6b83dda118abff7e8 100644 (file)
@@ -4,6 +4,9 @@ ocaml (4.08.1-4+rpi1) bullseye-staging; urgency=medium
   * 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
index dac5761ead4d57ec0d38f71328a7d06d7b28052b..f012c81db82b42f89db2504c484e48cf3e4721b8 100755 (executable)
@@ -3,6 +3,8 @@
 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)
 
@@ -99,6 +101,10 @@ debian/control:
        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 ] && \
@@ -189,6 +195,7 @@ endif
        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