diff -Nru rustc-1.60.0+dfsg1/debian/architecture.mk rustc-1.60.0+dfsg1/debian/architecture.mk --- rustc-1.60.0+dfsg1/debian/architecture.mk 2022-09-01 18:02:41.000000000 +0000 +++ rustc-1.60.0+dfsg1/debian/architecture.mk 2022-09-13 03:57:25.000000000 +0000 @@ -3,10 +3,7 @@ include /usr/share/dpkg/architecture.mk rust_cpu = $(subst i586,i686,\ -$(if $(findstring -riscv64-,-$(2)-),$(subst riscv64,riscv64gc,$(1)),\ -$(if $(findstring -armhf-,-$(2)-),$(subst arm,armv7,$(1)),\ -$(if $(findstring -armel-,-$(2)-),$(subst arm,armv5te,$(1)),\ -$(1))))) +$(if $(findstring -riscv64-,-$(2)-),$(subst riscv64,riscv64gc,$(1)),$(1))) rust_type_setvar = $(1)_RUST_TYPE ?= $(call rust_cpu,$($(1)_GNU_CPU),$($(1)_ARCH))-unknown-$($(1)_GNU_SYSTEM) $(foreach machine,BUILD HOST TARGET,\ @@ -16,3 +13,5 @@ ifeq ($(DEB_TARGET_RUST_TYPE),-unknown-) DEB_TARGET_RUST_TYPE = $(DEB_HOST_RUST_TYPE) endif + +DEB_BUILD_RUST_TYPE = $(shell RUSTC_BOOTSTRAP=1 rustc -Z unstable-options --print target-spec-json | python3 -c 'import json,sys;obj=json.load(sys.stdin);print(obj["llvm-target"])') diff -Nru rustc-1.60.0+dfsg1/debian/changelog rustc-1.60.0+dfsg1/debian/changelog --- rustc-1.60.0+dfsg1/debian/changelog 2022-09-05 08:03:18.000000000 +0000 +++ rustc-1.60.0+dfsg1/debian/changelog 2022-09-13 03:57:25.000000000 +0000 @@ -1,3 +1,18 @@ +rustc (1.60.0+dfsg1-1+rpi1) bookworm-staging; urgency=medium + + [changes brought forward from 1.15.1+dfsg1-1~exp3+rpi1 by Peter Michael Green at Wed, 15 Mar 2017 10:16:18 +0000] + * Build for armv6. + [changes introduced in 1.18.0+dfsg1-4+rpi1 by Peter Michael Green] + * Disable testsuite. + [changes introduced in 1.37.0+dfsg1-1+rpi1 by Peter Michael Green] + * Set DEB_BUILD_RUST_TYPE based on the compiler that is actually installed. + [changes introduced in 1.42.0+dfsg1-1+rpi1 by Peter Michael Green] + * Use the compiler itself rather than dpkg to detect DEB_BUILD_RUST_TYPE + [changes introduced in 1.57.0+dfsg1-1+rpi1 by Peter Michael Green] + * Disable testsuite for arch all builds as well. + + -- Raspbian forward porter Tue, 13 Sep 2022 03:57:25 +0000 + rustc (1.60.0+dfsg1-1) unstable; urgency=medium * Ignore more test failures on mips64el for lack of inline assembly support. diff -Nru rustc-1.60.0+dfsg1/debian/rules rustc-1.60.0+dfsg1/debian/rules --- rustc-1.60.0+dfsg1/debian/rules 2022-09-05 08:03:18.000000000 +0000 +++ rustc-1.60.0+dfsg1/debian/rules 2022-09-13 03:57:25.000000000 +0000 @@ -304,7 +304,7 @@ test "$$(stat -c %s "$$x")" -lt 6000000; \ done ifeq (, $(filter nocheck,$(DEB_BUILD_PROFILES))) -ifeq (, $(filter nocheck,$(DEB_BUILD_OPTIONS))) +ifeq (testsuitedisabled, $(filter nocheck,$(DEB_BUILD_OPTIONS))) { $(RUSTBUILD_TEST) $(RUSTBUILD_FLAGS) $(RUSTBUILD_TEST_FLAGS); echo $$?; } | tee -a $(TEST_LOG) # test that the log has at least 1 pass, to prevent e.g. #57709 grep -l "^test .* \.\.\. ok$$" $(TEST_LOG) @@ -334,7 +334,7 @@ override_dh_auto_test-indep: ifeq (, $(filter nocheck,$(DEB_BUILD_PROFILES))) -ifeq (, $(filter nocheck,$(DEB_BUILD_OPTIONS))) +ifeq (testsuitedisabled, $(filter nocheck,$(DEB_BUILD_OPTIONS))) ifeq (true,$(BUILD_WASM)) # Ignore failures in these tests, but run them so we see what it's like -PATH=$(CURDIR)/debian/bin:$(PATH) $(RUSTBUILD_TEST) $(RUSTBUILD_FLAGS) $(RUSTBUILD_TEST_FLAGS) \