Debian Patches

Status for rustc/1.82.0+dfsg1-2

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
upstream/u-hurd-amd64.patch add hurd-amd64 target
https://github.com/rust-lang/rust/pull/128345

commit a90b3ff9d0c2ac2edb48a90b78c5f587841472ad

added support for GNU/Hurd on x86_64
Samuel Thibault <samuel.thibault@ens-lyon.org> no 2024-07-26
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-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' {} \;

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/u-hurd-gix-index-2.patch u-hurd-gix-index-2
===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> no 2024-06-19
vendor/u-hurd-rustix.patch Fix hurd build (#1064) Samuel Thibault <samuel.thibault@ens-lyon.org> yes 2024-05-28
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
vendor/u-libc-hurd-amd64.patch u-libc-hurd-amd64
https://github.com/rust-lang/libc/pull/3786

commit 3ff489613e871677693b39c93ddc208c2ec584fc

hurd: Add missing struct __timeval for 64bit support

This is the same as linux_like/linux/gnu's __timeval for ut_tv for 64bit
architectures.
Samuel Thibault <samuel.thibault@ens-lyon.org> no 2024-07-26
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-rustc-i686-baseline.patch Change i686 to match Debian i386 baseline
see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=973414 , might need to be
adapted to reduce the baseline again


===================================================================
Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> not-needed 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/disable-broken-i386-tests.patch disable broken i386 tests =?utf-8?q?Fabian_Gr=C3=BCnbichler?= <git@fabian.gruenbichler.email> no 2024-10-23
build/Make-option-like-enum.rs-UB-free-and-portable.patch Make option-like-enum.rs UB-free and portable
(cherry picked from commit 1a2ec2634e378c8e1b8c531f29c4f983b87a5764)
Ben Kimock <kimockb@gmail.com> yes 2024-08-27
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

All known versions for source package 'rustc'

Links