From 51baa456a2b38a48c0a784361300899a24d45d15 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 28 Oct 2024 21:23:29 -0700 Subject: python3-pydantic-core: Upgrade to 2.25.0 Needed for py 3.13 support in pydantic 2.9 recipe Signed-off-by: Khem Raj --- ...dont-embed-RUSTFLAGS-in-final-binary-1396.patch | 58 ---------------------- 1 file changed, 58 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pydantic-core/0001-dont-embed-RUSTFLAGS-in-final-binary-1396.patch (limited to 'meta-python/recipes-devtools/python/python3-pydantic-core') diff --git a/meta-python/recipes-devtools/python/python3-pydantic-core/0001-dont-embed-RUSTFLAGS-in-final-binary-1396.patch b/meta-python/recipes-devtools/python/python3-pydantic-core/0001-dont-embed-RUSTFLAGS-in-final-binary-1396.patch deleted file mode 100644 index 5d732d5bee..0000000000 --- a/meta-python/recipes-devtools/python/python3-pydantic-core/0001-dont-embed-RUSTFLAGS-in-final-binary-1396.patch +++ /dev/null @@ -1,58 +0,0 @@ -From e07c41b3bad75948201a2201387225694c2fb501 Mon Sep 17 00:00:00 2001 -From: Boxy -Date: Wed, 7 Aug 2024 17:11:02 +0100 -Subject: [PATCH] dont embed `RUSTFLAGS` in final binary (#1396) - -Upstream-Status: Backport [https://github.com/pydantic/pydantic-core/pull/1396] - -See discussion upstream in: -https://github.com/pydantic/pydantic-core/issues/1365 - -Backport fix from: -https://github.com/pydantic/pydantic-core/commit/e07c41b3bad75948201a2201387225694c2fb501 - -Signed-off-by: Tim Orling ---- - build.rs | 9 +++++++++ - src/lib.rs | 5 ++++- - 2 files changed, 13 insertions(+), 1 deletion(-) - -diff --git a/build.rs b/build.rs -index d1093c74..f8f66901 100644 ---- a/build.rs -+++ b/build.rs -@@ -36,6 +36,15 @@ fn main() { - println!("cargo:rustc-cfg=has_coverage_attribute"); - } - println!("cargo:rustc-check-cfg=cfg(has_coverage_attribute)"); -+ -+ if std::env::var("RUSTFLAGS") -+ .unwrap_or_default() -+ .contains("-Cprofile-use=") -+ { -+ println!("cargo:rustc-cfg=specified_profile_use"); -+ } -+ println!("cargo:rustc-check-cfg=cfg(specified_profile_use)"); -+ - generate_self_schema(); - println!("cargo:rustc-env=PROFILE={}", std::env::var("PROFILE").unwrap()); - } -diff --git a/src/lib.rs b/src/lib.rs -index eb598424..eb486da6 100644 ---- a/src/lib.rs -+++ b/src/lib.rs -@@ -98,7 +98,10 @@ pub fn build_info() -> String { - format!( - "profile={} pgo={}", - env!("PROFILE"), -- option_env!("RUSTFLAGS").unwrap_or("").contains("-Cprofile-use="), -+ // We use a `cfg!` here not `env!`/`option_env!` as those would -+ // embed `RUSTFLAGS` into the generated binary which causes problems -+ // with reproducable builds. -+ cfg!(specified_profile_use), - ) - } - --- -2.46.0 - -- cgit v1.2.3-54-g00ecf