Skip to content

Commit

Permalink
rust183: attempt to restore cross-buildability.
Browse files Browse the repository at this point in the history
Done by undoing temporary fix for
rust-lang/rust#125578.

Not yet fully verified, but this removal was there
before and got lost when comments were added
between versions.
  • Loading branch information
he32 committed Dec 16, 2024
1 parent d1c843a commit 595846c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rust183/distinfo
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ SHA1 (patch-library_backtrace_src_symbolize_gimli.rs) = 9d5ef634c5a454e474ea5fee
SHA1 (patch-library_backtrace_src_symbolize_gimli_elf.rs) = 3b84a462c6bc8245d579452e4c37e3ce13314952
SHA1 (patch-library_std_src_sys_pal_unix_mod.rs) = bfc59ae4568547e3ed71c8b31ba5b5b5363d5d40
SHA1 (patch-library_stdarch_crates_std__detect_tests_cpu-detection.rs) = 97c3ad8ea39c25d41256fcad80fae1e6e4970124
SHA1 (patch-src_bootstrap_bootstrap.py) = 6f1d3068da49f19c3e092230ba1c7d99af628d3a
SHA1 (patch-src_bootstrap_bootstrap.py) = 150a5a7e057de9edbf96f3c387207fda8ba750f9
SHA1 (patch-src_bootstrap_src_core_build__steps_compile.rs) = e928203ed4734c93cc33c5a3f7879cf18dcecc83
SHA1 (patch-src_bootstrap_src_core_build__steps_install.rs) = cc6558df42c9c9ac28fdb2ff180bdaa7f22ce816
SHA1 (patch-src_bootstrap_src_core_builder.rs) = 6d76366201097adc56e494fa05ebbc1696bb2d98
Expand Down
25 changes: 22 additions & 3 deletions rust183/patches/patch-src_bootstrap_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

--- src/bootstrap/bootstrap.py.orig 2023-07-12 03:32:40.000000000 +0000
+++ src/bootstrap/bootstrap.py
@@ -270,6 +270,11 @@ def default_build_triple(verbose):
@@ -286,6 +286,11 @@ def default_build_triple(verbose):
'GNU': 'unknown-hurd',
}

Expand All @@ -18,7 +18,7 @@
# Consider the direct transformation first and then the special cases
if kernel in kerneltype_mapper:
kernel = kerneltype_mapper[kernel]
@@ -373,10 +378,16 @@ def default_build_triple(verbose):
@@ -389,10 +394,16 @@ def default_build_triple(verbose):
kernel = 'linux-androideabi'
else:
kernel += 'eabihf'
Expand All @@ -36,7 +36,26 @@
else:
kernel += 'eabihf'
elif cputype == 'mips':
@@ -734,6 +745,7 @@ class RustBuild(object):
@@ -623,12 +634,12 @@ class RustBuild(object):
print('Choosing a pool size of', pool_size, 'for the unpacking of the tarballs')
p = Pool(pool_size)
try:
- # FIXME: A cheap workaround for https://github.com/rust-lang/rust/issues/125578,
- # remove this once the issue is closed.
- bootstrap_build_artifacts = os.path.join(self.bootstrap_out(), "debug")
- if os.path.exists(bootstrap_build_artifacts):
- shutil.rmtree(bootstrap_build_artifacts)
-
+# # FIXME: A cheap workaround for https://github.com/rust-lang/rust/issues/125578,
+# # remove this once the issue is closed.
+# bootstrap_build_artifacts = os.path.join(self.bootstrap_out(), "debug")
+# if os.path.exists(bootstrap_build_artifacts):
+# shutil.rmtree(bootstrap_build_artifacts)
+#
p.map(unpack_component, tarballs_download_info)
finally:
p.close()
@@ -758,6 +769,7 @@ class RustBuild(object):

patchelf = "{}/bin/patchelf".format(nix_deps_dir)
rpath_entries = [
Expand Down

0 comments on commit 595846c

Please sign in to comment.