mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 23:48:20 +00:00
python3-posix-ipc: upgrade 1.1.1 -> 1.2.0
0001-Use-default-cc-from-environment-variable.patch removed since it's not available in 1.2.0 License-Update: Reorg and rename files; add pyproject.toml Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
d500cc9747
commit
5121b8b603
@@ -1,45 +0,0 @@
|
|||||||
From 2db4d9974052e28f25252b3204a73dd25de1dd89 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Gyorgy Sarvari <skandigraun@gmail.com>
|
|
||||||
Date: Sat, 25 Jan 2025 13:09:00 +0100
|
|
||||||
Subject: [PATCH] Use default cc from environment variable
|
|
||||||
|
|
||||||
In case the system uses a custom c compiler instead of cc
|
|
||||||
(e.g. for cross-compiling), probing system features can
|
|
||||||
fail or can misidentify the features due to the incorrect C compiler.
|
|
||||||
|
|
||||||
Instead of using only "cc" for probing features, check if the CC environment
|
|
||||||
variable has a custom C compiler set. If it is present, use that instead of
|
|
||||||
"cc". If it is not present, fall back to "cc".
|
|
||||||
|
|
||||||
Upstream-Status: Submitted [https://github.com/osvenskan/posix_ipc/pull/56]
|
|
||||||
---
|
|
||||||
prober.py | 7 +++++--
|
|
||||||
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/prober.py b/prober.py
|
|
||||||
index 48432b7..ace6d3b 100644
|
|
||||||
--- a/prober.py
|
|
||||||
+++ b/prober.py
|
|
||||||
@@ -52,14 +52,17 @@ def print_bad_news(value_name, default):
|
|
||||||
def does_build_succeed(filename, linker_options=""):
|
|
||||||
# Utility function that returns True if the file compiles and links
|
|
||||||
# successfully, False otherwise.
|
|
||||||
- # Two things to note here --
|
|
||||||
+ # Three things to note here --
|
|
||||||
# - If there's a linker option like -lrt, it needs to come *after*
|
|
||||||
# the specification of the C file or linking will fail on Ubuntu 11.10
|
|
||||||
# (maybe because of the gcc version?)
|
|
||||||
# - 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 = "cc -Wall -o ./prober/foo ./prober/%s %s -lpthread" % (filename, linker_options)
|
|
||||||
+ # - In case the used C compiler is not cc, take it from the CC environment
|
|
||||||
+ # variable
|
|
||||||
+ cc = os.getenv("CC", "cc")
|
|
||||||
+ cmd = "%s -Wall -o ./prober/foo ./prober/%s %s -lpthread" % (cc, filename, linker_options)
|
|
||||||
|
|
||||||
p = subprocess.Popen(cmd, shell=True, stdout=STDOUT, stderr=STDERR)
|
|
||||||
|
|
||||||
--
|
|
||||||
2.48.1
|
|
||||||
|
|
||||||
@@ -2,13 +2,11 @@ DESCRIPTION = "POSIX IPC primitives (semaphores, shared memory and message queue
|
|||||||
HOMEPAGE = "https://semanchuk.com/philip/posix_ipc/"
|
HOMEPAGE = "https://semanchuk.com/philip/posix_ipc/"
|
||||||
SECTION = "devel/python"
|
SECTION = "devel/python"
|
||||||
LICENSE = "BSD-3-Clause"
|
LICENSE = "BSD-3-Clause"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=513d94a7390d4d72f3475e2d45c739b5"
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=1a4f3bd729df04bf68f66ef877e9c7c9"
|
||||||
|
|
||||||
PYPI_PACKAGE = "posix_ipc"
|
PYPI_PACKAGE = "posix_ipc"
|
||||||
UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
|
UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "e2456ba0cfb2ee5ba14121450e8d825b3c4a1461fca0761220aab66d4111cbb7"
|
SRC_URI[sha256sum] = "b7444e2703c156b3cb9fcb568e85d716232f3e78f04529ebc881cfb2aedb3838"
|
||||||
|
|
||||||
SRC_URI += "file://0001-Use-default-cc-from-environment-variable.patch"
|
|
||||||
|
|
||||||
inherit setuptools3 pypi
|
inherit setuptools3 pypi
|
||||||
Reference in New Issue
Block a user