diff options
| author | J0WI <J0WI@users.noreply.github.com> | 2020-01-13 18:07:27 +0100 |
|---|---|---|
| committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-01-14 16:02:01 +0100 |
| commit | be221627cd41d467da32e8c49773cdbd24d817b4 (patch) | |
| tree | 3a52eafb8689af46480ef978115f1e6b21edb72b /community/firefox-esr/fix-rust-target.patch | |
| parent | 705bf07c6f1da1ff763603dbe90a49852b3da78b (diff) | |
| download | aports-be221627cd41d467da32e8c49773cdbd24d817b4.tar.bz2 aports-be221627cd41d467da32e8c49773cdbd24d817b4.tar.xz | |
community/firefox-esr: enable on armhf, armv7, ppc64le and x86
Diffstat (limited to 'community/firefox-esr/fix-rust-target.patch')
| -rw-r--r-- | community/firefox-esr/fix-rust-target.patch | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/community/firefox-esr/fix-rust-target.patch b/community/firefox-esr/fix-rust-target.patch index f81418efd2..d2d638b9ea 100644 --- a/community/firefox-esr/fix-rust-target.patch +++ b/community/firefox-esr/fix-rust-target.patch @@ -1,13 +1,10 @@ --- a/build/moz.configure/rust.configure +++ b/build/moz.configure/rust.configure -@@ -280,9 +280,13 @@ +@@ -278,9 +280,10 @@ die("Don't know how to translate {} for rustc".format( host_or_target.alias)) -+ fixed_alias = rustc_target.alias.replace("-gnu", "-musl") -+ if host_or_target.cpu != 'aarch64': -+ fixed_alias = fixed_alias.replace("-unknown-", "-alpine-") -+ ++ fixed_alias = os.environ['RUST_TARGET'] # Check to see whether our rustc has a reasonably functional stdlib # for our chosen target. - target_arg = '--target=' + rustc_target.alias @@ -15,7 +12,7 @@ in_fd, in_path = mkstemp(prefix='conftest', suffix='.rs') out_fd, out_path = mkstemp(prefix='conftest', suffix='.rlib') os.close(out_fd) -@@ -319,7 +323,7 @@ +@@ -317,7 +320,7 @@ os.remove(out_path) # This target is usable. |
