From patchwork Fri Sep 26 08:19:09 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxu Jia X-Patchwork-Id: 71066 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 152C5CAC5AC for ; Fri, 26 Sep 2025 08:20:00 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web11.12563.1758874798251894768 for ; Fri, 26 Sep 2025 01:19:58 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=Tn20KrdK; 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=1364979e65=hongxu.jia@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 58Q4FkZ31581083 for ; Fri, 26 Sep 2025 08:19:57 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=xh+9lKbTtw9sdAyLTF6M /NvwaxJ4mGlWFotdERlYn0o=; b=Tn20KrdKUgFrbr65m57telRnRH7UjPwRJDP+ 3f0Hr1FhIlZ3geAj3usdlxZJTTRKSExAxhuJGsdoPskKQaB13fDReCnp2zbYlES5 0nI9F7LyxI6bWmgFy3m4Ml3ljcf48EKKNcQdC48xFptSErrgeqdH+KOmMyLPS5vM gWLxowAKMQnv0F5PItP9F0c3bfZ4rd06rItNWjc+8aJae+wa5SOHb3rhtaYL7/XJ 6B0t+AasIDjoEITp670i+vbjIU4V/BT+CPx6OrjO11Q2EoBGQSqeub9LFNe1Kqyq sKSFv/xjxEFkcZDHawsv72KRHwoQJ5h4LQI5ezTmKVLWk89jFQ== Received: from ala-exchng02.corp.ad.wrs.com ([128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 49dbsm8jdh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 26 Sep 2025 08:19:57 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.59; Fri, 26 Sep 2025 01:19:15 -0700 Received: from pek-lpg-core5.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.59 via Frontend Transport; Fri, 26 Sep 2025 01:19:15 -0700 From: Hongxu Jia To: Subject: [meta-python][PATCH v4 1/6] python3-frozenlist: support reproducibility Date: Fri, 26 Sep 2025 16:19:09 +0800 Message-ID: <20250926081914.3127272-1-hongxu.jia@windriver.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Proofpoint-GUID: kPG6IiCJnzTWLXuIfJI2tkfCrSP9lhAa X-Authority-Analysis: v=2.4 cv=TJhIilla c=1 sm=1 tr=0 ts=68d64cad cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=yJojWOMRYYMA:10 a=Q4-j1AaZAAAA:8 a=t7CeM3EgAAAA:8 a=BbirK1CDs2gZwnygIKIA:9 a=9H3Qd4_ONW2Ztcrla5EB:22 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-ORIG-GUID: kPG6IiCJnzTWLXuIfJI2tkfCrSP9lhAa X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTI2MDA3NiBTYWx0ZWRfX7/lX0qZElxnK UO9P/HLxhzAeu/V4LjU5pKREA6hivS0w9imqNPakFsDoeVMn24KUAqF1JNh+Ke+WdmMGHk7J/ig sKOC+Y9NoyZldxnI65RxMGGXxx24cB8YOM4iJzlQL+B/tIQ3fj3E3fXQddqJUMwgC2o5fCF7A65 sY3UoZY/QqLyC+RshDN6y7/xVG+08gDCNf/jmyQK6N6C9pfKW7pN2YJdZT20Tu80QeDfnDWSBjh 4zp6pTuVrEY0YewgVT6RfAWaAaaO2YXH9CSr4Scx96VToSzphF5bbdd7gMTsoyljjhBGrWrWiHP N2TZTG7+dpnXwSlF6xE5VYFGhcEdwLWzbWKkX51Cyz9CHkv3O/wZ5CSzDYg63vr5iPUB2IP2lzz SWiqE7L0ihbVtFKMIdUkw7hFqfk07w== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-26_02,2025-09-26_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 impostorscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2509150000 definitions=main-2509260076 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 26 Sep 2025 08:20:00 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/119899 In order to make the generated library be reproducible, build wheel in source dir other than tmp dir (/tmp/xxxxxx), then yocto toolchain's option -fdebug-prefix-map could work as expected Note: To support reproducibility, it also requires oe-core commit [1] to be merged [1] https://git.openembedded.org/openembedded-core/commit/?id=61d98d12eca1c7bdf3b7387a820c83d3b8fad965 Signed-off-by: Hongxu Jia --- .../0001-build-wheel-in-place.patch | 31 +++++++++++++++++++ .../python/python3-frozenlist_1.7.0.bb | 3 ++ 2 files changed, 34 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-frozenlist/0001-build-wheel-in-place.patch diff --git a/meta-python/recipes-devtools/python/python3-frozenlist/0001-build-wheel-in-place.patch b/meta-python/recipes-devtools/python/python3-frozenlist/0001-build-wheel-in-place.patch new file mode 100644 index 0000000000..84f81da775 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-frozenlist/0001-build-wheel-in-place.patch @@ -0,0 +1,31 @@ +From 606843ad079d9d0dac1172533d42b5a2327b99ed Mon Sep 17 00:00:00 2001 +From: Hongxu Jia +Date: Wed, 17 Sep 2025 15:41:09 +0800 +Subject: [PATCH] build wheel in place + +In order to make the generated library be reproducible, build wheel +in source dir other than tmp dir (/tmp/xxxxxx), then yocto toolchain's +option -fdebug-prefix-map could work as expected + +Upstream-Status: Pending +Signed-off-by: Hongxu Jia +--- + packaging/pep517_backend/_backend.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/packaging/pep517_backend/_backend.py b/packaging/pep517_backend/_backend.py +index 61cad34..d5d839e 100644 +--- a/packaging/pep517_backend/_backend.py ++++ b/packaging/pep517_backend/_backend.py +@@ -316,7 +316,7 @@ def build_wheel( + """ + with maybe_prebuild_c_extensions( + line_trace_cython_when_unset=False, +- build_inplace=False, ++ build_inplace=True, + config_settings=config_settings, + ): + return _setuptools_build_wheel( +-- +2.34.1 + diff --git a/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb b/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb index 7d813a026c..d832494c82 100644 --- a/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb +++ b/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb @@ -7,6 +7,9 @@ SRC_URI[sha256sum] = "2e310d81923c2437ea8670467121cc3e9b0f76d3043cc1d2331d56c7fb inherit pypi python_setuptools_build_meta cython +SRC_URI += " \ + file://0001-build-wheel-in-place.patch \ +" DEPENDS += " \ python3-expandvars-native \ " From patchwork Fri Sep 26 08:19:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxu Jia X-Patchwork-Id: 71064 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 1443FCAC5B9 for ; Fri, 26 Sep 2025 08:20:00 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web10.12562.1758874798825434478 for ; Fri, 26 Sep 2025 01:19:59 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=n5jWLBWi; 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=1364979e65=hongxu.jia@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 58Q4FkZ41581083 for ; Fri, 26 Sep 2025 08:19:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=PPS06212021; bh=56Gw75tG3/wKQCmZ5EFmNWG/rU6tC3YpqC+ZPEtsxNA=; b=n5jWLBWirek2 nq+VyxK8PdcQImAQAH3nSqxCDLkbPD6A5AfARcc8yoWmMEwpR/dCBBI+/KpMnuky 721CIO8EH+K/NOPYDtiq2rXXY/fbi3SWzar+6IsPNNl35bACXxkdjIGe6ivbpZnT Pjlt3KuSxfx61t4wNguRl4wvEuvXLs44czole+fmYKhOdQr6VyAVEZUqM2ZsWF2w PRlPZINN9TluVltNOMMCfs6SKc8sywQ5VA/qbYjQ89ekWJaS0BMadxH/dRfK92rK znymkfSaHo93vgrqDPW80WI2ek6bdSmokI6PS5ke7ZuLjaWwqyY0kKBRoU8jxSZE jPNk4llhVg== Received: from ala-exchng02.corp.ad.wrs.com ([128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 49dbsm8jdh-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 26 Sep 2025 08:19:57 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.59; Fri, 26 Sep 2025 01:19:16 -0700 Received: from pek-lpg-core5.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.59 via Frontend Transport; Fri, 26 Sep 2025 01:19:16 -0700 From: Hongxu Jia To: Subject: [meta-python][PATCH v4 2/6] python3-propcache: support reproducibility Date: Fri, 26 Sep 2025 16:19:10 +0800 Message-ID: <20250926081914.3127272-2-hongxu.jia@windriver.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250926081914.3127272-1-hongxu.jia@windriver.com> References: <20250926081914.3127272-1-hongxu.jia@windriver.com> MIME-Version: 1.0 X-Proofpoint-GUID: WiWnohR63_3aIDNZS-w0qGApqPYQCXKg X-Authority-Analysis: v=2.4 cv=TJhIilla c=1 sm=1 tr=0 ts=68d64cad cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=yJojWOMRYYMA:10 a=Q4-j1AaZAAAA:8 a=t7CeM3EgAAAA:8 a=BbirK1CDs2gZwnygIKIA:9 a=9H3Qd4_ONW2Ztcrla5EB:22 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-ORIG-GUID: WiWnohR63_3aIDNZS-w0qGApqPYQCXKg X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTI2MDA3NiBTYWx0ZWRfX/JblG9qXmM6L 1dCGUywVaL/RmrPfbRrsE7LlFBn+1/hmzRr1Dsps7a2suez/KrrOlaxiXNcPHxDPrgYRhBvSwa7 Ek4dKfXrSgNiI9OKGGaep4V46t9a099yHt1CtB+GR9ICszSfdCID1W6x7GEzV4E2Itr/I8C/XE8 Do1QDad3Py97wMIvY4fOLNb+pjEjIl8Tky74ZvGAZdEiMmQsqCkmLkFp/kah0Rreot3BUsj2tmu ezX6a+e2odycD6Zz6pgmtY4fPFtHuVTBBultKbVnh5ne4fhxB8aMRXkuNBEtgHxHQFr9QXOJbYk sWkeo86TthNn7Ey3hnIp0Ma2lFegFR+hf+WK3b1rl4n3KnlV9bLaIgrnbBdYmdCSZNjPRb0dvZB M3wdTzzGwq0ZDLYLkRDGxVN253z5rA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-26_02,2025-09-26_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 impostorscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2509150000 definitions=main-2509260076 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 26 Sep 2025 08:20:00 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/119900 In order to make the generated library be reproducible, build wheel in source dir other than tmp dir (/tmp/xxxxxx), then yocto toolchain's option -fdebug-prefix-map could work as expected Note: To support reproducible, it also requires oe-core commit [1] to be merged [1] https://git.openembedded.org/openembedded-core/commit/?id=61d98d12eca1c7bdf3b7387a820c83d3b8fad965 Signed-off-by: Hongxu Jia --- .../0001-build-wheel-in-place.patch | 31 +++++++++++++++++++ .../python/python3-propcache_0.3.2.bb | 4 +++ 2 files changed, 35 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-propcache/0001-build-wheel-in-place.patch diff --git a/meta-python/recipes-devtools/python/python3-propcache/0001-build-wheel-in-place.patch b/meta-python/recipes-devtools/python/python3-propcache/0001-build-wheel-in-place.patch new file mode 100644 index 0000000000..84f81da775 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-propcache/0001-build-wheel-in-place.patch @@ -0,0 +1,31 @@ +From 606843ad079d9d0dac1172533d42b5a2327b99ed Mon Sep 17 00:00:00 2001 +From: Hongxu Jia +Date: Wed, 17 Sep 2025 15:41:09 +0800 +Subject: [PATCH] build wheel in place + +In order to make the generated library be reproducible, build wheel +in source dir other than tmp dir (/tmp/xxxxxx), then yocto toolchain's +option -fdebug-prefix-map could work as expected + +Upstream-Status: Pending +Signed-off-by: Hongxu Jia +--- + packaging/pep517_backend/_backend.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/packaging/pep517_backend/_backend.py b/packaging/pep517_backend/_backend.py +index 61cad34..d5d839e 100644 +--- a/packaging/pep517_backend/_backend.py ++++ b/packaging/pep517_backend/_backend.py +@@ -316,7 +316,7 @@ def build_wheel( + """ + with maybe_prebuild_c_extensions( + line_trace_cython_when_unset=False, +- build_inplace=False, ++ build_inplace=True, + config_settings=config_settings, + ): + return _setuptools_build_wheel( +-- +2.34.1 + diff --git a/meta-python/recipes-devtools/python/python3-propcache_0.3.2.bb b/meta-python/recipes-devtools/python/python3-propcache_0.3.2.bb index e78d7b3428..8e2394a5c4 100644 --- a/meta-python/recipes-devtools/python/python3-propcache_0.3.2.bb +++ b/meta-python/recipes-devtools/python/python3-propcache_0.3.2.bb @@ -7,6 +7,10 @@ SRC_URI[sha256sum] = "20d7d62e4e7ef05f221e0db2856b979540686342e7dd9973b815599c70 inherit pypi python_setuptools_build_meta ptest-python-pytest cython +SRC_URI += " \ + file://0001-build-wheel-in-place.patch \ +" + DEPENDS += " \ python3-expandvars-native \ " From patchwork Fri Sep 26 08:19:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxu Jia X-Patchwork-Id: 71065 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 138FACAC5AE for ; Fri, 26 Sep 2025 08:20:00 +0000 (UTC) Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.web11.12564.1758874799168995510 for ; Fri, 26 Sep 2025 01:19:59 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=SPJO21ta; 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.166.238, mailfrom: prvs=1364979e65=hongxu.jia@windriver.com) Received: from pps.filterd (m0250810.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 58Q6ucD11966008 for ; Fri, 26 Sep 2025 01:19:58 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=PPS06212021; bh=8PhqhMKsVfz8ZAny+Styk3cP8jNLS5YimEvUNmWw/Jg=; b=SPJO21taE8QW BZkdQ3DJXO681Zv0RpB9T1UcBhLo8F9A5BXY4dSWKnc5+osTp7e0YryCHoyS00lp Nk1hxv3jdnzKnH5kvIlFRe4jBNoB+faTSb+eTxlkWZJ7Ia0+6KA5uuD96l+5zcqv mxQx5B+1iW6D1sjhFP1qQiJktyZ4RLvgXbnBoUIaXUp8pOVF0TbqjlTl2XKAwa2g p6jByCJ+c6fk+4/kGZyORoQ0RCGJ11uq/G/8lmBwK+EFPDFZeZwxa5Zk+osH8DY5 esj5baJVdgmUEDYeN+enkqmlYGUlp77gY9i7brU4zxHBxikdA9GrHNA457hvG/Us EITFFkBRWg== Received: from ala-exchng02.corp.ad.wrs.com ([128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 49dbsh0jg9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 26 Sep 2025 01:19:58 -0700 (PDT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.59; Fri, 26 Sep 2025 01:19:17 -0700 Received: from pek-lpg-core5.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.59 via Frontend Transport; Fri, 26 Sep 2025 01:19:16 -0700 From: Hongxu Jia To: Subject: [meta-python][PATCH v4 3/6] python3-yarl: support reproducibility Date: Fri, 26 Sep 2025 16:19:11 +0800 Message-ID: <20250926081914.3127272-3-hongxu.jia@windriver.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250926081914.3127272-1-hongxu.jia@windriver.com> References: <20250926081914.3127272-1-hongxu.jia@windriver.com> MIME-Version: 1.0 X-Authority-Analysis: v=2.4 cv=ebUwvrEH c=1 sm=1 tr=0 ts=68d64cae cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=yJojWOMRYYMA:10 a=Q4-j1AaZAAAA:8 a=t7CeM3EgAAAA:8 a=BbirK1CDs2gZwnygIKIA:9 a=9H3Qd4_ONW2Ztcrla5EB:22 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-ORIG-GUID: RYvUP3FWhzRzAUsnw6ndvnVRgI6-_qHf X-Proofpoint-GUID: RYvUP3FWhzRzAUsnw6ndvnVRgI6-_qHf X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTI2MDA3NiBTYWx0ZWRfX5q/l+09VwBc7 S654mq5hOvcDZn3ZguCqjyuVojIrKaUXj3SOG+CYBF5IQUNsKTpb50pUxiUywTeZAsg/7p9ogk7 YTEw6QpYwu4DCx5wpjzV5buTgmQNxDh0Hk2LREjtuAcmGo+oO9LR/02JVe2LpwSfV+6w6zxjds8 3ngU0JhqFByAu5h9+Vex+4f6HHGtBsQP93Krzfe8Fpdnvu3vc7Sg8PBcvE53W2VvjJrk7tYOP1y kFaE0+ejrjHUfDJDxYNpcEFArg2zprx1SjA+M8SpY4nEbWAjb3u/Ks4/cU1abTumy5lV+/PbSOZ fuOiUDlzI7uBSZJdzZXmIChRp58x4ejGhzWJUyWkh9hdM2JPascY/mR2fd5WCrlvHPVXyC7CMFQ 1u6F5CbijOsgS/zcpEmWuRFnD5Ly0Q== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-26_02,2025-09-26_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 spamscore=0 priorityscore=1501 impostorscore=0 phishscore=0 clxscore=1015 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2509150000 definitions=main-2509260076 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 26 Sep 2025 08:20:00 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/119901 In order to make the generated library be reproducible, build wheel in source dir other than tmp dir (/tmp/xxxxxx), then yocto toolchain's option -fdebug-prefix-map could work as expected Note: To support reproducible, it also requires oe-core commit [1] to be merged [1] https://git.openembedded.org/openembedded-core/commit/?id=61d98d12eca1c7bdf3b7387a820c83d3b8fad965 Signed-off-by: Hongxu Jia --- .../0001-build-wheel-in-place.patch | 31 +++++++++++++++++++ .../python/python3-yarl_1.20.1.bb | 4 +++ 2 files changed, 35 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-yarl/0001-build-wheel-in-place.patch diff --git a/meta-python/recipes-devtools/python/python3-yarl/0001-build-wheel-in-place.patch b/meta-python/recipes-devtools/python/python3-yarl/0001-build-wheel-in-place.patch new file mode 100644 index 0000000000..84f81da775 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-yarl/0001-build-wheel-in-place.patch @@ -0,0 +1,31 @@ +From 606843ad079d9d0dac1172533d42b5a2327b99ed Mon Sep 17 00:00:00 2001 +From: Hongxu Jia +Date: Wed, 17 Sep 2025 15:41:09 +0800 +Subject: [PATCH] build wheel in place + +In order to make the generated library be reproducible, build wheel +in source dir other than tmp dir (/tmp/xxxxxx), then yocto toolchain's +option -fdebug-prefix-map could work as expected + +Upstream-Status: Pending +Signed-off-by: Hongxu Jia +--- + packaging/pep517_backend/_backend.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/packaging/pep517_backend/_backend.py b/packaging/pep517_backend/_backend.py +index 61cad34..d5d839e 100644 +--- a/packaging/pep517_backend/_backend.py ++++ b/packaging/pep517_backend/_backend.py +@@ -316,7 +316,7 @@ def build_wheel( + """ + with maybe_prebuild_c_extensions( + line_trace_cython_when_unset=False, +- build_inplace=False, ++ build_inplace=True, + config_settings=config_settings, + ): + return _setuptools_build_wheel( +-- +2.34.1 + diff --git a/meta-python/recipes-devtools/python/python3-yarl_1.20.1.bb b/meta-python/recipes-devtools/python/python3-yarl_1.20.1.bb index bbf9e3d782..6eedcf0f82 100644 --- a/meta-python/recipes-devtools/python/python3-yarl_1.20.1.bb +++ b/meta-python/recipes-devtools/python/python3-yarl_1.20.1.bb @@ -9,6 +9,10 @@ PYPI_PACKAGE = "yarl" inherit pypi ptest-python-pytest python_setuptools_build_meta cython +SRC_URI += " \ + file://0001-build-wheel-in-place.patch \ +" + DEPENDS += " \ python3-expandvars-native \ " From patchwork Fri Sep 26 08:19:12 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxu Jia X-Patchwork-Id: 71068 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 EBFEACAC5AC for ; Fri, 26 Sep 2025 08:20:09 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web11.12566.1758874801251578415 for ; Fri, 26 Sep 2025 01:20:01 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=mrM+vsnz; 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=1364979e65=hongxu.jia@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 58Q6DArv1238173 for ; Fri, 26 Sep 2025 08:20:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=PPS06212021; bh=Dv9EKKGSawaPr3cSgJEEVqDGTXTeRvh4uRySpqR4xbY=; b=mrM+vsnzZ8QO +r/9HY4Vbj0liPrmwie4SedvzAC9d5F9joZFTcp5FSd5RH5ufIBeEtdsenoRfdq1 4FqWHwobtY1n1S+ESrPFTtSEeci3BgWSIJOXBI6RHZLgxGYI/4Re/kmKeTytmi86 CTJfVHC2lBTQ7bP6RilObPXPDynCe80DqhTiV4w4XeA6bjEQ0OurFwhBHhecrpOj qkso4E9b2Mbpy0u705SWa3hTNrU6QR0pTSRzuZPE+3cFCM7vdkP+EIXeYr0PZfNw +LqXhNxa0tnAVTcOXFQP2Nte0/Fs7/91yztR2Q7xfG3xEQHtThdlwLcKnoOLYklq zd53LW3odQ== Received: from ala-exchng02.corp.ad.wrs.com ([128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 49dbsh8j74-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 26 Sep 2025 08:20:00 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.59; Fri, 26 Sep 2025 01:19:18 -0700 Received: from pek-lpg-core5.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.59 via Frontend Transport; Fri, 26 Sep 2025 01:19:17 -0700 From: Hongxu Jia To: Subject: [meta-python][PATCH v4 4/6] python3-mlcommons-loadgen: support reproducibility Date: Fri, 26 Sep 2025 16:19:12 +0800 Message-ID: <20250926081914.3127272-4-hongxu.jia@windriver.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250926081914.3127272-1-hongxu.jia@windriver.com> References: <20250926081914.3127272-1-hongxu.jia@windriver.com> MIME-Version: 1.0 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTI2MDA3NiBTYWx0ZWRfX+QihXPD3fmR4 T2xbzwhBs0PHx07g3qBt5ICkulVJbz92mzI0u6M4avziyv5v4v8oAAwLx0JoB+zqzl8q3wO3pF6 06UH/ixpmGa6eQqsHpCubeaqtaam6v4JkKSYrrRgjo0afHkOP6wkvcPZK9knK1gZM4PtFHdUi2U GOxKO7AYDUvmYQVS75xe9/lTyCD+RvxnPiCeu4IXrsss3tGSsOWr73cuhCBLjxpRSTApJgt1b1R mJGULJlPyg5LHwtOdWcssXWZDzkUhQVj6Sc9kCC7nXXe+mkJnwTUhQTj9nJvCmm9/H9eJPj5ruG DHZRFneAnGujO+Op/uz1sXtiEZEfAskwjmMNAdghtzdJt7twwjR1QRjWh4mnN1foSpqGiGwBGlF 3YAthxtH0liU43YRIpL0u9MB7n9Y2Q== X-Proofpoint-ORIG-GUID: 35cY5hmv7d2DaDey_ntAzjDY5H_MBBn0 X-Proofpoint-GUID: 35cY5hmv7d2DaDey_ntAzjDY5H_MBBn0 X-Authority-Analysis: v=2.4 cv=U4WfzOru c=1 sm=1 tr=0 ts=68d64cb0 cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=yJojWOMRYYMA:10 a=SsMK-6ewAAAA:8 a=NEAV23lmAAAA:8 a=t7CeM3EgAAAA:8 a=y3uUKTl_r5acGo3yIGgA:9 a=49hUO6naoDravHwzbBTq:22 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-26_02,2025-09-26_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 adultscore=0 phishscore=0 impostorscore=0 clxscore=1015 suspectscore=0 bulkscore=0 spamscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2509150000 definitions=main-2509260076 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 26 Sep 2025 08:20:09 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/119902 Implement the SOURCE_DATE_EPOCH specification[1] for reproducible builds. If SOURCE_DATE_EPOCH is set, use it as timestamp instead of the current time. [1] https://reproducible-builds.org/specs/source-date-epoch/ Signed-off-by: Hongxu Jia --- .../files/source-date-epoch.patch | 41 +++++++++++++++++++ .../python3-mlcommons-loadgen_5.1.0.bb | 4 ++ 2 files changed, 45 insertions(+) create mode 100644 meta-python/recipes-devtools/python3-mlcommons-loadgen/files/source-date-epoch.patch diff --git a/meta-python/recipes-devtools/python3-mlcommons-loadgen/files/source-date-epoch.patch b/meta-python/recipes-devtools/python3-mlcommons-loadgen/files/source-date-epoch.patch new file mode 100644 index 0000000000..32e529d483 --- /dev/null +++ b/meta-python/recipes-devtools/python3-mlcommons-loadgen/files/source-date-epoch.patch @@ -0,0 +1,41 @@ +From dd7925397b84c2a327cd4594edba9f7ca5acef61 Mon Sep 17 00:00:00 2001 +From: Hongxu Jia +Date: Fri, 26 Sep 2025 14:02:23 +0800 +Subject: [PATCH] Honor the SOURCE_DATE_EPOCH variable + +Implement the SOURCE_DATE_EPOCH specification[1] for reproducible +builds. If SOURCE_DATE_EPOCH is set, use it as timestamp instead of the +current time. + +[1] https://reproducible-builds.org/specs/source-date-epoch/ + +Upstream-Status: Submitted [https://github.com/mlcommons/inference/pull/2345] + +Signed-off-by: Hongxu Jia +--- + version_generator.py | 9 +++++++-- + 1 file changed, 7 insertions(+), 2 deletions(-) + +diff --git a/version_generator.py b/version_generator.py +index 2e75243..5202da9 100644 +--- a/version_generator.py ++++ b/version_generator.py +@@ -110,8 +110,13 @@ def generate_loadgen_version_definitions(cc_filename, loadgen_root): + # Write the version into the function definition + ofile.write(func_def("Version", f"\"{version_contents}\"")) + +- date_time_now_local = datetime.datetime.now().isoformat() +- date_time_now_utc = datetime.datetime.utcnow().isoformat() ++ if os.environ.get('SOURCE_DATE_EPOCH', False): ++ source_date_epoch = int(os.environ['SOURCE_DATE_EPOCH']) ++ date_time_now_local = datetime.datetime.fromtimestamp(source_date_epoch).isoformat() ++ date_time_now_utc = datetime.datetime.fromtimestamp(source_date_epoch, tz=datetime.timezone.utc).isoformat() ++ else: ++ date_time_now_local = datetime.datetime.now().isoformat() ++ date_time_now_utc = datetime.datetime.utcnow().isoformat() + ofile.write(func_def("BuildDateLocal", '"' + date_time_now_local + '"')) + ofile.write(func_def("BuildDateUtc", '"' + date_time_now_utc + '"')) + +-- +2.34.1 + diff --git a/meta-python/recipes-devtools/python3-mlcommons-loadgen/python3-mlcommons-loadgen_5.1.0.bb b/meta-python/recipes-devtools/python3-mlcommons-loadgen/python3-mlcommons-loadgen_5.1.0.bb index abc47172c1..7bb2e9d4dd 100644 --- a/meta-python/recipes-devtools/python3-mlcommons-loadgen/python3-mlcommons-loadgen_5.1.0.bb +++ b/meta-python/recipes-devtools/python3-mlcommons-loadgen/python3-mlcommons-loadgen_5.1.0.bb @@ -14,6 +14,10 @@ DEPENDS = "python3-pybind11-native" inherit setuptools3 pypi +SRC_URI += " \ + file://source-date-epoch.patch \ +" + PYPI_PACKAGE = "mlcommons_loadgen" UPSTREAM_CHECK_PYPI_PACKAGE = "mlcommons_loadgen" From patchwork Fri Sep 26 08:19:13 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxu Jia X-Patchwork-Id: 71069 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 04D13CAC5AE for ; Fri, 26 Sep 2025 08:20:10 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web11.12567.1758874801806453870 for ; Fri, 26 Sep 2025 01:20:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=lD/Xfe81; 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=1364979e65=hongxu.jia@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 58Q6DArw1238173 for ; Fri, 26 Sep 2025 08:20:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=PPS06212021; bh=1oldRp/jApuZNzERyCjeIjdjc8JId/s27AlMDKcWc0w=; b=lD/Xfe81kO2/ +4eWE8mWmKaM6QJiieOTpGCB4uDbWQeztfIJYJyGVlLdcyCzRgvSakxarfj+c3mB ad2ZZYOfm4WrmfUfBWsu5pFoxKJ6s/4hjdms0DumjGpieQmD0AGVSMyeWitnQWTc mhvB3mr69dNGPLSdQ9VZ0we7rssAQZSRAwZPTuP+IkCh0IN6w7BjNRnzj3Xrxny8 2gkQLzznAUBvRcGQG6WSASsQa+CDknHcW1xzQFHrsw/9g2xrnyTJ40DrvajxGAwM aEwNOC8R4mnByHEug804FxEmESggZlbzYAwBFDVRUfmSbx8j0WMiY/1GHSy1GU60 +X7PWYXqAg== Received: from ala-exchng02.corp.ad.wrs.com ([128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 49dbsh8j74-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 26 Sep 2025 08:20:00 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.59; Fri, 26 Sep 2025 01:19:19 -0700 Received: from pek-lpg-core5.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.59 via Frontend Transport; Fri, 26 Sep 2025 01:19:18 -0700 From: Hongxu Jia To: Subject: [meta-python][PATCH v4 5/6] python3-pandas: fix reproducibility issue Date: Fri, 26 Sep 2025 16:19:13 +0800 Message-ID: <20250926081914.3127272-5-hongxu.jia@windriver.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250926081914.3127272-1-hongxu.jia@windriver.com> References: <20250926081914.3127272-1-hongxu.jia@windriver.com> MIME-Version: 1.0 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTI2MDA3NiBTYWx0ZWRfXyanqJfsGAT5c /Co4w8Hx4ygHLXoVQn9hSBuVbgid/6Hp74dQILQc0/Cd2McLKdCIIgduJmmmu5YA7whRWr2CGnk fdlycUtXTjAnlj0GmxDq4O2H++8C63c1wbpqYvE4FaCHI0f0Le1W66DkhWH2649U7JJYnklFRd4 6evlH7Evp8BEM/XoSG0LnpYC/ikhGtqNleP3E5pbjcN7/gNKDJceeA9vK1nE1Nimiw3rA3fQXGi A8ze64cpCHvefdiz+IXH2E5/1ENZQuZWStSBEk2QsTKsxSpWdsrhtlVziaNbUd4fugpB6SFLssZ OjlxM5x+T5eIB08NsAXFJDu0YUrhZvFYqvqLSvErWgibsFaYBdY3DzrOH7smGFitk5/TPqI+ssm 22VM2QQUM7Oc/o9E9cAFWLkXUyfBqA== X-Proofpoint-ORIG-GUID: pq0p0AeS_KMy977Ck6Oul_efw5IvbBO3 X-Proofpoint-GUID: pq0p0AeS_KMy977Ck6Oul_efw5IvbBO3 X-Authority-Analysis: v=2.4 cv=U4WfzOru c=1 sm=1 tr=0 ts=68d64cb0 cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=yJojWOMRYYMA:10 a=NEAV23lmAAAA:8 a=t7CeM3EgAAAA:8 a=zIdP9HlweL3MVMreXwYA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-26_02,2025-09-26_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 adultscore=0 phishscore=0 impostorscore=0 clxscore=1015 suspectscore=0 bulkscore=0 spamscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2509150000 definitions=main-2509260076 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 26 Sep 2025 08:20:10 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/119904 The type of new_value is either `npy_timedelta' or `int64_t' In build/pandas/_libs/tslibs/timedeltas.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/tslibs/timedeltas.pyx.c .. npy_timedelta __pyx_v_new_value; ... In build/pandas/_libs/tslibs/timedeltas.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/tslibs/timedeltas.pyx.c ... __pyx_t_5numpy_int64_t __pyx_v_new_value; ... Explicitly define it as int64_t to assure the generated source is reproducibility between builds Signed-off-by: Hongxu Jia --- .../0001-fix-reproducibility-issue.patch | 43 +++++++++++++++++++ .../python/python3-pandas_2.2.3.bb | 1 + 2 files changed, 44 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pandas/0001-fix-reproducibility-issue.patch diff --git a/meta-python/recipes-devtools/python/python3-pandas/0001-fix-reproducibility-issue.patch b/meta-python/recipes-devtools/python/python3-pandas/0001-fix-reproducibility-issue.patch new file mode 100644 index 0000000000..deadacafa9 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pandas/0001-fix-reproducibility-issue.patch @@ -0,0 +1,43 @@ +From 80274cd3a0746ddc5421643dd40d47bdf3c6a68c Mon Sep 17 00:00:00 2001 +From: Hongxu Jia +Date: Fri, 26 Sep 2025 15:47:53 +0800 +Subject: [PATCH] fix reproducibility issue + +The type of new_value is either `npy_timedelta' or `int64_t' +In build/pandas/_libs/tslibs/timedeltas.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/tslibs/timedeltas.pyx.c +.. +npy_timedelta __pyx_v_new_value; +... + +In build/pandas/_libs/tslibs/timedeltas.cpython-313-x86_64-linux-gnu.so.p/pandas/_libs/tslibs/timedeltas.pyx.c +... +__pyx_t_5numpy_int64_t __pyx_v_new_value; +... + +Explicitly define it as int64_t to assure the generated source is +reproducibility between builds + +Upstream-Status: Submitted [https://github.com/pandas-dev/pandas/pull/62459] + +Signed-off-by: Hongxu Jia +--- + pandas/_libs/tslibs/timedeltas.pyx | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx +index f6c69cf..34ac9e7 100644 +--- a/pandas/_libs/tslibs/timedeltas.pyx ++++ b/pandas/_libs/tslibs/timedeltas.pyx +@@ -1820,6 +1820,9 @@ class Timedelta(_Timedelta): + + disallow_ambiguous_unit(unit) + ++ cdef: ++ int64_t new_value; ++ + # GH 30543 if pd.Timedelta already passed, return it + # check that only value is passed + if isinstance(value, _Timedelta): +-- +2.34.1 + diff --git a/meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb b/meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb index f1df026c5c..60cc01800f 100644 --- a/meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb +++ b/meta-python/recipes-devtools/python/python3-pandas_2.2.3.bb @@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=cb819092901ddb13a7d0a4f5e05f098a" SRC_URI += " \ file://0001-pyproject.toml-don-t-pin-dependency-versions.patch \ + file://0001-fix-reproducibility-issue.patch \ " SRC_URI:append:class-target = " file://0001-BLD-add-option-to-specify-numpy-header-location.patch " From patchwork Fri Sep 26 08:19:14 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxu Jia X-Patchwork-Id: 71067 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 EC024CAC5B9 for ; Fri, 26 Sep 2025 08:20:09 +0000 (UTC) Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.web11.12568.1758874801867983191 for ; Fri, 26 Sep 2025 01:20:01 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=nE8UlsDo; 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.166.238, mailfrom: prvs=1364979e65=hongxu.jia@windriver.com) Received: from pps.filterd (m0250810.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 58Q5boPB1836918 for ; Fri, 26 Sep 2025 01:20:01 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=PPS06212021; bh=So8D/4W9EYxCrP9ZCHmMbZzZyeO7o9/A8z2HTUnlqtM=; b=nE8UlsDoG2qT x1CreSwANqYbavg2CymeCGsF3932ogC2va9NMK0u9Bg/OPCykprR83S78ppLv+tk 3l/6y3l48T31T+zPZ7awCBA1i0npxzRruZQqgz7p0KViH9/NEPiECSkVSj1PWcRV 4iyB1RNyAs+/CRtx49FthyyKrTLK3LybkAm8LtsmXmN3bYgwCuzhsIBCK2p+J2Qx W3gIRtPVJYcMtrJYAVYXo18Ynm0Lo/7r3kvdMtjAU2Gh79t6FuLW4SMtMC8sTEkJ Q3Sh77fadSCpzWT2+OS2H8ZO3T1moRuha81u6WC9kC8ZfFkIH6y/73ey76PxiZtu YcflGwXO3g== Received: from ala-exchng02.corp.ad.wrs.com ([128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 49dbsh0jgj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 26 Sep 2025 01:20:01 -0700 (PDT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.59; Fri, 26 Sep 2025 01:19:20 -0700 Received: from pek-lpg-core5.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.59 via Frontend Transport; Fri, 26 Sep 2025 01:19:19 -0700 From: Hongxu Jia To: Subject: [meta-python][PATCH v4 6/6] meta-python/conf/layer.conf: update OEQA_REPRODUCIBLE_EXCLUDED_PACKAGES Date: Fri, 26 Sep 2025 16:19:14 +0800 Message-ID: <20250926081914.3127272-6-hongxu.jia@windriver.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250926081914.3127272-1-hongxu.jia@windriver.com> References: <20250926081914.3127272-1-hongxu.jia@windriver.com> MIME-Version: 1.0 X-Authority-Analysis: v=2.4 cv=ebUwvrEH c=1 sm=1 tr=0 ts=68d64cb1 cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=yJojWOMRYYMA:10 a=t7CeM3EgAAAA:8 a=zO_fQK5tYUZrF3Q8s6MA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-ORIG-GUID: t2hBbkSI3urUa5daurhOvyPfzpNk8tPh X-Proofpoint-GUID: t2hBbkSI3urUa5daurhOvyPfzpNk8tPh X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTI2MDA3NiBTYWx0ZWRfXy0kNpuWx++cn qZBw2l4qrzz5U6W1XvCWsCsvg2gGyoBKnHYXKbfahw/m0zvdyxP8ofTDdreYS5gsuR6gPes39yD 233bPyc2aW9RmsP96GpSMkBnc6fk7v67lRmRJ7JAYmecMVZAs+GpRDWzGNXr/fay0oukldPOLDH WGXqS8DbikrEEm9dvkOXkFhV19BcMnqXerBB7NSJP4n1XaN8/3RET5v4VXVyagQWtokWCdk0jj4 z5iZKRW4JUX32MXrG8JbwrGogIU9P3OKl5cj4rm6Nb8DY2z6PtqRvwa+eppXHg5WBti+SxFCK2a wsUsVfneCJiZ1Lu2EO1xsVuWDjlIwSwgOH/vMnRwiGwI57mDHMeDN7o9GDzKiLJHOYmf8AVYMt/ CDQw3+n8KzkQcZZO5keV6jdA4Kxrgg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-26_02,2025-09-26_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 spamscore=0 priorityscore=1501 impostorscore=0 phishscore=0 clxscore=1015 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2509150000 definitions=main-2509260076 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 26 Sep 2025 08:20:09 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/119903 Due to the recipes listed in OEQA_REPRODUCIBLE_EXCLUDED_PACKAGES has supported reproducibility, update OEQA_REPRODUCIBLE_EXCLUDED_PACKAGES to latest Signed-off-by: Hongxu Jia --- meta-python/conf/layer.conf | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/meta-python/conf/layer.conf b/meta-python/conf/layer.conf index b887accbf8..202c66561f 100644 --- a/meta-python/conf/layer.conf +++ b/meta-python/conf/layer.conf @@ -21,31 +21,4 @@ LICENSE_PATH += "${LAYERDIR}/licenses" # List of known non-reproducible package of the meta-python layer # Please keep this list sorted OEQA_REPRODUCIBLE_EXCLUDED_PACKAGES += " \ - python3-evdev \ - python3-evdev-dbg \ - python3-evdev-src \ - python3-frozenlist \ - python3-frozenlist-dbg \ - python3-kivy-src \ - python3-lief \ - python3-mlcommons-loadgen \ - python3-mlcommons-loadgen-dbg \ - python3-mlcommons-loadgen-src \ - python3-pandas \ - python3-pandas-dbg \ - python3-pandas-src \ - python3-propcache \ - python3-propcache-dbg \ - python3-pybind11-json-dev \ - python3-pycocotools-src \ - python3-pydantic-core \ - python3-pynacl \ - python3-pynacl-dbg \ - python3-pynacl-src \ - python3-pyproj \ - python3-pyproj-dbg \ - python3-pyproj-src \ - python3-pyzmq \ - python3-yarl \ - python3-yarl-dbg \ "