diff --git a/0003-compatible-with-gcc12.patch b/0003-compatible-with-gcc12.patch new file mode 100644 index 0000000..c2d78a0 --- /dev/null +++ b/0003-compatible-with-gcc12.patch @@ -0,0 +1,10 @@ +--- hadoop-3.1.4-src/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/CMakeLists.txt 2020-07-21 01:17:58.000000000 +0800 ++++ hadoop-3.1.4-src/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/CMakeLists.txt 2023-07-21 16:33:10.948752821 +0800 +@@ -27,6 +27,7 @@ + # Add extra compiler and linker flags. + # -Wno-sign-compare + hadoop_add_compiler_flags("-DNDEBUG -DSIMPLE_MEMCPY -fno-strict-aliasing -fsigned-char") ++set(CMAKE_CXX_STANDARD 11) + + # Source location. + set(SRC main/native) diff --git a/hadoop-3.1.spec b/hadoop-3.1.spec index d1ec0f6..28018eb 100644 --- a/hadoop-3.1.spec +++ b/hadoop-3.1.spec @@ -35,6 +35,7 @@ Source13: %{real_name}-yarn-site.xml Patch1: 0001-sys_errlist-undeclared.patch Patch2: 0002-bugfix-invalid-variable-name.patch +Patch3: 0003-compatible-with-gcc12.patch BuildRoot: %{_tmppath}/%{real_name}-%{version}-%{release}-root @@ -1113,6 +1114,9 @@ fi %config(noreplace) %{_sysconfdir}/%{real_name}/container-executor.cfg %changelog +* Fri Jul 21 2023 wenweijian - 3.1.4-6 +- compatiable with gcc12 + * Wed Jun 15 2022 Chenyx - 3.1.4-5 - License compliance rectification