compatible with gcc12
This commit is contained in:
parent
f3afad8e14
commit
e8e283f382
10
0003-compatible-with-gcc12.patch
Normal file
10
0003-compatible-with-gcc12.patch
Normal file
@ -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)
|
||||||
@ -35,6 +35,7 @@ Source13: %{real_name}-yarn-site.xml
|
|||||||
|
|
||||||
Patch1: 0001-sys_errlist-undeclared.patch
|
Patch1: 0001-sys_errlist-undeclared.patch
|
||||||
Patch2: 0002-bugfix-invalid-variable-name.patch
|
Patch2: 0002-bugfix-invalid-variable-name.patch
|
||||||
|
Patch3: 0003-compatible-with-gcc12.patch
|
||||||
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{real_name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{real_name}-%{version}-%{release}-root
|
||||||
@ -1113,6 +1114,9 @@ fi
|
|||||||
%config(noreplace) %{_sysconfdir}/%{real_name}/container-executor.cfg
|
%config(noreplace) %{_sysconfdir}/%{real_name}/container-executor.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 21 2023 wenweijian <wenweijian2@huawei.com> - 3.1.4-6
|
||||||
|
- compatiable with gcc12
|
||||||
|
|
||||||
* Wed Jun 15 2022 Chenyx <chenyixiong3@huawei.com> - 3.1.4-5
|
* Wed Jun 15 2022 Chenyx <chenyixiong3@huawei.com> - 3.1.4-5
|
||||||
- License compliance rectification
|
- License compliance rectification
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user