From: Peter Michael Green Date: Sun, 3 Apr 2022 22:06:25 +0000 (+0000) Subject: atk-sys - Don't fail the tests if the C value of ATK_STATE_LAST_DEFINED is greater... X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=4e625011dd92333c7f643a0646d3c4f3242be37c;p=debcargo-conf.git atk-sys - Don't fail the tests if the C value of ATK_STATE_LAST_DEFINED is greater than the rust value. --- diff --git a/src/atk-sys/debian/changelog b/src/atk-sys/debian/changelog index adee3cda6..b6ea56dae 100644 --- a/src/atk-sys/debian/changelog +++ b/src/atk-sys/debian/changelog @@ -1,3 +1,12 @@ +rust-atk-sys (0.14.0-2) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium + + * Team upload. + * Package atk-sys 0.14.0 from crates.io using debcargo 2.5.0 + * Don't fail the tests if the C value of ATK_STATE_LAST_DEFINED is greater + than the rust value. + + -- Peter Michael Green Sun, 03 Apr 2022 22:04:21 +0000 + rust-atk-sys (0.14.0-1) unstable; urgency=medium * Team upload. diff --git a/src/atk-sys/debian/copyright b/src/atk-sys/debian/copyright index b2356a6a6..15873b47c 100644 --- a/src/atk-sys/debian/copyright +++ b/src/atk-sys/debian/copyright @@ -4,12 +4,12 @@ Upstream-Contact: The Gtk-rs Project Developers Source: https://github.com/gtk-rs/sys Files: * -Copyright: 2013-2019 The Gtk-rs Project Developers +Copyright: 2013-2021 The Gtk-rs Project Developers License: MIT Files: debian/* Copyright: - 2018-2019 Debian Rust Maintainers + 2018-2022 Debian Rust Maintainers 2018-2019 Wolfgang Silbermayr License: MIT diff --git a/src/atk-sys/debian/copyright.debcargo.hint b/src/atk-sys/debian/copyright.debcargo.hint index 22ec1780a..457e123cf 100644 --- a/src/atk-sys/debian/copyright.debcargo.hint +++ b/src/atk-sys/debian/copyright.debcargo.hint @@ -14,8 +14,8 @@ Comment: Files: debian/* Copyright: - 2018-2021 Debian Rust Maintainers - 2018-2021 Wolfgang Silbermayr + 2018-2022 Debian Rust Maintainers + 2018-2022 Wolfgang Silbermayr License: MIT License: MIT diff --git a/src/atk-sys/debian/patches/allow-increase-in-c-value-of-atk-state-last-defined.patch b/src/atk-sys/debian/patches/allow-increase-in-c-value-of-atk-state-last-defined.patch new file mode 100644 index 000000000..abbb19677 --- /dev/null +++ b/src/atk-sys/debian/patches/allow-increase-in-c-value-of-atk-state-last-defined.patch @@ -0,0 +1,29 @@ +Description: allow increase in c value of ATK_STATE_LAST_DEFINED + The new version of atk increased the value of ATK_STATE_LAST_DEFINED, + upstream did not bump the soversion, so clearly they do not consider + this a change that is likely to break downstream applictions. + + Futhermore the only rust code I can find that actually uses the + constant in question is some code in rust-atk that translates it + to an enum I cannot find any rust code that makes use of the + corresponding enum value either. + +Author: Peter Michael Green + +--- rust-atk-sys-0.14.0.orig/tests/abi.rs ++++ rust-atk-sys-0.14.0/tests/abi.rs +@@ -134,6 +134,14 @@ fn cross_validate_constants_with_c() { + continue; + } + ++ if *rust_name == "(gint) ATK_STATE_LAST_DEFINED" { ++ // ATK_STATE_LAST_DEFINED may increase in newer versions of the atk library. ++ if c_value.parse::().unwrap_or(0) > rust_value.parse::().unwrap_or(i32::MAX) { ++ results.record_passed(); ++ continue; ++ } ++ } ++ + if rust_value != c_value { + results.record_failed(); + eprintln!( diff --git a/src/atk-sys/debian/patches/series b/src/atk-sys/debian/patches/series new file mode 100644 index 000000000..e9189c7f0 --- /dev/null +++ b/src/atk-sys/debian/patches/series @@ -0,0 +1 @@ +allow-increase-in-c-value-of-atk-state-last-defined.patch