ungoogled-software / ungoogled-chromium

Google Chromium, sans integration with Google
BSD 3-Clause "New" or "Revised" License
19.8k stars 806 forks source link

Following the new building.md leads to an error in step 1 #717

Closed nchv closed 5 years ago

nchv commented 5 years ago

Describe the bug Following the recently updated building.md leads to an error in the very first step.

To Reproduce Steps to reproduce the behavior:

[/tmp/download]: rm -rf *
[/tmp/download]: git clone https://github.com/Eloston/ungoogled-chromium.git
Cloning into 'ungoogled-chromium'...
remote: Enumerating objects: 189, done.
remote: Counting objects: 100% (189/189), done.
remote: Compressing objects: 100% (146/146), done.
remote: Total 11664 (delta 67), reused 121 (delta 36), pack-reused 11475
Receiving objects: 100% (11664/11664), 6.10 MiB | 6.82 MiB/s, done.
Resolving deltas: 100% (7301/7301), done.
[/tmp/download]: cd ungoogled-chromium/
[/tmp/download/ungoogled-chromium]: ./utils/downloads.py retrieve -c build/downloads_cache -i downloads.ini
Traceback (most recent call last):
  File "./utils/downloads.py", line 393, in <module>
    main()
  File "./utils/downloads.py", line 389, in main
    args.callback(args)
  File "./utils/downloads.py", line 330, in _retrieve_callback
    DownloadInfo(args.ini), args.cache, args.show_progress, args.disable_ssl_verification)
  File "./utils/downloads.py", line 236, in retrieve_downloads
    raise FileNotFoundError(cache_dir)
FileNotFoundError: build/downloads_cache
[/tmp/download/ungoogled-chromium]:

Expected behavior No error.

Environment (please complete the following information):

nchv commented 5 years ago

The second command line in step 1 also seems to fail. Tested by adding manually a step right after the cloning:

[/tmp/download]: cd ungoogled-chromium/
[/tmp/download/ungoogled-chromium]: mkdir -p build/downloads_cache
[/tmp/download/ungoogled-chromium]: ./utils/downloads.py retrieve -c build/downloads_cache -i downloads.ini
INFO: Downloading "chromium" to "chromium-72.0.3626.122.tar.xz" ...
INFO: Downloading build/downloads_cache/chromium-72.0.3626.122.tar.xz ...
Progress: 100.0% of 686,442,684 B
INFO: Downloading hashes for "chromium"
INFO: Downloading build/downloads_cache/chromium-72.0.3626.122.tar.xz.hashes ...
Progress: 100.0% of 650 B
INFO: Verifying hashes for "chromium" ...
DEBUG: Verifying md5 hash...
DEBUG: Verifying sha1 hash...
DEBUG: Verifying sha224 hash...
DEBUG: Verifying sha256 hash...
DEBUG: Verifying sha384 hash...
DEBUG: Verifying sha512 hash...
[/tmp/download/ungoogled-chromium]: ./utils/downloads.py unpack -c build/downloads_cache -i downloads.ini build/src
usage: downloads.py unpack [-h] [-i INI [INI ...]] -c CACHE
                           [--tar-path TAR_PATH] [--7z-path SEVENZ_PATH]
                           output
downloads.py unpack: error: the following arguments are required: output
[/tmp/download/ungoogled-chromium]:
nchv commented 5 years ago

It seems the second error is due to incorrect order of arguments. This works:

./utils/downloads.py unpack -i downloads.ini -c build/downloads_cache build/src

Then this works too (Prune binaries):

./utils/prune_binaries.py build/src pruning.list

but then "Apply patches" fails:

[/tmp/download/ungoogled-chromium]: ./utils/prune_binaries.py build/src pruning.list
[/tmp/download/ungoogled-chromium]: ./utils/patches.py apply build/src patches
INFO: Applying patches from patches
Traceback (most recent call last):
  File "./utils/patches.py", line 162, in <module>
    main()
  File "./utils/patches.py", line 158, in main
    args.callback(args)
  File "./utils/patches.py", line 115, in _apply_callback
    args.directory,
AttributeError: 'Namespace' object has no attribute 'directory'
[/tmp/download/ungoogled-chromium]:
nchv commented 5 years ago

Thanks. Now step 4 fails:

[/tmp/download/ungoogled-chromium]: ./utils/domain_substitution.py apply -r domain_regex.list -f domain_substitution.list -c build/domsubcache.tar.gz
usage: domain_substitution.py apply [-h] -r REGEX -f FILES -c CACHE directory
domain_substitution.py apply: error: the following arguments are required: directory
nchv commented 5 years ago

Step 4 still fails with the same message.

Eloston commented 5 years ago

That doesn't make sense. Can you show me the command you're using?

nchv commented 5 years ago

Today step 4 works but step 5 fails:

[/tmp/download]: rm -rf *
[/tmp/download]: git clone https://github.com/Eloston/ungoogled-chromium.git
Cloning into 'ungoogled-chromium'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 11783 (delta 0), reused 1 (delta 0), pack-reused 11780
Receiving objects: 100% (11783/11783), 6.13 MiB | 4.76 MiB/s, done.
Resolving deltas: 100% (7444/7444), done.
[/tmp/download]: cd ungoogled-chromium/
[/tmp/download/ungoogled-chromium]: mkdir -p build/download_cache
[/tmp/download/ungoogled-chromium]: ./utils/downloads.py retrieve -c build/download_cache -i downloads.ini
INFO: Downloading "chromium" to "chromium-73.0.3683.86.tar.xz" ...
INFO: Downloading build/download_cache/chromium-73.0.3683.86.tar.xz ...
Progress: 100.0% of 710,449,412 B
INFO: Downloading hashes for "chromium"
INFO: Downloading build/download_cache/chromium-73.0.3683.86.tar.xz.hashes ...
Progress: 100.0% of 644 B
INFO: Verifying hashes for "chromium" ...
DEBUG: Verifying md5 hash...
DEBUG: Verifying sha1 hash...
DEBUG: Verifying sha224 hash...
DEBUG: Verifying sha256 hash...
DEBUG: Verifying sha384 hash...
DEBUG: Verifying sha512 hash...
[/tmp/download/ungoogled-chromium]: ./utils/downloads.py unpack -c build/download_cache -i downloads.ini -- build/src
INFO: Unpacking "chromium" to ./ ...
DEBUG: Using BSD or GNU tar extractor
DEBUG: tar command line: /usr/bin/tar -xf build/download_cache/chromium-73.0.3683.86.tar.xz -C build/src
[/tmp/download/ungoogled-chromium]: ./utils/prune_binaries.py build/src pruning.list
[/tmp/download/ungoogled-chromium]: ./utils/patches.py apply build/src patches
INFO: Applying patches from patches
INFO: * Applying chromium-exclude_unwind_tables.patch (1/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/inox-patchset/chromium-exclude_unwind_tables.patch -d build/src --no-backup-if-mismatch --forward
patching file build/config/compiler/compiler.gni
INFO: * Applying 0001-fix-building-without-safebrowsing.patch (2/91)                     
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/chrome_content_browser_client.cc
patching file chrome/browser/profiles/profile_impl.cc
patching file chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
patching file chrome/browser/ui/webui/interstitials/interstitial_ui.cc
patching file chrome/browser/extensions/blacklist_state_fetcher.cc
patching file chrome/browser/extensions/blacklist_state_fetcher.h
patching file chrome/browser/download/chrome_download_manager_delegate.cc
patching file chrome/browser/browser_process_impl.cc
patching file chrome/browser/browser_process_impl.h
patching file chrome/browser/browser_process.h
patching file chrome/browser/ui/webui/downloads/downloads_dom_handler.h
patching file chrome/browser/ui/webui/downloads/downloads_dom_handler.cc
patching file chrome/browser/extensions/api/downloads/downloads_api.cc
patching file chrome/browser/extensions/api/downloads/downloads_api.h
patching file chrome/browser/download/download_prefs.cc
patching file chrome/browser/component_updater/file_type_policies_component_installer.cc
patching file chrome/browser/download/download_target_determiner.cc
patching file chrome/browser/BUILD.gn
patching file chrome/browser/ui/BUILD.gn
patching file chrome/browser/ssl/security_state_tab_helper.cc
patching file chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
patching file chrome/browser/metrics/chrome_metrics_service_client.cc
patching file chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
patching file chrome/browser/ssl/captive_portal_blocking_page.cc
patching file chrome/browser/ssl/cert_report_helper.cc
patching file chrome/browser/ui/tab_helpers.cc
patching file chrome/browser/subresource_filter/chrome_subresource_filter_client.cc
patching file chrome/browser/safe_browsing/BUILD.gn
patching file chrome/renderer/chrome_content_renderer_client.cc
patching file chrome/browser/net/trial_comparison_cert_verifier.cc
patching file chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
patching file chrome/browser/download/download_item_model.cc
patching file components/safe_browsing/features.cc
INFO: * Applying 0003-disable-autofill-download-manager.patch (3/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/inox-patchset/0003-disable-autofill-download-manager.patch -d build/src --no-backup-if-mismatch --forward
patching file components/autofill/core/browser/autofill_download_manager.cc
INFO: * Applying 0004-disable-google-url-tracker.patch (4/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/inox-patchset/0004-disable-google-url-tracker.patch -d build/src --no-backup-if-mismatch --forward
patching file components/google/core/browser/google_url_tracker.cc
INFO: * Applying 0005-disable-default-extensions.patch (5/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/inox-patchset/0005-disable-default-extensions.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/extensions/component_loader.cc
patching file chrome/browser/extensions/external_component_loader.cc
patching file chrome/browser/extensions/webstore_installer.cc
patching file chrome/browser/extensions/component_extensions_whitelist/whitelist.cc
INFO: * Applying 0007-disable-web-resource-service.patch (6/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/inox-patchset/0007-disable-web-resource-service.patch -d build/src --no-backup-if-mismatch --forward
patching file components/web_resource/web_resource_service.cc
INFO: * Applying 0009-disable-google-ipv6-probes.patch (7/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/inox-patchset/0009-disable-google-ipv6-probes.patch -d build/src --no-backup-if-mismatch --forward
patching file net/dns/host_resolver_impl.cc
INFO: * Applying 0010-disable-gcm-status-check.patch (8/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/inox-patchset/0010-disable-gcm-status-check.patch -d build/src --no-backup-if-mismatch --forward
patching file components/gcm_driver/gcm_channel_status_request.cc
INFO: * Applying 0014-disable-translation-lang-fetch.patch (9/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/inox-patchset/0014-disable-translation-lang-fetch.patch -d build/src --no-backup-if-mismatch --forward
patching file components/translate/core/browser/translate_language_list.cc
patching file chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
patching file components/translate/core/browser/translate_ranker_impl.cc
INFO: * Applying 0015-disable-update-pings.patch (10/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/inox-patchset/0015-disable-update-pings.patch -d build/src --no-backup-if-mismatch --forward
patching file components/component_updater/configurator_impl.cc
INFO: * Applying 0017-disable-new-avatar-menu.patch (11/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/inox-patchset/0017-disable-new-avatar-menu.patch -d build/src --no-backup-if-mismatch --forward
patching file components/signin/core/browser/signin_manager.cc
INFO: * Applying 0021-disable-rlz.patch (12/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/inox-patchset/0021-disable-rlz.patch -d build/src --no-backup-if-mismatch --forward
patching file rlz/buildflags/buildflags.gni
INFO: * Applying unrar.patch (13/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/debian_buster/disable/unrar.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/common/safe_browsing/BUILD.gn
patching file chrome/services/file_util/safe_archive_analyzer.cc
patching file chrome/browser/safe_browsing/download_protection/file_analyzer.cc
INFO: * Applying perfetto.patch (14/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/debian_buster/disable/perfetto.patch -d build/src --no-backup-if-mismatch --forward
patching file BUILD.gn
INFO: * Applying safe_browsing-disable-incident-reporting.patch (15/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/iridium-browser/safe_browsing-disable-incident-reporting.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc
patching file chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
patching file chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
patching file chrome/browser/safe_browsing/safe_browsing_service.cc
patching file components/security_interstitials/core/safe_browsing_loud_error_ui.cc
INFO: * Applying safe_browsing-disable-reporting-of-safebrowsing-over.patch (16/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/iridium-browser/safe_browsing-disable-reporting-of-safebrowsing-over.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/safe_browsing/client_side_detection_service.cc
INFO: * Applying all-add-trk-prefixes-to-possibly-evil-connections.patch (17/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch -d build/src --no-backup-if-mismatch --forward
patching file build/mac/tweak_info_plist.py
patching file chrome/browser/chromeos/customization/customization_document.cc
patching file chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc
patching file chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc
patching file chrome/browser/chromeos/file_manager/file_manager_string_util.cc
patching file chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc
patching file chrome/browser/extensions/install_signer.cc
patching file chrome/browser/nacl_host/nacl_infobar_delegate.cc
patching file chrome/browser/profiles/profile_avatar_downloader.cc
patching file chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.js
patching file chrome/browser/resources/default_apps/external_extensions.json
patching file chrome/browser/safe_browsing/client_side_detection_service.cc
patching file chrome/browser/safe_browsing/download_protection/download_feedback.cc
patching file components/safe_search_api/url_checker.cc
patching file chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
patching file chrome/browser/supervised_user/supervised_user_service.cc
patching file chrome/browser/tracing/crash_service_uploader.cc
patching file chrome/browser/ui/views/outdated_upgrade_bubble_view.cc
patching file chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
patching file chrome/common/extensions/chrome_extensions_client.cc
patching file chrome/common/url_constants.cc
patching file cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
patching file chromecast/browser/service/cast_service_simple.cc
patching file chromeos/geolocation/simple_geolocation_provider.cc
patching file components/cloud_devices/common/cloud_devices_urls.cc
patching file components/crash/content/app/breakpad_linux.cc
patching file components/drive/service/drive_api_service.cc
patching file components/feedback/feedback_uploader.cc
patching file components/gcm_driver/gcm_account_tracker.cc
patching file components/history/core/browser/web_history_service.cc
patching file components/invalidation/impl/gcm_network_channel.cc
patching file components/invalidation/impl/p2p_invalidator.cc
patching file components/metrics/url_constants.cc
patching file components/password_manager/core/browser/password_store.cc
patching file components/policy/core/common/policy_loader_win.cc
patching file components/policy/resources/policy_templates.json
patching file components/rappor/rappor_service_impl.cc
patching file components/search_engines/prepopulated_engines.json
patching file components/translate/core/browser/translate_url_fetcher.cc
patching file components/translate/core/common/translate_util.cc
patching file components/variations/variations_url_constants.cc
patching file content/browser/speech/speech_recognition_engine.cc
patching file content/shell/browser/shell_browser_main_parts.cc
patching file google_apis/gaia/gaia_constants.cc
patching file google_apis/gaia/google_service_auth_error.cc
patching file google_apis/gcm/engine/gservices_settings.cc
patching file jingle/notifier/base/gaia_token_pre_xmpp_auth.cc
patching file remoting/base/breakpad_mac.mm
patching file remoting/protocol/jingle_messages.cc
patching file remoting/webapp/base/js/xmpp_login_handler.js
patching file remoting/webapp/crd/manifest.json.jinja2
patching file ui/views/examples/webview_example.cc
patching file extensions/browser/updater/safe_manifest_parser.cc
patching file extensions/common/extension_urls.cc
patching file chrome/installer/setup/google_chrome_behaviors.cc
INFO: * Applying promo-disable-Google-promotion-fetching.patch (18/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/iridium-browser/promo-disable-Google-promotion-fetching.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/signin/signin_promo.cc
INFO: * Applying disable-crash-reporter.patch (19/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/disable-crash-reporter.patch -d build/src --no-backup-if-mismatch --forward
patching file third_party/breakpad/breakpad/src/client/linux/sender/google_crash_report_sender.cc
patching file chrome/browser/tracing/crash_service_uploader.cc
INFO: * Applying disable-google-host-detection.patch (20/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/disable-google-host-detection.patch -d build/src --no-backup-if-mismatch --forward
patching file net/base/url_util.cc
patching file components/variations/net/variations_http_headers.cc
patching file chrome/browser/page_load_metrics/page_load_metrics_util.cc
patching file components/search_engines/template_url.cc
patching file components/google/core/common/google_util.cc
patching file chrome/common/page_load_metrics/page_load_metrics_util.cc
patching file chrome/common/google_url_loader_throttle.cc
patching file chrome/renderer/chrome_content_renderer_client.cc
INFO: * Applying replace-google-search-engine-with-nosearch.patch (21/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/replace-google-search-engine-with-nosearch.patch -d build/src --no-backup-if-mismatch --forward
patching file components/search_engines/prepopulated_engines.json
INFO: * Applying disable-signin.patch (22/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/disable-signin.patch -d build/src --no-backup-if-mismatch --forward
patching file components/signin/core/browser/signin_manager_base.cc
patching file chrome/browser/ui/chrome_pages.cc
INFO: * Applying disable-translate.patch (23/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/disable-translate.patch -d build/src --no-backup-if-mismatch --forward
patching file components/translate/core/browser/translate_manager.cc
patching file components/translate/content/renderer/translate_helper.cc
patching file components/translate/core/browser/translate_script.cc
INFO: * Applying disable-untraceable-urls.patch (24/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/disable-untraceable-urls.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/plugins/plugins_resource_service.cc
patching file chrome/browser/safe_browsing/client_side_model_loader.cc
patching file chrome/browser/safe_browsing/client_side_model_loader.h
patching file rlz/lib/lib_values.cc
patching file rlz/lib/lib_values.h
patching file rlz/lib/financial_ping.cc
INFO: * Applying disable-profile-avatar-downloading.patch (25/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/disable-profile-avatar-downloading.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/profiles/profile_avatar_downloader.cc
INFO: * Applying disable-gcm.patch (26/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/disable-gcm.patch -d build/src --no-backup-if-mismatch --forward
patching file components/gcm_driver/gcm_client_impl.cc
INFO: * Applying disable-domain-reliability.patch (27/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/disable-domain-reliability.patch -d build/src --no-backup-if-mismatch --forward
patching file components/domain_reliability/google_configs.cc
patching file components/domain_reliability/uploader.cc
patching file components/domain_reliability/bake_in_configs.py
patching file components/domain_reliability/BUILD.gn
INFO: * Applying block-trk-and-subdomains.patch (28/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc
patching file chrome/browser/history/history_utils.cc
patching file chrome/browser/ui/singleton_tabs.cc
patching file components/omnibox/browser/autocomplete_input.cc
patching file content/browser/child_process_security_policy_impl.cc
patching file net/url_request/url_request.cc
patching file url/url_constants.cc
patching file url/url_constants.h
patching file components/url_formatter/url_fixer.cc
patching file net/BUILD.gn
patching file android_webview/browser/net/aw_url_request_context_getter.cc
patching file chrome/browser/profiles/profile_io_data.cc
patching file chromecast/browser/url_request_context_factory.cc
patching file net/url_request/trk_protocol_handler.cc
patching file net/url_request/trk_protocol_handler.h
patching file net/url_request/url_request_context_builder.cc
patching file url/url_util.cc
INFO: * Applying fix-building-without-one-click-signin.patch (29/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
patching file chrome/browser/ui/sync/one_click_signin_links_delegate_impl.cc
patching file chrome/browser/ui/BUILD.gn
INFO: * Applying disable-gaia.patch (30/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/disable-gaia.patch -d build/src --no-backup-if-mismatch --forward
patching file google_apis/gaia/gaia_auth_fetcher.cc
patching file chrome/browser/resources/component_extension_resources.grd
patching file chrome/browser/extensions/signin/gaia_auth_extension_loader.cc
patching file chrome/browser/extensions/component_extensions_whitelist/whitelist.cc
patching file chrome/browser/ui/webui/signin/inline_login_ui.cc
patching file chrome/browser/browser_resources.grd
INFO: * Applying disable-fonts-googleapis-references.patch (31/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch -d build/src --no-backup-if-mismatch --forward
patching file components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
patching file components/dom_distiller/core/html/preview.html
patching file third_party/catapult/third_party/polymer/components/font-roboto/roboto.html
patching file third_party/catapult/tracing/third_party/gl-matrix/jsdoc-template/static/default.css
patching file third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css
patching file third_party/flatbuffers/src/docs/header.html
patching file components/dom_distiller/core/javascript/dom_distiller_viewer.js
patching file tools/md_browser/base.css
INFO: * Applying disable-webstore-urls.patch (32/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/disable-webstore-urls.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/extensions/chrome_content_verifier_delegate.cc
patching file extensions/common/extension_urls.cc
patching file extensions/browser/updater/extension_downloader.cc
patching file chrome/browser/extensions/extension_migrator.cc
patching file chrome/browser/extensions/extension_migrator.h
INFO: * Applying fix-learn-doubleclick-hsts.patch (33/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/fix-learn-doubleclick-hsts.patch -d build/src --no-backup-if-mismatch --forward
patching file net/tools/transport_security_state_generator/transport_security_state_generator.cc
INFO: * Applying disable-webrtc-log-uploader.patch (34/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/disable-webrtc-log-uploader.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/media/webrtc/webrtc_log_uploader.cc
INFO: * Applying use-local-devtools-files.patch (35/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/use-local-devtools-files.patch -d build/src --no-backup-if-mismatch --forward
patching file third_party/blink/renderer/devtools/BUILD.gn
patching file third_party/blink/renderer/devtools/front_end/audits2_worker.json
patching file third_party/blink/renderer/devtools/front_end/devtools_app.json
patching file third_party/blink/renderer/devtools/front_end/shell.json
patching file third_party/blink/renderer/devtools/front_end/worker_app.json
INFO: * Applying disable-network-time-tracker.patch (36/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/disable-network-time-tracker.patch -d build/src --no-backup-if-mismatch --forward
patching file components/network_time/network_time_tracker.cc
INFO: * Applying disable-mei-preload.patch (37/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/disable-mei-preload.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/BUILD.gn
INFO: * Applying fix-building-without-safebrowsing.patch (38/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/chrome_content_browser_client.cc
patching file chrome/browser/download/download_item_model.cc
patching file chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.cc
INFO: * Applying disable-fetching-field-trials.patch (39/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/core/bromite/disable-fetching-field-trials.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/android/java/src/org/chromium/chrome/browser/ChromeFeatureList.java
patching file components/variations/service/variations_service.cc
INFO: * Applying chromium-widevine.patch (40/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/inox-patchset/chromium-widevine.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/common/chrome_content_client.cc
patching file third_party/widevine/cdm/widevine_cdm_version.h
INFO: * Applying 0006-modify-default-prefs.patch (41/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/inox-patchset/0006-modify-default-prefs.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/chrome_content_browser_client.cc
patching file chrome/browser/ui/browser_ui_prefs.cc
patching file chrome/browser/net/prediction_options.cc
patching file chrome/browser/net/prediction_options.h
patching file chrome/browser/background/background_mode_manager.cc
patching file components/content_settings/core/browser/cookie_settings.cc
patching file chrome/browser/ui/navigation_correction_tab_observer.cc
patching file components/autofill/core/common/autofill_prefs.cc
patching file chrome/browser/resources/settings/reset_page/reset_profile_dialog.html
patching file chrome/browser/signin/signin_promo.cc
patching file components/bookmarks/browser/bookmark_utils.cc
patching file chrome/browser/profiles/profile.cc
patching file chrome/service/cloud_print/connector_settings.cc
patching file chrome/browser/ui/webui/local_discovery/local_discovery_ui.cc
patching file extensions/common/extension.cc
patching file components/safe_browsing/common/safe_browsing_prefs.cc
patching file components/password_manager/core/browser/password_manager.cc
patching file components/payments/core/payment_prefs.cc
patching file chrome/browser/signin/account_consistency_mode_manager.cc
INFO: * Applying 0008-restore-classic-ntp.patch (42/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/inox-patchset/0008-restore-classic-ntp.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/search/search.cc
patching file components/ntp_snippets/features.cc
INFO: * Applying 0011-add-duckduckgo-search-engine.patch (43/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/inox-patchset/0011-add-duckduckgo-search-engine.patch -d build/src --no-backup-if-mismatch --forward
patching file components/search_engines/template_url_prepopulate_data.cc
INFO: * Applying 0013-disable-missing-key-warning.patch (44/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/inox-patchset/0013-disable-missing-key-warning.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc
INFO: * Applying 0016-chromium-sandbox-pie.patch (45/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/inox-patchset/0016-chromium-sandbox-pie.patch -d build/src --no-backup-if-mismatch --forward
patching file sandbox/linux/BUILD.gn
INFO: * Applying 0018-disable-first-run-behaviour.patch (46/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/inox-patchset/0018-disable-first-run-behaviour.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/ui/startup/startup_tab_provider.cc
INFO: * Applying 0019-disable-battery-status-service.patch (47/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/inox-patchset/0019-disable-battery-status-service.patch -d build/src --no-backup-if-mismatch --forward
patching file services/device/battery/battery_status_service.cc
patching file services/device/battery/battery_status_service.h
INFO: * Applying parallel.patch (48/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/debian_buster/gn/parallel.patch -d build/src --no-backup-if-mismatch --forward
patching file tools/gn/bootstrap/bootstrap.py
INFO: * Applying ps-print.patch (49/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/debian_buster/fixes/ps-print.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/ui/libgtkui/print_dialog_gtk.cc
INFO: * Applying inspector.patch (50/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/debian_buster/fixes/inspector.patch -d build/src --no-backup-if-mismatch --forward
patching file v8/src/inspector/BUILD.gn
INFO: * Applying connection-message.patch (51/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/debian_buster/fixes/connection-message.patch -d build/src --no-backup-if-mismatch --forward
patching file components/error_page_strings.grdp
INFO: * Applying chromedriver-revision.patch (52/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/debian_buster/fixes/chromedriver-revision.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/test/chromedriver/embed_version_in_cpp.py
INFO: * Applying android.patch (53/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/debian_buster/disable/android.patch -d build/src --no-backup-if-mismatch --forward
patching file device/vr/buildflags/buildflags.gni
patching file BUILD.gn
INFO: * Applying fuzzers.patch (54/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/debian_buster/disable/fuzzers.patch -d build/src --no-backup-if-mismatch --forward
patching file BUILD.gn
patching file content/test/BUILD.gn
patching file v8/tools/BUILD.gn
INFO: * Applying welcome-page.patch (55/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/debian_buster/disable/welcome-page.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/profiles/profile_manager.cc
INFO: * Applying google-api-warning.patch (56/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/debian_buster/disable/google-api-warning.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/ui/startup/startup_browser_creator_impl.cc
INFO: * Applying device-notifications.patch (57/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/debian_buster/disable/device-notifications.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/printing/cloud_print/privet_notifications.cc
INFO: * Applying initialization.patch (58/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/debian_buster/warnings/initialization.patch -d build/src --no-backup-if-mismatch --forward
patching file third_party/cacheinvalidation/src/google/cacheinvalidation/include/types.h
INFO: * Applying fontconfig.patch (59/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/debian_buster/system/fontconfig.patch -d build/src --no-backup-if-mismatch --forward
patching file base/test/BUILD.gn
patching file content/shell/test_runner/BUILD.gn
INFO: * Applying net-cert-increase-default-key-length-for-newly-gener.patch (60/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/iridium-browser/net-cert-increase-default-key-length-for-newly-gener.patch -d build/src --no-backup-if-mismatch --forward
patching file net/cert/x509_util.cc
INFO: * Applying mime_util-force-text-x-suse-ymp-to-be-downloaded.patch (61/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/iridium-browser/mime_util-force-text-x-suse-ymp-to-be-downloaded.patch -d build/src --no-backup-if-mismatch --forward
patching file third_party/blink/common/mime_util/mime_util.cc
INFO: * Applying prefs-only-keep-cookies-until-exit.patch (62/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/iridium-browser/prefs-only-keep-cookies-until-exit.patch -d build/src --no-backup-if-mismatch --forward
patching file components/content_settings/core/browser/content_settings_registry.cc
INFO: * Applying prefs-always-prompt-for-download-directory-by-defaul.patch (63/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/iridium-browser/prefs-always-prompt-for-download-directory-by-defaul.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/download/download_prefs.cc
INFO: * Applying updater-disable-auto-update.patch (64/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/iridium-browser/updater-disable-auto-update.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/app_controller_mac.mm
INFO: * Applying Remove-EV-certificates.patch (65/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/iridium-browser/Remove-EV-certificates.patch -d build/src --no-backup-if-mismatch --forward
patching file net/cert/ev_root_ca_metadata.cc
INFO: * Applying browser-disable-profile-auto-import-on-first-run.patch (66/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/chrome_browser_main.cc
INFO: * Applying add-third-party-ungoogled.patch (67/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/add-third-party-ungoogled.patch -d build/src --no-backup-if-mismatch --forward
patching file third_party/ungoogled/BUILD.gn
patching file third_party/ungoogled/ungoogled_switches.cc
patching file third_party/ungoogled/ungoogled_switches.h
INFO: * Applying clear-http-auth-cache-menu-item.patch (68/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/clear-http-auth-cache-menu-item.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/app/chrome_command_ids.h
patching file chrome/app/generated_resources.grd
patching file chrome/browser/ui/toolbar/app_menu_model.cc
patching file chrome/browser/ui/toolbar/app_menu_model.h
patching file chrome/browser/ui/views/frame/global_menu_bar_x11.cc
patching file chrome/browser/ui/browser_command_controller.cc
patching file tools/metrics/histograms/histograms.xml
patching file net/http/http_auth_cache.cc
patching file net/http/http_auth_cache.h
patching file tools/metrics/histograms/enums.xml
INFO: * Applying disable-formatting-in-omnibox.patch (69/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/disable-formatting-in-omnibox.patch -d build/src --no-backup-if-mismatch --forward
patching file components/url_formatter/url_formatter.cc
INFO: * Applying popups-to-tabs.patch (70/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/popups-to-tabs.patch -d build/src --no-backup-if-mismatch --forward
patching file content/renderer/render_view_impl.cc
INFO: * Applying add-ipv6-probing-option.patch (71/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch -d build/src --no-backup-if-mismatch --forward
patching file net/dns/host_resolver_impl.cc
INFO: * Applying remove-disable-setuid-sandbox-as-bad-flag.patch (72/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/ui/startup/bad_flags_prompt.cc
INFO: * Applying disable-intranet-redirect-detector.patch (73/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/disable-intranet-redirect-detector.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/intranet_redirect_detector.cc
INFO: * Applying enable-page-saving-on-more-pages.patch (74/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/enable-page-saving-on-more-pages.patch -d build/src --no-backup-if-mismatch --forward
patching file content/public/common/url_utils.cc
patching file chrome/browser/ui/browser_commands.cc
patching file components/offline_pages/core/offline_page_model.cc
patching file content/common/url_schemes.cc
INFO: * Applying disable-download-quarantine.patch (75/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/disable-download-quarantine.patch -d build/src --no-backup-if-mismatch --forward
patching file content/browser/renderer_host/pepper/pepper_file_io_host.cc
patching file content/browser/renderer_host/pepper/pepper_file_io_host.h
patching file components/download/internal/common/base_file.cc
patching file components/download/quarantine/quarantine.cc
patching file content/browser/BUILD.gn
INFO: * Applying fix-building-without-mdns-and-service-discovery.patch (76/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/fix-building-without-mdns-and-service-discovery.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/media/router/discovery/mdns/dns_sd_device_lister.cc
INFO: * Applying add-flag-to-stack-tabs.patch (77/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/add-flag-to-stack-tabs.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
patching file chrome/browser/about_flags.cc
INFO: * Applying add-flag-to-configure-extension-downloading.patch (78/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/about_flags.cc
patching file chrome/browser/download/download_crx_util.cc
patching file chrome/browser/extensions/extension_management.cc
patching file chrome/browser/download/download_crx_util.h
patching file chrome/browser/download/download_target_determiner.cc
INFO: * Applying add-flag-for-search-engine-collection.patch (79/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/about_flags.cc
patching file chrome/renderer/chrome_render_frame_observer.cc
patching file chrome/renderer/chrome_render_frame_observer.h
patching file components/search_engines/template_url_service.cc
patching file components/search_engines/template_url_service.h
INFO: * Applying add-flag-to-disable-beforeunload.patch (80/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/add-flag-to-disable-beforeunload.patch -d build/src --no-backup-if-mismatch --forward
patching file components/app_modal/javascript_dialog_manager.cc
INFO: * Applying add-flag-to-force-punycode-hostnames.patch (81/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/about_flags.cc
patching file components/url_formatter/url_formatter.cc
INFO: * Applying searx.patch (82/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/searx.patch -d build/src --no-backup-if-mismatch --forward
patching file components/search_engines/prepopulated_engines.json
patching file components/search_engines/search_engine_type.h
patching file components/search_engines/template_url_prepopulate_data.cc
INFO: * Applying disable-webgl-renderer-info.patch (83/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch -d build/src --no-backup-if-mismatch --forward
patching file third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
INFO: * Applying add-flag-to-show-avatar-button.patch (84/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/about_flags.cc
patching file chrome/browser/ui/views/toolbar/toolbar_view.cc
INFO: * Applying add-suggestions-url-field.patch (85/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/add-suggestions-url-field.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html
patching file chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js
patching file chrome/browser/ui/webui/settings/search_engines_handler.cc
patching file chrome/browser/ui/webui/settings/search_engines_handler.h
patching file chrome/browser/ui/search_engines/edit_search_engine_controller.cc
patching file chrome/browser/ui/search_engines/edit_search_engine_controller.h
patching file chrome/browser/resources/settings/search_engines_page/search_engines_browser_proxy.js
patching file chrome/browser/ui/search_engines/keyword_editor_controller.cc
patching file chrome/browser/ui/search_engines/keyword_editor_controller.h
patching file chrome/browser/ui/search_engines/template_url_table_model.cc
patching file chrome/browser/ui/search_engines/template_url_table_model.h
patching file components/search_engines/template_url_service.cc
patching file components/search_engines/template_url_service.h
INFO: * Applying add-flag-to-hide-crashed-bubble.patch (86/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/ui/startup/startup_browser_creator_impl.cc
INFO: * Applying default-to-https-scheme.patch (87/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/ungoogled-chromium/default-to-https-scheme.patch -d build/src --no-backup-if-mismatch --forward
patching file components/url_formatter/url_fixer.cc
patching file components/omnibox/browser/autocomplete_input.cc
patching file components/omnibox/browser/autocomplete_provider.cc
patching file chrome/browser/resources/bookmarks/edit_dialog.js
INFO: * Applying fingerprinting-flags-client-rects-and-measuretext.patch (88/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/bromite/fingerprinting-flags-client-rects-and-measuretext.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/about_flags.cc
patching file content/child/runtime_features.cc
patching file third_party/blink/renderer/core/dom/document.cc
patching file third_party/blink/renderer/core/dom/document.h
patching file third_party/blink/renderer/core/dom/element.cc
patching file third_party/blink/renderer/core/dom/range.cc
patching file third_party/blink/renderer/platform/runtime_enabled_features.json5
patching file third_party/blink/renderer/platform/exported/web_runtime_features.cc
patching file third_party/blink/public/platform/web_runtime_features.h
patching file chrome/browser/BUILD.gn
patching file content/browser/BUILD.gn
patching file content/browser/renderer_host/render_process_host_impl.cc
patching file content/child/BUILD.gn
patching file third_party/blink/renderer/platform/BUILD.gn
patching file third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc
patching file third_party/blink/renderer/core/html/canvas/text_metrics.h
patching file third_party/blink/renderer/core/html/canvas/text_metrics.cc
INFO: * Applying flag-max-connections-per-host.patch (89/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/bromite/flag-max-connections-per-host.patch -d build/src --no-backup-if-mismatch --forward
patching file chrome/browser/about_flags.cc
patching file chrome/browser/flag_descriptions.cc
patching file chrome/browser/flag_descriptions.h
patching file components/network_session_configurator/common/network_features.cc
patching file components/network_session_configurator/common/network_features.h
patching file components/network_session_configurator/common/network_switch_list.h
patching file chrome/browser/browser_process_impl.cc
patching file chrome/browser/BUILD.gn
INFO: * Applying flag-fingerprinting-canvas-image-data-noise.patch (90/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch -d build/src --no-backup-if-mismatch --forward
patching file third_party/blink/renderer/platform/graphics/image_data_buffer.cc
patching file third_party/blink/renderer/platform/graphics/static_bitmap_image.cc
patching file third_party/blink/renderer/platform/graphics/static_bitmap_image.h
patching file chrome/browser/about_flags.cc
patching file content/child/runtime_features.cc
patching file third_party/blink/renderer/platform/runtime_enabled_features.json5
patching file third_party/blink/renderer/platform/exported/web_runtime_features.cc
patching file third_party/blink/public/platform/web_runtime_features.h
patching file content/browser/renderer_host/render_process_host_impl.cc
patching file third_party/blink/renderer/platform/BUILD.gn
INFO: * Applying prevent-vsyncparameters-log-flooding.patch (91/91)
DEBUG: /usr/bin/patch -p1 --ignore-whitespace -i /tmp/download/ungoogled-chromium/patches/extra/google/prevent-vsyncparameters-log-flooding.patch -d build/src --no-backup-if-mismatch --forward
patching file ui/gl/gl_surface_presentation_helper.cc
[/tmp/download/ungoogled-chromium]: ./utils/domain_substitution.py apply -r domain_regex.list -f domain_substitution.list -c build/domsubcache.tar.gz build/src
INFO: Path has no substitutions: chrome/browser/plugins/plugins_resource_service.cc
INFO: Path has no substitutions: chrome/browser/safe_browsing/client_side_model_loader.cc
INFO: Path has no substitutions: chrome/common/google_url_loader_throttle.cc
INFO: Path has no substitutions: chrome/common/page_load_metrics/page_load_metrics_util.cc
INFO: Path has no substitutions: components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
INFO: Path has no substitutions: components/dom_distiller/core/html/preview.html
INFO: Path has no substitutions: components/domain_reliability/google_configs.cc
INFO: Path has no substitutions: components/google/core/browser/google_url_tracker.cc
INFO: Path has no substitutions: components/variations/net/variations_http_headers.cc
INFO: Path has no substitutions: net/tools/transport_security_state_generator/transport_security_state_generator.cc
INFO: Path has no substitutions: rlz/lib/lib_values.cc
INFO: Path has no substitutions: third_party/catapult/third_party/polymer/components/font-roboto/roboto.html
INFO: Path has no substitutions: third_party/catapult/tracing/third_party/gl-matrix/jsdoc-template/static/default.css
INFO: Path has no substitutions: third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css
INFO: Path has no substitutions: tools/md_browser/base.css
[/tmp/download/ungoogled-chromium]: mkdir -p build/src/out/Default
[/tmp/download/ungoogled-chromium]: cp flags.gn build/src/out/Default/args.gn
[/tmp/download/ungoogled-chromium]: cd build/src
[/tmp/download/ungoogled-chromium/build/src]: ./tools/gn/bootstrap.py --skip-generate-buildfiles -j4 -o out/Default/gn
bash: ./tools/gn/bootstrap.py: No such file or directory
[/tmp/download/ungoogled-chromium/build/src]:
Eloston commented 5 years ago

Fixed in 768f7ffe2233df0160612bdb53d62bb81a0c081e. Also, please note the changes at the top of the section.

Eloston commented 5 years ago

The rest of the commands should work fine. Closing.

nchv commented 5 years ago

I don't know if this is expected (considering the opening note and the one in section Rough example) but step 5 fails again (i.e. the at least one command doesn't work fine):

[/tmp/download/ungoogled-chromium]: mkdir -p build/src/out/Default
[/tmp/download/ungoogled-chromium]: cp flags.gn build/src/out/Default/args.gn
[/tmp/download/ungoogled-chromium]: cd build/src
[/tmp/download/ungoogled-chromium/build/src]: ./tools/gn/bootstrap/bootstrap.py --skip-generate-buildfiles -j4 -o out/Default/gn
ninja: Entering directory `/tmp/download/ungoogled-chromium/build/src/out/Release/gn_build'
[1/175] CXX base/callback_internal.o
FAILED: base/callback_internal.o 
clang++ -MMD -MF base/callback_internal.o.d  -I/tmp/download/ungoogled-chromium/build/src/tools/gn -I/tmp/download/ungoogled-chromium/build/src/out/Release/gn_build -DNDEBUG -O3 -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -std=c++14 -Wno-c++11-narrowing -c /tmp/download/ungoogled-chromium/build/src/tools/gn/base/callback_internal.cc -o base/callback_internal.o
/bin/sh: clang++: command not found
[2/175] CXX base/command_line.o
FAILED: base/command_line.o
clang++ -MMD -MF base/command_line.o.d  -I/tmp/download/ungoogled-chromium/build/src/tools/gn -I/tmp/download/ungoogled-chromium/build/src/out/Release/gn_build -DNDEBUG -O3 -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -std=c++14 -Wno-c++11-narrowing -c /tmp/download/ungoogled-chromium/build/src/tools/gn/base/command_line.cc -o base/command_line.o
/bin/sh: clang++: command not found
[3/175] CXX base/environment.o
FAILED: base/environment.o
clang++ -MMD -MF base/environment.o.d  -I/tmp/download/ungoogled-chromium/build/src/tools/gn -I/tmp/download/ungoogled-chromium/build/src/out/Release/gn_build -DNDEBUG -O3 -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -std=c++14 -Wno-c++11-narrowing -c /tmp/download/ungoogled-chromium/build/src/tools/gn/base/environment.cc -o base/environment.o
/bin/sh: clang++: command not found
[4/175] CXX base/files/file.o
FAILED: base/files/file.o
clang++ -MMD -MF base/files/file.o.d  -I/tmp/download/ungoogled-chromium/build/src/tools/gn -I/tmp/download/ungoogled-chromium/build/src/out/Release/gn_build -DNDEBUG -O3 -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -std=c++14 -Wno-c++11-narrowing -c /tmp/download/ungoogled-chromium/build/src/tools/gn/base/files/file.cc -o base/files/file.o
/bin/sh: clang++: command not found
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "./tools/gn/bootstrap/bootstrap.py", line 141, in <module>
    sys.exit(main(sys.argv[1:]))
  File "./tools/gn/bootstrap/bootstrap.py", line 124, in main
    ['ninja', '-C', gn_build_dir, 'gn', '-w', 'dupbuild=err', '-j'+str(options.jobs)])
  File "/usr/lib64/python2.7/subprocess.py", line 186, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', '/tmp/download/ungoogled-chromium/build/src/out/Release/gn_build', 'gn', '-w', 'dupbuild=err', '-j4']' returned non-zero exit status 1
[/tmp/download/ungoogled-chromium/build/src]:

Also it is not quite clear what a custom build is and how it is different from Portable Linux. All I read is that it may be a time consuming process but that doesn't really say much to someone who is simply building (i.e. not a programmer). Hence also the confusion in the issue linked above.

qvint commented 5 years ago

Did you install clang?

nchv commented 5 years ago

Did you install clang?

Yes. But as it seems I didn't export the path to it correctly. Now after I have done that step 5 works fine. Thanks for the tip!

However now step 6 fails:

[/tmp/download/ungoogled-chromium/build/src]: ./out/Default/gn gen out/Default --fail-on-unused-args
ERROR at //build/config/sysroot.gni:57:5: Assertion failed.
    assert(
    ^-----
Missing sysroot (//build/linux/debian_sid_amd64-sysroot). To fix, run: build/linux/sysroot_scripts/install-sysroot.py --arch=amd64
See //build/config/sysroot.gni:58:9:
        exec_script("//build/dir_exists.py",
        ^-----------------------------------
This is where it was set.
See //chrome/installer/BUILD.gn:7:1: whence it was imported.
import("//build/config/sysroot.gni")
^----------------------------------
See //BUILD.gn:459:7: which caused the file to be included.
      "//base:build_utf8_validator_tables",
      ^-----------------------------------

FWIW: I am not using amd64 architecture, neither I am using debian.

qvint commented 5 years ago

Missing sysroot

You should follow ungoogled-chromium-portablelinux build instructions. Or you can just append contents of flags.portable.gn to your out/Default/args.gn before running bootstrap.py.

Eloston commented 5 years ago

@nchv

Also it is not quite clear what a custom build is and how it is different from Portable Linux. All I read is that it may be a time consuming process but that doesn't really say much to someone who is simply building (i.e. not a programmer). Hence also the confusion in the issue linked above.

A "custom build" is just that: a build that is customized to one's desire. I suspect only a select handful of users would actually make custom builds, so I hope others may find the example useful for understanding how the build process works.

Portable Linux is a particular build of ungoogled-chromium that tries to mimic Chromium's "official build" (essentially just is_official_build=true without any system-specific dependencies). That is, it contains all of the additional GN flags and patches on top of those in the main ungoogled-chromium repo, and a simple shell script, to make a build similar in form and use to Chromium's "official build". It just happens that there aren't really any steps needed beyond what is listed in the rough example.

(FYI, Chromium's "official build" can be thought of a build that is portable across all Linux distros. This is why I chose the name Portable Linux.)

Thanks to your explanation, I was able to clarify the intent of the rough example once more. Hopefully everything makes more sense now.

nchv commented 5 years ago

Thanks. I think I understand now.