remove -Werror option
build will use -Werror=format-security option (cherry picked from commit a7cffde5274cf43f68bfdacd93e833bf92d8212e)
This commit is contained in:
parent
b186986f8b
commit
d10b6cd12b
@ -1,11 +1,13 @@
|
|||||||
|
|
||||||
Name: LZMA-SDK
|
Name: LZMA-SDK
|
||||||
Version: 22.00
|
Version: 22.00
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: SDK for lzma compression
|
Summary: SDK for lzma compression
|
||||||
License: Public Domain
|
License: Public Domain
|
||||||
URL: http://sourceforge.net/projects/sevenzip/
|
URL: http://sourceforge.net/projects/sevenzip/
|
||||||
Source0: https://sourceforge.net/projects/sevenzip/files/LZMA%20SDK/lzma2200.7z
|
Source0: https://sourceforge.net/projects/sevenzip/files/LZMA%20SDK/lzma2200.7z
|
||||||
|
Patch0: remove-Werror.patch
|
||||||
|
|
||||||
BuildRequires: gcc-c++ p7zip
|
BuildRequires: gcc-c++ p7zip
|
||||||
%description
|
%description
|
||||||
The LZMA SDK provides the documentation, samples, header files, libraries, and
|
The LZMA SDK provides the documentation, samples, header files, libraries, and
|
||||||
@ -31,6 +33,7 @@ Development headers for %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -n lzma2200
|
%setup -q -c -n lzma2200
|
||||||
|
%patch -P0 -p1
|
||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
|
|
||||||
for f in .c .cpp .cs .dsp .dsw .h .java .txt makefile; do
|
for f in .c .cpp .cs .dsp .dsw .h .java .txt makefile; do
|
||||||
@ -86,6 +89,9 @@ find -iname '*.h' | xargs -I {} install -m 0755 -D {} %{buildroot}/%{_includedir
|
|||||||
%doc DOC/7z*.txt DOC/Methods.txt DOC/lzma.txt DOC/lzma-history.txt
|
%doc DOC/7z*.txt DOC/Methods.txt DOC/lzma.txt DOC/lzma-history.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 28 2023 dillon chen <dillon.chen@gmail.com> - 22.00-3
|
||||||
|
- remove -Werror under gcc 12.3.1 compiler
|
||||||
|
|
||||||
* Wed Aug 03 2022 tanjinghui1 <tanjinghui1@huawei.com> - 22.00-2
|
* Wed Aug 03 2022 tanjinghui1 <tanjinghui1@huawei.com> - 22.00-2
|
||||||
- change header file path lzma2200 to lzma
|
- change header file path lzma2200 to lzma
|
||||||
|
|
||||||
|
|||||||
35
remove-Werror.patch
Normal file
35
remove-Werror.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
diff -urN lzma2200/C/7zip_gcc_c.mak lzma2200.new/C/7zip_gcc_c.mak
|
||||||
|
--- lzma2200/C/7zip_gcc_c.mak 2021-11-20 17:00:00.000000000 +0800
|
||||||
|
+++ lzma2200.new/C/7zip_gcc_c.mak 2023-08-28 15:30:50.383302888 +0800
|
||||||
|
@@ -12,7 +12,7 @@
|
||||||
|
CFLAGS_BASE_LIST = -c
|
||||||
|
# for ASM file
|
||||||
|
# CFLAGS_BASE_LIST = -S
|
||||||
|
-CFLAGS_BASE = $(MY_ARCH_2) -O2 $(CFLAGS_BASE_LIST) -Wall -Werror -Wextra $(CFLAGS_WARN) \
|
||||||
|
+CFLAGS_BASE = $(MY_ARCH_2) -O2 $(CFLAGS_BASE_LIST) -Wall -Wextra $(CFLAGS_WARN) \
|
||||||
|
-DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
|
||||||
|
|
||||||
|
|
||||||
|
diff -urN lzma2200/CPP/7zip/7zip_gcc.mak lzma2200.new/CPP/7zip/7zip_gcc.mak
|
||||||
|
--- lzma2200/CPP/7zip/7zip_gcc.mak 2022-02-02 18:00:00.000000000 +0800
|
||||||
|
+++ lzma2200.new/CPP/7zip/7zip_gcc.mak 2023-08-28 15:29:52.014979279 +0800
|
||||||
|
@@ -18,7 +18,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
ifneq ($(CC), xlc)
|
||||||
|
-CFLAGS_WARN_WALL = -Wall -Werror -Wextra
|
||||||
|
+CFLAGS_WARN_WALL = -Wall -Wextra
|
||||||
|
endif
|
||||||
|
|
||||||
|
# for object file
|
||||||
|
diff -urN lzma2200/CPP/Build.mak lzma2200.new/CPP/Build.mak
|
||||||
|
--- lzma2200/CPP/Build.mak 2021-04-29 16:41:29.000000000 +0800
|
||||||
|
+++ lzma2200.new/CPP/Build.mak 2023-08-28 15:22:02.076373871 +0800
|
||||||
|
@@ -56,7 +56,6 @@
|
||||||
|
!IF "$(CC)" == "clang-cl"
|
||||||
|
|
||||||
|
CFLAGS = $(CFLAGS) \
|
||||||
|
- -Werror \
|
||||||
|
-Wextra \
|
||||||
|
-Wall \
|
||||||
|
-Weverything \
|
||||||
Loading…
x
Reference in New Issue
Block a user