From bf6779b62a72269f8cabeb416255c3f75d76d051 Mon Sep 17 00:00:00 2001 From: Zoltán Böszörményi Date: Fri, 10 Mar 2023 14:46:37 +0100 Subject: python3-ninja: New recipe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some python modules rely on "import ninja". Only build and ship the python parts, and don't download and build ninja from sources. Use the already built ninja instead. The CMakeLists.txt file is a crippled copy from this ninja python module's sources, removing almost everything, and adding a dummy install target, so do_install() doesn't fail. The python code is patched so ninja is used from PATH. Signed-off-by: Zoltán Böszörményi Signed-off-by: Khem Raj --- .../python/python3-ninja/run-ninja-from-path.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-ninja/run-ninja-from-path.patch (limited to 'meta-python/recipes-devtools/python/python3-ninja/run-ninja-from-path.patch') diff --git a/meta-python/recipes-devtools/python/python3-ninja/run-ninja-from-path.patch b/meta-python/recipes-devtools/python/python3-ninja/run-ninja-from-path.patch new file mode 100644 index 0000000000..26bd037373 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-ninja/run-ninja-from-path.patch @@ -0,0 +1,11 @@ +--- ninja-1.11.1/src/ninja/__init__.py.old 2022-11-05 09:49:23.000000000 +0100 ++++ ninja-1.11.1/src/ninja/__init__.py 2023-03-10 09:45:13.452082888 +0100 +@@ -44,7 +44,7 @@ + + + def _program(name, args): +- return subprocess.call([os.path.join(BIN_DIR, name)] + args, close_fds=False) ++ return subprocess.call([name] + args, close_fds=False) + + + def ninja(): -- cgit v1.2.3-54-g00ecf