summaryrefslogtreecommitdiffstats
path: root/recipes-extended/ceph/ceph/0001-delete-install-layout-deb.patch
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2024-03-14 01:08:58 -0700
committerBruce Ashfield <bruce.ashfield@gmail.com>2024-03-15 17:17:20 +0000
commit21b439042b2e3d715e21f6777127f2ee6f58ea95 (patch)
tree42762b071ef0e02c0cba635df4a729c9d72dcb3d /recipes-extended/ceph/ceph/0001-delete-install-layout-deb.patch
parent3e1ee1fda758885c17be7d4d45f514d370b1b92b (diff)
downloadmeta-virtualization-21b439042b2e3d715e21f6777127f2ee6f58ea95.tar.gz
ceph: fix do_compile/do_install failures
1. OECMAKE_C/CXX_COMPILER needs to have sysroot setting in it, because ceph's cmake files are using it to construct PY_CC. Without it, files such as stdlib.h cannot be found. 2. re2 is added to deps. Seems no way to disable it. 3. 0001-ceph-fix-build-errors-for-cross-compile.patch is dropped. It's useless and problematic for new version. 4. 0001-cmake-add-support-for-python3.11.patch is dropped as it's not needed anymore. 5. 0001-avoid-to_string-error.patch is added to fix build error, maybe caused by boost version incompatibility. 6. Some cleanups. 7. A few more options are set. 8. BUILD_DOC=1 is exported so that check_sanity() causes compilation error. This is a workaround and may need further visit in the future. 9. Delete the conditional check for /etc/debian_version which adds '--install-layout deb' and causes the following error. error: option --install-layout not recognized The patch is 0001-delete-install-layout-deb.patch. 10. ceph-volume[-systemd] are now in sbin. 11. cephfs-mirror units are added to avoid package QA issue. 12. cephfs-top is seded to fix incorrect shebang. 13. Ensure libcephsqlite.so is packaged into ceph instead of ceph-dev. 14. Add bash to RDEPENDS as rbdmap needs it. 15. Skip buildpaths QA. 16. Add ceph user/group, because ceph-crash needs it in drop_privilege function call. 17. Patch the build.py which creates the cephadm zipapp to ensure it uses the correct interpreter. We cannot simply use 'sed' against the cephadm as it's zip format. Runtime tests: cephfs-top --help cephadm --help systemctl status rbdmap systemctl --failed Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-extended/ceph/ceph/0001-delete-install-layout-deb.patch')
-rw-r--r--recipes-extended/ceph/ceph/0001-delete-install-layout-deb.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-extended/ceph/ceph/0001-delete-install-layout-deb.patch b/recipes-extended/ceph/ceph/0001-delete-install-layout-deb.patch
new file mode 100644
index 00000000..91eacfa9
--- /dev/null
+++ b/recipes-extended/ceph/ceph/0001-delete-install-layout-deb.patch
@@ -0,0 +1,37 @@
1From 903bb882a44eb5567f8b1fc7f7c4857c2f03579d Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Wed, 13 Mar 2024 03:41:47 -0700
4Subject: [PATCH] delete install-layout=deb
5
6Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
7---
8 cmake/modules/Distutils.cmake | 6 ------
9 1 file changed, 6 deletions(-)
10
11diff --git a/cmake/modules/Distutils.cmake b/cmake/modules/Distutils.cmake
12index daaae4ba6..e606e3890 100644
13--- a/cmake/modules/Distutils.cmake
14+++ b/cmake/modules/Distutils.cmake
15@@ -30,9 +30,6 @@ function(distutils_install_module name)
16 install(CODE "
17 set(options --prefix=${CMAKE_INSTALL_PREFIX})
18 if(DEFINED ENV{DESTDIR})
19- if(EXISTS /etc/debian_version)
20- list(APPEND options --install-layout=deb)
21- endif()
22 list(APPEND options
23 --root=\$ENV{DESTDIR}
24 --single-version-externally-managed)
25@@ -136,9 +133,6 @@ function(distutils_install_cython_module name)
26
27 set(options --prefix=${CMAKE_INSTALL_PREFIX})
28 if(DEFINED ENV{DESTDIR})
29- if(EXISTS /etc/debian_version)
30- list(APPEND options --install-layout=deb)
31- endif()
32 list(APPEND options --root=\$ENV{DESTDIR})
33 else()
34 list(APPEND options --root=/)
35--
362.42.0
37