From patchwork Wed Aug 13 07:08:49 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Yan, Haixiao (CN)" X-Patchwork-Id: 68434 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 E3AC0CA0EE0 for ; Wed, 13 Aug 2025 07:09:29 +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.95352.1755068959523821304 for ; Wed, 13 Aug 2025 00:09:19 -0700 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=0320f3c99f=haixiao.yan.cn@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 57D5Z1Jk2819686 for ; Wed, 13 Aug 2025 07:09:18 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12on2040.outbound.protection.outlook.com [40.107.244.40]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 48fv001kaj-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Wed, 13 Aug 2025 07:09:17 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uSv6kbADDrDAttoK6etH6aCSkhinXUKzVH9O0hoPvL+PPPiV6Pz8RfbXQh+PYI6+UJZht24ww4bOLULlLevq5ro/xtOfIVaRfIqMckudLhIRbLrHMGZELXUwYYX4W4kAItdv2ENC9CcPBnkV3It9XCL3m5g1vVHTInpUgyh0sRDyUn1TNVOuKx06I3YPJ038RvhzU6TD+qg8QGu65VedUBi2hY5Os3ctvzeDWZkMfgwkCzahdr5L0N2xh/BPi9282sxtJs/d3HvNKO6qc2kFJG/1HEmLkAte7r1BHkSiOQfiPpgwdhhIUi02NGWvmoXaiq0437Qx9p9Wk/GaGw9QBw== 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=LsRVlUHjrz9qIZbA2/lUwKETVGIhU5f0Au0w+PEpaDE=; b=BYdD9dBKFjMxjTs8hb1U1wBE9CpIDEf8aNp+OoRCWoLOY+1WTh3XAy4qB9k/nTusrR63ep7xlS/wbDcH8BnVKfos19RPRo1asL6PwH4X/f4qEI/8z+ZE4JwOcOxbfBvKCjiVqf/TWjVvcR2ptJVQGQLhX+C9Y0ma3ApWyWIsvbK1cDH5Y8QBpyoKewwatZciSv1QPoSt7CIVWdL/YYfFfNMH0pRSUcwzSJgTWktkGf6ont96oBBvhKNIxAy1qLS7Han4shSnT2ZUFSXCAWuRK7F+UC+j5KgTpW0HEv9mNo2RGDgH21Mftof0re5hXsEvsvKcQLaA3MuzKEQqSB5/Xg== 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 CH0PR11MB8189.namprd11.prod.outlook.com (2603:10b6:610:18d::13) by SA2PR11MB4827.namprd11.prod.outlook.com (2603:10b6:806:11f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9009.22; Wed, 13 Aug 2025 07:09:15 +0000 Received: from CH0PR11MB8189.namprd11.prod.outlook.com ([fe80::4025:23a:33d9:30a4]) by CH0PR11MB8189.namprd11.prod.outlook.com ([fe80::4025:23a:33d9:30a4%3]) with mapi id 15.20.9031.014; Wed, 13 Aug 2025 07:09:14 +0000 From: haixiao.yan.cn@windriver.com To: openembedded-devel@lists.openembedded.org Subject: [meta-openembedded][PATCH 1/1] python3-posix-ipc: upgrade 1.2.0 -> 1.3.0 Date: Wed, 13 Aug 2025 15:08:49 +0800 Message-ID: <20250813070855.664999-1-haixiao.yan.cn@windriver.com> X-Mailer: git-send-email 2.44.3 X-ClientProxiedBy: KUZPR03CA0007.apcprd03.prod.outlook.com (2603:1096:d10:2a::13) To CH0PR11MB8189.namprd11.prod.outlook.com (2603:10b6:610:18d::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR11MB8189:EE_|SA2PR11MB4827:EE_ X-MS-Office365-Filtering-Correlation-Id: b574236d-a200-4666-0c55-08ddda384fa3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|366016|1800799024|38350700014|13003099007; X-Microsoft-Antispam-Message-Info: FETQ7/mJI90nkFdGTM4JQaZeHy5f5M1Hf+JECj0zdLBFzEpboCFfK6400RnHJ03AFpvgtO5tItmiLty0EjWzCrFGqhaq19mp7cu2mtcwnJn6aw1a55c9oH2RRTrqMNWfa+nVP3t50T2QIjAOjuUrw/7I8Giy9SxN7DGLt+oTE/G484uI8GtGLcIM55aMO3KTgCeEuNmfkkfzBsjDPP8ApRUdUE6BkD/16g1CsAHUIcPPG+Jn0+Q3O+tZrusNh3GFE/piakIzrQ8acKSucit4VV7OY/A+O/yIYmYb3WPOil3l5aowXYSTVDRdf/ZA866Cp2qhfvSyrAe/z6cWQSbtQwjF1EaINobzO7PkBjJ0fbHkr8cLEGtv5n/el9j6bJeV3kCM/As2OFxSqbv7aKupAL1W7sE/kjWhW3NOC0QUAKYWYd6KiewyocOyib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NLI;SFV:NSPM;H:CH0PR11MB8189.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(366016)(1800799024)(38350700014)(13003099007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: xMTbFy7t3fCY+O0g0WSDnZsb2UzqwtvPUOiK8qASUZSt3sQh3k9aB48opVchuC8KPN37ASUvt2fQ3VH8tISmutEmeGK3PlOQG1wNsJwyd/i+nRc9ipSlpxrqqLzxVfzWdYadh5m3xDcgog7yenz5NrTohPQaewad/RS+2YQxbej3QzMKS8ZGrn7QAwb8Xm5AvhFLLjVItqWEPNO6lTTi35yGWc3M/rmwGsz6gID9blNWSK0JsNsBuwaLRvIb3agmXsnH1B6uitrJQuBndgadfCRLgvV/t2MA5/DHn7suvxKHjj/Rko5PgfxdyaipcCwW5StE1jOmrdhQCjkbNbdBCG6CvDqMerrNXzvcOpTpmT7uybJ7dZdCHAlZjcLzlJ4HWCuaOBwAWYGlAV4XhikFsv3z8slRFqhflNoayxYfs9Y7jrV5th6ZN119NzmcosfHeWCXWQs7ozI/MxpSj9FE3wZEgG5Fnl07gpi0m3Vc2R4l5ob/2sGFekEcOmP/qcQtS+6Ce4UCGUWsPhX/x4ewQp7OCOg5q6sPhg+CL9MzWI6PH1YJlJ94sJ8/h5fEdUl3VFEg8n+umvk6yUxVZJ/INSmvih29dn4N3LU4HID4oGO0ijRtC865DDIGdsuUxDcedtNqxIZdo/wY6h4exdShihXB0i/mkvfC6S+dkjjYEsIBgdXpvZNdMNMpfVbuGZept4aZATCMYI/7QRNKw2FxTI3/C0pGE8rXUKQtzBbfg3eVIu7w2ZRgUmT+DWKHZCaLzR7MAGbmZ0ESK3Ky5+rTxjL+mKH3K1JnYx3/LGBv5YJXTyHkjlIQENGfKvBilAnuf5pCHxcnMajVlLhF4YOELldGQeMitb0JAUrfKGk7GwFpbbZQ+omaP51S5J3ZcyWOjhVQVCrYsT+k9rUpajerzrXsh4AxfChnEUaD2NAF7ZxrKY8OjGvFS+38y23N1EbmJmf5Qeqk6PScgaq1YJVePXgIguw28Z17vp2+wTAZiTXlJC2WmLwbrk1SqNk4w29x2IcNs2bPZb00BIDAfp/GGMswcjUYqkcNUfwL6kBhnBNvXXWGIqtElXZu1A763484yj6BEVF/Tm9ZiQ29ytTXwG17upOUoX97FkCr1A26463DNbWbgQMVWr7noPpBtQ+0Ye+CLnmHHDbSMWHE0Tuf+weK2AHTgKjWp+xpyj+8VprIeRAbfigzBVbxCN9nPc2nMw1MqCntIqBJ6tdrWTAvjY8Zc+OXvGsOh2aWnuDsdYILI0dONBmpFXhd200WTDKvivsKEcPeykqHw9rgiiJGrY8KUrrH/5npVWEDOFicYXH3l0cGnR56tKBNzAXucIZtXixtq0Th/BXW8RZQY11MyrUnSGSBUNz21wdFDCBjx+LTtR7fJeBkJhiQypJx2TqVbVHvKgrSoSeHV+8If6rJpq79ynQ+554lvHPPrVMkCO1pH/drVK0og3zq67mL3CulvP8xpStC20nwYWEK052/1BJUaPz9+hhefj3ZACwjodaodHh4BgbeqONSI8JIi+nacEUBisM8yN0f98FqMcWE3Mv3krHQeBqr8d8/UMbJ2EN8NNRO5c/xYL0U3/eEIdva5X1fPr5Qpyv152oCWgYoWw== X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: b574236d-a200-4666-0c55-08ddda384fa3 X-MS-Exchange-CrossTenant-AuthSource: CH0PR11MB8189.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2025 07:09:14.8250 (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: M0JlFsThyGtsH47fGqoosgV8Dvv5VNKUv1j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OzJTrgnMSXtC6+HmwQ/umM4/Yv QV/UKQLU3r1GvbXxe8YizYyQw3vBWakidcYokUg1s922DH3crnBn6KVsveia6c= X-Proofpoint-GUID: _cpZ_2bxwsDIe1GEy5YUqxq35R9QKp_P X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-12_08,2025-08-11_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 clxscore=1015 suspectscore=0 phishscore=0 priorityscore=1501 spamscore=0 impostorscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2507300000 definitions=firstrun X-MIME-Autoconverted: from 8bit to quoted-printable by mx0a-0064b401.pphosted.com id 57D5Z1Jk2819686 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 ; Wed, 13 Aug 2025 07:09:29 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/118923 From: Haixiao Yan Remove following patches, they have been fixed since 1.3.0. 0001-build_support-use-source-filename-instead-of-foo-for.patch 0002-build_support-handle-empty-max_priority-value-as-Non.patch 0003-build_support-use-does_build_succeed-in-compile_and_.patch Backport a patch to fix dicsovery fails when CC contains flags License-Update: update copyright statements to include contributors Signed-off-by: Haixiao Yan --- This change also fix following runtime error: ./build_support/src/sniff_mq_prio_max: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./build_support/src/sniff_mq_prio_max) ...x-cross-compilation-error-when-CC-is.patch | 53 ++++++++++++++++ ...e-source-filename-instead-of-foo-for.patch | 50 --------------- ...ndle-empty-max_priority-value-as-Non.patch | 49 --------------- ...e-does_build_succeed-in-compile_and_.patch | 62 ------------------- ...pc_1.2.0.bb => python3-posix-ipc_1.3.0.bb} | 10 ++- 5 files changed, 57 insertions(+), 167 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-posix-ipc/0001-build_support-fix-cross-compilation-error-when-CC-is.patch delete mode 100644 meta-python/recipes-devtools/python/python3-posix-ipc/0001-build_support-use-source-filename-instead-of-foo-for.patch delete mode 100644 meta-python/recipes-devtools/python/python3-posix-ipc/0002-build_support-handle-empty-max_priority-value-as-Non.patch delete mode 100644 meta-python/recipes-devtools/python/python3-posix-ipc/0003-build_support-use-does_build_succeed-in-compile_and_.patch rename meta-python/recipes-devtools/python/{python3-posix-ipc_1.2.0.bb => python3-posix-ipc_1.3.0.bb} (51%) diff --git a/meta-python/recipes-devtools/python/python3-posix-ipc/0001-build_support-fix-cross-compilation-error-when-CC-is.patch b/meta-python/recipes-devtools/python/python3-posix-ipc/0001-build_support-fix-cross-compilation-error-when-CC-is.patch new file mode 100644 index 000000000000..c78d4ad726c6 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-posix-ipc/0001-build_support-fix-cross-compilation-error-when-CC-is.patch @@ -0,0 +1,53 @@ +From 01134093c9150248f9ea8890a41e922159593a7f Mon Sep 17 00:00:00 2001 +From: Haixiao Yan +Date: Fri, 8 Aug 2025 19:30:16 +0800 +Subject: [PATCH] build_support: fix cross-compilation error when CC is a + multi-part command + +Fix the following error when cross-compiling with an environment-defined CC +that includes flags: + +FileNotFoundError: [Errno 2] No such file or directory: 'x86_64-wrs-linux-gcc +-m64 -march=nehalem -mtune=generic -mfpmath=sse -msse4.2 +-fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security +-Werror=format-security +--sysroot=/build-1.3.0/tmp/work/corei7-64-wrs-linux/python3-posix-ipc/1.3.0/recipe-sysroot' + +This happened because the CC environment variable was treated as a single +string instead of being split into arguments. The fix uses shlex.split() to +correctly parse CC into a list of compiler and flags, and then unpacks it when +forming the subprocess command. + +Upstream-Status: Backport [https://github.com/osvenskan/posix_ipc/commit/0113409] + +Signed-off-by: Haixiao Yan +--- + build_support/discover_system_info.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/build_support/discover_system_info.py b/build_support/discover_system_info.py +index d1b171e4f602..1c3741f5577c 100644 +--- a/build_support/discover_system_info.py ++++ b/build_support/discover_system_info.py +@@ -1,6 +1,7 @@ + import subprocess + import platform + import os ++import shlex + + # Set these to None for compile/link debugging or subprocess.PIPE to silence + # compiler warnings and errors. +@@ -49,7 +50,9 @@ def does_build_succeed(filename, linker_options=""): + # - Some versions of Linux place the sem_xxx() functions in libpthread. + # Rather than testing whether or not it's needed, I just specify it + # everywhere since it's harmless to specify it when it's not needed. +- cmd = [os.getenv("CC", "cc"), ++ cc = os.getenv("CC", "cc") ++ cmd = [ ++ *shlex.split(cc), + '-Wall', + '-o', + f'./build_support/src/{filename[:-2]}', +-- +2.34.1 + diff --git a/meta-python/recipes-devtools/python/python3-posix-ipc/0001-build_support-use-source-filename-instead-of-foo-for.patch b/meta-python/recipes-devtools/python/python3-posix-ipc/0001-build_support-use-source-filename-instead-of-foo-for.patch deleted file mode 100644 index 8bb726708654..000000000000 --- a/meta-python/recipes-devtools/python/python3-posix-ipc/0001-build_support-use-source-filename-instead-of-foo-for.patch +++ /dev/null @@ -1,50 +0,0 @@ -From 09cfcf7de2aab873a13949d5a128ccfb9e54732d Mon Sep 17 00:00:00 2001 -From: Martin Jansa -Date: Mon, 5 May 2025 08:15:37 +0200 -Subject: [PATCH] build_support: use source filename instead of 'foo' for - discover tests - -* helps when debugging the issues -* use the same order of CC arguments in compile_and_run and - does_build_succeed just for consistency -* use pthread in both compile_and_run and does_build_succeed functions - it was added only to does_build_succeed in 5ec39f7af8cfd8525d225b1302fa93f7133b3849 - not sure if it was intentional - -Signed-off-by: Martin Jansa -Upstream-Status: Submitted [https://github.com/osvenskan/posix_ipc/pull/77] ---- - build_support/discover_system_info.py | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/build_support/discover_system_info.py b/build_support/discover_system_info.py -index bc4d174..6d059d9 100644 ---- a/build_support/discover_system_info.py -+++ b/build_support/discover_system_info.py -@@ -60,7 +60,7 @@ def does_build_succeed(filename, linker_options=""): - # Rather than testing whether or not it's needed, I just specify it - # everywhere since it's harmless to specify it when it's not needed. - cc = os.getenv("CC", "cc") -- cmd = "%s -Wall -o ./build_support/src/foo ./build_support/src/%s %s -lpthread" % (cc, filename, linker_options) -+ cmd = "%s -Wall -o ./build_support/src/%s ./build_support/src/%s %s -lpthread" % (cc, filename[:-2], filename, linker_options) - - p = subprocess.Popen(cmd, shell=True, stdout=STDOUT, stderr=STDERR) - -@@ -73,7 +73,7 @@ def compile_and_run(filename, linker_options=""): - # Utility function that returns the stdout output from running the - # compiled source file; None if the compile fails. - cc = os.getenv("CC", "cc") -- cmd = "%s -Wall -o ./build_support/src/foo %s ./build_support/src/%s" % (cc, linker_options, filename) -+ cmd = "%s -Wall -o ./build_support/src/%s ./build_support/src/%s %s -lpthread" % (cc, filename[:-2], filename, linker_options) - - p = subprocess.Popen(cmd, shell=True, stdout=STDOUT, stderr=STDERR) - -@@ -82,7 +82,7 @@ def compile_and_run(filename, linker_options=""): - return None - - try: -- s = subprocess.Popen(["./build_support/src/foo"], -+ s = subprocess.Popen(["./build_support/src/%s" % filename[:-2]], - stdout=subprocess.PIPE).communicate()[0] - return s.strip().decode() - except Exception: diff --git a/meta-python/recipes-devtools/python/python3-posix-ipc/0002-build_support-handle-empty-max_priority-value-as-Non.patch b/meta-python/recipes-devtools/python/python3-posix-ipc/0002-build_support-handle-empty-max_priority-value-as-Non.patch deleted file mode 100644 index 54c8ddaba7ae..000000000000 --- a/meta-python/recipes-devtools/python/python3-posix-ipc/0002-build_support-handle-empty-max_priority-value-as-Non.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 8fc46d871639dbe799f6ff0a61b046412ef5dcc6 Mon Sep 17 00:00:00 2001 -From: Martin Jansa -Date: Mon, 5 May 2025 08:16:30 +0200 -Subject: [PATCH] build_support: handle empty max_priority value as None -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -When cross-compiling these tests they fail when the host cannot execute -the binaries built for target. - -On my local ubuntu-22.04 docker container running -build_support/src/sniff_mq_prio_max results in: -posix_ipc-1.2.0 $ ./build_support/src/foo -bash: ./build_support/src/foo: cannot execute binary file: Exec format error -which triggers the Exception in compile_and_run and returns None - -While on some other ubuntu-22.04 containers I see: -posix_ipc-1.2.0$ ./build_support/src/sniff_mq_prio_max -/usr/lib/ld-linux-aarch64.so.1: No such file or directory - -and the compile_and_run returns -b'' -which then causes -posix_ipc-1.2.0/build_support/discover_system_info.py", line 244, in sniff_mq_prio_max -    if max_priority < 0: -       ^^^^^^^^^^^^^^^^ - -Handle the empty value the same as None to avoid this. - -Signed-off-by: Martin Jansa -Upstream-Status: Submitted [https://github.com/osvenskan/posix_ipc/pull/77] ---- - build_support/discover_system_info.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/build_support/discover_system_info.py b/build_support/discover_system_info.py -index 6d059d9..f8a3c83 100644 ---- a/build_support/discover_system_info.py -+++ b/build_support/discover_system_info.py -@@ -223,7 +223,7 @@ def sniff_mq_prio_max(): - except ValueError: - max_priority = None - -- if max_priority is None: -+ if not max_priority: - # Looking for a #define didn't work; ask sysconf() instead. - # Note that sys.sysconf_names doesn't exist under Cygwin. - if hasattr(os, "sysconf_names") and \ diff --git a/meta-python/recipes-devtools/python/python3-posix-ipc/0003-build_support-use-does_build_succeed-in-compile_and_.patch b/meta-python/recipes-devtools/python/python3-posix-ipc/0003-build_support-use-does_build_succeed-in-compile_and_.patch deleted file mode 100644 index b36d1cdb3ae1..000000000000 --- a/meta-python/recipes-devtools/python/python3-posix-ipc/0003-build_support-use-does_build_succeed-in-compile_and_.patch +++ /dev/null @@ -1,62 +0,0 @@ -From 760374e778fc28193cfea1416a739e206f9201c6 Mon Sep 17 00:00:00 2001 -From: Martin Jansa -Date: Mon, 5 May 2025 08:28:56 +0200 -Subject: [PATCH] build_support: use does_build_succeed in compile_and_run - -* avoid the duplication and building the sniff_mq_prio_max.c twice - -Signed-off-by: Martin Jansa -Upstream-Status: Submitted [https://github.com/osvenskan/posix_ipc/pull/77] ---- - build_support/discover_system_info.py | 27 ++++++++++----------------- - 1 file changed, 10 insertions(+), 17 deletions(-) - -diff --git a/build_support/discover_system_info.py b/build_support/discover_system_info.py -index f8a3c83..f6e6c8c 100644 ---- a/build_support/discover_system_info.py -+++ b/build_support/discover_system_info.py -@@ -72,22 +72,17 @@ def does_build_succeed(filename, linker_options=""): - def compile_and_run(filename, linker_options=""): - # Utility function that returns the stdout output from running the - # compiled source file; None if the compile fails. -- cc = os.getenv("CC", "cc") -- cmd = "%s -Wall -o ./build_support/src/%s ./build_support/src/%s %s -lpthread" % (cc, filename[:-2], filename, linker_options) -- -- p = subprocess.Popen(cmd, shell=True, stdout=STDOUT, stderr=STDERR) -- -- if p.wait(): -+ if does_build_succeed(filename, linker_options=""): -+ try: -+ s = subprocess.Popen(["./build_support/src/%s" % filename[:-2]], -+ stdout=subprocess.PIPE).communicate()[0] -+ return s.strip().decode() -+ except Exception: -+ # execution resulted in an error -+ return None -+ else: - # uh-oh, compile failed - return None -- -- try: -- s = subprocess.Popen(["./build_support/src/%s" % filename[:-2]], -- stdout=subprocess.PIPE).communicate()[0] -- return s.strip().decode() -- except Exception: -- # execution resulted in an error -- return None - - - def get_sysctl_value(name): -@@ -211,11 +206,9 @@ def sniff_mq_prio_max(): - # ref: http://www.opengroup.org/onlinepubs/009695399/basedefs/limits.h.html - DEFAULT_PRIORITY_MAX = 32 - -- max_priority = None - # OS X up to and including 10.8 doesn't support POSIX messages queues and - # doesn't define MQ_PRIO_MAX. Maybe this aggravation will cease in 10.9? -- if does_build_succeed("sniff_mq_prio_max.c"): -- max_priority = compile_and_run("sniff_mq_prio_max.c") -+ max_priority = compile_and_run("sniff_mq_prio_max.c") - - if max_priority: - try: diff --git a/meta-python/recipes-devtools/python/python3-posix-ipc_1.2.0.bb b/meta-python/recipes-devtools/python/python3-posix-ipc_1.3.0.bb similarity index 51% rename from meta-python/recipes-devtools/python/python3-posix-ipc_1.2.0.bb rename to meta-python/recipes-devtools/python/python3-posix-ipc_1.3.0.bb index 4f544c80bcff..02d2e55bad15 100644 --- a/meta-python/recipes-devtools/python/python3-posix-ipc_1.2.0.bb +++ b/meta-python/recipes-devtools/python/python3-posix-ipc_1.3.0.bb @@ -2,18 +2,16 @@ DESCRIPTION = "POSIX IPC primitives (semaphores, shared memory and message queue HOMEPAGE = "https://semanchuk.com/philip/posix_ipc/" SECTION = "devel/python" LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=1a4f3bd729df04bf68f66ef877e9c7c9" +LIC_FILES_CHKSUM = "file://LICENSE;md5=e3d8df223c2614dbf1aabdc1ca23cc10" PYPI_PACKAGE = "posix_ipc" UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" -SRC_URI[sha256sum] = "b7444e2703c156b3cb9fcb568e85d716232f3e78f04529ebc881cfb2aedb3838" +SRC_URI[sha256sum] = "6e559ac5bb5f6f233c396103f4868e383bbd8f4e54d20876910896f47d353448" SRC_URI += " \ - file://0001-build_support-use-source-filename-instead-of-foo-for.patch \ - file://0002-build_support-handle-empty-max_priority-value-as-Non.patch \ - file://0003-build_support-use-does_build_succeed-in-compile_and_.patch \ -" + file://0001-build_support-fix-cross-compilation-error-when-CC-is.patch \ + " # Message queue support requires librt for proper linking LDFLAGS += "-lrt"