⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 278606 in webkit


Ignore:
Timestamp:
Jun 8, 2021, 7:16:21 AM (5 years ago)
Author:
Philippe Normand
Message:

[Flatpak SDK] Enable network access in the WPE build sandbox
https://bugs.webkit.org/show_bug.cgi?id=225914

Reviewed by Michael Catanzaro.

  • flatpak/flatpakutils.py:

(WebkitFlatpak.run_in_sandbox): Allow network access for WPE build jobs, so that CMake is
able to git checkout Cog from github.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r278601 r278606  
     12021-06-08  Philippe Normand  <pnormand@igalia.com>
     2
     3        [Flatpak SDK] Enable network access in the WPE build sandbox
     4        https://bugs.webkit.org/show_bug.cgi?id=225914
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        * flatpak/flatpakutils.py:
     9        (WebkitFlatpak.run_in_sandbox): Allow network access for WPE build jobs, so that CMake is
     10        able to git checkout Cog from github.
     11
    1122021-06-08  Jean-Yves Avenard  <jya@apple.com>
    213
  • trunk/Tools/flatpak/flatpakutils.py

    r278600 r278606  
    766766                    raise e
    767767
     768        share_network_option = "--share=network"
     769
     770        if self.platform == 'WPE':
     771            flatpak_command.append(share_network_option)
     772
    768773        if not building:
    769774            flatpak_command.extend([
     
    842847                sandbox_environment[envvar] = value
    843848
    844         share_network_option = "--share=network"
    845849        remote_sccache_configs = set(["SCCACHE_REDIS", "SCCACHE_BUCKET", "SCCACHE_MEMCACHED",
    846850                                      "SCCACHE_GCS_BUCKET", "SCCACHE_AZURE_CONNECTION_STRING",
     
    871875        if self.use_icecream and not skip_icc:
    872876            _log.debug('Enabling the icecream compiler')
    873             if share_network_option not in flatpak_command:
    874                 flatpak_command.append(share_network_option)
    875             flatpak_command.append("--filesystem=home")
     877            flatpak_command.extend([share_network_option, "--filesystem=home"])
    876878
    877879            n_cores = multiprocessing.cpu_count() * 3
     
    953955            flatpak_env["WEBKIT_FLATPAK_DISPLAY"] = display
    954956
     957        # FIXME: Remove duplicate values from the flatpak command.
     958        command = flatpak_command
     959
    955960        if gather_output:
    956             return run_sanitized(flatpak_command, gather_output=True, ignore_stderr=True, env=flatpak_env)
     961            return run_sanitized(command, gather_output=True, ignore_stderr=True, env=flatpak_env)
    957962
    958963        try:
    959             return self.execute_command(flatpak_command, stdout=stdout, env=flatpak_env, keep_signals=keep_signals)
     964            return self.execute_command(command, stdout=stdout, env=flatpak_env, keep_signals=keep_signals)
    960965        except KeyboardInterrupt:
    961966            return 0
Note: See TracChangeset for help on using the changeset viewer.