diff mbox series

[meta-python,23/32] python3-posix-ipc: upgrade 1.3.0 -> 1.3.2

Message ID 20251029001505.528-23-wangmy@fujitsu.com
State Under Review
Headers show
Series [meta-oe,01/32] cli11: upgrade 2.5.0 -> 2.6.0 | expand

Commit Message

Wang Mingyu Oct. 29, 2025, 12:14 a.m. UTC
From: Wang Mingyu <wangmy@fujitsu.com>

0001-build_support-fix-cross-compilation-error-when-CC-is.patch
removed since it's included in 1.3.2

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
 ...x-cross-compilation-error-when-CC-is.patch | 53 -------------------
 ...pc_1.3.0.bb => python3-posix-ipc_1.3.2.bb} |  6 +--
 2 files changed, 1 insertion(+), 58 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-posix-ipc/0001-build_support-fix-cross-compilation-error-when-CC-is.patch
 rename meta-python/recipes-devtools/python/{python3-posix-ipc_1.3.0.bb => python3-posix-ipc_1.3.2.bb} (71%)
diff mbox series

Patch

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
deleted file mode 100644
index c78d4ad726..0000000000
--- a/meta-python/recipes-devtools/python/python3-posix-ipc/0001-build_support-fix-cross-compilation-error-when-CC-is.patch
+++ /dev/null
@@ -1,53 +0,0 @@ 
-From 01134093c9150248f9ea8890a41e922159593a7f Mon Sep 17 00:00:00 2001
-From: Haixiao Yan <haixiao.yan.cn@windriver.com>
-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 <haixiao.yan.cn@windriver.com>
----
- 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_1.3.0.bb b/meta-python/recipes-devtools/python/python3-posix-ipc_1.3.2.bb
similarity index 71%
rename from meta-python/recipes-devtools/python/python3-posix-ipc_1.3.0.bb
rename to meta-python/recipes-devtools/python/python3-posix-ipc_1.3.2.bb
index 02d2e55bad..3431e6c7aa 100644
--- a/meta-python/recipes-devtools/python/python3-posix-ipc_1.3.0.bb
+++ b/meta-python/recipes-devtools/python/python3-posix-ipc_1.3.2.bb
@@ -7,11 +7,7 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=e3d8df223c2614dbf1aabdc1ca23cc10"
 PYPI_PACKAGE = "posix_ipc"
 UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
 
-SRC_URI[sha256sum] = "6e559ac5bb5f6f233c396103f4868e383bbd8f4e54d20876910896f47d353448"
-
-SRC_URI += " \
-    file://0001-build_support-fix-cross-compilation-error-when-CC-is.patch \
-    "
+SRC_URI[sha256sum] = "6923232111329954a8349f7d99f212b6e96b5206e77fbd39aaf1b3cb4a5e9260"
 
 # Message queue support requires librt for proper linking
 LDFLAGS += "-lrt"