From patchwork Thu Nov 13 02:11:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yu, Mingli" X-Patchwork-Id: 74321 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BCE6CD4F3A for ; Thu, 13 Nov 2025 02:11:44 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14876.1762999897081698018 for ; Wed, 12 Nov 2025 18:11:37 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=oskWB7v+; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=3412475fcb=mingli.yu@windriver.com) Received: from pps.filterd (m0250812.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5AD0tIAl123596 for ; Thu, 13 Nov 2025 02:11:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=PPS06212021; bh=egketoDAh30MXmPwwiji fx/ByXaQVqlFlThvwrfYtFA=; b=oskWB7v+T7SsR52deXYBxFiwTwie5KEmhkej N4cs024ogMarPZCgO64Eq58Q1CBSSCu0bAVaN36m2hw3Md1/pwE226cCsr/LQhTG D3G6+lB7BJyIyJ61hKu6f4YsAvrDwrGgGg9VzWSRUx5ZWzSum3YvkgvChA0hYWgg DG9MwvLCbZQCMrCjDa86yRAD9ChKEQIinpCrvr/57MU0MYyQk3kuTWn71rc02c6n mefwXIooy4ZZkaARXkOQSdrx/irsDo6rWY5DVvIl0UjjYmfZui251V+drUstbt6m 726XalrqW5GwddyQK0xaUUs0dFedXVlg2gyGbCzbJXpAuFQ7Lg== Received: from ala-exchng01.corp.ad.wrs.com ([128.224.246.36]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4acwphrx6b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 13 Nov 2025 02:11:35 +0000 (GMT) Received: from ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Wed, 12 Nov 2025 18:11:34 -0800 Received: from pek-lpg-core4.wrs.com (10.11.232.110) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Wed, 12 Nov 2025 18:11:34 -0800 From: To: Subject: [v3][PATCH] valgrind: Upgrade 3.25.1 -> 3.26.0 Date: Thu, 13 Nov 2025 10:11:28 +0800 Message-ID: <20251113021128.1332691-1-mingli.yu@windriver.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Proofpoint-GUID: AlaaHATFPB2IKnG9DV8tsDEbSia01s7S X-Proofpoint-ORIG-GUID: AlaaHATFPB2IKnG9DV8tsDEbSia01s7S X-Authority-Analysis: v=2.4 cv=TKtIilla c=1 sm=1 tr=0 ts=69153e57 cx=c_pps a=AbJuCvi4Y3V6hpbCNWx0WA==:117 a=AbJuCvi4Y3V6hpbCNWx0WA==:17 a=6UeiqGixMTsA:10 a=VkNPw1HP01LnGYTKEx00:22 a=CCpqsmhAAAAA:8 a=3fyaaF4VAAAA:8 a=vMm7aj2tAAAA:8 a=t7CeM3EgAAAA:8 a=pGLkceISAAAA:8 a=CRJY_8W9VS3NmtSa1dEA:9 a=QVpHfkqoFdcA:10 a=ul9cdbp4aOFLsgKbc677:22 a=r6sWxlpsa93XciTrHfvA:22 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTEzMDAxMyBTYWx0ZWRfX7gRzPmJ+m/12 XHsvoSzyjXGlehBz5rAn7LS2Xgt3+Fn3/NuLSt6i2cB1BS8cMwTSgdXgirKZzk3uyXygM/Umg5Y hMF6ExRA/0cK5G8jDX+asyb304xw8PDobQyHhkGq9qPwEW5xLvDPhEzFxXmK0nOA7dBYDgbr6eg 6qW+bkezlfcRBJV3SQOLuJt113BLskI4fuB5m5E+x+QgIoFh7m3GhCwaDBxpAmOP+wsTAdc3Vkv RZN1brCetWm2+J7iH76mycNrRWBh8FHqh+OMKE6PLrXyAVniS8p94rBk84tIlArhAtFHsqHi7mt IZIgiEkBnR8xxr56c4/arlPU6ELJRUWl3zR4cLJkzg7h+fNGH94otTIDmWU+CkVZFcsb+RMQcAD 6bIWEHeblI+9ZyG2XiyqIZDyPpwrFw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-12_06,2025-11-12_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 clxscore=1015 bulkscore=0 spamscore=0 adultscore=0 suspectscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511130013 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 13 Nov 2025 02:11:44 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/226222 From: Mingli Yu License-Update: License version and the copyright year updated [1]. Remove 0001-Use-portable-syntax-for-pushsection-directive-in-inl.patch as the logic has been already included in the new version [2]. Add patch to fix off64_t not defined in musl. [1] https://sourceware.org/git/?p=valgrind.git;a=commit;h=3392155359822c0d4e8bb371862e92425054d02a [2] https://sourceware.org/git/?p=valgrind.git;a=commitdiff;h=2fa8581c4974db57de80de915d16ce299eb9aa84 Signed-off-by: Mingli Yu --- ...tax-for-pushsection-directive-in-inl.patch | 31 ------------ ...c-workaround-off64_t-not-defined-in-.patch | 47 +++++++++++++++++++ ...{valgrind_3.25.1.bb => valgrind_3.26.0.bb} | 10 ++-- 3 files changed, 52 insertions(+), 36 deletions(-) delete mode 100644 meta/recipes-devtools/valgrind/valgrind/0001-Use-portable-syntax-for-pushsection-directive-in-inl.patch create mode 100644 meta/recipes-devtools/valgrind/valgrind/0001-getdents_filter.c-workaround-off64_t-not-defined-in-.patch rename meta/recipes-devtools/valgrind/{valgrind_3.25.1.bb => valgrind_3.26.0.bb} (93%) diff --git a/meta/recipes-devtools/valgrind/valgrind/0001-Use-portable-syntax-for-pushsection-directive-in-inl.patch b/meta/recipes-devtools/valgrind/valgrind/0001-Use-portable-syntax-for-pushsection-directive-in-inl.patch deleted file mode 100644 index b59c5442231..00000000000 --- a/meta/recipes-devtools/valgrind/valgrind/0001-Use-portable-syntax-for-pushsection-directive-in-inl.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 2089383a0e3a50f527337ea05188b3e302069888 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Wed, 14 May 2025 09:29:33 -0700 -Subject: [PATCH] Use portable syntax for pushsection directive in inline - assembly - -'@' does not work with clang inline assembler, but '%' works with both -gcc and clang. Therefore use '%' to make it more portable - -Fixes -:1:41: error: expected '%' or "" - -Upstream-Status: Submitted [https://bugs.kde.org/show_bug.cgi?id=504222] -Signed-off-by: Khem Raj ---- - coregrind/vg_preloaded.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/coregrind/vg_preloaded.c b/coregrind/vg_preloaded.c -index 5bec51d..e4c2dbc 100644 ---- a/coregrind/vg_preloaded.c -+++ b/coregrind/vg_preloaded.c -@@ -55,7 +55,7 @@ - /* Note: The "MS" section flags are to remove duplicates. */ - #define DEFINE_GDB_PY_SCRIPT(script_name) \ - asm("\ --.pushsection \".debug_gdb_scripts\", \"MS\",@progbits,1\n\ -+.pushsection \".debug_gdb_scripts\", \"MS\",%progbits,1\n\ - .byte 1 /* Python */\n\ - .asciz \"" script_name "\"\n\ - .popsection \n\ diff --git a/meta/recipes-devtools/valgrind/valgrind/0001-getdents_filter.c-workaround-off64_t-not-defined-in-.patch b/meta/recipes-devtools/valgrind/valgrind/0001-getdents_filter.c-workaround-off64_t-not-defined-in-.patch new file mode 100644 index 00000000000..6afb6d79ded --- /dev/null +++ b/meta/recipes-devtools/valgrind/valgrind/0001-getdents_filter.c-workaround-off64_t-not-defined-in-.patch @@ -0,0 +1,47 @@ +From 8c2313226de5171dd6724c1878a679b556b6cab4 Mon Sep 17 00:00:00 2001 +From: Alyssa Ross +Date: Sun, 2 Nov 2025 16:43:47 +0100 +Subject: [PATCH v2] Avoid Glibc-specific ino64_t/off64_t + +The *64_t types are transitional APIs for applications that do not yet +fully support large files on 32-bit platforms. musl no longer +suppotrs them, so building this test for musl now fails. Since this +is for a raw syscall anyway, it doesn't make sense to use +libc-specific types here anyway, so I've changed this to match the +definition of the struct used in the kernel (except there the +kernel-specific u64 and s64 typedefs are used instead). + +Fixes: b2c27072b ("Deal with linux arches that don't have getdents, only getdents64") + +Upstream-Status: Submitted [https://bugs.kde.org/show_bug.cgi?id=511548] + +Signed-off-by: Mingli Yu +--- + none/tests/linux/getdents_filter.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/none/tests/linux/getdents_filter.c b/none/tests/linux/getdents_filter.c +index 361659f51..4f46a6ea2 100644 +--- a/none/tests/linux/getdents_filter.c ++++ b/none/tests/linux/getdents_filter.c +@@ -2,6 +2,7 @@ + + #define _GNU_SOURCE + #include ++#include + #include + #include + #include +@@ -14,8 +15,8 @@ + #include + + struct linux_dirent64 { +- ino64_t d_ino; +- off64_t d_off; ++ uint64_t d_ino; ++ int64_t d_off; + unsigned short d_reclen; + unsigned char d_type; + char d_name[]; +-- +2.51.0 diff --git a/meta/recipes-devtools/valgrind/valgrind_3.25.1.bb b/meta/recipes-devtools/valgrind/valgrind_3.26.0.bb similarity index 93% rename from meta/recipes-devtools/valgrind/valgrind_3.25.1.bb rename to meta/recipes-devtools/valgrind/valgrind_3.26.0.bb index a8b0be5767e..6f7d67df0ec 100644 --- a/meta/recipes-devtools/valgrind/valgrind_3.25.1.bb +++ b/meta/recipes-devtools/valgrind/valgrind_3.26.0.bb @@ -3,9 +3,9 @@ HOMEPAGE = "http://valgrind.org/" DESCRIPTION = "Valgrind is an instrumentation framework for building dynamic analysis tools. There are Valgrind tools that can automatically detect many memory management and threading bugs, and profile your programs in detail." BUGTRACKER = "http://valgrind.org/support/bug_reports.html" LICENSE = "GPL-2.0-only & GPL-2.0-or-later & BSD-3-Clause" -LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ - file://include/pub_tool_basics.h;beginline=6;endline=29;md5=41c410e8d3f305aee7aaa666b2e4f366 \ - file://include/valgrind.h;beginline=1;endline=56;md5=ad3b317f3286b6b704575d9efe6ca5df \ +LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \ + file://include/pub_tool_basics.h;beginline=6;endline=29;md5=9ba449d120f6845e6a432073278d6e3a \ + file://include/valgrind.h;beginline=1;endline=56;md5=993563aaa122558df9c5d743de074d04 \ file://COPYING.DOCS;md5=24ea4c7092233849b4394699333b5c56" SRC_URI = "https://sourceware.org/pub/valgrind/valgrind-${PV}.tar.bz2 \ @@ -25,9 +25,9 @@ SRC_URI = "https://sourceware.org/pub/valgrind/valgrind-${PV}.tar.bz2 \ file://0001-memcheck-tests-Fix-timerfd-syscall-test.patch \ file://0001-docs-Disable-manual-validation.patch \ file://0001-tests-arm-Use-O-instead-of-O0.patch \ - file://0001-Use-portable-syntax-for-pushsection-directive-in-inl.patch \ + file://0001-getdents_filter.c-workaround-off64_t-not-defined-in-.patch \ " -SRC_URI[sha256sum] = "61deb8d0727b45c268efdc1b3b6c9e679cd97cbf5ee4b28d1dead7c8b7a271af" +SRC_URI[sha256sum] = "8d54c717029106f1644aadaf802ab9692e53d93dd015cbd19e74190eba616bd7" UPSTREAM_CHECK_REGEX = "valgrind-(?P\d+(\.\d+)+)\.tar" COMPATIBLE_HOST = '(i.86|x86_64|arm|aarch64|mips|powerpc|powerpc64|riscv64).*-linux'