2023. 03. 10. 14:46 keltezéssel, Zoltan Boszormenyi via lists.openembedded.org 
írta:
Some python modules rely on "import cmake".

Only build and ship the python parts, and don't download and
build cmake from sources. Use the already built cmake instead.

The CMakeLists.txt file is a crippled copy from this cmake
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 cmake is used from PATH.

Signed-off-by: Zoltán Böszörményi <zbos...@gmail.com>
---
  .../python/python3-cmake/CMakeLists.txt       | 11 ++++++
  .../python3-cmake/run-cmake-from-path.patch   | 11 ++++++
  .../python/python3-cmake_3.25.2.bb            | 37 +++++++++++++++++++
  3 files changed, 59 insertions(+)
  create mode 100644 
meta-python/recipes-devtools/python/python3-cmake/CMakeLists.txt
  create mode 100644 
meta-python/recipes-devtools/python/python3-cmake/run-cmake-from-path.patch
  create mode 100644 meta-python/recipes-devtools/python/python3-cmake_3.25.2.bb

...

diff --git a/meta-python/recipes-devtools/python/python3-cmake_3.25.2.bb 
b/meta-python/recipes-devtools/python/python3-cmake_3.25.2.bb
new file mode 100644
index 000000000..d0e11f9a6
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-cmake_3.25.2.bb
@@ -0,0 +1,37 @@
+SUMMARY = "CMake is an open-source, cross-platform family of tools designed to 
build, test and package software"
+LICENSE = "BSD-3-Clause & Apache-2.0"
+LIC_FILES_CHKSUM = " \
+       file://LICENSE_BSD_3;md5=9134cb61aebbdd79dd826ccb9ae6afcd \
+       file://LICENSE_Apache_20;md5=19cbd64715b51267a47bf3750cc6a8a5 \
+"
+
+DEPENDS = "ninja-native cmake-native python3-scikit-build-native"
+
+PYPI_PACKAGE = "cmake"
+PYPI_ARCHIVE_NAME_PREFIX = "pypi-"

This line needs the pypi.bbclass change in OE-Core.
As far as I can see it not even reached master-next there,
while this series was merged into meta-openembedded
master-next.

As is, it will cause bad checksum warnings when building
python3-cmake.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#101504): 
https://lists.openembedded.org/g/openembedded-devel/message/101504
Mute This Topic: https://lists.openembedded.org/mt/97536763/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to