diff options
Diffstat (limited to 'meta-oe/recipes-extended/p7zip/files')
6 files changed, 0 insertions, 415 deletions
diff --git a/meta-oe/recipes-extended/p7zip/files/0001-Fix-narrowing-errors-Wc-11-narrowing.patch b/meta-oe/recipes-extended/p7zip/files/0001-Fix-narrowing-errors-Wc-11-narrowing.patch deleted file mode 100644 index 1f08d1603a..0000000000 --- a/meta-oe/recipes-extended/p7zip/files/0001-Fix-narrowing-errors-Wc-11-narrowing.patch +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | From 653674e11872465dd5edf1c1e8413ea813d7e086 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 23 Apr 2018 23:07:21 -0700 | ||
4 | Subject: [PATCH] Fix narrowing errors -Wc++11-narrowing | ||
5 | |||
6 | Clang 6.x finds these errors | ||
7 | |||
8 | ../../../../CPP/Windows/ErrorMsg.cpp:24:10: error: case value evaluates to -2147024809, which cannot be narrowed to type 'DWORD' (aka 'unsigned int') [-Wc++11-narrowing] | ||
9 | case E_INVALIDARG : txt = "E_INVALIDARG"; break ; | ||
10 | ^ | ||
11 | |||
12 | HRESULT causes the macro to be parsed as a signed long, so we need to force it | ||
13 | to be checked as an unsigned long instead. | ||
14 | |||
15 | also reported here https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224930 | ||
16 | |||
17 | Upstream-Status: Pending | ||
18 | |||
19 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
20 | |||
21 | --- | ||
22 | CPP/Windows/ErrorMsg.cpp | 14 +++++++------- | ||
23 | 1 file changed, 7 insertions(+), 7 deletions(-) | ||
24 | |||
25 | diff --git a/CPP/Windows/ErrorMsg.cpp b/CPP/Windows/ErrorMsg.cpp | ||
26 | index 99684ae..78a64ba 100644 | ||
27 | --- a/CPP/Windows/ErrorMsg.cpp | ||
28 | +++ b/CPP/Windows/ErrorMsg.cpp | ||
29 | @@ -15,13 +15,13 @@ UString MyFormatMessage(DWORD errorCode) | ||
30 | |||
31 | switch(errorCode) { | ||
32 | case ERROR_NO_MORE_FILES : txt = "No more files"; break ; | ||
33 | - case E_NOTIMPL : txt = "E_NOTIMPL"; break ; | ||
34 | - case E_NOINTERFACE : txt = "E_NOINTERFACE"; break ; | ||
35 | - case E_ABORT : txt = "E_ABORT"; break ; | ||
36 | - case E_FAIL : txt = "E_FAIL"; break ; | ||
37 | - case STG_E_INVALIDFUNCTION : txt = "STG_E_INVALIDFUNCTION"; break ; | ||
38 | - case E_OUTOFMEMORY : txt = "E_OUTOFMEMORY"; break ; | ||
39 | - case E_INVALIDARG : txt = "E_INVALIDARG"; break ; | ||
40 | + case (DWORD) E_NOTIMPL : txt = "E_NOTIMPL"; break ; | ||
41 | + case (DWORD) E_NOINTERFACE : txt = "E_NOINTERFACE"; break ; | ||
42 | + case (DWORD) E_ABORT : txt = "E_ABORT"; break ; | ||
43 | + case (DWORD) E_FAIL : txt = "E_FAIL"; break ; | ||
44 | + case (DWORD) STG_E_INVALIDFUNCTION : txt = "STG_E_INVALIDFUNCTION"; break ; | ||
45 | + case (DWORD) E_OUTOFMEMORY : txt = "E_OUTOFMEMORY"; break ; | ||
46 | + case (DWORD) E_INVALIDARG : txt = "E_INVALIDARG"; break ; | ||
47 | case ERROR_DIRECTORY : txt = "Error Directory"; break ; | ||
48 | default: | ||
49 | txt = strerror(errorCode); | ||
diff --git a/meta-oe/recipes-extended/p7zip/files/CVE-2016-9296.patch b/meta-oe/recipes-extended/p7zip/files/CVE-2016-9296.patch deleted file mode 100644 index 98e186cbf0..0000000000 --- a/meta-oe/recipes-extended/p7zip/files/CVE-2016-9296.patch +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | p7zip: Update CVE-2016-9296 patch URL. | ||
2 | From: Robert Luberda <robert@debian.org> | ||
3 | Date: Sat, 19 Nov 2016 08:48:08 +0100 | ||
4 | Subject: Fix nullptr dereference (CVE-2016-9296) | ||
5 | |||
6 | Patch taken from https://sourceforge.net/p/p7zip/bugs/185/ | ||
7 | This patch file taken from Debian's patch set for p7zip | ||
8 | |||
9 | Upstream-Status: Backport [https://sourceforge.net/p/p7zip/bugs/185/] | ||
10 | CVE: CVE-2016-9296 | ||
11 | |||
12 | Signed-off-by: Virendra Thakur <virendra.thakur@kpit.com> | ||
13 | |||
14 | Index: p7zip_16.02/CPP/7zip/Archive/7z/7zIn.cpp | ||
15 | =================================================================== | ||
16 | --- p7zip_16.02.orig/CPP/7zip/Archive/7z/7zIn.cpp | ||
17 | +++ p7zip_16.02/CPP/7zip/Archive/7z/7zIn.cpp | ||
18 | @@ -1097,7 +1097,8 @@ HRESULT CInArchive::ReadAndDecodePackedS | ||
19 | if (CrcCalc(data, unpackSize) != folders.FolderCRCs.Vals[i]) | ||
20 | ThrowIncorrect(); | ||
21 | } | ||
22 | - HeadersSize += folders.PackPositions[folders.NumPackStreams]; | ||
23 | + if (folders.PackPositions) | ||
24 | + HeadersSize += folders.PackPositions[folders.NumPackStreams]; | ||
25 | return S_OK; | ||
26 | } | ||
27 | |||
diff --git a/meta-oe/recipes-extended/p7zip/files/CVE-2017-17969.patch b/meta-oe/recipes-extended/p7zip/files/CVE-2017-17969.patch deleted file mode 100644 index 9ba1078071..0000000000 --- a/meta-oe/recipes-extended/p7zip/files/CVE-2017-17969.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | From 7f2da4f810b429ddb7afa0e252e3d02ced0eba87 Mon Sep 17 00:00:00 2001 | ||
2 | From: Radovan Scasny <radovan.scasny@siemens.com> | ||
3 | Date: Tue, 20 Feb 2018 12:08:13 +0100 | ||
4 | Subject: [PATCH] p7zip: Fix CVE-2017-17969 | ||
5 | |||
6 | [No upstream tracking] -- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=888297 | ||
7 | |||
8 | Heap-based buffer overflow in 7zip | ||
9 | |||
10 | Compress/ShrinkDecoder.cpp: Heap-based buffer overflow | ||
11 | in the NCompress::NShrink::CDecoder::CodeReal method | ||
12 | in 7-Zip before 18.00 and p7zip allows remote attackers | ||
13 | to cause a denial of service (out-of-bounds write) | ||
14 | or potentially execute arbitrary code via a crafted ZIP archive. | ||
15 | |||
16 | Upstream-Status: Backport [https://sourceforge.net/p/p7zip/bugs/_discuss/thread/0920f369/8316/attachment/CVE-2017-17969.patch] | ||
17 | CVE: CVE-2017-17969 | ||
18 | Signed-off-by: Radovan Scasny <radovan.scasny@siemens.com> | ||
19 | |||
20 | --- | ||
21 | CPP/7zip/Compress/ShrinkDecoder.cpp | 5 +++++ | ||
22 | 1 file changed, 5 insertions(+) | ||
23 | |||
24 | diff --git a/CPP/7zip/Compress/ShrinkDecoder.cpp b/CPP/7zip/Compress/ShrinkDecoder.cpp | ||
25 | index 80b7e67..5bb0559 100644 | ||
26 | --- a/CPP/7zip/Compress/ShrinkDecoder.cpp | ||
27 | +++ b/CPP/7zip/Compress/ShrinkDecoder.cpp | ||
28 | @@ -121,7 +121,12 @@ HRESULT CDecoder::CodeReal(ISequentialInStream *inStream, ISequentialOutStream * | ||
29 | { | ||
30 | _stack[i++] = _suffixes[cur]; | ||
31 | cur = _parents[cur]; | ||
32 | + if (cur >= kNumItems || i >= kNumItems) | ||
33 | + break; | ||
34 | } | ||
35 | + | ||
36 | + if (cur >= kNumItems || i >= kNumItems) | ||
37 | + break; | ||
38 | |||
39 | _stack[i++] = (Byte)cur; | ||
40 | lastChar2 = (Byte)cur; | ||
diff --git a/meta-oe/recipes-extended/p7zip/files/CVE-2018-5996.patch b/meta-oe/recipes-extended/p7zip/files/CVE-2018-5996.patch deleted file mode 100644 index 47868c982e..0000000000 --- a/meta-oe/recipes-extended/p7zip/files/CVE-2018-5996.patch +++ /dev/null | |||
@@ -1,227 +0,0 @@ | |||
1 | From: Robert Luberda <robert@debian.org> | ||
2 | Date: Sun, 28 Jan 2018 23:47:40 +0100 | ||
3 | Subject: CVE-2018-5996 | ||
4 | |||
5 | Hopefully fix Memory Corruptions via RAR PPMd (CVE-2018-5996) by | ||
6 | applying a few changes from 7Zip 18.00-beta. | ||
7 | |||
8 | Bug-Debian: https://bugs.debian.org/#888314 | ||
9 | |||
10 | Upstream-Status: Backport [https://sources.debian.org/data/non-free/p/p7zip-rar/16.02-3/debian/patches/06-CVE-2018-5996.patch] | ||
11 | CVE: CVE-2018-5996 | ||
12 | |||
13 | Signed-off-by: Virendra Thakur <virendra.thakur@kpit.com> | ||
14 | --- | ||
15 | CPP/7zip/Compress/Rar1Decoder.cpp | 13 +++++++++---- | ||
16 | CPP/7zip/Compress/Rar1Decoder.h | 1 + | ||
17 | CPP/7zip/Compress/Rar2Decoder.cpp | 10 +++++++++- | ||
18 | CPP/7zip/Compress/Rar2Decoder.h | 1 + | ||
19 | CPP/7zip/Compress/Rar3Decoder.cpp | 23 ++++++++++++++++++++--- | ||
20 | CPP/7zip/Compress/Rar3Decoder.h | 2 ++ | ||
21 | 6 files changed, 42 insertions(+), 8 deletions(-) | ||
22 | |||
23 | diff --git a/CPP/7zip/Compress/Rar1Decoder.cpp b/CPP/7zip/Compress/Rar1Decoder.cpp | ||
24 | index 1aaedcc..68030c7 100644 | ||
25 | --- a/CPP/7zip/Compress/Rar1Decoder.cpp | ||
26 | +++ b/CPP/7zip/Compress/Rar1Decoder.cpp | ||
27 | @@ -29,7 +29,7 @@ public: | ||
28 | }; | ||
29 | */ | ||
30 | |||
31 | -CDecoder::CDecoder(): m_IsSolid(false) { } | ||
32 | +CDecoder::CDecoder(): m_IsSolid(false), _errorMode(false) { } | ||
33 | |||
34 | void CDecoder::InitStructures() | ||
35 | { | ||
36 | @@ -406,9 +406,14 @@ HRESULT CDecoder::CodeReal(ISequentialInStream *inStream, ISequentialOutStream * | ||
37 | InitData(); | ||
38 | if (!m_IsSolid) | ||
39 | { | ||
40 | + _errorMode = false; | ||
41 | InitStructures(); | ||
42 | InitHuff(); | ||
43 | } | ||
44 | + | ||
45 | + if (_errorMode) | ||
46 | + return S_FALSE; | ||
47 | + | ||
48 | if (m_UnpackSize > 0) | ||
49 | { | ||
50 | GetFlagsBuf(); | ||
51 | @@ -477,9 +482,9 @@ STDMETHODIMP CDecoder::Code(ISequentialInStream *inStream, ISequentialOutStream | ||
52 | const UInt64 *inSize, const UInt64 *outSize, ICompressProgressInfo *progress) | ||
53 | { | ||
54 | try { return CodeReal(inStream, outStream, inSize, outSize, progress); } | ||
55 | - catch(const CInBufferException &e) { return e.ErrorCode; } | ||
56 | - catch(const CLzOutWindowException &e) { return e.ErrorCode; } | ||
57 | - catch(...) { return S_FALSE; } | ||
58 | + catch(const CInBufferException &e) { _errorMode = true; return e.ErrorCode; } | ||
59 | + catch(const CLzOutWindowException &e) { _errorMode = true; return e.ErrorCode; } | ||
60 | + catch(...) { _errorMode = true; return S_FALSE; } | ||
61 | } | ||
62 | |||
63 | STDMETHODIMP CDecoder::SetDecoderProperties2(const Byte *data, UInt32 size) | ||
64 | diff --git a/CPP/7zip/Compress/Rar1Decoder.h b/CPP/7zip/Compress/Rar1Decoder.h | ||
65 | index 630f089..01b606b 100644 | ||
66 | --- a/CPP/7zip/Compress/Rar1Decoder.h | ||
67 | +++ b/CPP/7zip/Compress/Rar1Decoder.h | ||
68 | @@ -39,6 +39,7 @@ public: | ||
69 | |||
70 | Int64 m_UnpackSize; | ||
71 | bool m_IsSolid; | ||
72 | + bool _errorMode; | ||
73 | |||
74 | UInt32 ReadBits(int numBits); | ||
75 | HRESULT CopyBlock(UInt32 distance, UInt32 len); | ||
76 | diff --git a/CPP/7zip/Compress/Rar2Decoder.cpp b/CPP/7zip/Compress/Rar2Decoder.cpp | ||
77 | index b3f2b4b..0580c8d 100644 | ||
78 | --- a/CPP/7zip/Compress/Rar2Decoder.cpp | ||
79 | +++ b/CPP/7zip/Compress/Rar2Decoder.cpp | ||
80 | @@ -80,7 +80,8 @@ static const UInt32 kHistorySize = 1 << 20; | ||
81 | static const UInt32 kWindowReservSize = (1 << 22) + 256; | ||
82 | |||
83 | CDecoder::CDecoder(): | ||
84 | - m_IsSolid(false) | ||
85 | + m_IsSolid(false), | ||
86 | + m_TablesOK(false) | ||
87 | { | ||
88 | } | ||
89 | |||
90 | @@ -100,6 +101,8 @@ UInt32 CDecoder::ReadBits(unsigned numBits) { return m_InBitStream.ReadBits(numB | ||
91 | |||
92 | bool CDecoder::ReadTables(void) | ||
93 | { | ||
94 | + m_TablesOK = false; | ||
95 | + | ||
96 | Byte levelLevels[kLevelTableSize]; | ||
97 | Byte newLevels[kMaxTableSize]; | ||
98 | m_AudioMode = (ReadBits(1) == 1); | ||
99 | @@ -170,6 +173,8 @@ bool CDecoder::ReadTables(void) | ||
100 | } | ||
101 | |||
102 | memcpy(m_LastLevels, newLevels, kMaxTableSize); | ||
103 | + m_TablesOK = true; | ||
104 | + | ||
105 | return true; | ||
106 | } | ||
107 | |||
108 | @@ -344,6 +349,9 @@ HRESULT CDecoder::CodeReal(ISequentialInStream *inStream, ISequentialOutStream * | ||
109 | return S_FALSE; | ||
110 | } | ||
111 | |||
112 | + if (!m_TablesOK) | ||
113 | + return S_FALSE; | ||
114 | + | ||
115 | UInt64 startPos = m_OutWindowStream.GetProcessedSize(); | ||
116 | while (pos < unPackSize) | ||
117 | { | ||
118 | diff --git a/CPP/7zip/Compress/Rar2Decoder.h b/CPP/7zip/Compress/Rar2Decoder.h | ||
119 | index 3a0535c..0e9005f 100644 | ||
120 | --- a/CPP/7zip/Compress/Rar2Decoder.h | ||
121 | +++ b/CPP/7zip/Compress/Rar2Decoder.h | ||
122 | @@ -139,6 +139,7 @@ class CDecoder : | ||
123 | |||
124 | UInt64 m_PackSize; | ||
125 | bool m_IsSolid; | ||
126 | + bool m_TablesOK; | ||
127 | |||
128 | void InitStructures(); | ||
129 | UInt32 ReadBits(unsigned numBits); | ||
130 | diff --git a/CPP/7zip/Compress/Rar3Decoder.cpp b/CPP/7zip/Compress/Rar3Decoder.cpp | ||
131 | index 3bf2513..6cb8a6a 100644 | ||
132 | --- a/CPP/7zip/Compress/Rar3Decoder.cpp | ||
133 | +++ b/CPP/7zip/Compress/Rar3Decoder.cpp | ||
134 | @@ -92,7 +92,8 @@ CDecoder::CDecoder(): | ||
135 | _writtenFileSize(0), | ||
136 | _vmData(0), | ||
137 | _vmCode(0), | ||
138 | - m_IsSolid(false) | ||
139 | + m_IsSolid(false), | ||
140 | + _errorMode(false) | ||
141 | { | ||
142 | Ppmd7_Construct(&_ppmd); | ||
143 | } | ||
144 | @@ -545,6 +546,9 @@ HRESULT CDecoder::ReadTables(bool &keepDecompressing) | ||
145 | return InitPPM(); | ||
146 | } | ||
147 | |||
148 | + TablesRead = false; | ||
149 | + TablesOK = false; | ||
150 | + | ||
151 | _lzMode = true; | ||
152 | PrevAlignBits = 0; | ||
153 | PrevAlignCount = 0; | ||
154 | @@ -606,6 +610,9 @@ HRESULT CDecoder::ReadTables(bool &keepDecompressing) | ||
155 | } | ||
156 | } | ||
157 | } | ||
158 | + if (InputEofError()) | ||
159 | + return S_FALSE; | ||
160 | + | ||
161 | TablesRead = true; | ||
162 | |||
163 | // original code has check here: | ||
164 | @@ -623,6 +630,9 @@ HRESULT CDecoder::ReadTables(bool &keepDecompressing) | ||
165 | RIF(m_LenDecoder.Build(&newLevels[kMainTableSize + kDistTableSize + kAlignTableSize])); | ||
166 | |||
167 | memcpy(m_LastLevels, newLevels, kTablesSizesSum); | ||
168 | + | ||
169 | + TablesOK = true; | ||
170 | + | ||
171 | return S_OK; | ||
172 | } | ||
173 | |||
174 | @@ -824,7 +834,12 @@ HRESULT CDecoder::CodeReal(ICompressProgressInfo *progress) | ||
175 | PpmEscChar = 2; | ||
176 | PpmError = true; | ||
177 | InitFilters(); | ||
178 | + _errorMode = false; | ||
179 | } | ||
180 | + | ||
181 | + if (_errorMode) | ||
182 | + return S_FALSE; | ||
183 | + | ||
184 | if (!m_IsSolid || !TablesRead) | ||
185 | { | ||
186 | bool keepDecompressing; | ||
187 | @@ -838,6 +853,8 @@ HRESULT CDecoder::CodeReal(ICompressProgressInfo *progress) | ||
188 | bool keepDecompressing; | ||
189 | if (_lzMode) | ||
190 | { | ||
191 | + if (!TablesOK) | ||
192 | + return S_FALSE; | ||
193 | RINOK(DecodeLZ(keepDecompressing)) | ||
194 | } | ||
195 | else | ||
196 | @@ -901,8 +918,8 @@ STDMETHODIMP CDecoder::Code(ISequentialInStream *inStream, ISequentialOutStream | ||
197 | _unpackSize = outSize ? *outSize : (UInt64)(Int64)-1; | ||
198 | return CodeReal(progress); | ||
199 | } | ||
200 | - catch(const CInBufferException &e) { return e.ErrorCode; } | ||
201 | - catch(...) { return S_FALSE; } | ||
202 | + catch(const CInBufferException &e) { _errorMode = true; return e.ErrorCode; } | ||
203 | + catch(...) { _errorMode = true; return S_FALSE; } | ||
204 | // CNewException is possible here. But probably CNewException is caused | ||
205 | // by error in data stream. | ||
206 | } | ||
207 | diff --git a/CPP/7zip/Compress/Rar3Decoder.h b/CPP/7zip/Compress/Rar3Decoder.h | ||
208 | index c130cec..2f72d7d 100644 | ||
209 | --- a/CPP/7zip/Compress/Rar3Decoder.h | ||
210 | +++ b/CPP/7zip/Compress/Rar3Decoder.h | ||
211 | @@ -192,6 +192,7 @@ class CDecoder: | ||
212 | UInt32 _lastFilter; | ||
213 | |||
214 | bool m_IsSolid; | ||
215 | + bool _errorMode; | ||
216 | |||
217 | bool _lzMode; | ||
218 | bool _unsupportedFilter; | ||
219 | @@ -200,6 +201,7 @@ class CDecoder: | ||
220 | UInt32 PrevAlignCount; | ||
221 | |||
222 | bool TablesRead; | ||
223 | + bool TablesOK; | ||
224 | |||
225 | CPpmd7 _ppmd; | ||
226 | int PpmEscChar; | ||
227 | |||
diff --git a/meta-oe/recipes-extended/p7zip/files/change_numMethods_from_bool_to_unsigned.patch b/meta-oe/recipes-extended/p7zip/files/change_numMethods_from_bool_to_unsigned.patch deleted file mode 100644 index 93eb0588c0..0000000000 --- a/meta-oe/recipes-extended/p7zip/files/change_numMethods_from_bool_to_unsigned.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From 0820ef4b9238c1e39ae5bda32cc08cce3fd3ce89 Mon Sep 17 00:00:00 2001 | ||
2 | From: Nisha Parrakat <Nisha.Parrakat@kpit.com> | ||
3 | Date: Wed, 26 May 2021 19:59:28 +0000 | ||
4 | Subject: [PATCH] fixes the below error | ||
5 | |||
6 | | ../../../../CPP/7zip/Archive/Wim/WimHandler.cpp: In member function 'virtual LONG NArchive::NWim::CHandler::GetArchiveProperty(PROPID, PROPVARIANT*)': | ||
7 | | ../../../../CPP/7zip/Archive/Wim/WimHandler.cpp:308:11: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17 | ||
8 | | 308 | numMethods++; | ||
9 | | | ^~~~~~~~~~ | ||
10 | | ../../../../CPP/7zip/Archive/Wim/WimHandler.cpp:318:9: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17 | ||
11 | | 318 | numMethods++; | ||
12 | |||
13 | use unsigned instead of bool | ||
14 | Signed-off-by: Nisha Parrakat <Nisha.Parrakat@kpit.com> | ||
15 | |||
16 | Upstream-Status: Pending | ||
17 | |||
18 | --- | ||
19 | CPP/7zip/Archive/Wim/WimHandler.cpp | 2 +- | ||
20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/CPP/7zip/Archive/Wim/WimHandler.cpp b/CPP/7zip/Archive/Wim/WimHandler.cpp | ||
23 | index 27d3298..4ff5cfe 100644 | ||
24 | --- a/CPP/7zip/Archive/Wim/WimHandler.cpp | ||
25 | +++ b/CPP/7zip/Archive/Wim/WimHandler.cpp | ||
26 | @@ -298,7 +298,7 @@ STDMETHODIMP CHandler::GetArchiveProperty(PROPID propID, PROPVARIANT *value) | ||
27 | |||
28 | AString res; | ||
29 | |||
30 | - bool numMethods = 0; | ||
31 | + unsigned numMethods = 0; | ||
32 | for (unsigned i = 0; i < ARRAY_SIZE(k_Methods); i++) | ||
33 | { | ||
34 | if (methodMask & ((UInt32)1 << i)) | ||
diff --git a/meta-oe/recipes-extended/p7zip/files/do_not_override_compiler_and_do_not_strip.patch b/meta-oe/recipes-extended/p7zip/files/do_not_override_compiler_and_do_not_strip.patch deleted file mode 100644 index 2636e7f6f4..0000000000 --- a/meta-oe/recipes-extended/p7zip/files/do_not_override_compiler_and_do_not_strip.patch +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | From b2aa209dfc5e59d6329b55b9764782334b63dbe8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Raphael Freudiger <raphael.freudiger@siemens.com> | ||
3 | Date: Wed, 11 Feb 2015 09:11:47 +0100 | ||
4 | Subject: [PATCH] do not override compiler and do not strip | ||
5 | |||
6 | The default makefile sets the compiler to g++ or gcc. This leads to a wrong architecture when cross-compiling. | ||
7 | Remove the hardcoded compiler and just append the flags to CXX and CC. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: Raphael Freudiger <raphael.freudiger@siemens.com> | ||
11 | Reviewed-By: Pascal Bach <pascal.bach@siemens.com> | ||
12 | |||
13 | --- | ||
14 | makefile.machine | 4 +--- | ||
15 | 1 file changed, 1 insertion(+), 3 deletions(-) | ||
16 | |||
17 | diff --git a/makefile.machine b/makefile.machine | ||
18 | index 9e34c34..e9244d9 100644 | ||
19 | --- a/makefile.machine | ||
20 | +++ b/makefile.machine | ||
21 | @@ -2,7 +2,7 @@ | ||
22 | # makefile for Linux (x86, PPC, alpha ...) | ||
23 | # | ||
24 | |||
25 | -OPTFLAGS=-O -s | ||
26 | +OPTFLAGS=-O | ||
27 | |||
28 | ALLFLAGS=${OPTFLAGS} -pipe \ | ||
29 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ | ||
30 | @@ -10,8 +10,6 @@ ALLFLAGS=${OPTFLAGS} -pipe \ | ||
31 | -D_7ZIP_LARGE_PAGES \ | ||
32 | $(LOCAL_FLAGS) | ||
33 | |||
34 | -CXX=g++ | ||
35 | -CC=gcc | ||
36 | CC_SHARED=-fPIC | ||
37 | LINK_SHARED=-fPIC -shared | ||
38 | |||