Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4
nodejs-electron
chromium-norar.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File chromium-norar.patch of Package nodejs-electron
Index: electron-16.0.6/chrome/common/safe_browsing/BUILD.gn =================================================================== --- electron-16.0.6.orig/chrome/common/safe_browsing/BUILD.gn 2022-01-10 16:06:48.181285739 +0100 +++ electron-16.0.6/chrome/common/safe_browsing/BUILD.gn 2022-01-13 16:03:25.281650253 +0100 @@ -58,39 +58,6 @@ if (safe_browsing_mode == 1) { public_deps = [ "//components/safe_browsing/core/common/proto:csd_proto" ] } - source_set("rar_analyzer") { - sources = [ - "rar_analyzer.cc", - "rar_analyzer.h", - ] - - deps = [ - ":archive_analyzer_results", - ":download_type_util", - "//base", - "//base:i18n", - "//components/safe_browsing/content/common:file_type_policies", - "//components/safe_browsing/core/common", - "//third_party/unrar:unrar", - ] - - defines = [ - "_FILE_OFFSET_BITS=64", - "LARGEFILE_SOURCE", - "RAR_SMP", - "SILENT", - - # The following is set to disable certain macro definitions in the unrar - # source code. - "CHROMIUM_UNRAR", - - # Disables exceptions in unrar, replaces them with process termination. - "UNRAR_NO_EXCEPTIONS", - ] - - public_deps = [ "//components/safe_browsing/core/common/proto:csd_proto" ] - } - if (is_linux || is_win) { source_set("document_analyzer") { sources = [ @@ -189,7 +156,6 @@ source_set("safe_browsing") { ":archive_analyzer_results", ":binary_feature_extractor", ":download_type_util", - ":rar_analyzer", "//components/safe_browsing/core/common", ] Index: electron-16.0.6/chrome/common/safe_browsing/DEPS =================================================================== --- electron-16.0.6.orig/chrome/common/safe_browsing/DEPS 2022-01-13 16:02:48.153448394 +0100 +++ electron-16.0.6/chrome/common/safe_browsing/DEPS 2022-01-13 16:02:59.521510198 +0100 @@ -3,6 +3,5 @@ include_rules = [ "+components/safe_browsing/core/common", "+third_party/maldoca", "+third_party/protobuf", - "+third_party/unrar", "+third_party/zlib", ] Index: electron-16.0.6/chrome/services/file_util/BUILD.gn =================================================================== --- electron-16.0.6.orig/chrome/services/file_util/BUILD.gn 2022-01-13 16:02:48.153448394 +0100 +++ electron-16.0.6/chrome/services/file_util/BUILD.gn 2022-01-13 16:02:59.521510198 +0100 @@ -60,7 +60,6 @@ source_set("file_util") { deps += [ "//chrome/common/safe_browsing", "//chrome/common/safe_browsing:archive_analyzer_results", - "//chrome/common/safe_browsing:rar_analyzer", ] if (is_linux || is_win) { Index: electron-16.0.6/chrome/services/file_util/safe_archive_analyzer.cc =================================================================== --- electron-16.0.6.orig/chrome/services/file_util/safe_archive_analyzer.cc 2022-01-13 16:02:48.153448394 +0100 +++ electron-16.0.6/chrome/services/file_util/safe_archive_analyzer.cc 2022-01-13 16:02:59.521510198 +0100 @@ -45,10 +45,14 @@ void SafeArchiveAnalyzer::AnalyzeDmgFile void SafeArchiveAnalyzer::AnalyzeRarFile(base::File rar_file, base::File temporary_file, AnalyzeRarFileCallback callback) { +#if 0 DCHECK(rar_file.IsValid()); safe_browsing::ArchiveAnalyzerResults results; safe_browsing::rar_analyzer::AnalyzeRarFile( std::move(rar_file), std::move(temporary_file), &results); std::move(callback).Run(results); +#else + NOTREACHED(); +#endif }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor