python3-posix-ipc: upgrade 1.2.0 -> 1.3.0
PATCH 1/1 python3-posix-ipc: upgrade 1.2.0 -> 1.3.0
From: Haixiao Yan <[email protected]>
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 <[email protected]>
Signed-off-by Khem Raj <[email protected]>
(cherry picked from commit f2dc694c52618c04880b28aceec48ff3a853558f)
---
...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} | 14 +++--
5 files changed, 61 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} (41%)meta-python/recipes-devtools/python/python3-posix-ipc/0001-build_support-fix-cross-compilation-error-when-CC-is.patch new file +53 -0
@@ -0,0 +1,53 @@ +From 01134093c9150248f9ea8890a41e922159593a7f Mon Sep 17 00:00:00 2001 +From: Haixiao Yan <[email protected]> +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 <[email protected]> +--- + 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 +
meta-python/recipes-devtools/python/python3-posix-ipc/0001-build_support-use-source-filename-instead-of-foo-for.patch deleted +0 -50
50 lines not on this page · raw message
meta-python/recipes-devtools/python/python3-posix-ipc/0002-build_support-handle-empty-max_priority-value-as-Non.patch deleted +0 -49
49 lines not on this page · raw message
meta-python/recipes-devtools/python/python3-posix-ipc/0003-build_support-use-does_build_succeed-in-compile_and_.patch deleted +0 -62
62 lines not on this page · raw message
meta-python/recipes-devtools/python/python3-posix-ipc_1.3.0.bb renamed from meta-python/recipes-devtools/python/python3-posix-ipc_1.2.0.bb +8 -6
@@ -2,15 +2,17 @@ DESCRIPTION = "POSIX IPC primitives (semaphores, shared memory and message queue HOMEPAGE = "http://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" -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" + inherit pypi python_setuptools_build_meta
Signature · 1 line
2.25.1