Add logic to check the upstream version of cargo-c from the github account the crate is based on. Unfortunately, this is an inexact match of the versioning, as the crate expects the cargo version as part of the version. For example, the current version is "0.9.30+cargo-0.77.0", whereas the latest tagged version is "0.9.31". So, even if the versions matched exactly, the `devtool check-upgrade-status cargo-c-native` will show a mismatch. I think this is better than disabling the check or having devtool return broken. So, leaving this idiosyncrasy as-is.
NOTE: https://crates.io/crates/cargo-c/versions would be a better place to get the latest version (and would match the expected cargo versioning), but creates.io seems to require javascript and any attempt to wget that webpage returns 404. Signed-off-by: Jon Mason <[email protected]> --- .../rust/cargo-c-native_0.9.30+cargo-0.77.0.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-devtools/rust/cargo-c-native_0.9.30+cargo-0.77.0.bb b/meta/recipes-devtools/rust/cargo-c-native_0.9.30+cargo-0.77.0.bb index 8e17606b73dd..eaa51a8d2565 100644 --- a/meta/recipes-devtools/rust/cargo-c-native_0.9.30+cargo-0.77.0.bb +++ b/meta/recipes-devtools/rust/cargo-c-native_0.9.30+cargo-0.77.0.bb @@ -9,6 +9,9 @@ SRC_URI = "crate://crates.io/cargo-c/${PV};name=cargo-c" SRC_URI[cargo-c.sha256sum] = "ec77e3635cdb0d211f88f22d0460eef0ba031eb616ded57f2ffb98a90365c445" S = "${CARGO_VENDORING_DIRECTORY}/cargo-c-${PV}" +UPSTREAM_CHECK_URI = "https://github.com/lu-zero/cargo-c/releases/" +UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P<pver>\d+(\.\d+)+)" + inherit cargo cargo-update-recipe-crates pkgconfig native DEPENDS = "openssl curl" -- 2.30.2
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#198520): https://lists.openembedded.org/g/openembedded-core/message/198520 Mute This Topic: https://lists.openembedded.org/mt/105600795/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
