diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2021-10-22 17:52:43 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2021-10-25 10:02:38 -0700 |
commit | 0ceef4f022db0deba03b1380d872d26a9be363c3 (patch) | |
tree | 8f0a4d97918b7c260ccfe11d85bd0d3b583b8aee /sys-cluster/ceph/files | |
parent | sys-apps/findutils: use LFS & 64-bit time_t (diff) | |
download | gentoo-0ceef4f022db0deba03b1380d872d26a9be363c3.tar.gz gentoo-0ceef4f022db0deba03b1380d872d26a9be363c3.tar.bz2 gentoo-0ceef4f022db0deba03b1380d872d26a9be363c3.zip |
sys-cluster/ceph-5.2.15: Version bump
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'sys-cluster/ceph/files')
-rw-r--r-- | sys-cluster/ceph/files/ceph-15.2.15-no-virtualenvs.patch | 73 | ||||
-rw-r--r-- | sys-cluster/ceph/files/ceph-15.2.15-snappy-1.1.9.patch | 36 |
2 files changed, 109 insertions, 0 deletions
diff --git a/sys-cluster/ceph/files/ceph-15.2.15-no-virtualenvs.patch b/sys-cluster/ceph/files/ceph-15.2.15-no-virtualenvs.patch new file mode 100644 index 000000000000..5ef7fb3a73e1 --- /dev/null +++ b/sys-cluster/ceph/files/ceph-15.2.15-no-virtualenvs.patch @@ -0,0 +1,73 @@ +diff --git a/cmake/modules/AddCephTest.cmake b/cmake/modules/AddCephTest.cmake +index c9ee8c1b8f6..09f75543da2 100644 +--- a/cmake/modules/AddCephTest.cmake ++++ b/cmake/modules/AddCephTest.cmake +@@ -68,14 +68,6 @@ function(add_tox_test name) + endif() + string(REPLACE ";" "," tox_envs "${tox_envs}") + find_package(Python3 QUIET REQUIRED) +- add_custom_command( +- OUTPUT ${venv_path}/bin/activate +- COMMAND ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh --python="${Python3_EXECUTABLE}" ${venv_path} +- WORKING_DIRECTORY ${tox_path} +- COMMENT "preparing venv for ${name}") +- add_custom_target(${name}-venv +- DEPENDS ${venv_path}/bin/activate) +- add_dependencies(tests ${name}-venv) + add_test( + NAME ${test_name} + COMMAND ${CMAKE_SOURCE_DIR}/src/script/run_tox.sh +diff --git a/src/ceph-volume/CMakeLists.txt b/src/ceph-volume/CMakeLists.txt +index 9166553dc73..9a6c87595b9 100644 +--- a/src/ceph-volume/CMakeLists.txt ++++ b/src/ceph-volume/CMakeLists.txt +@@ -8,22 +8,6 @@ if(FREEBSD) + add_subdirectory(plugin/zfs) + endif() + +-# Required for running ceph-volume inventory in a vstart environment +-set(CEPH_VOLUME_VIRTUALENV ${CEPH_BUILD_VIRTUALENV}/ceph-volume-virtualenv) +- +-add_custom_command( +- OUTPUT ${CEPH_VOLUME_VIRTUALENV}/bin/python +- COMMAND ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh --python=${Python3_EXECUTABLE} ${CEPH_VOLUME_VIRTUALENV} +- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/ceph-volume +- COMMENT "ceph-volume venv is being created") +- +-add_custom_command( +- OUTPUT ${CEPH_VOLUME_VIRTUALENV}/bin/ceph-volume +- DEPENDS ${CEPH_VOLUME_VIRTUALENV}/bin/python +- COMMAND . ${CEPH_VOLUME_VIRTUALENV}/bin/activate && ${CEPH_VOLUME_VIRTUALENV}/bin/python setup.py develop && deactivate +- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/ceph-volume +- COMMENT "${CMAKE_SOURCE_DIR}/src/ceph-volume") +- + add_custom_target(ceph-volume-venv-setup + DEPENDS ${CEPH_VOLUME_VIRTUALENV}/bin/ceph-volume) + +diff --git a/src/pybind/mgr/dashboard/CMakeLists.txt b/src/pybind/mgr/dashboard/CMakeLists.txt +index 92e4cdc538b..3153c93c459 100644 +--- a/src/pybind/mgr/dashboard/CMakeLists.txt ++++ b/src/pybind/mgr/dashboard/CMakeLists.txt +@@ -5,9 +5,6 @@ function(add_npm_command) + set(multi_kw COMMAND DEPENDS) + cmake_parse_arguments(NC "${options}" "${single_kw}" "${multi_kw}" ${ARGN}) + string(REPLACE ";" " " command "${NC_COMMAND}") +- if(NC_NODEENV) +- string(REGEX REPLACE "^(.*(npm|npx) .*)$" ". ${mgr-dashboard-nodeenv-dir}/bin/activate && \\1 && deactivate" command ${command}) +- endif() + string(REPLACE " " ";" command "${command}") + add_custom_command( + OUTPUT "${NC_OUTPUT}" +@@ -29,10 +26,8 @@ else() + set(nodeenv NODEENV) + + add_custom_command( +- OUTPUT "${mgr-dashboard-nodeenv-dir}/bin/npm" +- COMMAND ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh --python=${MGR_PYTHON_EXECUTABLE} ${mgr-dashboard-nodeenv-dir} +- COMMAND ${mgr-dashboard-nodeenv-dir}/bin/pip install nodeenv +- COMMAND ${mgr-dashboard-nodeenv-dir}/bin/nodeenv --verbose -p --node=10.18.1 ++ OUTPUT "npm" ++ COMMAND nodeenv --verbose -p --node=10.18.1 + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMENT "dashboard nodeenv is being installed" + ) diff --git a/sys-cluster/ceph/files/ceph-15.2.15-snappy-1.1.9.patch b/sys-cluster/ceph/files/ceph-15.2.15-snappy-1.1.9.patch new file mode 100644 index 000000000000..3b38c1708733 --- /dev/null +++ b/sys-cluster/ceph/files/ceph-15.2.15-snappy-1.1.9.patch @@ -0,0 +1,36 @@ +From 4c13a798dcf2e783afd7558bf3541dc025de854a Mon Sep 17 00:00:00 2001 +From: Nathan Cutler <ncutler@suse.com> +Date: Tue, 27 Jul 2021 15:27:58 +0200 +Subject: [PATCH] compression/snappy: use uint32_t to be compatible with 1.1.9 + +The snappy project made the following change in snappy.h between version 1.1.8 +and 1.1.9: + +< bool GetUncompressedLength(Source* source, uint32_t* result); +--- +> bool GetUncompressedLength(Source* source, uint32* result); + +This causes Ceph to FTBFS with snappy 1.1.9. + +Thanks to Chris Denice for bringing this to our attention via Redmine. + +Fixes: https://tracker.ceph.com/issues/50934 +Signed-off-by: Nathan Cutler <ncutler@suse.com> +--- + src/compressor/snappy/SnappyCompressor.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/compressor/snappy/SnappyCompressor.h b/src/compressor/snappy/SnappyCompressor.h +index 25393f8dc1ff4..93206c4007bed 100644 +--- a/src/compressor/snappy/SnappyCompressor.h ++++ b/src/compressor/snappy/SnappyCompressor.h +@@ -97,8 +97,8 @@ class SnappyCompressor : public Compressor { + if (qat_enabled) + return qat_accel.decompress(p, compressed_len, dst, compressor_message); + #endif +- snappy::uint32 res_len = 0; + BufferlistSource source_1(p, compressed_len); ++ uint32_t res_len = 0; + if (!snappy::GetUncompressedLength(&source_1, &res_len)) { + return -1; + } |