Debian Patches

Status for rustc/1.70.0+dfsg1-9

Patch Description Author Forwarded Bugs Origin Last update
u-reproducible-build.patch Don't split dwarf debug for a fully-reproducible build Ximin Luo <infinity0@debian.org> yes upstream 2022-07-14
u-ignore-endian-big-diff.patch u-ignore-endian-big-diff

===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> yes upstream 2022-07-14
u-fix-get-toml-when-test.patch Fix get_toml() when cfg(test) When cfg(test), Config::parse doesn't parse a config.toml but uses default
values, failing when the initial rustc is needed. This is a workaround before
upstream issue gets solved.
yes upstream 2023-03-29
u-disable-fp-precision-test-on-i386.patch [PATCH] core library: Disable fpmath tests for i386 ...
This patch disables the floating-point epsilon test for i386 since
x87 registers are too imprecise and can't produce the expected
results.
liushuyu <liushuyu011@gmail.com> yes 2023-07-25
u-riscv-disable-unpacked-split-debuginfo.patch explicitly disable split unpacked debuginfo for now on riscv64, it's broken and we don't want cargo to auto-enable it..
https://github.com/llvm/llvm-project/issues/56642
https://github.com/rust-lang/rust/issues/110224Z

diff --git a/compiler/rustc_target/src/spec/riscv64gc_unknown_freebsd.rs b/compiler/rustc_target/src/spec/riscv64gc_unknown_freebsd.rs
index 8281bac10f..ad1fc624ad 100644
no
u-profiler.patch [PATCH] Allow using external builds of the compiler-rt profile lib
This changes the bootstrap config `target.*.profiler` from a plain bool
to also allow a string, which will be used as a path to the pre-built
profiling runtime for that target. Then `profiler_builtins/build.rs`
reads that in a `LLVM_PROFILER_RT_LIB` environment variable.
Josh Stone <jistone@redhat.com> no 2023-07-25
u-ignore-ppc-hangs.patch u-ignore-ppc-hangs Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> yes upstream 2022-07-14
u-rustc-llvm-cross-flags.patch u-rustc-llvm-cross-flags
===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2022-07-14
u-reproducible-dl-stage0.patch u-reproducible-dl-stage0
===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2022-07-14
d-fix-rustix-outline.patch Always enable cc even if the feature is not enabled.

Some Debian architectures need outline asm, and Debian does not ship pre-built
outline asm.
no
d-disable-download-tests.patch =================================================================== no
d-0000-ignore-removed-submodules.patch d-0000-ignore-removed-submodules Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2021-10-02
d-0001-pkg-config-no-special-snowflake.patch d-0001-pkg-config-no-special-snowflake Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2021-10-02
d-0002-mdbook-strip-embedded-libs.patch d-0002-mdbook-strip-embedded-libs Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2021-10-02
d-0003-cc-psm-rebuild-wasm32.patch d-0003-cc-psm-rebuild-wasm32 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2021-10-02
d-0004-clippy-feature-sync.patch d-0004-clippy-feature-sync
enable features needed by rustfmt to make build system happy and speedup build.
this is what rustc_workspace_hack does in the upstream build.
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2021-10-02
d-0005-no-jemalloc.patch d-0005-no-jemalloc Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2021-10-02
d-bootstrap-rustflags.patch d-bootstrap-rustflags
===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2022-07-14
d-remove-arm-privacy-breaches.patch d-remove-arm-privacy-breaches
===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2022-07-14
d-bootstrap-install-symlinks.patch Install symlinks as-is, don't dereference them
Our patch to mdbook installs symlinks to systems versions of font-awesome,
highlight, etc. Upstream mdbook otherwise doesn't use symlinks, so this
doesn't affect anything else that's already generated.
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2022-07-14
d-bootstrap-disable-git.patch Don't check for cargo-vendor when building from (Debian's) git Matthijs van Otterdijk <matthijs@wirevirt.net> not-needed 2022-07-14
d-bootstrap-read-beta-version-from-file.patch d-bootstrap-read-beta-version-from-file
===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2022-07-14
d-bootstrap-no-assume-tools.patch d-bootstrap-no-assume-tools
===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2022-07-14
d-bootstrap-cargo-doc-paths.patch Fix links to cargo-doc
We package cargo docs in a slightly different location; also tweak linkchecker
to not fail these links.
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2022-07-14
d-bootstrap-use-local-css.patch d-bootstrap-use-local-css
===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2022-07-14
d-bootstrap-old-cargo-compat.patch Backwards-compat for cargo 0.47
The flag being removed here was added in
https://github.com/rust-lang/cargo/pull/9404 released in cargo 0.54

This works around a feature introduced in this PR
https://github.com/rust-lang/cargo/pull/8640 released in cargo 0.53

Therefore it is not needed for Debian's current cargo 0.47.

We can drop this patch when updating to cargo 0.54 and later.
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2022-07-14
d-bootstrap-custom-debuginfo-path.patch d-bootstrap-custom-debuginfo-path
===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2022-07-14
d-bootstrap-permit-symlink-in-docs.patch partial revert of b9eedea4b0368fd1f00f204db75109ff444fab5b upstream no
d-test-ignore-avx-44056.patch d-test-ignore-avx-44056

===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> yes upstream 2022-07-14
d-bootstrap-cargo-check-cfg.patch our cargo doesn't know about the 'output' part yet, this patch can be dropped
with cargo >= 0.64

diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs
index 0ab4824ac0a..76c476f449b 100644
no
d-armel-fix-lldb.patch run panics if lldb is not installed and no output is produced..

diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index c0fa8c9acb..2b5559efc7 100644
no
d-rust-gdb-paths Hardcode GDB python module directory

Debian package installs python modules into a fixed directory, so
just hardcode path in wrapper script.
Angus Lees <gus@debian.org> not-needed 2022-07-14
d-rust-lldb-paths Hardcode LLDB python module directory

Debian package installs python modules into a fixed directory, so
just hardcode path in wrapper script.
Angus Lees <gus@debian.org> not-needed 2022-07-14
d-rustc-add-soname.patch Set DT_SONAME when building dylibs

In Rust, library filenames include a version-specific hash to help
the run-time linker find the correct version. Unlike in C/C++, the
compiler looks for all libraries matching a glob that ignores the
hash and reads embedded metadata to work out versions, etc.

The upshot is that there is no need for the usual "libfoo.so ->
libfoo-1.2.3.so" symlink common with C/C++ when building with Rust,
and no need to communicate an alternate filename to use at run-time
vs compile time. If linking to a Rust dylib from C/C++ however, a
"libfoo.so -> libfoo-$hash.so" symlink may well be useful and in
this case DT_SONAME=libfoo-$hash.so would be required. More
mundanely, various tools (eg: dpkg-shlibdeps) complain if they don't
find DT_SONAME on shared libraries in public directories.

This patch passes -Wl,-soname=$outfile when building dylibs (and
using a GNU linker).
Angus Lees <gus@debian.org> no 2022-07-14
d-rustc-fix-mips64el-bootstrap.patch d-rustc-fix-mips64el-bootstrap

===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> yes upstream 2022-07-14
d-rustc-windows-ssp.patch d-rustc-windows-ssp Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> yes upstream 2022-07-14
d-rustc-i686-baseline.patch d-rustc-i686-baseline
===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2022-07-14
d-rustdoc-disable-embedded-fonts.patch d-rustdoc-disable-embedded-fonts
===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2022-07-14
ubuntu-disable-ppc64el-asm-tests.patch no
ubuntu-ignore-arm-doctest.patch Disable the doctests for the instruction_set errors The fix is as described in the upstream issue. Simon Chopin <simon.chopin@canonical.com> yes upstream 2022-02-23

All known versions for source package 'rustc'

Links