Debian Patches

Status for rustc/1.89.0+dfsg1-1~exp1

Patch Description Author Forwarded Bugs Origin Last update
cargo/c-2002_disable-net-tests.patch Disable network tests Ximin Luo <infinity0@debian.org> invalid 2024-06-13
cargo/c-2003-workaround-qemu-vfork-command-not-found.patch c-2003-workaround-qemu-vfork-command-not-found
===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2024-06-13
cargo/c-2200-workaround-x32-test.patch c-2200-workaround-x32-test Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> yes upstream 2024-06-13
cargo/c-disable-fs-specific-test.patch c-disable-fs-specific-test
===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2024-06-13
cargo/c-0003-tests-add-missing-cross-disabled-checks.patch [PATCH] tests: add missing cross disabled checks
cross_conmpile::alternate states it should only be used in test cases
after checking cross_compile::disabled(), which is missing here. these
tests fail despite setting CFG_DISABLE_CROSS_TESTS on i386, since both
the host and the alternate cross target would be i686 in that case.
=?utf-8?q?Fabian_Gr=C3=BCnbichler?= <debian@fabian.gruenbichler.email> no 2022-11-19
cargo/d-0012-cargo-always-return-dev-channel.patch d-0012-cargo-always-return-dev-channel Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2023-05-30
upstream/u-ignore-ppc-hangs.patch u-ignore-ppc-hangs Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> yes upstream 2022-07-14
upstream/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
upstream/u-hurd-tests.patch compiletest: add ignore-hurd support and annotate some tests
These tests hang or make the box OOM
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2024-06-13
upstream/d-ignore-test_arc_condvar_poison-ppc.patch d-ignore-test_arc_condvar_poison-ppc Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2024-06-13
upstream/d-disable-download-tests.patch d-disable-download-tests Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2024-06-13
prune/d-0000-ignore-removed-submodules.patch remove upstream parts that are not needed for the Debian build, inorder to both reduce the orig tarball and the vendored crates within. Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2021-10-02
prune/d-0001-pkg-config-no-special-snowflake.patch always enable cross compilation via pkgconf, and set the right binary name. Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2021-10-02
prune/d-0002-mdbook-strip-embedded-libs.patch Use https://github.com/infinity0/mdBook/tree/debian to help you rebasethe patch on top of a newer version. . Make sure the paths here match the ones
in debian/rust-doc.links
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2021-10-02
prune/d-0005-no-jemalloc.patch remove jemalloc-sys Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2021-10-02
prune/d-0006-no-mimalloc.patch remove mimalloc(-sys) Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2025-01-11
prune/d-0007-no-tzdb.patch remove jiff-tzdb(-platform)
on Debian, we can just use the tzdata information..
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2025-01-11
prune/d-0010-cargo-remove-vendored-c-crates.patch remove all vendoring features of crates normally shipping bundledC libs. that C code is stripped when repacking, so the features can't work
anyway.
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2024-05-06
prune/d-0011-cargo-remove-nghttp2.patch remove dependency on libnghttp2-sys so it can be pruned. Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2023-05-17
prune/d-0020-remove-windows-dependencies.patch d-0020-remove-windows-dependencies
use something like

find src compiler library -iname Cargo.toml -exec grep -H -n -e 'windows-sys' -e 'winapi' -e 'ntapi' -e 'wincon' -e 'winreg' -e 'windows' {} \;

to find and eliminate dependencies on windows-only crates when rebasing.

windows-bindgen and windows-metadata should not be removed, they are needed for
the build and don't pull in windows-sys and friends.


===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2024-05-06
prune/d-0021-vendor-remove-windows-dependencies.patch d-0021-vendor-remove-windows-dependencies
use something like

find vendor -iname Cargo.toml -exec grep -H -n -e 'schannel' -e 'windows-sys' -e 'winapi' -e 'ntapi' -e 'wincon' -e 'winreg' -e 'windows' -e 'winsplit' {} \;

to find dependencies on windows targets in vendored crates. you will likely
need to remove some hunks from this patch after pruning dependencies, since
hopefully a few of the crates patched during early rebasing are eliminated.

windows-bindgen and windows-metadata should not be removed, they are needed for
the build and don't pull in windows-sys and friends.
=?utf-8?q?Fabian_Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com> not-needed 2023-09-06
vendor/d-0003-cc-psm-rebuild-wasm32.patch d-0003-cc-psm-rebuild-wasm32 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2021-10-02
build/d-bootstrap-rustflags.patch d-bootstrap-rustflags

===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2022-07-14
build/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> not-needed 2022-07-14
build/d-bootstrap-disable-git.patch bootstrap: always use commit info file instead of checking .git Matthijs van Otterdijk <matthijs@wirevirt.net> not-needed 2022-07-14
build/d-bootstrap-no-assume-tools.patch set tools to those built in Debian
===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2022-07-14
build/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> not-needed 2022-07-14
build/d-bootstrap-use-local-css.patch d-bootstrap-use-local-css
===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2022-07-14
build/d-bootstrap-custom-debuginfo-path.patch d-bootstrap-custom-debuginfo-path
===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2022-07-14
build/d-bootstrap-permit-symlink-in-docs.patch partial revert of b9eedea4b0368fd1f00f204db75109ff444fab5b upstream Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2024-06-13
build/d-test-ignore-avx-44056.patch d-test-ignore-avx-44056

===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed upstream 2022-07-14
behaviour/d-rust-gdb-paths.patch 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
behaviour/d-rust-lldb-paths.patch 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
behaviour/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
behaviour/d-rustc-windows-ssp.patch d-rustc-windows-ssp Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> yes upstream 2022-07-14
behaviour/d-rustdoc-disable-embedded-fonts.patch removed some embedded fonts
===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2022-07-14
ubuntu/ubuntu-disable-ppc64el-asm-tests.patch ubuntu-disable-ppc64el-asm-tests Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 2024-06-13
ubuntu/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
vendor/onig_sys-use-system-lib.patch onig_sys: use system lib =?utf-8?q?Fabian_Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com> no 2024-07-31
vendor/libz-sys-allow-cross-building.patch libz-sys: allow cross-building =?utf-8?q?Fabian_Gr=C3=BCnbichler?= <debian@fabian.gruenbichler.email> no 2024-10-08
build/bootstrap-tests-disable-compiler-rt-optimizing.patch bootstrap tests: disable compiler-rt optimizing
it cannot work since there are no bundled LLVM (and thus no bundled
compiler-rt) sources available. during the regular build this is handled by our
config, but bootstrap tests don't use that..
=?utf-8?q?Fabian_Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com> no 2024-10-22
build/ignore-broken-debuginfo-tests.patch ignore broken debuginfo tests =?utf-8?q?Fabian_Gr=C3=BCnbichler?= <git@fabian.gruenbichler.email> invalid 2024-10-23
vendor/blake3-skip-embedded-C-code-use-pure-implementation.patch blake3: skip embedded C code, use pure implementation =?utf-8?q?Fabian_Gr=C3=BCnbichler?= <git@fabian.gruenbichler.email> not-needed 2024-11-30
build/bootstrap-don-t-attempt-to-download-rustc-in-tests.patch bootstrap: don't attempt to download rustc in tests
the tests use a default config, so we need to manually override this
option..
=?utf-8?q?Fabian_Gr=C3=BCnbichler?= <debian@fabian.gruenbichler.email> no 2025-01-11
upstream/fix-bootstrapping-on-x32.patch fix bootstrapping on x32 John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> yes 2025-07-22
vendor/cargo-do-not-force-liblzma-sys-static-linking.patch cargo: do not force liblzma-sys static linking =?utf-8?q?Fabian_Gr=C3=BCnbichler?= <git@fabian.gruenbichler.email> not-needed 2025-07-23
behaviour/ppc64-downgrade-baseline-to-Power4.patch ppc64: downgrade baseline to Power4+ =?utf-8?q?Fabian_Gr=C3=BCnbichler?= <git@fabian.gruenbichler.email> no 2025-08-04
build/bootstrap-ignore-x.py-shell-completion-diff.patch bootstrap: ignore x.py shell completion diff
this test is intended for development, we can ignore it for package builds.
=?utf-8?q?Fabian_Gr=C3=BCnbichler?= <git@fabian.gruenbichler.email> no 2025-09-03
build/bootstrap-disarm-llvm-config-test-that-requires-git.patch bootstrap: disarm tests that requires git context =?utf-8?q?Fabian_Gr=C3=BCnbichler?= <git@fabian.gruenbichler.email> no 2025-09-03
build/Revert-rustc_target-Add-target-features-for-LoongArch-v1..patch this requires LLVM 20.. =?utf-8?q?Fabian_Gr=C3=BCnbichler?= <git@fabian.gruenbichler.email> no 2025-09-20
build/Revert-Enable-f16-for-LoongArch-and-Mips.patch Disable `f16` for LoongArch and MIPS*
This effectively reverts commit 30703af6f34e96d3e51b665aeb56f44749d11265 and
commit cf1242c461e035fd2cfb99f620e810015744cac4.

Can be dropped once rustc switches to LLVM20+
=?utf-8?q?Fabian_Gr=C3=BCnbichler?= <git@fabian.gruenbichler.email> no 2025-09-20
build/disable-bootstrap-tests-that-don-t-work-from-tarball-sour.patch disable bootstrap tests that don't work from tarball sources =?utf-8?q?Fabian_Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com> not-needed 2025-09-25
upstream/Fix-normalization-in-linker-warning.patch required to avoid picking up our build root and breaking theoutput matching as a result bjorn3 <17426603+bjorn3@users.noreply.github.com> not-needed 2025-06-24
upstream/Don-t-always-panic-if-WASI_SDK_PATH-is-not-set-when-detec.patch Don't always panic if WASI_SDK_PATH is not set when detecting compilers

They are not always needed when building std, as is the case when
packaging on Fedora. Panic if building from CI, but warn otherwise.

(cherry picked from commit 9bdd3b0ee6a6fd5914fea0f56f3b754410733e53)
Paul Murphy <paumurph@redhat.com> not-needed 2025-07-10
upstream/Don-t-include-current-rustc-version-string-in-feature-rem.patch Don't include current rustc version string in feature removed help
The version string is difficult to properly normalize out, and removing
it isn't a huge deal (the user can query version info easily through
`rustc --version` or `cargo --version`).

The normalization options were all non-ideal:

- Per-test version string normalization is nasty to maintain, and we
need to maintain `n` copies of it.
- Centralized compiletest normalization (with a directive opt-out) is
also not ideal, because `cfg(version(..))` tests can't have those
accidentally normalized out (and you'd have to remember to opt-out).

(cherry picked from commit db11e747230caa23aad3f159e42dc3b47baf7557)

Conflicts:
tests/ui/unsized-locals/yote.stderr

placeholder got replaced with 1.89.0
Jieyou Xu <jieyouxu@outlook.com> not-needed 2025-06-24

All known versions for source package 'rustc'

Links