diff options
author | Martin Rodriguez Reboredo | 2023-06-03 10:29:15 -0300 |
---|---|---|
committer | Caleb Maclennan | 2023-06-13 08:03:35 +0300 |
commit | ddc12c2922789d0e2e1d5435f8ecb16a9902aefd (patch) | |
tree | 5a4e4e88be0733eea49a5a3124833f783834ef76 /system-rust-utils.patch | |
parent | 3aa560b4ef5d5edadaebc5ad4d5b1a454ddaf15a (diff) | |
download | aur-ddc12c2922789d0e2e1d5435f8ecb16a9902aefd.tar.gz |
uppkg: brave 1.52.117
upstream release
Signed-off-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Signed-off-by: Caleb Maclennan <caleb@alerque.com>
Diffstat (limited to 'system-rust-utils.patch')
-rw-r--r-- | system-rust-utils.patch | 72 |
1 files changed, 18 insertions, 54 deletions
diff --git a/system-rust-utils.patch b/system-rust-utils.patch index 5c1fbc9f9d7d..79f2680d11c9 100644 --- a/system-rust-utils.patch +++ b/system-rust-utils.patch @@ -1,37 +1,22 @@ -diff --git a/build/rust/run_cxxbridge.py b/build/rust/run_cxxbridge.py -index 5aa1f56ec2..370c181a47 100644 ---- a/build/rust/run_cxxbridge.py -+++ b/build/rust/run_cxxbridge.py -@@ -22,7 +22,8 @@ import subprocess - - def run(cargo_path, args, output, is_header): - cargo_home = os.path.join(cargo_path, RUST_DEPS_PACKAGE_VERSION) -- exe = os.path.abspath(os.path.join(cargo_home, 'bin', 'cxxbridge')) -+ # exe = os.path.abspath(os.path.join(cargo_home, 'bin', 'cxxbridge')) -+ exe = os.path.abspath(os.path.join('/usr', 'bin', 'cxxbridge')) - - if sys.platform == "win32": - exe = exe + '.exe' diff --git a/script/cargo.py b/script/cargo.py -index d7d872ef5b..6c550f56fc 100755 +index 0766c5f118..40b88e9a5c 100755 --- a/script/cargo.py +++ b/script/cargo.py -@@ -23,7 +23,8 @@ def run_cargo(command, args): - env['RUSTUP_HOME'] = rustup_home - env['CARGO_HOME'] = rustup_home +@@ -21,7 +21,7 @@ def run_cargo(command, args): + # Enable experimental features in non-nightly builds + env['RUSTC_BOOTSTRAP'] = '1' + +- rustup_bin_dir = os.path.abspath(os.path.join(rustup_home, 'bin')) ++ rustup_bin_dir = os.path.abspath(os.path.join('/usr', 'bin')) + cargo_exe = args.exe -- rustup_bin = os.path.abspath(os.path.join(rustup_home, 'bin')) -+ # rustup_bin = os.path.abspath(os.path.join(rustup_home, 'bin')) -+ rustup_bin = os.path.abspath(os.path.join('/usr', 'bin')) - cargo_exe = os.path.join(rustup_bin, 'cargo') - if sys.platform == "win32": - cargo_exe += ".exe" + env['PATH'] = rustup_bin_dir + os.pathsep + env['PATH'] diff --git a/script/cargo_cbindgen.py b/script/cargo_cbindgen.py -index 97a69b6625..fdd05a43a5 100755 +index db28fd013e..e2082e36fe 100755 --- a/script/cargo_cbindgen.py +++ b/script/cargo_cbindgen.py -@@ -22,7 +22,8 @@ def run(args): - cargo_home = os.path.join(args.cargo_path, RUST_DEPS_PACKAGE_VERSION) +@@ -20,7 +20,8 @@ def run(args): + cargo_home = args.cargo_home env["CARGO_HOME"] = cargo_home - rustup_bin = os.path.abspath(os.path.join(rustup_home, "bin")) @@ -40,38 +25,17 @@ index 97a69b6625..fdd05a43a5 100755 cbindgen_bin = os.path.join( rustup_bin, "cbindgen" if sys.platform != "win32" else "cbindgen.exe" ) -diff --git a/script/deps_config.py b/script/deps_config.py -index 999ce5f74c..e463b24ff9 100755 ---- a/script/deps_config.py -+++ b/script/deps_config.py -@@ -8,7 +8,7 @@ import os - # Version number and URL for pre-configured rust dependency package - # e.g. rust_deps_mac_0.1.0.gz - DEPS_PACKAGES_URL = "https://brave-build-deps-public.s3.brave.com" --RUST_DEPS_PACKAGE_VERSION = "1.1.0" -+RUST_DEPS_PACKAGE_VERSION = "" # "1.1.0" - MAC_TOOLCHAIN_ROOT = os.path.join(os.path.dirname(os.path.dirname( - os.path.dirname(__file__))), - 'build', 'mac_files') diff --git a/script/download_rust_deps.py b/script/download_rust_deps.py -index 920f5f837a..655fb832f2 100755 +index d1d4b70eb2..ce9e6e816c 100755 --- a/script/download_rust_deps.py +++ b/script/download_rust_deps.py -@@ -7,6 +7,7 @@ - - import argparse - import os -+import shutil - import subprocess - import sys - -@@ -207,7 +208,8 @@ def main(): - } - ] +@@ -191,7 +191,8 @@ def main(): + "features": "vendored-openssl", + }] for tool in tools: -- cargo_install(tool) +- cargo_install(tool, rustup_home) + if shutil.which(tool["name"]) is None: -+ cargo_install(tool) ++ cargo_install(tool, rustup_home) return 0 |