Update rust triplet hack patch for new upstream version. archive/raspbian/68.9.0esr-1_deb10u1+rpi1 raspbian/68.9.0esr-1_deb10u1+rpi1
authorPeter Michael Green <plugwash@raspbian.org>
Sat, 6 Jun 2020 00:35:55 +0000 (00:35 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Sat, 6 Jun 2020 00:35:55 +0000 (00:35 +0000)
debian/changelog
debian/patches/raspbian-rust-triplet-hack.patch

index d7c74aa62e1c40df31a2f10e33a35994a53600c7..038ffbf1953b6aeb3008b4e7ffd1017bf928cec2 100644 (file)
@@ -12,7 +12,7 @@ firefox-esr (68.9.0esr-1~deb10u1+rpi1) buster-staging; urgency=medium
   * Disable webrtc, it seems to fail to build on raspbian.
   * Try to disable Neon
 
- -- Raspbian forward porter <root@raspbian.org>  Fri, 05 Jun 2020 22:56:34 +0000
+ -- Peter Michael Green <plugwash@raspbian.org>  Fri, 05 Jun 2020 22:56:34 +0000
 
 firefox-esr (68.9.0esr-1~deb10u1) buster-security; urgency=medium
 
index f26ce45ed29adb0cd38cfa6ab8285475352536e8..ecb72bac16cfa9a943c9b39fce5fa920d981f5b7 100644 (file)
@@ -1,31 +1,23 @@
 Description:  Hack broken rust target selection so it produces the right target on raspbian.
 Author: Peter Michael Green <plugwash@raspbian.org>
-diff --git a/build/moz.configure/rust.configure b/build/moz.configure/rust.configure
-index 9647cbc40e..0645c1e53a 100644
---- a/build/moz.configure/rust.configure
-+++ b/build/moz.configure/rust.configure
-@@ -185,6 +185,8 @@ def rust_compiler(rustc_info, cargo_info, build_project):
+--- firefox-esr-68.9.0esr.orig/build/moz.configure/rust.configure
++++ firefox-esr-68.9.0esr/build/moz.configure/rust.configure
+@@ -185,9 +185,14 @@ def rust_compiler(rustc_info, cargo_info
  
  
  @depends(rustc, when=rust_compiler)
 +@imports('sys')
 +@imports(_from='__builtin__', _import='repr')
+ @imports(_from='__builtin__', _import='ValueError')
  def rust_supported_targets(rustc):
      out = check_cmd_output(rustc, '--print', 'target-list').splitlines()
-     # The os in the triplets used by rust may match the same OSes, in which
-@@ -192,7 +194,11 @@ def rust_supported_targets(rustc):
-     per_os = {}
-     ambiguous = set()
-     per_raw_os = {}
 +    #HACK: if there are multiple matches the algorithm uses the last one
 +    #put arm-unknown-linux-gnuebihf on the end of the list so it gets preffered
 +    out.append('arm-unknown-linux-gnueabihf')
+     data = {}
      for t in out:
-+        traw = t
-         t = split_triplet(t, allow_unknown=True)
-         endianness = t.endianness
-         if t.cpu.startswith('thumb') and endianness not in ('big', 'little'):
-@@ -232,11 +238,13 @@ def rust_triple_alias(host_or_target):
+         try:
+@@ -225,11 +230,13 @@ def rust_triple_alias(host_or_target):
               arm_target, when=rust_compiler)
      @checking('for rust %s triplet' % host_or_target_str)
      @imports('os')