mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-22 18:26:43 +01:00
gnu: p7zip: Fix building with gcc-10.
* gnu/packages/compresson.scm (p7zip)[source]: Adjust snippet to fix compilation error using gcc-10.
This commit is contained in:
parent
944ba4237f
commit
fcd88262df
1 changed files with 4 additions and 1 deletions
|
@ -1320,7 +1320,10 @@ (define-public p7zip
|
||||||
(find-files "Utils/file_Codecs_Rar_so.py")))
|
(find-files "Utils/file_Codecs_Rar_so.py")))
|
||||||
(delete-file-recursively "CPP/7zip/Archive/Rar")
|
(delete-file-recursively "CPP/7zip/Archive/Rar")
|
||||||
(delete-file-recursively "CPP/7zip/Compress/Rar")
|
(delete-file-recursively "CPP/7zip/Compress/Rar")
|
||||||
#t))
|
;; Fix FTBFS with gcc-10.
|
||||||
|
(substitute* "CPP/Windows/ErrorMsg.cpp"
|
||||||
|
(("switch\\(errorCode\\) \\{")
|
||||||
|
"switch(static_cast<HRESULT>(errorCode)) {"))))
|
||||||
(patches (search-patches "p7zip-CVE-2016-9296.patch"
|
(patches (search-patches "p7zip-CVE-2016-9296.patch"
|
||||||
"p7zip-CVE-2017-17969.patch"
|
"p7zip-CVE-2017-17969.patch"
|
||||||
"p7zip-remove-unused-code.patch"))))
|
"p7zip-remove-unused-code.patch"))))
|
||||||
|
|
Loading…
Reference in a new issue