From patchwork Wed Nov 25 15:55:02 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 105677 Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.44780.1795622113555194294 for ; Wed, 25 Nov 2026 07:55:13 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=eXPeIsqm; spf=pass (domain: baylibre.com, ip: 209.85.222.173, mailfrom: tgamblin@baylibre.com) Received: by mail-qk1-f173.google.com with SMTP id af79cd13be357-930c0f9c1b1so629216185a.1 for ; Wed, 25 Nov 2026 07:55:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1795622112; x=1796226912; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=pHwppeE5zOJ93llqH1Anqi239K1rj3FqixxUTYdN+k8=; b=eXPeIsqm3jQaDva8v3UqFvSdVuBD6E3jzJWU9heez5phPJ8UGcF/y8uyQX0w4/2zP6 OkdQWs71OYMKX+ck34QgwsgJPMVYbmtIyANrAqLR+lsat7pz4+WEKb8OMcbtwSIk/ey5 IkB1Uwcbeo4HvSVHbwSYOwE6yrtu1d4+mCCrONguasGZgwjre3sajQyuhROop0eSV5Fh bUl/b/ZjuqzbRMrvlIVPGi21fOOGYyP7FwxmOFPsBfo5tsvLCzWKJIKoqWuJ2lA3gut/ +gQLxjSbByQIpG9jlWfgBi0GkGYOlJHKPjD1NLAgtwC7DBbLzsJcpaHkrxAEmsuFuvAT xadQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795622112; x=1796226912; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=pHwppeE5zOJ93llqH1Anqi239K1rj3FqixxUTYdN+k8=; b=e1dueAp/vFM8jcER/J5tG0OxCBwAjfQQaesXP1eduisYdXl+dwuNGObTFHXktt9/qS CTSu7b5CQR3/eqlijUxvtY3lCzhHKWKryLTIMHeCm7C+DXNSDv9iVvsfOXQavOqe0ELf amzEOVqBsGNhuLQuC75OGiZ5oyxkMDoLFV0Lbgr+34iZTEpWQFMNM42MXn1Se5L9Dhea X8R4Qsci2qyaWY9NDdslbiQf/DOxPOPXAuiwV2ahmFR9pWYlIKI0/xfA+tzLLe6sC6Lh hVysUzeWN4fa07AM0vf7B7WTLsXK75FW7unxyr3KQsOFZjT2E7f+1VUdHYfDgS9cIa3L qNsQ== X-Gm-Message-State: APuU4Z9RmT5FpxXcZ8JKvY+z+nIUMQGhP2tuYqX0M+EpGFvX6h51yHk1 PlQXlZx9qtRduzOHUGWtAyDDKtYrSLNxYvm1A3yWnj36V6jqOgSu60/UpAvG9sFlhVDYGFYic1i 0M3bR X-Gm-Gg: AZFdTZdXRLtmct29m/CyLlXRVByp5C9UbQfJQFVnz/wcjX1wDlLRVm+b60WYBrU7QgC nRizhkt4WA2HqC/VynJY8nS5PD+V5i40PSGwS6dXBDVlvVeI5qjQNaUixKun08yfxy2+lKX9mUL eWIJ+DjUUod9op+UYE23aHshaTqwoQEd6hrjRbdJuUVIqylzWMGawXN7KwY94QJMKB0PSdJj9/X 5heipcrLMSMVAVaRrto5+HwRsZUNl1rO3NvmiTfJQlGxdNJn5sEJBzj672nJj9F6YWfPc75DaOr ICCpIcQ12FquYgIRjrKtusBwRa3V8U6WxhKMbv1RYeHqohGNH3sNQkYhjlB5wSgr9reKmZ+clTn hvMvvGu6+TzWHEJWN9Y050061EorYibKkK4zlBHNuTu4JidkTC6397bhRSx1Pyhr/U3vzG5hB3x Wh/Z2o7gJDG+K829doc8yJi1D5AbiE0kdQ1vOc0MhcDFKC+ya1yAt+Lm/I/ARBZk5pvIbrqFlm/ og36vWELO6hn8WLnTFFGFCcBxcQvTYwFAdDTIlM3VXhPrzb5e3BxGzMVRbg4czhrFO3NmE80UUS sOgoGLcR/bJAXpZxJNR4jTvyfgsLWaKp3RgPnCe25pM/IKxDPQQDtoJb3HLPylCUuKgQaVRhr83 5aVEvxYQ5OrQZVT/PHLGPTutA+9WX9xs= X-Received: by 2002:a05:620a:2728:b0:93e:fc4e:c490 with SMTP id af79cd13be357-949ba9c721emr3227724285a.15.1795622111831; Wed, 25 Nov 2026 07:55:11 -0800 (PST) Return-Path: Received: from megalith.oryx-coho.ts.net ([2001:1970:3847:e000:e8bd:ca0f:c232:9f10]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921349b253csm167601326d6.15.2026.11.25.07.55.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 07:55:11 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH 1/6] hyperfine: add recipe Date: Wed, 25 Nov 2026 10:55:02 -0500 Message-ID: <20261125155508.3024814-2-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261125155508.3024814-1-tgamblin@baylibre.com> References: <20261125155508.3024814-1-tgamblin@baylibre.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 25 Nov 2026 15:55:15 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251198 hyperfine is a command-line tool for benchmarking commands across multiple runs, written in Rust. It supports configuring the number of runs, enabling 'warmups', parameterizing runs, and more, with reasonable defaults (e.g. running at least 10 passes of a command when the '--runs' argument is not given). More info at: https://github.com/sharkdp/hyperfine AI-Generated: Uses Claude Opus 5.5 Signed-off-by: Trevor Gamblin --- meta/conf/distro/include/maintainers.inc | 1 + .../hyperfine/hyperfine-crates.inc | 274 ++++++++++++++++++ .../hyperfine/hyperfine_2.0.0.bb | 17 ++ 3 files changed, 292 insertions(+) create mode 100644 meta/recipes-devtools/hyperfine/hyperfine-crates.inc create mode 100644 meta/recipes-devtools/hyperfine/hyperfine_2.0.0.bb diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 62de04001e..3240290163 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -270,6 +270,7 @@ RECIPE_MAINTAINER:pn-help2man = "Kusuma Dirisala RECIPE_MAINTAINER:pn-hicolor-icon-theme = "Unassigned " RECIPE_MAINTAINER:pn-hwdata = "Hiago De Franco " RECIPE_MAINTAINER:pn-hwlatdetect = "Unassigned " +RECIPE_MAINTAINER:pn-hyperfine = "Trevor Gamblin " RECIPE_MAINTAINER:pn-i2c-tools = "Unassigned " RECIPE_MAINTAINER:pn-icon-naming-utils = "Richard Purdie " RECIPE_MAINTAINER:pn-icu = "Unassigned " diff --git a/meta/recipes-devtools/hyperfine/hyperfine-crates.inc b/meta/recipes-devtools/hyperfine/hyperfine-crates.inc new file mode 100644 index 0000000000..983bdcaba9 --- /dev/null +++ b/meta/recipes-devtools/hyperfine/hyperfine-crates.inc @@ -0,0 +1,274 @@ +# Autogenerated with 'bitbake -c update_crates hyperfine' + +# from Cargo.lock +SRC_URI += " \ + crate://crates.io/aho-corasick/1.1.5 \ + crate://crates.io/anstream/1.0.0 \ + crate://crates.io/anstyle/1.0.14 \ + crate://crates.io/anstyle-parse/1.0.0 \ + crate://crates.io/anstyle-query/1.1.5 \ + crate://crates.io/anstyle-wincon/3.0.11 \ + crate://crates.io/anyhow/1.0.104 \ + crate://crates.io/approx/0.5.1 \ + crate://crates.io/arrayvec/0.7.8 \ + crate://crates.io/assert_cmd/2.2.2 \ + crate://crates.io/autocfg/1.5.1 \ + crate://crates.io/bitflags/2.13.2 \ + crate://crates.io/borsh/1.8.1 \ + crate://crates.io/borsh-derive/1.8.1 \ + crate://crates.io/bstr/1.13.1 \ + crate://crates.io/bumpalo/3.20.3 \ + crate://crates.io/bytes/1.12.1 \ + crate://crates.io/cfg-if/1.0.5 \ + crate://crates.io/cfg_aliases/0.2.2 \ + crate://crates.io/chacha20/0.10.2 \ + crate://crates.io/clap/4.6.7 \ + crate://crates.io/clap_builder/4.6.7 \ + crate://crates.io/clap_complete/4.6.11 \ + crate://crates.io/clap_lex/1.1.1 \ + crate://crates.io/colorchoice/1.0.5 \ + crate://crates.io/colored/3.1.1 \ + crate://crates.io/console/0.15.11 \ + crate://crates.io/console/0.16.6 \ + crate://crates.io/cpufeatures/0.3.1 \ + crate://crates.io/csv/1.4.0 \ + crate://crates.io/csv-core/0.1.13 \ + crate://crates.io/difflib/0.4.0 \ + crate://crates.io/encode_unicode/1.0.0 \ + crate://crates.io/equivalent/1.0.2 \ + crate://crates.io/errno/0.3.14 \ + crate://crates.io/fastrand/2.5.0 \ + crate://crates.io/float-cmp/0.10.0 \ + crate://crates.io/getrandom/0.2.17 \ + crate://crates.io/getrandom/0.3.4 \ + crate://crates.io/getrandom/0.4.3 \ + crate://crates.io/hashbrown/0.17.1 \ + crate://crates.io/humantime/2.4.0 \ + crate://crates.io/indexmap/2.14.2 \ + crate://crates.io/indicatif/0.17.4 \ + crate://crates.io/insta/1.48.0 \ + crate://crates.io/insta-cmd/0.7.0 \ + crate://crates.io/instant/0.1.13 \ + crate://crates.io/is_terminal_polyfill/1.70.2 \ + crate://crates.io/itoa/1.0.18 \ + crate://crates.io/libc/0.2.189 \ + crate://crates.io/linux-raw-sys/0.12.1 \ + crate://crates.io/memchr/2.8.3 \ + crate://crates.io/nix/0.31.3 \ + crate://crates.io/normalize-line-endings/0.3.0 \ + crate://crates.io/num-traits/0.2.19 \ + crate://crates.io/number_prefix/0.4.0 \ + crate://crates.io/once_cell/1.21.4 \ + crate://crates.io/once_cell_polyfill/1.70.2 \ + crate://crates.io/perf-event-open-sys/6.0.0 \ + crate://crates.io/platform-info/2.2.0 \ + crate://crates.io/portable-atomic/1.15.0 \ + crate://crates.io/ppv-lite86/0.2.21 \ + crate://crates.io/predicates/3.1.4 \ + crate://crates.io/predicates-core/1.0.10 \ + crate://crates.io/predicates-tree/1.0.13 \ + crate://crates.io/proc-macro-crate/3.5.0 \ + crate://crates.io/proc-macro2/1.0.107 \ + crate://crates.io/quote/1.0.47 \ + crate://crates.io/r-efi/5.3.0 \ + crate://crates.io/r-efi/6.0.0 \ + crate://crates.io/rand/0.8.8 \ + crate://crates.io/rand/0.9.5 \ + crate://crates.io/rand/0.10.3 \ + crate://crates.io/rand_chacha/0.3.1 \ + crate://crates.io/rand_chacha/0.9.0 \ + crate://crates.io/rand_core/0.6.4 \ + crate://crates.io/rand_core/0.9.5 \ + crate://crates.io/rand_core/0.10.1 \ + crate://crates.io/regex/1.13.1 \ + crate://crates.io/regex-automata/0.4.18 \ + crate://crates.io/regex-syntax/0.8.11 \ + crate://crates.io/rust_decimal/1.43.0 \ + crate://crates.io/rustix/1.1.5 \ + crate://crates.io/rustversion/1.0.23 \ + crate://crates.io/ryu/1.0.23 \ + crate://crates.io/serde/1.0.229 \ + crate://crates.io/serde_core/1.0.229 \ + crate://crates.io/serde_derive/1.0.229 \ + crate://crates.io/serde_json/1.0.151 \ + crate://crates.io/shell-words/1.1.1 \ + crate://crates.io/similar/2.7.0 \ + crate://crates.io/strip-ansi-escapes/0.2.1 \ + crate://crates.io/strsim/0.11.1 \ + crate://crates.io/syn/2.0.119 \ + crate://crates.io/syn/3.0.6 \ + crate://crates.io/tempfile/3.27.0 \ + crate://crates.io/terminal_size/0.4.4 \ + crate://crates.io/termtree/0.5.1 \ + crate://crates.io/thiserror/2.0.21 \ + crate://crates.io/thiserror-impl/2.0.21 \ + crate://crates.io/toml_datetime/1.1.1+spec-1.1.0 \ + crate://crates.io/toml_edit/0.25.15+spec-1.1.0 \ + crate://crates.io/toml_parser/1.1.3+spec-1.1.0 \ + crate://crates.io/typenum/1.20.1 \ + crate://crates.io/unicode-ident/1.0.26 \ + crate://crates.io/unicode-width/0.1.14 \ + crate://crates.io/unicode-width/0.2.2 \ + crate://crates.io/uom/0.36.0 \ + crate://crates.io/utf8parse/0.2.2 \ + crate://crates.io/vte/0.14.1 \ + crate://crates.io/wait-timeout/0.2.1 \ + crate://crates.io/wasi/0.11.1+wasi-snapshot-preview1 \ + crate://crates.io/wasip2/1.0.4+wasi-0.2.12 \ + crate://crates.io/wasm-bindgen/0.2.129 \ + crate://crates.io/wasm-bindgen-macro/0.2.129 \ + crate://crates.io/wasm-bindgen-macro-support/0.2.129 \ + crate://crates.io/wasm-bindgen-shared/0.2.129 \ + crate://crates.io/windows-link/0.2.1 \ + crate://crates.io/windows-sys/0.59.0 \ + crate://crates.io/windows-sys/0.61.2 \ + crate://crates.io/windows-targets/0.52.6 \ + crate://crates.io/windows_aarch64_gnullvm/0.52.6 \ + crate://crates.io/windows_aarch64_msvc/0.52.6 \ + crate://crates.io/windows_i686_gnu/0.52.6 \ + crate://crates.io/windows_i686_gnullvm/0.52.6 \ + crate://crates.io/windows_i686_msvc/0.52.6 \ + crate://crates.io/windows_x86_64_gnu/0.52.6 \ + crate://crates.io/windows_x86_64_gnullvm/0.52.6 \ + crate://crates.io/windows_x86_64_msvc/0.52.6 \ + crate://crates.io/winnow/1.0.4 \ + crate://crates.io/wit-bindgen/0.57.1 \ + crate://crates.io/zerocopy/0.8.58 \ + crate://crates.io/zerocopy-derive/0.8.58 \ + crate://crates.io/zmij/1.0.23 \ +" + +SRC_URI[aho-corasick-1.1.5.sha256sum] = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" +SRC_URI[anstream-1.0.0.sha256sum] = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d" +SRC_URI[anstyle-1.0.14.sha256sum] = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" +SRC_URI[anstyle-parse-1.0.0.sha256sum] = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e" +SRC_URI[anstyle-query-1.1.5.sha256sum] = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" +SRC_URI[anstyle-wincon-3.0.11.sha256sum] = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" +SRC_URI[anyhow-1.0.104.sha256sum] = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" +SRC_URI[approx-0.5.1.sha256sum] = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6" +SRC_URI[arrayvec-0.7.8.sha256sum] = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56" +SRC_URI[assert_cmd-2.2.2.sha256sum] = "2aa3a22042e45de04255c7bf3626e239f450200fd0493c1e382263544b20aea6" +SRC_URI[autocfg-1.5.1.sha256sum] = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" +SRC_URI[bitflags-2.13.2.sha256sum] = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" +SRC_URI[borsh-1.8.1.sha256sum] = "553c5d846a6ba5150c65e3b1b8ec073bcf1abc20f9b7220de384a4443ea4e20a" +SRC_URI[borsh-derive-1.8.1.sha256sum] = "12cdfe656708a01f89b451a7d36466e6fe6c414de0aa18fc54f864f6f9ca9f56" +SRC_URI[bstr-1.13.1.sha256sum] = "6bb31b46c14244e20ee9984b11bf5c992b91fb6939fea616e3512c8baecdbe5f" +SRC_URI[bumpalo-3.20.3.sha256sum] = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" +SRC_URI[bytes-1.12.1.sha256sum] = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +SRC_URI[cfg-if-1.0.5.sha256sum] = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" +SRC_URI[cfg_aliases-0.2.2.sha256sum] = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" +SRC_URI[chacha20-0.10.2.sha256sum] = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" +SRC_URI[clap-4.6.7.sha256sum] = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946" +SRC_URI[clap_builder-4.6.7.sha256sum] = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d" +SRC_URI[clap_complete-4.6.11.sha256sum] = "037e2a1a92236d0aff7e845093f64661d6df4c02c9fcc61a60e9e1d736fa392f" +SRC_URI[clap_lex-1.1.1.sha256sum] = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486" +SRC_URI[colorchoice-1.0.5.sha256sum] = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" +SRC_URI[colored-3.1.1.sha256sum] = "faf9468729b8cbcea668e36183cb69d317348c2e08e994829fb56ebfdfbaac34" +SRC_URI[console-0.15.11.sha256sum] = "054ccb5b10f9f2cbf51eb355ca1d05c2d279ce1804688d0db74b4733a5aeafd8" +SRC_URI[console-0.16.6.sha256sum] = "e96a4956774c13c126a8b5af4daa79384f4d826534c95a02d76afb39e2ab64e3" +SRC_URI[cpufeatures-0.3.1.sha256sum] = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" +SRC_URI[csv-1.4.0.sha256sum] = "52cd9d68cf7efc6ddfaaee42e7288d3a99d613d4b50f76ce9827ae0c6e14f938" +SRC_URI[csv-core-0.1.13.sha256sum] = "704a3c26996a80471189265814dbc2c257598b96b8a7feae2d31ace646bb9782" +SRC_URI[difflib-0.4.0.sha256sum] = "6184e33543162437515c2e2b48714794e37845ec9851711914eec9d308f6ebe8" +SRC_URI[encode_unicode-1.0.0.sha256sum] = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0" +SRC_URI[equivalent-1.0.2.sha256sum] = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" +SRC_URI[errno-0.3.14.sha256sum] = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +SRC_URI[fastrand-2.5.0.sha256sum] = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" +SRC_URI[float-cmp-0.10.0.sha256sum] = "b09cf3155332e944990140d967ff5eceb70df778b34f77d8075db46e4704e6d8" +SRC_URI[getrandom-0.2.17.sha256sum] = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +SRC_URI[getrandom-0.3.4.sha256sum] = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +SRC_URI[getrandom-0.4.3.sha256sum] = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +SRC_URI[hashbrown-0.17.1.sha256sum] = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" +SRC_URI[humantime-2.4.0.sha256sum] = "15cdd26707701c53297e2fa6afb323d55fbc1d0810c3aec078ae3ef0424c3c15" +SRC_URI[indexmap-2.14.2.sha256sum] = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" +SRC_URI[indicatif-0.17.4.sha256sum] = "db45317f37ef454e6519b6c3ed7d377e5f23346f0823f86e65ca36912d1d0ef8" +SRC_URI[insta-1.48.0.sha256sum] = "86f0f8fee8c926415c58d6ae43a08523a26faccb2323f5e6b644fe7dd4ef6b82" +SRC_URI[insta-cmd-0.7.0.sha256sum] = "bffdf4af1db390cf0401535d7c1303cd079a074d28d8473b026fdb6559c41403" +SRC_URI[instant-0.1.13.sha256sum] = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" +SRC_URI[is_terminal_polyfill-1.70.2.sha256sum] = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" +SRC_URI[itoa-1.0.18.sha256sum] = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" +SRC_URI[libc-0.2.189.sha256sum] = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" +SRC_URI[linux-raw-sys-0.12.1.sha256sum] = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" +SRC_URI[memchr-2.8.3.sha256sum] = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" +SRC_URI[nix-0.31.3.sha256sum] = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d" +SRC_URI[normalize-line-endings-0.3.0.sha256sum] = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" +SRC_URI[num-traits-0.2.19.sha256sum] = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +SRC_URI[number_prefix-0.4.0.sha256sum] = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" +SRC_URI[once_cell-1.21.4.sha256sum] = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" +SRC_URI[once_cell_polyfill-1.70.2.sha256sum] = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" +SRC_URI[perf-event-open-sys-6.0.0.sha256sum] = "a5f8d1487a4ffa23c80a1c355dd27235f9b66fb71ba0f261eb417e4fe8451347" +SRC_URI[platform-info-2.2.0.sha256sum] = "ba7c3f5af00d3596a148cc80178ac690152b71c283d15a8bcea0cddfea759a36" +SRC_URI[portable-atomic-1.15.0.sha256sum] = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85" +SRC_URI[ppv-lite86-0.2.21.sha256sum] = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +SRC_URI[predicates-3.1.4.sha256sum] = "ada8f2932f28a27ee7b70dd6c1c39ea0675c55a36879ab92f3a715eaa1e63cfe" +SRC_URI[predicates-core-1.0.10.sha256sum] = "cad38746f3166b4031b1a0d39ad9f954dd291e7854fcc0eed52ee41a0b50d144" +SRC_URI[predicates-tree-1.0.13.sha256sum] = "d0de1b847b39c8131db0467e9df1ff60e6d0562ab8e9a16e568ad0fdb372e2f2" +SRC_URI[proc-macro-crate-3.5.0.sha256sum] = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +SRC_URI[proc-macro2-1.0.107.sha256sum] = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +SRC_URI[quote-1.0.47.sha256sum] = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +SRC_URI[r-efi-5.3.0.sha256sum] = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" +SRC_URI[r-efi-6.0.0.sha256sum] = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" +SRC_URI[rand-0.8.8.sha256sum] = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c" +SRC_URI[rand-0.9.5.sha256sum] = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41" +SRC_URI[rand-0.10.3.sha256sum] = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af" +SRC_URI[rand_chacha-0.3.1.sha256sum] = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +SRC_URI[rand_chacha-0.9.0.sha256sum] = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +SRC_URI[rand_core-0.6.4.sha256sum] = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +SRC_URI[rand_core-0.9.5.sha256sum] = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +SRC_URI[rand_core-0.10.1.sha256sum] = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" +SRC_URI[regex-1.13.1.sha256sum] = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +SRC_URI[regex-automata-0.4.18.sha256sum] = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +SRC_URI[regex-syntax-0.8.11.sha256sum] = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" +SRC_URI[rust_decimal-1.43.0.sha256sum] = "7653272e75dcac41dc199fbea6f5797633994fafd339943c06c9af16bf29cd3a" +SRC_URI[rustix-1.1.5.sha256sum] = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d" +SRC_URI[rustversion-1.0.23.sha256sum] = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" +SRC_URI[ryu-1.0.23.sha256sum] = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" +SRC_URI[serde-1.0.229.sha256sum] = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +SRC_URI[serde_core-1.0.229.sha256sum] = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +SRC_URI[serde_derive-1.0.229.sha256sum] = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +SRC_URI[serde_json-1.0.151.sha256sum] = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" +SRC_URI[shell-words-1.1.1.sha256sum] = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77" +SRC_URI[similar-2.7.0.sha256sum] = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa" +SRC_URI[strip-ansi-escapes-0.2.1.sha256sum] = "2a8f8038e7e7969abb3f1b7c2a811225e9296da208539e0f79c5251d6cac0025" +SRC_URI[strsim-0.11.1.sha256sum] = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" +SRC_URI[syn-2.0.119.sha256sum] = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +SRC_URI[syn-3.0.6.sha256sum] = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee" +SRC_URI[tempfile-3.27.0.sha256sum] = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +SRC_URI[terminal_size-0.4.4.sha256sum] = "230a1b821ccbd75b185820a1f1ff7b14d21da1e442e22c0863ea5f08771a8874" +SRC_URI[termtree-0.5.1.sha256sum] = "8f50febec83f5ee1df3015341d8bd429f2d1cc62bcba7ea2076759d315084683" +SRC_URI[thiserror-2.0.21.sha256sum] = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" +SRC_URI[thiserror-impl-2.0.21.sha256sum] = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" +SRC_URI[toml_datetime-1.1.1+spec-1.1.0.sha256sum] = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7" +SRC_URI[toml_edit-0.25.15+spec-1.1.0.sha256sum] = "1340ea94a5856333492c9064b02c778b191dd2c853778d9609debdcdfea3a614" +SRC_URI[toml_parser-1.1.3+spec-1.1.0.sha256sum] = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56" +SRC_URI[typenum-1.20.1.sha256sum] = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" +SRC_URI[unicode-ident-1.0.26.sha256sum] = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954" +SRC_URI[unicode-width-0.1.14.sha256sum] = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" +SRC_URI[unicode-width-0.2.2.sha256sum] = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254" +SRC_URI[uom-0.36.0.sha256sum] = "ffd36e5350a65d112584053ee91843955826bf9e56ec0d1351214e01f6d7cd9c" +SRC_URI[utf8parse-0.2.2.sha256sum] = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" +SRC_URI[vte-0.14.1.sha256sum] = "231fdcd7ef3037e8330d8e17e61011a2c244126acc0a982f4040ac3f9f0bc077" +SRC_URI[wait-timeout-0.2.1.sha256sum] = "09ac3b126d3914f9849036f826e054cbabdc8519970b8998ddaf3b5bd3c65f11" +SRC_URI[wasi-0.11.1+wasi-snapshot-preview1.sha256sum] = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" +SRC_URI[wasip2-1.0.4+wasi-0.2.12.sha256sum] = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" +SRC_URI[wasm-bindgen-0.2.129.sha256sum] = "9bb54f33acc68fd454578d9820b0bde1a1a3d17aa17bb7b6595806d02886d409" +SRC_URI[wasm-bindgen-macro-0.2.129.sha256sum] = "2e29d0c35b16e224a7eeb5cd2d25e3e1968fbd65604117b44d3b789d00ee8535" +SRC_URI[wasm-bindgen-macro-support-0.2.129.sha256sum] = "6f501a8bc3719dba86ef8ae4728879c08001bea749eb1333ac5b91e040e2a6b7" +SRC_URI[wasm-bindgen-shared-0.2.129.sha256sum] = "23f0c9c52aa7cd7d77769a4cfe2a9adb1b331f489a41d912ce14513d5ab995c6" +SRC_URI[windows-link-0.2.1.sha256sum] = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" +SRC_URI[windows-sys-0.59.0.sha256sum] = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +SRC_URI[windows-sys-0.61.2.sha256sum] = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +SRC_URI[windows-targets-0.52.6.sha256sum] = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +SRC_URI[windows_aarch64_gnullvm-0.52.6.sha256sum] = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" +SRC_URI[windows_aarch64_msvc-0.52.6.sha256sum] = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" +SRC_URI[windows_i686_gnu-0.52.6.sha256sum] = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" +SRC_URI[windows_i686_gnullvm-0.52.6.sha256sum] = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" +SRC_URI[windows_i686_msvc-0.52.6.sha256sum] = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" +SRC_URI[windows_x86_64_gnu-0.52.6.sha256sum] = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" +SRC_URI[windows_x86_64_gnullvm-0.52.6.sha256sum] = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" +SRC_URI[windows_x86_64_msvc-0.52.6.sha256sum] = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" +SRC_URI[winnow-1.0.4.sha256sum] = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81" +SRC_URI[wit-bindgen-0.57.1.sha256sum] = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" +SRC_URI[zerocopy-0.8.58.sha256sum] = "c17e8fafad82b542ff3717217ecdc736231b59e387768c9630123b4ce4d2db44" +SRC_URI[zerocopy-derive-0.8.58.sha256sum] = "595f56e044df4f46a0c9a626f65c3d99eb8488f7e8a8baa12dd76326d9710bf2" +SRC_URI[zmij-1.0.23.sha256sum] = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" diff --git a/meta/recipes-devtools/hyperfine/hyperfine_2.0.0.bb b/meta/recipes-devtools/hyperfine/hyperfine_2.0.0.bb new file mode 100644 index 0000000000..3a81e1bf32 --- /dev/null +++ b/meta/recipes-devtools/hyperfine/hyperfine_2.0.0.bb @@ -0,0 +1,17 @@ +SUMMARY = "A command-line benchmarking tool" +HOMEPAGE = "https://github.com/sharkdp/hyperfine" +LICENSE = "Apache-2.0 OR MIT" +LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=50c79cd7360537975dfbbd15f8d01a34 \ + file://LICENSE-APACHE;md5=86d3f3a95c324c9479bd8986968f4327" + +inherit cargo cargo-update-recipe-crates + +SRC_URI = "git://github.com/sharkdp/hyperfine.git;protocol=https;nobranch=1;tag=v${PV}" +SRCREV = "b33755fe1fca8bcc1f182c773ca3ab040bfe517d" + +require ${BPN}-crates.inc + +# Upstream's release profile sets strip = true; let do_package do the stripping +export CARGO_PROFILE_RELEASE_STRIP = "false" + +BBCLASSEXTEND = "native nativesdk" From patchwork Wed Nov 25 15:55:03 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 105678 Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.44781.1795622114248825829 for ; Wed, 25 Nov 2026 07:55:14 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=fEKIHS5y; spf=pass (domain: baylibre.com, ip: 209.85.222.176, mailfrom: tgamblin@baylibre.com) Received: by mail-qk1-f176.google.com with SMTP id af79cd13be357-94960131b30so542854585a.0 for ; Wed, 25 Nov 2026 07:55:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1795622113; x=1796226913; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=gfSrflwxPItPKHCbHJsjciZWr1uGKwqJGhwTDwMrRwA=; b=fEKIHS5ylwCoKJNSg1GtGI9U8ZDLT6kvDB40apCtVVwT8n7UfqXJUh5wZVBjtxlWlh oifBpvvDrXMhrC05Gn4vS3HqWL4scJox57J+gLF+4t2SsJn1xRLuRcndq+YyjXM4Eful KoR7tg0gQhdWe7b4s9JblulBhi1bLVvDGTFKH08IzF74LtRa2Z6xLbI2LuRy184S3sHK bIloPFcVzp2URyV0aXvMq6pLADf+ehRUCNcOrZuiM0LhFViBXOlzqx72B0RkO6m8edvQ RidQRZ0riUVyXR/3uJnOMOetcpTVKma/qBU1eJvWMwQxxyHHSMtgg8QZeuDuj+U4B5BK j6VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795622113; x=1796226913; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=gfSrflwxPItPKHCbHJsjciZWr1uGKwqJGhwTDwMrRwA=; b=kbbbZvkx9g5FnTHdzb0WKpyjSfpdEcxbWrd+FYIYMz/OPaWklanov4pw8fDv+Hvdy8 uODARoW70NA+0OaaP0evJCMYDmdBcTNF5TOJ9YTyJ/Gm4peWx6scfWehxgtZLvCy+jue UhhvfF5iwkHcQdYCyhzqlyZ7BnYv3anksbaAczl81gbP0xuscTcBv2+v7U1LB9RLv77G OlJP3U8C0D/NQz2GG2WTxaD5K8rjScULsPovnlPj9N8rhh+kPv30QIswOJKmaXTcvmi/ gFwqtsUrweJp5gxhWLYCF9EVxPIBo+Q/RHxCpnEbNLl1aJC7lN/YQ+4QBbq292Iz6Mka nZ9Q== X-Gm-Message-State: APuU4Z/YzFCkqiMazIaSc/+wnKmmTyxlKSfyB1SWP8KGvBhhw60wKTsa x7WSnxDnYwpMtRQRNP9FTDlMLjR3TZzbY5kavKaTYH88TZIKrKQzhuyUziZwIvqHJExWJRRP+tJ 7VEUn X-Gm-Gg: AZFdTZfbQmH/JnG56QwpS/vtJwGfseWYdC8y5IvdPyJN1kx8iGt8rMKLewU40dpVC9z atHZSdudbwY92F2cTXxta4YGjX3LsIewgtf3m2zXFhy+WdlhtU8nFNZATfnt4x0oYW4Wnv/GCXZ PjGMPzgtBe5IoZE5SsRVaQZH47WurSPw3SsEqxN1hqB9iPvemqjsVO45T5VLcL7JktNceGqp1lV KKI7o+/HiMotC481u3Jvb61RdFeTcFqzCsK1O6hFcO+pkl3dZ+uCjEZv9JgI6wfIoI5JniZEA8g hh+buIvt9uUelrh3C3Vb9UvqxhWKivBaXi0EHfnStKsibz7BIxBNtRMcMYp7CGTd2BJ6M+eSG8+ hmzI4jRR+3IG4/kXGXpH6f/AFWrS9C3eBr3RqTjnik5IATs/RcbLM/4kO7WXsVChAlNv3L0/Ygm wCCnmZgnkH9Pj5tgogIqhlcOTD6qyLo8apUYkstKRC+zlZBC2Vjgp0G9GqsYqoQ6krwwHjbKSar b2wR6L1Ql/ByFzk4D8QkSAjUhe2tYxzBoAROeiyoS14xMeW3lthdnevKX0QDqUL7aFPmM7VLcv7 eH+5qLbNmH/k7eOfhCAbl8CLAnR72nKrKCNrEWT7bvzOtx/XO73TenMq+eiq4WPoW9S/m5TXaHG jKpQsCEj83pAIvTKrmqLUWzmWzEhnPdg= X-Received: by 2002:a05:620a:8812:b0:944:941:c060 with SMTP id af79cd13be357-949ba95df74mr2974517985a.15.1795622113038; Wed, 25 Nov 2026 07:55:13 -0800 (PST) Return-Path: Received: from megalith.oryx-coho.ts.net ([2001:1970:3847:e000:e8bd:ca0f:c232:9f10]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921349b253csm167601326d6.15.2026.11.25.07.55.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 07:55:12 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH 2/6] hyperfine: add ptest support Date: Wed, 25 Nov 2026 10:55:03 -0500 Message-ID: <20261125155508.3024814-3-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261125155508.3024814-1-tgamblin@baylibre.com> References: <20261125155508.3024814-1-tgamblin@baylibre.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 25 Nov 2026 15:55:15 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251199 Enable ptests for the hyperfine recipe, using ptest-cargo.bbclass like rpm-sequoia and librsvg. AI-Generated: Uses Claude Opus 5.5 Signed-off-by: Trevor Gamblin --- .../distro/include/ptest-packagelists.inc | 1 + ...riding-the-hyperfine-binary-with-HYP.patch | 38 +++++++++++++++++++ .../hyperfine/files/run-ptest | 7 ++++ .../hyperfine/hyperfine_2.0.0.bb | 19 +++++++++- 4 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-devtools/hyperfine/files/0001-tests-allow-overriding-the-hyperfine-binary-with-HYP.patch create mode 100644 meta/recipes-devtools/hyperfine/files/run-ptest diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index 6c8ff85fd0..a36718fc53 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc @@ -26,6 +26,7 @@ PTESTS_FAST = "\ gdk-pixbuf \ glib-networking \ gzip \ + hyperfine \ icu \ json-c \ json-glib \ diff --git a/meta/recipes-devtools/hyperfine/files/0001-tests-allow-overriding-the-hyperfine-binary-with-HYP.patch b/meta/recipes-devtools/hyperfine/files/0001-tests-allow-overriding-the-hyperfine-binary-with-HYP.patch new file mode 100644 index 0000000000..458a721297 --- /dev/null +++ b/meta/recipes-devtools/hyperfine/files/0001-tests-allow-overriding-the-hyperfine-binary-with-HYP.patch @@ -0,0 +1,38 @@ +From b8714ae6630ca9e6a47d686a959b44a56d3ef7bd Mon Sep 17 00:00:00 2001 +From: Trevor Gamblin +Date: Fri, 20 Nov 2026 20:18:36 +0000 +Subject: [PATCH] tests: allow overriding the hyperfine binary with + HYPERFINE_BIN + +cargo_bin!() resolves to an absolute path in the build tree, so the +integration tests cannot be run once installed elsewhere (e.g. as Yocto +ptests on a target), and the path ends up embedded in the test +binaries. Allow the path to be set at compile time instead. + +Upstream-Status: Inappropriate [oe specific] +AI-Generated: Uses Claude Code +--- + tests/common.rs | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +diff --git a/tests/common.rs b/tests/common.rs +index fa03e46..058c962 100644 +--- a/tests/common.rs ++++ b/tests/common.rs +@@ -1,7 +1,15 @@ + use std::process::Command; + ++// Allow overriding the binary location at compile time, e.g. when the tests ++// are run outside of the build tree. Evaluated as a const so that the ++// build-tree path is not embedded in the test binary when overridden. ++const HYPERFINE_BIN: &str = match option_env!("HYPERFINE_BIN") { ++ Some(bin) => bin, ++ None => env!("CARGO_BIN_EXE_hyperfine"), ++}; ++ + pub fn hyperfine_raw_command() -> Command { +- let mut cmd = Command::new(assert_cmd::cargo::cargo_bin!("hyperfine")); ++ let mut cmd = Command::new(HYPERFINE_BIN); + cmd.current_dir("tests/"); + cmd + } diff --git a/meta/recipes-devtools/hyperfine/files/run-ptest b/meta/recipes-devtools/hyperfine/files/run-ptest new file mode 100644 index 0000000000..3e44f229a8 --- /dev/null +++ b/meta/recipes-devtools/hyperfine/files/run-ptest @@ -0,0 +1,7 @@ +#!/bin/sh + +# ptest-cargo appends the test binary invocations to this script. +# The integration tests run hyperfine from the tests/ directory and +# compare its output against the insta snapshots installed there. +cd "$(dirname "$0")" +export INSTA_UPDATE=no diff --git a/meta/recipes-devtools/hyperfine/hyperfine_2.0.0.bb b/meta/recipes-devtools/hyperfine/hyperfine_2.0.0.bb index 3a81e1bf32..411ba8f724 100644 --- a/meta/recipes-devtools/hyperfine/hyperfine_2.0.0.bb +++ b/meta/recipes-devtools/hyperfine/hyperfine_2.0.0.bb @@ -4,9 +4,12 @@ LICENSE = "Apache-2.0 OR MIT" LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=50c79cd7360537975dfbbd15f8d01a34 \ file://LICENSE-APACHE;md5=86d3f3a95c324c9479bd8986968f4327" -inherit cargo cargo-update-recipe-crates +inherit cargo cargo-update-recipe-crates ptest-cargo -SRC_URI = "git://github.com/sharkdp/hyperfine.git;protocol=https;nobranch=1;tag=v${PV}" +SRC_URI = "git://github.com/sharkdp/hyperfine.git;protocol=https;nobranch=1;tag=v${PV} \ + file://0001-tests-allow-overriding-the-hyperfine-binary-with-HYP.patch \ + file://run-ptest \ + " SRCREV = "b33755fe1fca8bcc1f182c773ca3ab040bfe517d" require ${BPN}-crates.inc @@ -14,4 +17,16 @@ require ${BPN}-crates.inc # Upstream's release profile sets strip = true; let do_package do the stripping export CARGO_PROFILE_RELEASE_STRIP = "false" +# Point the tests at the target locations at compile time, which also keeps +# build paths (CARGO_BIN_EXE_hyperfine, CARGO_MANIFEST_DIR) out of the test binaries. +do_compile_ptest_cargo:prepend() { + os.environ["HYPERFINE_BIN"] = d.expand("${bindir}/hyperfine") + os.environ["INSTA_WORKSPACE_ROOT"] = d.getVar("PTEST_PATH") +} + +do_install_ptest() { + cp -r ${S}/tests ${D}${PTEST_PATH}/ + rm ${D}${PTEST_PATH}/tests/*.rs +} + BBCLASSEXTEND = "native nativesdk" From patchwork Wed Nov 25 15:55:04 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 105680 Received: from mail-qv1-f50.google.com (mail-qv1-f50.google.com [209.85.219.50]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.44782.1795622115879426427 for ; Wed, 25 Nov 2026 07:55:16 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=Mzh7bAg3; spf=pass (domain: baylibre.com, ip: 209.85.219.50, mailfrom: tgamblin@baylibre.com) Received: by mail-qv1-f50.google.com with SMTP id 6a1803df08f44-91e8a05ec5aso79392426d6.1 for ; Wed, 25 Nov 2026 07:55:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1795622115; x=1796226915; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=a8YAfOa5kAxj75R1NFcvNx7YmnWhk3fsxERnlNNba38=; b=Mzh7bAg3luDTZ4cuJUH+5mLM4Xd+TbjZsb+EBhAgrUX3WdIEPB6YXc6lnl1/Ltvbdv rK+tLbukPXc+iNBuP0Du/mDR7qAKISZwUTvosbRjJ6fqjZeln0F5wrOD+Ze65jKxA6as yN2A0xHdxCjQ6rjAfIuV/urfKuCxYumaubwxb4QXp6ocwjSaauiwVtFfjiyORZbtzrl7 lScXGNTbVeYYlmrSy9grfU98K99f9rP8bJ+3cQnZy/S6mQ7VSCQFj0ixrZUxM00hxQyB eT3xICZ4AiB6m3fdIT5YAvYgbGt3TZuHnlHwUbtXGB0RYo+eKrBXtxAvDbWQblSqUwPn p0iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795622115; x=1796226915; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=a8YAfOa5kAxj75R1NFcvNx7YmnWhk3fsxERnlNNba38=; b=sPTT6juQJTMhNwGaIfBmfufpqWJqA7q2AwyTLovECjzQyKQtNPw5TNxC+rqg7zV2zr bQYE0JNXL6ZQR4dvVm1kjwgfQmob+pVLEUvsnuIUBMN0Z/01lqxMfFiKPT4MBln2g0tG ZRQeDnZR+ZCSzqVnZKgfvQcBJtTTqlnK1malIbT0l+ifFV8TXI061puizThTsC+6ldx2 Vr7bzAvgRxkNeuyksCXQY0VyGxYS+aZ/s9N38AONXTP3iWWd9iMAfi6Z/4FAZvVxDsNV h8SH5Jg/ffUcqIuZTPdnep8FqwY8Ce1ZNOKMpHWdlIAp/j1zk02OZqHtJCXqpLJOXyLi HVSw== X-Gm-Message-State: APuU4Z+Cs/pFay2c3D4DdXXAoT9WrGgFYxHEg9GZ4uHzUevUAaRRhfC0 xKAqVhnvt7OfJDFWUcZnwyE6vo/DJ0ErK8mwCb1VQMWC4z4uTbFpKgZHtSdi9O7hurZ3UDNCnKv QT/Vq X-Gm-Gg: AZFdTZdjqpCrx5cOPKiisA6vXOZ4qt8xRegqDq9LNBhXIQuCWG3Of1xqer7mw16WVc2 x3nsb3DX/j1jA2g2tFa4XBbh41zIzIqRWCpisrhyudek62uYZvRUqj15RhEKiaHmg5/o9TBZu98 t2uj+FNlKYoTMLdXSQgcVj1HfUUj8bW1EnpNcSFHosIddDLeVi1JMidbbUj9KTs4ctkZ2sLcIWs ElrVHB45YbOLowtwOanT1AaHoulH3XN5/7tJwc30xOsl9xZuBFMO+oxZ0K2GjG9gf8RPogJ8MMH A141UVzgH1dGIgYvYafSnjM5s2alnb405FOeIz5ILI/mooHboB0CzqcMyo/any8sPq+oQJsy8wB zdum+wbnknIHoauoG0E4RR86sqbmu890XjCRJOZGpeAf1y/WH6w+RNL1Wahl/GdJ/qvAzYfcpC+ haUo8zoZeNHJ4CDvnEHqo75a6FAPllfJn5Mu0t/5Ifqq73WZxuLMUtdsSPAZcLqezL7npIrbiWN 5yjXymnmTmCq6Kqw0tOnf/oUQ5wwuGtAPFw3oKwrhgMJq9wLDVWXrD438QMxqsdINVyjKUNYxzY PaJvGZ8GD5zy8jO3j0cZchbYi7gbgnvR6yn1ATzSy/bOXMdFY6LUUclqg78QMXQW1R+RyqwR2T7 frva4bDIu2A== X-Received: by 2002:a05:6214:5244:b0:921:2840:db3 with SMTP id 6a1803df08f44-921349cefcamr335960376d6.4.1795622114450; Wed, 25 Nov 2026 07:55:14 -0800 (PST) Return-Path: Received: from megalith.oryx-coho.ts.net ([2001:1970:3847:e000:e8bd:ca0f:c232:9f10]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921349b253csm167601326d6.15.2026.11.25.07.55.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 07:55:13 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH 3/6] ptest-cargo.bbclass: improve test binary matching Date: Wed, 25 Nov 2026 10:55:04 -0500 Message-ID: <20261125155508.3024814-4-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261125155508.3024814-1-tgamblin@baylibre.com> References: <20261125155508.3024814-1-tgamblin@baylibre.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 25 Nov 2026 15:55:25 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251200 do_compile_ptest_cargo finds test binaries by parsing JSON from 'cargo build --tests' and keeps every executable artifact with a "test" or "doctest" target. Since 'cargo build --tests' also builds bin targets, the normal program binary can be mistakenly installed and run as a test only to fail because no arguments are provided. Instead, filter on profile.test, which is only set for artifacts compiled with the test harness. Additionally, drop the 'doctest' check, since 'cargo build --tests' doesn't produce doctest executables. See also: https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-test-field As an example, here is what happens with the 'hyperfine' tool when trying to run its ptests. Most of the test suite works, but it fails at the end when trying to invoke the 'normal' binary: |test result: ok. 56 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s | |PASS: /usr/lib/hyperfine/ptest/hyperfine-e8776e44d98845b7 |error: the following required arguments were not provided: | ... | |Usage: hyperfine ... | |For more information, try '--help'. |FAIL: /usr/lib/hyperfine/ptest/hyperfine | |ERROR: Exit status is 1 |DURATION: 1 |END: /usr/lib/hyperfine/ptest |2026-11-24T19:14 |STOP: ptest-runner |TOTAL: 1 FAIL: 1 |root@qemux86-64:~# With this fix, we instead see: |test result: ok. 56 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s | |PASS: /usr/lib/hyperfine/ptest/hyperfine-e8776e44d98845b7 |DURATION: 1 |END: /usr/lib/hyperfine/ptest |2026-11-24T19:21 |STOP: ptest-runner |TOTAL: 1 FAIL: 0 |root@qemux86-64:~# librsvg test run to ensure no breakage: |test result: ok. 101 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.16s | |PASS: /usr/lib/librsvg/ptest/rsvg_convert-87afefb074698767 | |running 0 tests | |test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s | |PASS: /usr/lib/librsvg/ptest/rsvg_convert-a76274799d15584d |DURATION: 4 |END: /usr/lib/librsvg/ptest |2026-11-24T19:29 |STOP: ptest-runner |TOTAL: 1 FAIL: 0 and rpm-sequoia: |test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.43s | |PASS: /usr/lib/rpm-sequoia/ptest/rpm_sequoia-51940508e5906e81 |DURATION: 1 |END: /usr/lib/rpm-sequoia/ptest |2026-11-24T19:35 |STOP: ptest-runner |TOTAL: 1 FAIL: 0 Signed-off-by: Trevor Gamblin --- meta/classes-recipe/ptest-cargo.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/classes-recipe/ptest-cargo.bbclass b/meta/classes-recipe/ptest-cargo.bbclass index 5cdd1c43d1..73b9e84766 100644 --- a/meta/classes-recipe/ptest-cargo.bbclass +++ b/meta/classes-recipe/ptest-cargo.bbclass @@ -43,8 +43,10 @@ python do_compile_ptest_cargo() { # - test binaries from sub manifest of the current project if any current_manifest_path = os.path.normpath(data['manifest_path']) common_path = os.path.commonpath([current_manifest_path, project_manifest_path]) + # - artifacts actually built as tests: target.test is also true + # for plain bin targets, which cargo builds for integration tests if common_path in [manifest_dir, current_manifest_path]: - if (data['target']['test'] or data['target']['doctest']) and data['executable']: + if data['profile']['test'] and data['executable']: test_bins.append(data['executable']) except (KeyError, ValueError) as e: # skip lines that do not meet the requirements From patchwork Wed Nov 25 15:55:05 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 105681 Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.44817.1795622118372440329 for ; Wed, 25 Nov 2026 07:55:19 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=GjV1LzXi; spf=pass (domain: baylibre.com, ip: 209.85.219.45, mailfrom: tgamblin@baylibre.com) Received: by mail-qv1-f45.google.com with SMTP id 6a1803df08f44-9213922de73so5789266d6.1 for ; Wed, 25 Nov 2026 07:55:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1795622117; x=1796226917; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=1MPhYqNrB8dha4OUuDylAjhlUDI+kXPg10ttIY2Bu/4=; b=GjV1LzXiymgNpLgLRvHVQ8ZeWKZoNKAfQpUBTQxtcTeNH4it/gKFEEOvE2pnStQQPm TU7+wEU15fqByKOzmK+BVuzx1Mddk4biSHUKy+LFLc/Y1r3xTShBUlXnjZ92o3M7kZVI Ktlt6+IFh0D32QXRdM0iBRRaqnlReNYCy6V8a84wLoii+R6kfa2EbSkhAbK7eC43tjtG yCqUMF+ADAJ9weuv0XE02WFIEdNwH6NSA6IHzQLe7o9D7d6qPYv7h1SEYxCT48UPpkpF ynyZs1w8jnalHFsz0ZJ2X+Vvzjvux1vExLd2ug8r7QMnW5AnNTeuXt19w7mJRshhZfQN DqiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795622117; x=1796226917; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=1MPhYqNrB8dha4OUuDylAjhlUDI+kXPg10ttIY2Bu/4=; b=UtzboCJvuRuYXzMSv9Ih2/Pdh92g18vDs1FF3+RxDq4GaIHVHiOInQalQ96s7SN0ay gk47OwbuN4HRlLG+nqdTTBsoUh5roYjoJ+yC36viSNSR1lUaTzaCnAE5w2UR7hxCGTZL tBkj39I/SCnoP9M1xHcaMTCvGFJ30oJoHc1GwFIVMt6oTzElpP/GEAoL1gXC7EfqkWm3 gTuTRu+IyIBOAF1dDRVdhMp5C6IxmLex1+GOohuLdhagmSFyHYgiypdxWAG12R1unSw9 16LNXEEBEDcQ5wCfLiVRbyPwwHxMgIdmM+doFIlJTYvjMOJtYkFrvgXT0XlFcz8+2nBk Id+Q== X-Gm-Message-State: APuU4Z9zHHUtGBNwZRcjJi00LN3lekmyO3glzDdJ3epbm4/AIibEANJk RoRwTCfE0BhlhmUnWZfA/VB+tRbDXgm4ckeTr+EkvCI/u58aIQZ5CXNKgoCYR45hFF3XAUNl1Vj 1lx8K X-Gm-Gg: AZFdTZeVsQD5h/IzRHUP+UmmQ2KOsAjxPnCpAlUGPRwC+bzSBciMc7TdBAnh5SJqRNj rP4Agvk6c+/QrPHcTZQaMMOp9PubdOfpgDHh9SmEzvW9gs27MsXc1xNqivTSHp+U1CVwmb4XxNm kexe3Oqpr8JHMcdzuhyLilMv60di0ctTkS0Q9prmzBiW3vNtG+/6ptPe8FQNAbDa2VB45b8PZeg y1lnZ/2WdMW3ovAfagpFVO0acG59riLTxZou/haFZa+dezEcuc7le28k7fYCtiFc06pY94tsUI+ 2mDYiSOemmiEwQkeRNhD2lmPhomm3jlQGLgLsV7dGNOt4NJu6Q202gIniag/R42GRvSref+dVrL 3EvK9l6kMkrCZ34u7aTslPvSbIPNKUKMErRL+0WqKN0L3/QBozkz9Dpd1dIzbkliyHKObtLhR/F FwIungq0RrE/r/n36rEpKYsucjssI8BOrbSOITzvKsep/2IzgeqfUusaEDM6JDnxl4gYq7bFB9e LNfkmGe8Cy3yO6aTISNBcFACJAxMHHxRtRVmnKebe3o/W5YKOct1WNt2WTGxyrlm8v4jNpOdXq8 bt8CzEV7pny83Atp0S96Wg8h5RDuRjUPRyTM5X9XnmeCmhOzdR6VNKpOrAox606TSg0/i98T8DL V0heWE4GI4Q== X-Received: by 2002:a05:6214:5192:b0:921:19b3:4c20 with SMTP id 6a1803df08f44-92134a79aa9mr336424616d6.17.1795622117084; Wed, 25 Nov 2026 07:55:17 -0800 (PST) Return-Path: Received: from megalith.oryx-coho.ts.net ([2001:1970:3847:e000:e8bd:ca0f:c232:9f10]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921349b253csm167601326d6.15.2026.11.25.07.55.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 07:55:15 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH 4/6] ptest-cargo.bbclass: run do_install_ptest_cargo as a postfunc Date: Wed, 25 Nov 2026 10:55:05 -0500 Message-ID: <20261125155508.3024814-5-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261125155508.3024814-1-tgamblin@baylibre.com> References: <20261125155508.3024814-1-tgamblin@baylibre.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 25 Nov 2026 15:55:25 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251201 do_install_ptest_cargo appends to run-ptest, but run-ptest is only reset by do_install_ptest_base's cleandirs. This means that changes to its signature (e.g. by setting 'RUST_TEST_ARGS:pn-hyperfine = "--test-threads=1"' in local.conf) just append another block to run-ptest with an 'exit $rc' in between, so changed test arguments aren't actually used. Run do_install_ptest_cargo as a postfunc for do_install_ptest_base instead so that changes are always reflected. do_install_ptest_cargo is removed as a task. Tested by setting RUST_TEST_ARGS in local.conf as described above. Here is a snippet of what the double-appended run-ptest script would look like without this fix: |if ! /usr/lib/hyperfine/ptest/hyperfine-e8776e44d98845b7 |then | rc=1 | echo "FAIL: /usr/lib/hyperfine/ptest/hyperfine-e8776e44d98845b7" |else | echo "PASS: /usr/lib/hyperfine/ptest/hyperfine-e8776e44d98845b7" |fi |exit $rc | |echo "" |echo "## starting to run rust tests ##" |if [ -z "$rc" ]; then rc=0; fi |if ! /usr/lib/hyperfine/ptest/execution_order_tests-0fccc0f22d97e11e --test-threads=1 |then | rc=1 | echo "FAIL: /usr/lib/hyperfine/ptest/execution_order_tests-0fccc0f22d97e11e" |else AI-Generated: Uses Claude Opus 5.5 Signed-off-by: Trevor Gamblin --- meta/classes-recipe/ptest-cargo.bbclass | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/meta/classes-recipe/ptest-cargo.bbclass b/meta/classes-recipe/ptest-cargo.bbclass index 73b9e84766..cc82ea320b 100644 --- a/meta/classes-recipe/ptest-cargo.bbclass +++ b/meta/classes-recipe/ptest-cargo.bbclass @@ -125,21 +125,19 @@ python do_install_ptest_cargo() { shutil.chown(os.path.join(root, f), "root", "root") } -do_install_ptest_cargo[dirs] = "${B}" -do_install_ptest_cargo[doc] = "Create or update the run-ptest script with rust test binaries generated" do_compile_ptest_cargo[dirs] = "${B}" do_compile_ptest_cargo[doc] = "Generate rust test binaries through cargo" addtask compile_ptest_cargo after do_compile before do_compile_ptest_base -addtask install_ptest_cargo after do_install_ptest_base before do_package -python () { - if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d): - d.setVarFlag('do_install_ptest_cargo', 'fakeroot', '1') - d.setVarFlag('do_install_ptest_cargo', 'umask', '022') +# Run as part of do_install_ptest_base so its cleandirs always provides a fresh +# run-ptest to append to. As a separate task, a signature change (e.g. +# RUST_TEST_ARGS) re-ran only this step, appending a second block after the +# first "exit $rc". +do_install_ptest_base[postfuncs] += "do_install_ptest_cargo" +python () { # Remove all '*ptest_cargo' tasks when ptest is not enabled if not(d.getVar('PTEST_ENABLED') == "1"): - for i in ['do_compile_ptest_cargo', 'do_install_ptest_cargo']: - bb.build.deltask(i, d) + bb.build.deltask('do_compile_ptest_cargo', d) } From patchwork Wed Nov 25 15:55:06 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 105682 Received: from mail-qv1-f41.google.com (mail-qv1-f41.google.com [209.85.219.41]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.44818.1795622119948183385 for ; Wed, 25 Nov 2026 07:55:20 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=CKJaW2B0; spf=pass (domain: baylibre.com, ip: 209.85.219.41, mailfrom: tgamblin@baylibre.com) Received: by mail-qv1-f41.google.com with SMTP id 6a1803df08f44-921318b2eb8so74890636d6.1 for ; Wed, 25 Nov 2026 07:55:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1795622119; x=1796226919; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=VWUf5+wgjZL2tlRhG8lJp1A1fqmPhaN8WQNrV19HrPE=; b=CKJaW2B0oJumoAzsYd662Q/qA3ZNXrKnP7AmJthQkgsEWbLkDUpmW+OWwvmMOhkX8D FLdNRl9D8B5VH76rLN48dsZCeta4lla3F0L1H2gfcN6G9YsT7+c/+dbotNLM5W/h9JvH utR3f6R+eDvWLZYdALSmv4SjOhEetVl8eaMpoMArzpc9573ZOH9AMo0vtUe1AvGCJk9G TTT1frRw8eaD8KMsfossbVrBD2yT5qiYPjEBTUj9Jbnt1cYh7oX68vDbx7oTiZTBk9+0 B0plsuAE9y09GF3IzJtSw8TjpjBLtQ12Dv9ELGUdqPqwYPZNaD/fAC441o1yjNgJGfZN OhqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795622119; x=1796226919; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=VWUf5+wgjZL2tlRhG8lJp1A1fqmPhaN8WQNrV19HrPE=; b=HWXRU4F8qZ2OrzDVbQ0Moq81q7riw8SlsclcAUkqcB0j/n6p18cqF86IH6+mlxArKF Fkej0c/jFjvj1kPs1fOFZqSeL+wf3KnhwVnIMCDk6/fJyRQQlCreAdHHIkojbsttlS7G /QdoRf7maFUYEKa7lQc3x3T5oKnem2xL5hL/jkYn42YYFTxPkBI4muBIltSn2TetXnAs m+wGM3rvH7fmKJ7tQ/f4yAwk9LYevpm0ljpyonBi1ZosVx2wRICXrh/CE8ttj7BevaIo B49FEYsnM0n5kGfed2cDHHEfqIZMvvlISnMxkc2Jmdn435qm1KS8STymnHBnco4t+dlc EfiA== X-Gm-Message-State: APuU4Z8Og6/CetolwJ3BE4RzGa3cR//uATWC7kxBOlCYd2KduVaJADrW LC6CnUy3oZ2Ywym53qruNRSSlbtBL+HA7V4GtcqOeSeTp08eFdWUqTGklWVVlBQeSNtCbyPdcbc NBO4C X-Gm-Gg: AZFdTZfQVz2fSkwGiXPhhRwPMeCJvxVv3BCIgcjp/JberU+yHpYLmyuOjIqVuO8ieJa d6jeqHHdIVOqj2sce8scJClSS4Ar7t2Hm/CpWMtRx7dbUxHbVisV75XNmbX+BGV0Xk/aBsuq4Q5 4lRiBAKsvIAJMEzQUGkzkSylRoJGNJhHmwuHx3D041dVgNibcSvxHKYlufF/isuAgZ1ksfA3CyS bc8t9o9K2A8xVDr+Q+1dqSbMQgXrIrcd6N4QmtJsD/6Xax9Y9prwhWaJ30DDP7hdbIoi62gMjL/ kUdizKyWpMmuR3jIwbhnK8ib1OkZEuNz+3+jLCbaUkic3BoW56xaqJkYO6gI4NZ15XjJOi0UpAx zzK9S2afcro9Eff/CVXz5DVrVZ97P8M2J8UTTB92jjLl9IrxTTR0zKNkDu6BFKHgJlSCPNeTmjT 13RjJ04sU4rpNqwX/Wm18VF2ysUfjAurIi8sK2enA+ix+RdvSgOF+XLyn9pyYF5doZSFLD0dLb+ +AnL+z6f7YBiK/CI/S0zYjdBsfh9rkS0Kta+WcJNtAX6xcTWSShT/qNPXxI84SOA9fSfhpW9QH0 fTGScVkruY3cjz3hsQjtu8+IyVZZz85l83s1gNqocwqIevPfT3p+5Jne2zbVWBN3sOwpQhzCLmd lPen4fngYqyfmEbDgc1qTWRL2X+2JzZM= X-Received: by 2002:a05:6214:820e:20b0:921:3004:7f46 with SMTP id 6a1803df08f44-92134af9247mr261128536d6.53.1795622118583; Wed, 25 Nov 2026 07:55:18 -0800 (PST) Return-Path: Received: from megalith.oryx-coho.ts.net ([2001:1970:3847:e000:e8bd:ca0f:c232:9f10]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921349b253csm167601326d6.15.2026.11.25.07.55.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 07:55:17 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH 5/6] librsvg: make ptest symlink creation idempotent Date: Wed, 25 Nov 2026 10:55:06 -0500 Message-ID: <20261125155508.3024814-6-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261125155508.3024814-1-tgamblin@baylibre.com> References: <20261125155508.3024814-1-tgamblin@baylibre.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 25 Nov 2026 15:55:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251202 do_install_ptest:append() for librsvg was creating a link for 'ptest' outside of PTEST_PATH, so it wasn't being removed during cleanup and would remain present on rebuild. This created a self-referencing link, leading to errors like: | 1509: follow_symlinks=follow_symlinks) | 1510: | 1511:def get_terminal_size(fallback=(80, 24)): | 1512: """Get the size of the terminal window. |Exception: OSError: [Errno 40] Too many levels of symbolic links: '/home/tgamblin/workspace/ypbuilds/riscv-maint/build/tmp/work/x86-64-v3-oe-linux/librsvg/2.63.4/image/usr/lib/librsvg/ptest/ptest' | |ERROR: Logfile of failure stored in: /home/tgamblin/workspace/ypbuilds/riscv-maint/build/tmp/work/x86-64-v3-oe-linux/librsvg/2.63.4/temp/log.do_install_ptest_base.2703564 |ERROR: Task (/home/tgamblin/workspace/ypbuilds/riscv-maint/layers/openembedded-core/meta/recipes-gnome/librsvg/librsvg_2.63.4.bb:do_install_ptest_base) failed with exit code '1' Treat the link name as a normal file if it's a directory ('-n'; i.e. don't follow the link) and force-overwrite it ('-f') so that the link gets recreated on subsequent runs. AI-Generated: Uses Claude Opus 5.5 Signed-off-by: Trevor Gamblin --- meta/recipes-gnome/librsvg/librsvg_2.63.4.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-gnome/librsvg/librsvg_2.63.4.bb b/meta/recipes-gnome/librsvg/librsvg_2.63.4.bb index 6e88270075..a6fd4cea28 100644 --- a/meta/recipes-gnome/librsvg/librsvg_2.63.4.bb +++ b/meta/recipes-gnome/librsvg/librsvg_2.63.4.bb @@ -87,7 +87,7 @@ do_install_ptest:append() { # the api tests look for the required files in rsvg folder, so simulate it # with a symlink that points to the current folder ln -s . ${D}${PTEST_PATH}/rsvg - ln -s ptest ${D}${PTEST_PATH}/../rsvg + ln -snf ptest ${D}${PTEST_PATH}/../rsvg } PACKAGES =+ "librsvg-gtk rsvg" From patchwork Wed Nov 25 15:55:07 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 105679 Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.44785.1795622120955999893 for ; Wed, 25 Nov 2026 07:55:21 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=MJM8J8/N; spf=pass (domain: baylibre.com, ip: 209.85.219.54, mailfrom: tgamblin@baylibre.com) Received: by mail-qv1-f54.google.com with SMTP id 6a1803df08f44-91e8a05ec5aso79393586d6.1 for ; Wed, 25 Nov 2026 07:55:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1795622120; x=1796226920; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=R0OvViyUOcqQVRSI7Vz+I/ravB5us7LrClnuSiOhgnI=; b=MJM8J8/NZGpNHkUaHwkkX+j3+9uKzVfExZukAYthkSLJuY47txvVbHqefzu60fEKfd XY6KiT2xiVJJTkgRkVMsiA9hx0pQT75qtq+j/z0/Zf4q5kmt+nJmGj7bvN7GUBJdj6xW /8uDgZhcTyJy5HN5SMFr+fVn/JF+TRCeBQyrRfrXlO8VYO3yJjL6udhtrh/CQ/oX5I8s hL17aMUZ3kewWdL6oV7+MsaqBVOzJaqb9ggKWFjoucB2hAg+yVpHZqQ076XPQ6ajslxF cKiseNYjp+xuzenEiBybEtquiWh/bWsj/DoDlN3pid+lePB9DtO/edhPlEUR1ABgW3Xx eTcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795622120; x=1796226920; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=R0OvViyUOcqQVRSI7Vz+I/ravB5us7LrClnuSiOhgnI=; b=Q2/plJ2T4p36XMGRZuJn2WFxI3mb4dU/kRBF9HT9BfcBmhLWhg4OmCPqFnuktXVEg5 wlfn/xqVHleI5fS+aTpcVp1Sw0Kg3Z4b0hngSXD/+8gozWelQzWWIjD0IlBTmd1NfV8d swU9/Glggjh6wcMQjr3hYDuuSoka5ytjUjxDOzZBspBkvPZbTY1i+6OcrgOmYU6R+SZ9 sVvKrDTtAqlXxXr6WgdB261XYMbmXeWW55e7EtxgRqkXIyB6ZCRkVZHJKJcy31EPqxHf sjueSCRjEr9ky+z6bBGcFF3REYDgu4OZT/a1pPqUepCKVnQM05jgWmbDZ2bhrmEeBaYR 2RSQ== X-Gm-Message-State: APuU4Z+Fvx78huPHyiV6V8FmcOKBDLOSDrjB9BiQksaQRLdkMAl8le5z q/h2/AQifvbgPLtDV+gfTnJRg8T+A5aZgp2/wdc7mhPgtcmklPhATATzWNqdc9w9j6H60WTWabf CxGkR X-Gm-Gg: AZFdTZfnbE27EBriREal1rwPuMjW6qhet9fR5fzEe36+dpDh+dvApqPbJ6spWICBW6N XmD4YflEJFN6Rk7MCkEXP7abkGfHxfBtpS0h64MpSMB6Rl7XBnAmieH1dlTzMbzk+Bfik6oAZ/5 s1859sPO78z/Wg6YZoFmPAO8CHa5MW8NNUei+wchqyFn+CpOEK0nqtemk/ux3ErM8VCsPl04EHR 3ISOakpcZX0dJe1zD0LzBxzAYfLqvpD9ZC9O9zubj1nCTRbLbfaDSv5UGLe3huw+ejI20AyZ1y1 ED99UZOBnaaF6Ca/VAFAp8vLfstKxF38xCsCUuojHozFqwJR3nAND/DhH6Z6KbpEpdcfoMeRFsE m5/8WX1QFrdGscrMdWD/ezWXfVMhB7Ix5Lz7Fpm4S7scTWeIOWVjVnqcUZsodnAMjLikj94ykTI ya7J8aQoXBInigpUm+iB3E1mGr4PiNtc1UCUpKKR7USxa/EjQowHR7K+edq08542EZRyqNU140m UGtZpypu6HrzZOQtmxlWkdnaeRoCBcGbw1Xh4DnAbpDEftRrf2ce23+z2KQePmd8erWN6K0ZQLQ 3him1O1U3lhi53ivYg7K2lfkUMxpoPfoJbLolgRnIJ0zoOYfg+lelLJufXuMxp9mJCzYYK222EQ YIjPUwHgwRQ== X-Received: by 2002:a05:6214:2686:b0:921:7a02:7a53 with SMTP id 6a1803df08f44-9217a027bc0mr45689306d6.36.1795622119647; Wed, 25 Nov 2026 07:55:19 -0800 (PST) Return-Path: Received: from megalith.oryx-coho.ts.net ([2001:1970:3847:e000:e8bd:ca0f:c232:9f10]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921349b253csm167601326d6.15.2026.11.25.07.55.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 07:55:19 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH 6/6] ptest-cargo.bbclass: don't follow symlinks when chowning Date: Wed, 25 Nov 2026 10:55:07 -0500 Message-ID: <20261125155508.3024814-7-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261125155508.3024814-1-tgamblin@baylibre.com> References: <20261125155508.3024814-1-tgamblin@baylibre.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 25 Nov 2026 15:55:25 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251203 Use os.lchown() instead of shutil.chown(), as the former follows symlinks. os.lchown changes the owner of the link itself. shutil.chown() didn't add the follow_symlinks option until Python 3.13[1], so we can't just add that argument. [1]: https://docs.python.org/3/library/shutil.html#shutil.chown AI-Generated: Uses Claude Opus 5.5 Signed-off-by: Trevor Gamblin --- meta/classes-recipe/ptest-cargo.bbclass | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/meta/classes-recipe/ptest-cargo.bbclass b/meta/classes-recipe/ptest-cargo.bbclass index cc82ea320b..8f4f003a9a 100644 --- a/meta/classes-recipe/ptest-cargo.bbclass +++ b/meta/classes-recipe/ptest-cargo.bbclass @@ -117,12 +117,11 @@ python do_install_ptest_cargo() { if not script_exists: os.chmod(ptest_script, 0o755) - # this is chown -R root:root ${D}${PTEST_PATH} + # Equivalent to 'chown -R root:root ${D}${PTEST_PATH}, which doesn't follow + # symlinks for root, dirs, files in os.walk(ptest_dir): - for d in dirs: - shutil.chown(os.path.join(root, d), "root", "root") - for f in files: - shutil.chown(os.path.join(root, f), "root", "root") + for name in dirs + files: + os.lchown(os.path.join(root, name), 0, 0) } do_compile_ptest_cargo[dirs] = "${B}"