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 66097C021B5 for ; Mon, 24 Feb 2025 08:20:55 +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.84955.1740385249296882829 for ; Mon, 24 Feb 2025 00:20:49 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); 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=4150c0ec72=changqing.li@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 51O5kMD3030998 for ; Mon, 24 Feb 2025 08:20:48 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 44y3t2j2e5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 24 Feb 2025 08:20:48 +0000 (GMT) Received: from m0250811.ppops.net (m0250811.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 51O8CvHe017951 for ; Mon, 24 Feb 2025 08:20:47 GMT Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam04lp2171.outbound.protection.outlook.com [104.47.73.171]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 44y3t2j2e4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Feb 2025 08:20:47 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yQX9IWwbLRNMDCR48xqt1P1j6P6/u1ZSubODuT01qN8gAQ6b2Z3SoYdke+wHIh4So2+11TPA/eJ5QXqSJrIecr4exlqZY1HtqnxGT8zwmKHUez9sORhtZDf/DBzEdsR1rklMQAiCQSCC6IHACaZsCcir+9+EoOA7ydoYRt7DAJuwJm7le8cfOpd9QTr+1zxcbcKPre3mOkPl2heYl9Yp1g0MBZkwsEa/qkRjjyLA1s/GgNvn6FRCLGpI0FIE6XhBlIFqh5UadY4qOVJbCwZqqODLNHnnsEm3Ai+P87+yuVI47DHe1hygM1QpLFrzTPJtgxWs4srI+6ARhvMfbHSSWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JUXU3ESi2uy9X12XGEaiDCYvQymtY+mVgMUTmCQyAhk=; b=vh6BViQ3Uz4GfKlGAE1EmtKHLm9OBEUTGegLxxzc+ISfYDLPbZ4au/kAAwKeS61M66O+yaLgw9TeWewAZYDDrYc0qkuH2xs5LdWgR42YpHfNYoCg25GOU4GEOdpN887MKwav/QrprqM0TvD3HYKoqVdsiQeIv+506yyJU9XPlm6WEZRrZaRa8DMNflUI3D0tk4bI5Za4j2j9Uvoj0B895HS3mA7l3F4PlozSNBje4o0CI9RjSxsPFOeOFO5llAIlfAhgY8VV+WDTC1IcLeACOPFQ5vXOO8lurf6VgSfBITTIYv905+iO+YBGcyXex1+oQry4fnU7UJe3AMEdSzSTrQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from DS0PR11MB7312.namprd11.prod.outlook.com (2603:10b6:8:11f::18) by SA3PR11MB7977.namprd11.prod.outlook.com (2603:10b6:806:2f3::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8445.19; Mon, 24 Feb 2025 08:20:38 +0000 Received: from DS0PR11MB7312.namprd11.prod.outlook.com ([fe80::8436:b2d3:31a9:1c8c]) by DS0PR11MB7312.namprd11.prod.outlook.com ([fe80::8436:b2d3:31a9:1c8c%5]) with mapi id 15.20.8466.016; Mon, 24 Feb 2025 08:20:38 +0000 Content-Type: multipart/alternative; boundary="------------uxS58gRGSl49Oy9ky5f0hUI1" Message-ID: Date: Mon, 24 Feb 2025 16:20:33 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [OE-core] [PATCH] Revert "python3-ctypes: depend on ldconfig only if distro-feature set" To: Mathieu Dubois-Briand , openembedded-core@lists.openembedded.org, joerg.sommer@navimatix.de References: <20250220035724.1460062-1-changqing.li@windriver.com> <1826FD59DBA1FC0B.20721@lists.openembedded.org> Content-Language: en-US From: Changqing Li In-Reply-To: <1826FD59DBA1FC0B.20721@lists.openembedded.org> X-ClientProxiedBy: TYAPR01CA0077.jpnprd01.prod.outlook.com (2603:1096:404:2c::17) To DS0PR11MB7312.namprd11.prod.outlook.com (2603:10b6:8:11f::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7312:EE_|SA3PR11MB7977:EE_ X-MS-Office365-Filtering-Correlation-Id: c00398b5-7e71-4eb1-a3c0-08dd54ac1ecf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|4022899009|13003099007|8096899003; X-Microsoft-Antispam-Message-Info: =?utf-8?B?SGNwYy9jYmNyWW5ZVDEwN3VKb1JBN1lVbkR2S3pNb2JqalF2TzNRd0hSWjc2?= =?utf-8?B?b3lIM205eGVZdE5YK29ES2dGa2FQYklVZFBnN0lxditnN1U5ZG83RlF3eFda?= =?utf-8?B?bnN1WGV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QjVtY0hY?= =?utf-8?B?UXhzTi9vZGRZdEpDOWYzaUxHK21kUFBsVEdMdGVMVmZFWVg1VkFLcWJ6S3hH?= =?utf-8?B?djJHcGdKN0k3Y1didTF1dWF4MEVtNW51VlZmbEpqNlZnVXdVQThiTjJUa3VF?= =?utf-8?B?RGVkekhHWXY4eTFpWjVWdmlIZVNmNjZYVStEQ2RVdU1SMDc4V1RRZjI4WllZ?= =?utf-8?B?SjhtT0JDd2dWU0dSaXBCOURPdzdsZ0JaUVNFUEtYZk1rcEE1MWN2MlVMbjZh?= =?utf-8?B?VFVFVkVJVlh4RUFXMW91SDVBNXVSZEpkMUgrTnorcDgzajF1VHBmNjljVWR1?= =?utf-8?B?RzNHQzFuZTFaOVFQNlhGRlZpS1lLLzV6elB5R2JaVHY3ODZ6Yk8yT3VCWHUx?= =?utf-8?B?K2ZrR1QySTE3T2lRQ2NCVThiTzRlL1FzbFJtMERFYnYxQTc2QVNYRzYvcjFR?= =?utf-8?B?bUYrekZaUndyTVowVnovUTNGMXM1MVNQTER0TFlobXB0VGFoSitUQ0d4Zm9j?= =?utf-8?B?STV2OXhMSzc1VU5qRW9pSlg5alR5cE9weEZaV1RkNDBWc09QZTRma0xZaE1Z?= =?utf-8?B?VEt0S293KzF4MzRiWnM2RGRVQ01XS0JsQUtEZWtId2g3MjVZNjFJVHd1RHJG?= =?utf-8?B?ZWZXVmJqWWhVOGNqR2V4eU5jWlJ2YlJkeDB2SlBwWVVBUkFYUy9IT2RHd1pZ?= =?utf-8?B?Ryt0NjRGYUhORVF6dStKd3RhQVNNLytzSFJIcFJ1TzY2RWhlRDdSQXc1QUl1?= =?utf-8?Q?hyr5H7bSsNtuTdYidAI62gjO8SFRwQAzw/NeMlv?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR11MB7312.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(4022899009)(13003099007)(8096899003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ODJyZTZ1L0JUNHY4SGo4YnhybitZdTlaWVhRMS9IYzFoSEZxV2g3UUlocGZP?= =?utf-8?B?cnd1aUtGTnhYTmJad052NnJKSktLOXlmbTd4akRuYlRHVkJsQWRqelRNMzZX?= =?utf-8?B?Q0NXS2RMWFJTaDZRQk9scms4TkM2eFNCWlZWMS9rdzRTVTFxZUl2S2JuaEwr?= =?utf-8?B?bnBVWTJrb1JaRWEvRGlkNkkyVE9mSW1scGVRajFrRDBlWnI3c2hXaWhvK1Fx?= =?utf-8?B?UHMvYnhiTmdHTUxRVnR1VURBZFAvSVdjNC9ldjlPeElER2x0eHlMSXlzMUhH?= =?utf-8?B?T1NUZjV6enhyMnNXeUpVbmZROWZlZkU4S0RBQVg1TThqamJZZ2tNSGlIaXVL?= =?utf-8?B?bTEyU01yejJCZTVxRWJlQTZiYUVZQVdaellXL05RSDhtVk5OK1pGbTFuSzJa?= =?utf-8?B?VVNOOHFlZWlzaWVNeU9IdnppbmU3ZVZwaDUvYktPeWdJNHUvN1ZLUmdMSzRN?= =?utf-8?B?bGJYbXFUbkVpSlVtRmxFUGpSRTFCNVZPZHBNaHVjaURuNTZkRFRIMkQ2OER6?= =?utf-8?B?aDhUOVpZY0ZDNmZUWUI0NEVqNUZYZUJ5NmROSmtLQS9FekxxTG9RTGlUSXo2?= =?utf-8?B?bWtXZU1wNzh0R2lLbjlaeTJiWHhkTHRrZlFnUmtEZ0dINGQ2SDcyRVhBK2U1?= =?utf-8?B?c0JJa2ZSMVB0N3ZqWm9tTUNhZVpXV1lTWk5BTGFISEFOalB3RlpVK2VMWUJp?= =?utf-8?B?L3o4QVpiaFVKU2wzWklWRW53NHphYzlGdUtNT01tZ29mUzZCeU0ySzdwTm9K?= =?utf-8?B?M3ZmU3dEQTF1azNJTUdzVHUwQ2VVZ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mV5dDIxOHJMNmJRUzh2SGR5enA3RHVpOXlTVldjcVpQbVph?= =?utf-8?B?YXVFV3hxVm1GRUMyUDl2Tk9BOS9yN0NNeXo5SmZYWCs2Y1NDNnRLM3kreENI?= =?utf-8?B?YU9OamZSRkhTVUpMdE16N1FvSlFBM3pra0dNY1MrcE9kdHYxMFVWb0o1S09E?= =?utf-8?B?V1BXdnIvZnR0QW1LVU5OWlJFNTF0VGNHRUwvQzd1WVVQZkI0YkdGUEhSNTR3?= =?utf-8?B?Nitsd3Z0U3pvV0lnWjNMME91TnBOOTUzR0NwZS9qa2FzZGlFeVJUdVQwaXJI?= =?utf-8?B?MkFCUTZwZ1NFbkM3dEdJUFZpa0VoWndEcjBJMTBJRnpQYkw1bkh4YmxYUDlr?= =?utf-8?B?TjZHYkF5SkJVMHhxdnhaOVN0cU5vTDc2dDhkZDV3aStMQW9iQWFpSlgvTGpG?= =?utf-8?B?dGRSekhveHpLUmxCSUxSdDhZcXltWFZnNDg1YzJhZXBKa3l1RlRGVGtaNzlD?= =?utf-8?B?L3c9PQ==?= X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: c00398b5-7e71-4eb1-a3c0-08dd54ac1ecf X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7312.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2025 08:20:38.5700 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /1PWrPHUoXzFLk58ewic++yOW9xHBjbEX4FyJfDJ+QsDvsHe/k6Yqf1kD+Blr1sKrgztu1ALrYYGSPeUaZaIOyTdWbSQ59wzraD1vp5nPxM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR11MB7977 X-Authority-Analysis: v=2.4 cv=eoIlzppX c=1 sm=1 tr=0 ts=67bc2be0 cx=c_pps a=n5+7iF7l5R/EKaY7dbRUPA==:117 a=wKuvFiaSGQ0qltdbU6+NXLB8nM8=:19 a=Ol13hO9ccFRV9qXi2t6ftBPywas=:19 a=xqWC_Br6kY4A:10 a=T2h4t0Lz3GQA:10 a=Q4-j1AaZAAAA:8 a=NEAV23lmAAAA:8 a=iGHA9ds3AAAA:8 a=1NWNoF9oAAAA:8 a=P-IC7800AAAA:8 a=t7CeM3EgAAAA:8 a=z8vU8Gr3U-nLPclttLsA:9 a=QEXdDO2ut3YA:10 a=52mdeZd8sWgJSgSe30wA:9 a=WZgyLd53R_YNtev1:21 a=_W_S_7VecoQA:10 a=lqcHg5cX4UMA:10 a=9H3Qd4_ONW2Ztcrla5EB:22 a=nM-MV4yxpKKO9kiQg6Ot:22 a=97APRTa-CG6DvPMFVxHL:22 a=d3PnA9EDa4IxuAV0gXij:22 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: z9MEnY1N3vs7X8PL47m2d0paeb1XEA7i X-Proofpoint-ORIG-GUID: PUotL8uVjFHYSNFCQBLt1HiAv3FS5M9Z X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-24_03,2025-02-20_02,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 lowpriorityscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 mlxscore=0 bulkscore=0 spamscore=0 adultscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.21.0-2502100000 definitions=main-2502240060 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 ; Mon, 24 Feb 2025 08:20:55 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/211841 --------------uxS58gRGSl49Oy9ky5f0hUI1 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/24/25 08:27, Changqing Li via lists.openembedded.org wrote: > > > On 2/21/25 22:34, Mathieu Dubois-Briand wrote: >> CAUTION: This email comes from a non Wind River email account! >> Do not click links or open attachments unless you recognize the sender and know the content is safe. >> >> On Thu Feb 20, 2025 at 4:57 AM CET, Changqing Li via lists.openembedded.org wrote: >>> From: Changqing Li >>> >>> In oe-core, function ldconfig_postinst_fragment use exist of >>> /sbin/ldconfig to decide if ldconfig is runned to generate the cache, >>> and function _run_ldconfig will run ldconfig to generate cache during >>> generate rootfs. ldconfig.service is actually not used since we have >>> generate ld.so.cache during do_rootfs, refer[1][2][3]. ldconfig >>> dependency is necessary when ldconfig not in DISTRO_FEATURES. >>> >>> The reverted commit causes regression when ldconfig not in >>> DISTRO_FEATURES, before, without ldconfig in DISTRO_FEATURES, >>> ctypes.util.find_library(name) can find the lib if it is installed, now, >>> since ldconfig is not installed, ctypes.util.find_library(name) cannot >>> find the lib even if it is installed. >>> >>> Here is one usecase(gtk+3 lib is installed, ctypes.util.find_library >>> used to find the lib): >>> import wx.lib.wxcairo as wxcairo >>> File "/usr/lib/python3.13/site-packages/wx/lib/wxcairo/{}init{}.py", line 59, in >>> from .wx_cairocffi import _ContextFromDC, _FontFaceFromFont >>> File "/usr/lib/python3.13/site-packages/wx/lib/wxcairo/wx_cairocffi.py", line 189, in >>> gdkLib = _findGDKLib() >>> File "/usr/lib/python3.13/site-packages/wx/lib/wxcairo/wx_cairocffi.py", line 181, in _findGDKLib >>> return _findHelper([libname], 'gdk', >>> "Unable to find the GDK shared library") >>> File "/usr/lib/python3.13/site-packages/wx/lib/wxcairo/wx_cairocffi.py", line 170, in _findHelper >>> raise RuntimeError(msg) >>> RuntimeError: Unable to find the GDK shared library >>> >>> [1]https://git.openembedded.org/openembedded-core/tree/meta/classes-global/package.bbclass#n394 >>> [2]https://git.openembedded.org/openembedded-core/tree/meta/lib/oe/rootfs.py#n316 >>> [3]https://github.com/systemd/systemd-stable/blob/v255-stable/units/ldconfig.service >>> >>> Signed-off-by: Changqing Li >>> --- >> Hi, >> >> Thanks for your patch. However, I believe this is introducing some >> regression: I've got some ptest failures on the autobuilder: >> >> AssertionError: >> Failed ptests: >> {'python3': ['test_timerfd_TFD_TIMER_ABSTIME', 'python3']} >> >> https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/992 >> >> You can get some more advanced about ptest failures in there: >> >> https://valkyrie.yocto.io/pub/non-release/20250221-33/testresults/qemux86-64-ptest/core-image-ptest-python3/ >> >> Can you have a look at this issue please? > > Sure. I will check this. > > Regards > > Changqing > Hi, Mathieu I cannot reproduce this ptest failure on my host. No failure of test_timerfd_TFD_TIMER_ABSTIME in log.do_testimage. and the result is: RESULTS - parselogs.ParseLogsTest.test_get_context: PASSED (0.00s) RESULTS - parselogs.ParseLogsTest.test_parselogs: PASSED (2.71s) RESULTS - ping.PingTest.test_ping: PASSED (0.02s) RESULTS - ssh.SSHTest.test_ssh: PASSED (0.56s) RESULTS - ptest.PtestRunnerTest.test_ptestrunner_expectsuccess: SKIPPED (0.00s) RESULTS - ptest.PtestRunnerTest.test_ptestrunner_expectfail: EXPECTEDFAIL (4455.53s) SUMMARY: core-image-ptest-python3 () - Ran 6 tests in 4458.839s core-image-ptest-python3 - OK - All required tests passed (successes=4, skipped=1, failures=0, errors=0) DEBUG: Python function do_testimage finished And I checked https://valkyrie.yocto.io/pub/non-release/20250221-33/testresults/qemux86-64-ptest/core-image-ptest-python3/, there is no AssertionError in log.do_testimage.2624139.20250221054435 . So I checked test_timerfd_TFD_TIMER_ABSTIME, refer [1]. Seems like this is not related to my changes. My commit changes RDEPENDS for package pthon3-ctype, and this is actually no influence for poky, since poky enable distro_feature ldconfig by default. There are some similar timerfd issue in upstream python, I guess maybe this is an intermittent failure of python13 [1] https://github.com/python/cpython/blob/main/Lib/test/test_os.py#L4402 [2] https://github.com/python/cpython/issues/126112 Regards Changqing >> -- >> Mathieu Dubois-Briand, Bootlin >> Embedded Linux and Kernel engineering >> https://bootlin.com >> > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#211834):https://lists.openembedded.org/g/openembedded-core/message/211834 > Mute This Topic:https://lists.openembedded.org/mt/111283758/3616873 > Group Owner:openembedded-core+owner@lists.openembedded.org > Unsubscribe:https://lists.openembedded.org/g/openembedded-core/unsub [changqing.li@windriver.com] > -=-=-=-=-=-=-=-=-=-=-=- > --------------uxS58gRGSl49Oy9ky5f0hUI1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit


On 2/24/25 08:27, Changqing Li via lists.openembedded.org wrote:


On 2/21/25 22:34, Mathieu Dubois-Briand wrote:
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

On Thu Feb 20, 2025 at 4:57 AM CET, Changqing Li via lists.openembedded.org wrote:
From: Changqing Li <changqing.li@windriver.com>

In oe-core, function ldconfig_postinst_fragment use exist of
/sbin/ldconfig to decide if ldconfig is runned to generate the cache,
and function _run_ldconfig will run ldconfig to generate cache during
generate rootfs.  ldconfig.service is actually not used since we have
generate ld.so.cache during do_rootfs, refer[1][2][3]. ldconfig
dependency is necessary when ldconfig not in DISTRO_FEATURES.

The reverted commit causes regression when ldconfig not in
DISTRO_FEATURES, before, without ldconfig in DISTRO_FEATURES,
ctypes.util.find_library(name) can find the lib if it is installed, now,
since ldconfig is not installed, ctypes.util.find_library(name) cannot
find the lib even if it is installed.

Here is one usecase(gtk+3 lib is installed, ctypes.util.find_library
used to find the lib):
import wx.lib.wxcairo as wxcairo
File "/usr/lib/python3.13/site-packages/wx/lib/wxcairo/{}init{}.py", line 59, in <module>
  from .wx_cairocffi import _ContextFromDC, _FontFaceFromFont
File "/usr/lib/python3.13/site-packages/wx/lib/wxcairo/wx_cairocffi.py", line 189, in <module>
  gdkLib = _findGDKLib()
File "/usr/lib/python3.13/site-packages/wx/lib/wxcairo/wx_cairocffi.py", line 181, in _findGDKLib
  return _findHelper([libname], 'gdk',
                     "Unable to find the GDK shared library")
File "/usr/lib/python3.13/site-packages/wx/lib/wxcairo/wx_cairocffi.py", line 170, in _findHelper
  raise RuntimeError(msg)
RuntimeError: Unable to find the GDK shared library

[1] https://git.openembedded.org/openembedded-core/tree/meta/classes-global/package.bbclass#n394
[2] https://git.openembedded.org/openembedded-core/tree/meta/lib/oe/rootfs.py#n316
[3] https://github.com/systemd/systemd-stable/blob/v255-stable/units/ldconfig.service

Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
Hi,

Thanks for your patch. However, I believe this is introducing some
regression: I've got some ptest failures on the autobuilder:

AssertionError:
Failed ptests:
{'python3': ['test_timerfd_TFD_TIMER_ABSTIME', 'python3']}

https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/992

You can get some more advanced about ptest failures in there:

https://valkyrie.yocto.io/pub/non-release/20250221-33/testresults/qemux86-64-ptest/core-image-ptest-python3/

Can you have a look at this issue please?

Sure. I will check this.

Regards

Changqing

Hi, Mathieu

I cannot reproduce this ptest failure on my host. No failure of test_timerfd_TFD_TIMER_ABSTIME in log.do_testimage. and the result is:

RESULTS - parselogs.ParseLogsTest.test_get_context: PASSED (0.00s) RESULTS - parselogs.ParseLogsTest.test_parselogs: PASSED (2.71s) RESULTS - ping.PingTest.test_ping: PASSED (0.02s) RESULTS - ssh.SSHTest.test_ssh: PASSED (0.56s) RESULTS - ptest.PtestRunnerTest.test_ptestrunner_expectsuccess: SKIPPED (0.00s) RESULTS - ptest.PtestRunnerTest.test_ptestrunner_expectfail: EXPECTEDFAIL (4455.53s) SUMMARY: core-image-ptest-python3 () - Ran 6 tests in 4458.839s core-image-ptest-python3 - OK - All required tests passed (successes=4, skipped=1, failures=0, errors=0) DEBUG: Python function do_testimage finished

And I checked https://valkyrie.yocto.io/pub/non-release/20250221-33/testresults/qemux86-64-ptest/core-image-ptest-python3/,

there is no AssertionError in log.do_testimage.2624139.20250221054435.

So I checked test_timerfd_TFD_TIMER_ABSTIME, refer [1]. Seems like this is not related to my changes.

My commit changes RDEPENDS for package pthon3-ctype, and this is actually no influence for poky, since poky enable distro_feature ldconfig by default.

There are some similar timerfd issue in upstream python, I guess maybe this is an intermittent failure of python13

[1] https://github.com/python/cpython/blob/main/Lib/test/test_os.py#L4402

[2] https://github.com/python/cpython/issues/126112

Regards
Changqing

--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#211834): https://lists.openembedded.org/g/openembedded-core/message/211834
Mute This Topic: https://lists.openembedded.org/mt/111283758/3616873
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [changqing.li@windriver.com]
-=-=-=-=-=-=-=-=-=-=-=-

--------------uxS58gRGSl49Oy9ky5f0hUI1--