Use the compiler itself instead of dpkg to figure out DEB_BUILD_RUST_TYPE. archive/raspbian/1.42.0+dfsg1-1+rpi1 raspbian/1.42.0+dfsg1-1+rpi1
authorPeter Michael Green <plugwash@raspbian.org>
Sat, 25 Apr 2020 04:53:22 +0000 (04:53 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Sat, 25 Apr 2020 04:53:22 +0000 (04:53 +0000)
debian/architecture.mk
debian/changelog

index 922435459423bf3cc9d8a8542cb98ba8578716f9..fb41c65698078f7037cef6fc82f359297ea5eb8d 100644 (file)
@@ -14,4 +14,4 @@ ifeq ($(DEB_TARGET_RUST_TYPE),-unknown-)
   DEB_TARGET_RUST_TYPE = $(DEB_HOST_RUST_TYPE)
 endif
 
-DEB_BUILD_RUST_TYPE = $(shell dpkg -L rustc | grep '/usr/lib/rustlib/' | head -n 1 | cut -d '/' -f 5)
+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"])')
index 51df1abf1e2bc4d204ce2e107bdd5cdacbbaa995..3451a9624c023ff788d6cda47053ab9254ed2ae2 100644 (file)
@@ -6,8 +6,10 @@ rustc (1.42.0+dfsg1-1+rpi1) bullseye-staging; urgency=medium
   * 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
 
- -- Raspbian forward porter <root@raspbian.org>  Sun, 19 Apr 2020 08:07:33 +0000
+ -- Peter Michael Green <plugwash@raspbian.org>  Sat, 25 Apr 2020 04:53:04 +0000
 
 rustc (1.42.0+dfsg1-1) unstable; urgency=medium