diff -Nru rustc-1.15.1+dfsg1/debian/architecture.mk rustc-1.15.1+dfsg1/debian/architecture.mk --- rustc-1.15.1+dfsg1/debian/architecture.mk 2017-02-27 12:32:27.000000000 +0000 +++ rustc-1.15.1+dfsg1/debian/architecture.mk 2017-03-15 10:16:18.000000000 +0000 @@ -2,7 +2,7 @@ include /usr/share/dpkg/architecture.mk -rust_cpu = $(subst i586,i686,$(if $(findstring -armhf-,-$(2)-),$(subst arm,armv7,$(1)),$(1))) +rust_cpu = $(subst i586,i686,$(1)) rust_type_setvar = $(1)_RUST_TYPE ?= $(call rust_cpu,$($(1)_GNU_CPU),$($(1)_ARCH))-unknown-$($(1)_GNU_SYSTEM) $(foreach machine,BUILD HOST TARGET,\ diff -Nru rustc-1.15.1+dfsg1/debian/changelog rustc-1.15.1+dfsg1/debian/changelog --- rustc-1.15.1+dfsg1/debian/changelog 2017-03-12 03:15:33.000000000 +0000 +++ rustc-1.15.1+dfsg1/debian/changelog 2017-03-15 10:16:18.000000000 +0000 @@ -1,3 +1,14 @@ +rustc (1.15.1+dfsg1-1~exp3+rpi1) stretch-staging; urgency=medium + + * Disable testsuite. + * Fix clean target. + * Build for armv6. + * Use armv7 bootstrap compiler to bootstrap armv6 + * Manually fixup "install" step so that only armv6 stuff ends up + in the resulting packages. + + -- Peter Michael Green Wed, 15 Mar 2017 10:16:18 +0000 + rustc (1.15.1+dfsg1-1~exp3) experimental; urgency=medium * Ignore atomic-lock-free tests on armhf. diff -Nru rustc-1.15.1+dfsg1/debian/rules rustc-1.15.1+dfsg1/debian/rules --- rustc-1.15.1+dfsg1/debian/rules 2017-02-27 12:32:27.000000000 +0000 +++ rustc-1.15.1+dfsg1/debian/rules 2017-03-15 10:16:18.000000000 +0000 @@ -115,6 +115,7 @@ %: + cd dl && ln -fs rustc-1.14.0-armv7-unknown-linux-gnueabihf.tar.gz rustc-1.14.0-arm-unknown-linux-gnueabihf.tar.gz dh $@ --parallel # Note: SHELL is not set by dash, but the configure script wants to use it @@ -133,6 +134,8 @@ fi $(RM) src/rt/hoedown/src/html_blocks.c # clean up after building this ourselves $(RM) src/bootstrap/bootstrap.pyc + rm -rf src/etc/__pycache__ *-linux-gnu* config.tmp + rm -f dl/rustc-1.14.0-arm-unknown-linux-gnueabihf.tar.gz # upstream bundles this in the source, but in Debian we rebuild everything yo generate-sources: @@ -150,8 +153,17 @@ endif override_dh_auto_install: + #rm -rf armv7-unknown-linux-gnueabihf dh_auto_install --destdir=$(DEB_DESTDIR) + #upstream build produces both armv6 and armv7 stuff and installs a + #mixture of both. Fix things up so that only the armv6 stuff ends up + #in the packages. + cp arm-unknown-linux-gnueabihf/stage2/bin/rustc debian/tmp/usr/bin/ + cp arm-unknown-linux-gnueabihf/stage2/bin/rustdoc debian/tmp/usr/bin/ + cp arm-unknown-linux-gnueabihf/stage2/lib/*.so debian/tmp/usr/lib/ + rm -rf debian/tmp/usr/lib/rustlib/*armv7-unknown-linux-gnueabihf + mkdir -p $(DEB_DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/ mv $(DEB_DESTDIR)/usr/lib/lib*.so $(DEB_DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/ @@ -203,7 +215,7 @@ # Use non-parallel $(MAKE) here instead of dh_auto_test, otherwise the upstream # Makefile will try to run N instances of the testrunner each of which will run # N instances of rustc (there is also parallel logic in libtest.rs already). - RUST_BACKTRACE=1 $(MAKE) VERBOSE=1 check + #RUST_BACKTRACE=1 $(MAKE) VERBOSE=1 check endif # No tests are applicable when only building arch:all packages.