summaryrefslogtreecommitdiff
path: root/waterfox/build-rust-ppc64le.patch
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2018-09-14 11:39:42 -0400
committerB Stack <bgstack15@gmail.com>2018-09-14 11:39:42 -0400
commit4ecb6db04ce862ec1b8a88db5daef0eda7c7a05d (patch)
tree512b8eae0c2ef46e9debfe96af748b308deb27c4 /waterfox/build-rust-ppc64le.patch
parentMerge branch 'add-ublock' into 'master' (diff)
downloadstackrpms-4ecb6db04ce862ec1b8a88db5daef0eda7c7a05d.tar.gz
stackrpms-4ecb6db04ce862ec1b8a88db5daef0eda7c7a05d.tar.bz2
stackrpms-4ecb6db04ce862ec1b8a88db5daef0eda7c7a05d.zip
bring in chinforpms/waterfox
Diffstat (limited to 'waterfox/build-rust-ppc64le.patch')
-rw-r--r--waterfox/build-rust-ppc64le.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/waterfox/build-rust-ppc64le.patch b/waterfox/build-rust-ppc64le.patch
new file mode 100644
index 0000000..2474c35
--- /dev/null
+++ b/waterfox/build-rust-ppc64le.patch
@@ -0,0 +1,25 @@
+diff -up firefox-55.0/build/moz.configure/rust.configure.rust-ppc64le firefox-55.0/build/moz.configure/rust.configure
+--- firefox-55.0/build/moz.configure/rust.configure.rust-ppc64le 2017-07-31 18:20:49.000000000 +0200
++++ firefox-55.0/build/moz.configure/rust.configure 2017-08-02 10:19:03.254220003 +0200
+@@ -151,6 +151,9 @@ def rust_triple_alias(host_or_target):
+ ('sparc64', 'Linux'): 'sparc64-unknown-linux-gnu',
+ ('x86', 'Linux'): 'i686-unknown-linux-gnu',
+ ('x86_64', 'Linux'): 'x86_64-unknown-linux-gnu',
++ ('ppc64le', 'Linux'): 'powerpc64le-unknown-linux-gnu',
++ ('ppc64', 'Linux'): 'powerpc64-unknown-linux-gnu',
++ ('s390x', 'Linux'): 's390x-unknown-linux-gnu',
+ # OS X
+ ('x86', 'OSX'): 'i686-apple-darwin',
+ ('x86_64', 'OSX'): 'x86_64-apple-darwin',
+@@ -174,8 +177,10 @@ def rust_triple_alias(host_or_target):
+ ('sparc64', 'SunOS'): 'sparcv9-sun-solaris',
+ }.get((host_or_target.cpu, os_or_kernel), None)
+
++ if (rustc_target == 'powerpc64-unknown-linux-gnu' and host_or_target.endianness == 'little'):
++ rustc_target = 'powerpc64le-unknown-linux-gnu'
+ if rustc_target is None:
+- die("Don't know how to translate {} for rustc".format(host_or_target.alias))
++ die("Don't know how to translate {} for rustc, cpu: {}, os: {}".format(target.alias, target.cpu, os_or_kernel))
+
+ # Check to see whether our rustc has a reasonably functional stdlib
+ # for our chosen target.
bgstack15