16.2.7, python3.10 w/ __CHAR_UNSIGNED__ fix

Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
This commit is contained in:
Kaleb S. KEITHLEY 2022-02-02 08:28:01 -05:00
parent bba894de7e
commit 1f11726563
2 changed files with 11 additions and 199 deletions

View File

@ -1,196 +0,0 @@
--- ceph-16.2.7/src/ceph_mgr.cc.orig 2022-01-21 09:15:21.977384085 -0500
+++ ceph-16.2.7/src/ceph_mgr.cc 2022-01-21 10:32:17.586105697 -0500
@@ -14,6 +14,7 @@
*
*/
+#include <limits.h>
#include <Python.h>
#include <pthread.h>
--- ceph-16.2.7/src/mgr/ActivePyModule.h.orig 2022-01-21 10:25:39.355471107 -0500
+++ ceph-16.2.7/src/mgr/ActivePyModule.h 2022-01-21 10:26:04.233010937 -0500
@@ -16,7 +16,8 @@
#pragma once
// Python.h comes first because otherwise it clobbers ceph's assert
-#include "Python.h"
+#include <limits.h>
+#include <Python.h>
#include "common/cmdparse.h"
#include "common/LogEntry.h"
--- ceph-16.2.7/src/mgr/BaseMgrModule.cc.orig 2022-01-21 09:16:58.807597191 -0500
+++ ceph-16.2.7/src/mgr/BaseMgrModule.cc 2022-01-21 10:18:27.335462311 -0500
@@ -18,7 +18,8 @@
* available as methods on that object.
*/
-#include "Python.h"
+#include <limits.h>
+#include <Python.h>
#include "Mgr.h"
--- ceph-16.2.7/src/mgr/BaseMgrStandbyModule.h.orig 2022-01-21 10:27:53.142996531 -0500
+++ ceph-16.2.7/src/mgr/BaseMgrStandbyModule.h 2022-01-21 10:16:57.530123467 -0500
@@ -1,5 +1,6 @@
#pragma once
+#include <limits.h>
#include <Python.h>
extern PyTypeObject BaseMgrStandbyModuleType;
--- ceph-16.2.7/src/mgr/DaemonServer.h.orig 2022-01-21 09:17:40.606825834 -0500
+++ ceph-16.2.7/src/mgr/DaemonServer.h 2022-01-21 10:18:45.760121505 -0500
@@ -14,6 +14,7 @@
#ifndef DAEMON_SERVER_H_
#define DAEMON_SERVER_H_
+#include <limits.h>
#include "PyModuleRegistry.h"
#include <set>
--- ceph-16.2.7/src/mgr/Gil.cc.orig 2022-01-21 09:14:35.203247250 -0500
+++ ceph-16.2.7/src/mgr/Gil.cc 2022-01-21 10:18:53.226983388 -0500
@@ -13,7 +13,8 @@
*/
-#include "Python.h"
+#include <limits.h>
+#include <Python.h>
#include "common/debug.h"
--- ceph-16.2.7/src/mgr/Mgr.cc.orig 2022-01-21 09:18:30.161911483 -0500
+++ ceph-16.2.7/src/mgr/Mgr.cc 2022-01-21 10:17:19.178723027 -0500
@@ -11,6 +11,7 @@
* Foundation. See file COPYING.
*/
+#include <limits.h>
#include <Python.h>
#include "osdc/Objecter.h"
--- ceph-16.2.7/src/mgr/Mgr.h.orig 2022-01-21 09:16:27.837168716 -0500
+++ ceph-16.2.7/src/mgr/Mgr.h 2022-01-21 10:17:41.816304290 -0500
@@ -15,6 +15,7 @@
#define CEPH_MGR_H_
// Python.h comes first because otherwise it clobbers ceph's assert
+#include <limits.h>
#include <Python.h>
#include "mds/FSMap.h"
--- ceph-16.2.7/src/mgr/MgrStandby.cc.orig 2022-01-21 10:20:42.502962076 -0500
+++ ceph-16.2.7/src/mgr/MgrStandby.cc 2022-01-21 10:20:59.642645037 -0500
@@ -11,6 +11,7 @@
* Foundation. See file COPYING.
*/
+#include <limits.h>
#include <Python.h>
#include "common/errno.h"
--- ceph-16.2.7/src/mgr/PyFormatter.h.orig 2022-01-21 10:24:55.335285362 -0500
+++ ceph-16.2.7/src/mgr/PyFormatter.h 2022-01-21 10:25:06.758074070 -0500
@@ -18,6 +18,7 @@
#define PY_FORMATTER_H_
// Python.h comes first because otherwise it clobbers ceph's assert
+#include <limits.h>
#include <Python.h>
#include <stack>
--- ceph-16.2.7/src/mgr/PyModule.h.orig 2022-01-21 10:24:26.476819166 -0500
+++ ceph-16.2.7/src/mgr/PyModule.h 2022-01-21 10:24:40.182565646 -0500
@@ -13,13 +13,15 @@
#pragma once
+#include <limits.h>
+#include "Python.h"
+
#include <map>
#include <memory>
#include <string>
#include <vector>
#include <boost/optional.hpp>
#include "common/ceph_mutex.h"
-#include "Python.h"
#include "Gil.h"
#include "mon/MgrMap.h"
--- ceph-16.2.7/src/mgr/PyModuleRunner.cc.orig 2022-01-21 10:20:06.971619311 -0500
+++ ceph-16.2.7/src/mgr/PyModuleRunner.cc 2022-01-21 10:20:19.815381734 -0500
@@ -13,6 +13,7 @@
// Python.h comes first because otherwise it clobbers ceph's assert
+#include <limits.h>
#include <Python.h>
#include "PyModule.h"
--- ceph-16.2.7/src/mgr/PyOSDMap.h.orig 2022-01-21 10:23:12.642184906 -0500
+++ ceph-16.2.7/src/mgr/PyOSDMap.h 2022-01-21 10:23:57.948346865 -0500
@@ -3,6 +3,7 @@
#pragma once
+#include <limits.h>
#include <Python.h>
#include <string>
--- ceph-16.2.7/src/mgr/PyUtil.cc.orig 2022-01-21 10:21:29.083100470 -0500
+++ ceph-16.2.7/src/mgr/PyUtil.cc 2022-01-21 10:21:39.413909379 -0500
@@ -1,6 +1,7 @@
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
+#include <limits.h>
#include <Python.h>
#include "PyUtil.h"
--- ceph-16.2.7/src/mgr/PyUtil.h.orig 2022-01-21 10:22:43.177729918 -0500
+++ ceph-16.2.7/src/mgr/PyUtil.h 2022-01-21 10:22:56.928475568 -0500
@@ -3,10 +3,10 @@
#pragma once
-#include <string>
-
+#include <limits.h>
#include <Python.h>
+#include <string>
#include "common/options.h"
PyObject *get_python_typed_option_value(
--- ceph-16.2.7/src/mgr/StandbyPyModules.h.orig 2022-01-21 09:13:16.938691534 -0500
+++ ceph-16.2.7/src/mgr/StandbyPyModules.h 2022-01-21 10:19:22.055450138 -0500
@@ -13,11 +13,12 @@
#pragma once
+#include <limits.h>
+#include <Python.h>
+
#include <string>
#include <map>
-#include <Python.h>
-
#include "common/Thread.h"
#include "common/ceph_mutex.h"
--- ceph-16.2.7/src/mgr/PyModule.cc.orig 2022-01-21 12:11:07.312472420 -0500
+++ ceph-16.2.7/src/mgr/PyModule.cc 2022-01-21 12:12:13.859245169 -0500
@@ -11,6 +11,7 @@
* Foundation. See file COPYING.
*/
+#include <limits.h>
#include "BaseMgrModule.h"
#include "BaseMgrStandbyModule.h"
#include "PyOSDMap.h"

View File

@ -130,7 +130,7 @@
################################################################################# #################################################################################
Name: ceph Name: ceph
Version: 16.2.7 Version: 16.2.7
Release: 7%{?dist} Release: 9%{?dist}
%if 0%{?fedora} || 0%{?rhel} %if 0%{?fedora} || 0%{?rhel}
Epoch: 2 Epoch: 2
%endif %endif
@ -158,7 +158,6 @@ Patch0014: 0014-rgw-Replace-boost-string_ref-view-with-std-string_vi.patch
Patch0015: 0015-src-kv-rocksdb_cache.patch Patch0015: 0015-src-kv-rocksdb_cache.patch
Patch0016: 0016-src-tracing-patch Patch0016: 0016-src-tracing-patch
Patch0017: 0017-gcc-12-omnibus.patch Patch0017: 0017-gcc-12-omnibus.patch
Patch0018: 0018-python-unsigned.patch
# Source1: cmake-modules-BuildBoost.cmake.noautopatch # Source1: cmake-modules-BuildBoost.cmake.noautopatch
# ceph 14.0.1 does not support 32-bit architectures, bugs #1727788, #1727787 # ceph 14.0.1 does not support 32-bit architectures, bugs #1727788, #1727787
ExcludeArch: i686 armv7hl ExcludeArch: i686 armv7hl
@ -1382,6 +1381,9 @@ cd build
-DWITH_SYSTEM_ZSTD:BOOL=ON \ -DWITH_SYSTEM_ZSTD:BOOL=ON \
%if 0%{?rhel} %if 0%{?rhel}
-DWITH_FMT_HEADER_ONLY:BOOL=ON \ -DWITH_FMT_HEADER_ONLY:BOOL=ON \
%endif
%ifarch x86_64 aarch64
-DCMAKE_LINKER=%{_bindir}/ld.mold \
%endif %endif
-DWITH_GRAFANA:BOOL=ON -DWITH_GRAFANA:BOOL=ON
@ -2526,7 +2528,13 @@ exit 0
%config %{_sysconfdir}/prometheus/ceph/ceph_default_alerts.yml %config %{_sysconfdir}/prometheus/ceph/ceph_default_alerts.yml
%changelog %changelog
* Tue Jan 26 2022 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 2:16.2.7-7 * Wed Feb 2 2022 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 2:16.2.7-9
- 16.2.7, python3.10 w/ __CHAR_UNSIGNED__ fix
* Thu Jan 27 2022 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 2:16.2.7-8
- 16.2.7, w/ modern linker (mold), x86_64 and aarch64, this time for real
* Wed Jan 26 2022 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 2:16.2.7-7
- 16.2.7, build with modern linker (mold), x86_64 and aarch64 - 16.2.7, build with modern linker (mold), x86_64 and aarch64
- reenable ppc64le - reenable ppc64le