From dc643d4b030243790ccb704c733ca2130279cbaf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 05:57:28 +0200 Subject: Adding debian version 1.72.1+dfsg1-1. Signed-off-by: Daniel Baumann --- debian/patches/c-update-libgit2.patch | 6 +- .../patches/d-0000-ignore-removed-submodules.patch | 51 ++-- .../d-0001-pkg-config-no-special-snowflake.patch | 30 +- .../d-0002-mdbook-strip-embedded-libs.patch | 38 ++- debian/patches/d-0005-no-jemalloc.patch | 4 +- .../d-0010-cargo-remove-vendored-c-crates.patch | 8 +- debian/patches/d-0011-cargo-remove-nghttp2.patch | 2 +- .../d-0012-cargo-always-return-dev-channel.patch | 4 +- .../d-0020-remove-windows-dependencies.patch | 76 +++--- ...d-0021-vendor-remove-windows-dependencies.patch | 304 ++++++++++++--------- debian/patches/d-armel-fix-lldb.patch | 2 +- debian/patches/d-bootstrap-cargo-check-cfg.patch | 2 +- debian/patches/d-bootstrap-cargo-doc-paths.patch | 6 +- .../d-bootstrap-custom-debuginfo-path.patch | 2 +- debian/patches/d-bootstrap-install-symlinks.patch | 30 +- debian/patches/d-bootstrap-no-assume-tools.patch | 2 +- debian/patches/d-bootstrap-old-cargo-compat.patch | 45 --- debian/patches/d-bootstrap-rustflags.patch | 2 +- debian/patches/d-bootstrap-use-local-css.patch | 4 +- debian/patches/d-disable-download-tests.patch | 4 +- debian/patches/d-fix-rustix-outline.patch | 86 +++++- debian/patches/d-remove-arm-privacy-breaches.patch | 195 ------------- debian/patches/d-rustc-add-soname.patch | 2 +- .../patches/d-rustc-fix-mips64el-bootstrap.patch | 62 ----- .../patches/d-rustdoc-disable-embedded-fonts.patch | 2 +- debian/patches/series | 3 - .../u-disable-fp-precision-test-on-i386.patch | 2 +- debian/patches/u-fix-get-toml-when-test.patch | 2 +- debian/patches/u-profiler.patch | 42 +-- .../patches/ubuntu-disable-ppc64el-asm-tests.patch | 2 +- 30 files changed, 416 insertions(+), 604 deletions(-) delete mode 100644 debian/patches/d-bootstrap-old-cargo-compat.patch delete mode 100644 debian/patches/d-remove-arm-privacy-breaches.patch delete mode 100644 debian/patches/d-rustc-fix-mips64el-bootstrap.patch (limited to 'debian/patches') diff --git a/debian/patches/c-update-libgit2.patch b/debian/patches/c-update-libgit2.patch index 8fe7c1ca9..192571e46 100644 --- a/debian/patches/c-update-libgit2.patch +++ b/debian/patches/c-update-libgit2.patch @@ -10,10 +10,10 @@ Index: rust/src/tools/cargo/Cargo.toml -git2-curl = "0.18.0" +git2 = "0.18" +git2-curl = "0.19.0" - gix = { version = "0.44.1", default-features = false, features = ["blocking-http-transport-curl", "progress-tree"] } - gix-features-for-configuration-only = { version = "0.29.0", package = "gix-features", features = [ "parallel" ] } + gix = { version = "0.45.1", default-features = false, features = ["blocking-http-transport-curl", "progress-tree"] } + gix-features-for-configuration-only = { version = "0.30.0", package = "gix-features", features = [ "parallel" ] } glob = "0.3.0" -@@ -53,7 +53,7 @@ jobserver = "0.1.26" +@@ -52,7 +52,7 @@ jobserver = "0.1.26" lazy_static = "1.3.0" lazycell = "1.2.0" libc = "0.2.144" diff --git a/debian/patches/d-0000-ignore-removed-submodules.patch b/debian/patches/d-0000-ignore-removed-submodules.patch index e90237fa8..1cea0a8bf 100644 --- a/debian/patches/d-0000-ignore-removed-submodules.patch +++ b/debian/patches/d-0000-ignore-removed-submodules.patch @@ -3,18 +3,18 @@ Date: Sat, 2 Oct 2021 01:07:59 +0100 Subject: d-0000-ignore-removed-submodules --- - Cargo.toml | 11 +++----- - src/bootstrap/bootstrap.py | 4 --- + Cargo.toml | 7 ----- + src/bootstrap/bootstrap.py | 6 +---- src/bootstrap/builder.rs | 54 +++++++++----------------------------- src/bootstrap/test.rs | 12 +-------- src/tools/rust-analyzer/Cargo.toml | 11 +++++++- - 5 files changed, 28 insertions(+), 64 deletions(-) + 5 files changed, 25 insertions(+), 65 deletions(-) diff --git a/Cargo.toml b/Cargo.toml -index 8eb378a..70487ec 100644 +index 20b1c65..16d4ebe 100644 --- a/Cargo.toml +++ b/Cargo.toml -@@ -18,22 +18,15 @@ members = [ +@@ -20,22 +20,15 @@ members = [ "src/tools/tidy", "src/tools/tier-check", "src/tools/build-manifest", @@ -38,13 +38,13 @@ index 8eb378a..70487ec 100644 "src/tools/lld-wrapper", "src/tools/collect-license-metadata", diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py -index 58d1926..527282d 100644 +index 149350e..2813c89 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py -@@ -899,10 +899,6 @@ class RustBuild(object): +@@ -946,10 +946,6 @@ class RustBuild(object): args = [self.cargo(), "build", "--manifest-path", os.path.join(self.rust_root, "src/bootstrap/Cargo.toml")] - args.extend("--verbose" for _ in range(verbose_count)) + args.extend("--verbose" for _ in range(self.verbose)) - if self.use_locked_deps: - args.append("--locked") - if self.use_vendored_sources: @@ -53,10 +53,10 @@ index 58d1926..527282d 100644 args.append("--features") args.append("build-metrics") diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs -index 2fa4455..3f3e5ec 100644 +index 05b66f9..ff1f0eb 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs -@@ -492,20 +492,20 @@ impl<'a> ShouldRun<'a> { +@@ -459,20 +459,20 @@ impl<'a> ShouldRun<'a> { static SUBMODULES_PATHS: OnceCell> = OnceCell::new(); let init_submodules_paths = |src: &PathBuf| { @@ -89,7 +89,7 @@ index 2fa4455..3f3e5ec 100644 submodules_paths }; -@@ -672,25 +672,14 @@ impl<'a> Builder<'a> { +@@ -646,25 +646,14 @@ impl<'a> Builder<'a> { tool::Linkchecker, tool::CargoTest, tool::Compiletest, @@ -115,7 +115,7 @@ index 2fa4455..3f3e5ec 100644 ), Kind::Check | Kind::Clippy | Kind::Fix => describe!( check::Std, -@@ -698,11 +687,6 @@ impl<'a> Builder<'a> { +@@ -672,12 +661,7 @@ impl<'a> Builder<'a> { check::Rustdoc, check::CodegenBackend, check::Clippy, @@ -123,11 +123,12 @@ index 2fa4455..3f3e5ec 100644 - check::CargoMiri, - check::MiroptTestTools, - check::Rls, -- check::RustAnalyzer, check::Rustfmt, +- check::RustAnalyzer, check::Bootstrap ), -@@ -730,7 +714,6 @@ impl<'a> Builder<'a> { + Kind::Test => describe!( +@@ -706,7 +690,6 @@ impl<'a> Builder<'a> { test::TierCheck, test::Cargotest, test::Cargo, @@ -135,7 +136,7 @@ index 2fa4455..3f3e5ec 100644 test::ErrorIndex, test::Distcheck, test::RunMakeFullDeps, -@@ -746,7 +729,6 @@ impl<'a> Builder<'a> { +@@ -722,7 +705,6 @@ impl<'a> Builder<'a> { test::EmbeddedBook, test::EditionGuide, test::Rustfmt, @@ -143,7 +144,7 @@ index 2fa4455..3f3e5ec 100644 test::Clippy, test::RustDemangler, test::CompiletestTest, -@@ -783,7 +765,6 @@ impl<'a> Builder<'a> { +@@ -759,7 +741,6 @@ impl<'a> Builder<'a> { doc::CargoBook, doc::Clippy, doc::ClippyBook, @@ -151,7 +152,7 @@ index 2fa4455..3f3e5ec 100644 doc::EmbeddedBook, doc::EditionGuide, doc::StyleGuide, -@@ -801,12 +782,9 @@ impl<'a> Builder<'a> { +@@ -777,12 +758,9 @@ impl<'a> Builder<'a> { dist::Analysis, dist::Src, dist::Cargo, @@ -164,7 +165,7 @@ index 2fa4455..3f3e5ec 100644 dist::LlvmTools, dist::RustDev, dist::Bootstrap, -@@ -823,11 +801,9 @@ impl<'a> Builder<'a> { +@@ -799,11 +777,9 @@ impl<'a> Builder<'a> { install::Docs, install::Std, install::Cargo, @@ -176,7 +177,7 @@ index 2fa4455..3f3e5ec 100644 install::LlvmTools, install::Src, install::Rustc -@@ -837,7 +813,6 @@ impl<'a> Builder<'a> { +@@ -813,7 +789,6 @@ impl<'a> Builder<'a> { run::BuildManifest, run::BumpStage0, run::ReplaceVersionPlaceholder, @@ -184,7 +185,7 @@ index 2fa4455..3f3e5ec 100644 run::CollectLicenseMetadata, run::GenerateCopyright, run::GenerateWindowsSys, -@@ -1979,10 +1954,7 @@ impl<'a> Builder<'a> { +@@ -1965,10 +1940,7 @@ impl<'a> Builder<'a> { } } @@ -197,10 +198,10 @@ index 2fa4455..3f3e5ec 100644 } diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs -index 44cd84b..9b37d5d 100644 +index eed7a58..c3bf972 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs -@@ -2004,17 +2004,7 @@ impl Step for RustcGuide { +@@ -2129,17 +2129,7 @@ impl Step for RustcGuide { } fn run(self, builder: &Builder<'_>) { @@ -209,7 +210,7 @@ index 44cd84b..9b37d5d 100644 - - let src = builder.src.join(relative_path); - let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook); -- let toolstate = if try_run(builder, rustbook_cmd.arg("linkcheck").arg(&src)) { +- let toolstate = if try_run(builder, rustbook_cmd.arg("linkcheck").arg(&src)).is_ok() { - ToolState::TestPass - } else { - ToolState::TestFail @@ -220,7 +221,7 @@ index 44cd84b..9b37d5d 100644 } diff --git a/src/tools/rust-analyzer/Cargo.toml b/src/tools/rust-analyzer/Cargo.toml -index 333f03c..2a0faa2 100644 +index 3050cf7..174e1f0 100644 --- a/src/tools/rust-analyzer/Cargo.toml +++ b/src/tools/rust-analyzer/Cargo.toml @@ -1,5 +1,14 @@ @@ -237,5 +238,5 @@ index 333f03c..2a0faa2 100644 + "crates/proc-macro-api", +] exclude = ["crates/proc-macro-test/imp"] + resolver = "2" - [workspace.package] diff --git a/debian/patches/d-0001-pkg-config-no-special-snowflake.patch b/debian/patches/d-0001-pkg-config-no-special-snowflake.patch index 9e49580b1..4cdf7fbbb 100644 --- a/debian/patches/d-0001-pkg-config-no-special-snowflake.patch +++ b/debian/patches/d-0001-pkg-config-no-special-snowflake.patch @@ -8,7 +8,7 @@ Subject: d-0001-pkg-config-no-special-snowflake 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/vendor/pkg-config/src/lib.rs b/vendor/pkg-config/src/lib.rs -index e9395be..2f6819c 100644 +index 3653032..7b82fa5 100644 --- a/vendor/pkg-config/src/lib.rs +++ b/vendor/pkg-config/src/lib.rs @@ -117,11 +117,8 @@ pub enum Error { @@ -49,7 +49,7 @@ index e9395be..2f6819c 100644 } } } -@@ -418,6 +407,8 @@ impl Config { +@@ -420,6 +409,8 @@ impl Config { if host == target { return true; } @@ -59,23 +59,23 @@ index e9395be..2f6819c 100644 // pkg-config may not be aware of cross-compilation, and require // a wrapper script that sets up platform-specific prefixes. @@ -477,7 +468,11 @@ impl Config { - fn command(&self, name: &str, args: &[&str]) -> Command { - let exe = self - .targetted_env_var("PKG_CONFIG") -- .unwrap_or_else(|| OsString::from("pkg-config")); -+ .unwrap_or_else(|| { + } + + fn run(&self, name: &str, args: &[&str]) -> Result, Error> { +- let pkg_config_exe = self.targetted_env_var("PKG_CONFIG"); ++ let pkg_config_exe = self.targetted_env_var("PKG_CONFIG") ++ .or_else(|| { + self.env_var_os("DEB_HOST_GNU_TYPE") -+ .map(|mut t| { t.push(OsString::from("-pkg-config")); t }) -+ .unwrap_or_else(|| OsString::from("pkg-config")) ++ .map(|mut t| { t.push(OsString::from("-pkgconf")); t }) + }); - let mut cmd = Command::new(exe); - if self.is_static(name) { - cmd.arg("--static"); + let fallback_exe = if pkg_config_exe.is_none() { + Some(OsString::from("pkgconf")) + } else { diff --git a/vendor/pkg-config/tests/test.rs b/vendor/pkg-config/tests/test.rs -index 4e04ac0..f884e46 100644 +index 0f37c72..f70e8b7 100644 --- a/vendor/pkg-config/tests/test.rs +++ b/vendor/pkg-config/tests/test.rs -@@ -34,7 +34,6 @@ fn find(name: &str) -> Result { +@@ -31,7 +31,6 @@ fn find(name: &str) -> Result { pkg_config::probe_library(name) } @@ -83,7 +83,7 @@ index 4e04ac0..f884e46 100644 fn cross_disabled() { let _g = LOCK.lock(); reset(); -@@ -46,7 +45,6 @@ fn cross_disabled() { +@@ -43,7 +42,6 @@ fn cross_disabled() { } } diff --git a/debian/patches/d-0002-mdbook-strip-embedded-libs.patch b/debian/patches/d-0002-mdbook-strip-embedded-libs.patch index 568bf230f..c6acfd458 100644 --- a/debian/patches/d-0002-mdbook-strip-embedded-libs.patch +++ b/debian/patches/d-0002-mdbook-strip-embedded-libs.patch @@ -6,12 +6,12 @@ Comment: Use https://github.com/infinity0/mdBook/tree/debian to help you rebase --- src/tools/linkchecker/main.rs | 28 +++++- vendor/mdbook/src/book/init.rs | 19 ---- - .../src/renderer/html_handlebars/hbs_renderer.rs | 110 ++++----------------- + .../src/renderer/html_handlebars/hbs_renderer.rs | 104 ++++----------------- .../mdbook/src/renderer/html_handlebars/search.rs | 2 - - vendor/mdbook/src/theme/index.hbs | 99 +------------------ - vendor/mdbook/src/theme/mod.rs | 27 ----- + vendor/mdbook/src/theme/index.hbs | 99 +------------------- + vendor/mdbook/src/theme/mod.rs | 27 ------ vendor/mdbook/src/theme/searcher/mod.rs | 2 - - 7 files changed, 47 insertions(+), 240 deletions(-) + 7 files changed, 47 insertions(+), 234 deletions(-) diff --git a/src/tools/linkchecker/main.rs b/src/tools/linkchecker/main.rs index c8a3700..4095c03 100644 @@ -67,7 +67,7 @@ index c8a3700..4095c03 100644 report.links_ignored_exception += 1; } else { diff --git a/vendor/mdbook/src/book/init.rs b/vendor/mdbook/src/book/init.rs -index ebcdd93..41dab42 100644 +index faca1d0..c1a82a3 100644 --- a/vendor/mdbook/src/book/init.rs +++ b/vendor/mdbook/src/book/init.rs @@ -153,25 +153,6 @@ impl BookBuilder { @@ -97,10 +97,10 @@ index ebcdd93..41dab42 100644 } diff --git a/vendor/mdbook/src/renderer/html_handlebars/hbs_renderer.rs b/vendor/mdbook/src/renderer/html_handlebars/hbs_renderer.rs -index e170e2f..caa2eff 100644 +index 709aa06..17ff63c 100644 --- a/vendor/mdbook/src/renderer/html_handlebars/hbs_renderer.rs +++ b/vendor/mdbook/src/renderer/html_handlebars/hbs_renderer.rs -@@ -3,13 +3,14 @@ use crate::config::{BookConfig, Config, HtmlConfig, Playground, RustEdition}; +@@ -3,13 +3,14 @@ use crate::config::{BookConfig, Code, Config, HtmlConfig, Playground, RustEditio use crate::errors::*; use crate::renderer::html_handlebars::helpers; use crate::renderer::{RenderContext, Renderer}; @@ -116,7 +116,7 @@ index e170e2f..caa2eff 100644 use std::path::{Path, PathBuf}; use crate::utils::fs::get_404_output_file; -@@ -235,105 +236,28 @@ impl HtmlHandlebars { +@@ -250,99 +251,28 @@ impl HtmlHandlebars { if let Some(contents) = &theme.favicon_svg { write_file(destination, "favicon.svg", contents)?; } @@ -175,7 +175,8 @@ index e170e2f..caa2eff 100644 + "/usr/share/javascript/mathjax/MathJax.js", + destination.join("MathJax.js"), )?; -- if html_config.copy_fonts { +- // Don't copy the stock fonts if the user has specified their own fonts to use. +- if html_config.copy_fonts && theme.fonts_css.is_none() { - write_file(destination, "fonts/fonts.css", theme::fonts::CSS)?; - for (file_name, contents) in theme::fonts::LICENSES.iter() { - write_file(destination, file_name, contents)?; @@ -191,20 +192,13 @@ index e170e2f..caa2eff 100644 - } - if let Some(fonts_css) = &theme.fonts_css { - if !fonts_css.is_empty() { -- if html_config.copy_fonts { -- warn!( -- "output.html.copy_fonts is deprecated.\n\ -- Set copy_fonts=false and ensure the fonts you want are in \ -- the `theme/fonts/` directory." -- ); -- } -- write_file(destination, "fonts/fonts.css", &fonts_css)?; +- write_file(destination, "fonts/fonts.css", fonts_css)?; - } - } - if !html_config.copy_fonts && theme.fonts_css.is_none() { - warn!( -- "output.html.copy_fonts is deprecated.\n\ -- This book appears to have copy_fonts=false without a fonts.css file.\n\ +- "output.html.copy-fonts is deprecated.\n\ +- This book appears to have copy-fonts=false in book.toml without a fonts.css file.\n\ - Add an empty `theme/fonts/fonts.css` file to squelch this warning." - ); - } @@ -238,7 +232,7 @@ index e170e2f..caa2eff 100644 Ok(()) } diff --git a/vendor/mdbook/src/renderer/html_handlebars/search.rs b/vendor/mdbook/src/renderer/html_handlebars/search.rs -index a9e2f5c..3e3f69c 100644 +index 24d62fd..849a48c 100644 --- a/vendor/mdbook/src/renderer/html_handlebars/search.rs +++ b/vendor/mdbook/src/renderer/html_handlebars/search.rs @@ -53,8 +53,6 @@ pub fn create_files(search_config: &Search, destination: &Path, book: &Book) -> @@ -251,7 +245,7 @@ index a9e2f5c..3e3f69c 100644 } diff --git a/vendor/mdbook/src/theme/index.hbs b/vendor/mdbook/src/theme/index.hbs -index 6f3948c..7e5c54c 100644 +index 80315c4..48413b0 100644 --- a/vendor/mdbook/src/theme/index.hbs +++ b/vendor/mdbook/src/theme/index.hbs @@ -33,10 +33,7 @@ @@ -324,7 +318,7 @@ index 6f3948c..7e5c54c 100644