Changeset 246637 in webkit


Ignore:
Timestamp:
Jun 20, 2019 10:04:19 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] HTTP layout tests don't run in flatpak
https://bugs.webkit.org/show_bug.cgi?id=199067

Patch by Alexander Mikhaylenko <exalm7659@gmail.com> on 2019-06-20
Reviewed by Michael Catanzaro.

Tools:

Stop bind mounting /app/lib/perl to /etc/perl because Perl doesn't actually
check that path. Instead, add /app/lib/perl to Apache config directly.

/usr/manifest.json file is not guaranteed to exist in sandbox, check for
/.flatpak-info instead.

  • Scripts/webkitpy/port/base.py:

(Port._is_flatpak):
(Port._in_flatpak_sandbox):

  • flatpak/flatpakutils.py:

(WebkitFlatpak.run_in_sandbox):
(is_sandboxed):

LayoutTests:

Set PERL5LIB environment variable in Apache config.

  • http/conf/flatpak-httpd.conf:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r246636 r246637  
     12019-06-20  Alexander Mikhaylenko  <exalm7659@gmail.com>
     2
     3        [GTK] HTTP layout tests don't run in flatpak
     4        https://bugs.webkit.org/show_bug.cgi?id=199067
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Set PERL5LIB environment variable in Apache config.
     9
     10        * http/conf/flatpak-httpd.conf:
     11
    1122019-06-18  Darin Adler  <darin@apple.com>
    213
  • trunk/LayoutTests/http/conf/flatpak-httpd.conf

    r233362 r246637  
    3434LoadModule php7_module          modules/libphp7.so
    3535LoadModule asis_module          modules/mod_asis.so
     36LoadModule env_module           modules/mod_env.so
     37
     38SetEnv PERL5LIB /app/lib/perl
    3639
    3740ServerName 127.0.0.1
  • trunk/Tools/ChangeLog

    r246636 r246637  
     12019-06-20  Alexander Mikhaylenko  <exalm7659@gmail.com>
     2
     3        [GTK] HTTP layout tests don't run in flatpak
     4        https://bugs.webkit.org/show_bug.cgi?id=199067
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Stop bind mounting /app/lib/perl to /etc/perl because Perl doesn't actually
     9        check that path. Instead, add /app/lib/perl to Apache config directly.
     10
     11        /usr/manifest.json file is not guaranteed to exist in sandbox, check for
     12        /.flatpak-info instead.
     13
     14        * Scripts/webkitpy/port/base.py:
     15        (Port._is_flatpak):
     16        (Port._in_flatpak_sandbox):
     17        * flatpak/flatpakutils.py:
     18        (WebkitFlatpak.run_in_sandbox):
     19        (is_sandboxed):
     20
    1212019-06-18  Darin Adler  <darin@apple.com>
    222
  • trunk/Tools/Scripts/webkitpy/port/base.py

    r246221 r246637  
    12721272
    12731273    def _is_flatpak(self):
    1274         return self._filesystem.exists('/usr/manifest.json')
     1274        return self._filesystem.exists('/.flatpak-info')
    12751275
    12761276    def _apache_version(self):
     
    14661466
    14671467    def _in_flatpak_sandbox(self):
    1468         return os.path.exists("/usr/manifest.json")
     1468        return os.path.exists("/.flatpak-info")
    14691469
    14701470    def _should_use_jhbuild(self):
  • trunk/Tools/flatpak/flatpakutils.py

    r245172 r246637  
    738738                # Workaround for https://webkit.org/b/187384 to have our own perl modules usable inside the sandbox
    739739                # as setting the PERL5LIB envvar won't work inside apache (and for scripts using `perl -T``).
    740                 "--bind-mount=/etc/perl=%s" % os.path.join(self.flatpak_build_path, "files/lib/perl"),
    741740                "--bind-mount=/run/host/%s=%s" % (tempfile.gettempdir(), tempfile.gettempdir()),
    742741                "--bind-mount=%s=%s" % (self.sandbox_source_root, self.source_root),
     
    958957
    959958def is_sandboxed():
    960     return os.path.exists("/usr/manifest.json")
     959    return os.path.exists("/.flatpak-info")
    961960
    962961
Note: See TracChangeset for help on using the changeset viewer.