Changeset 271199 in webkit
- Timestamp:
- Jan 6, 2021, 5:45:07 AM (6 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/webkitpy/port/linux_get_crash_log.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r271190 r271199 1 2021-01-06 Lauro Moura <lmoura@igalia.com> 2 3 [Flatpak SDK] coredumpctl invocation when using a local SDK repo fallbacks to the remote repo 4 https://bugs.webkit.org/show_bug.cgi?id=219934 5 6 Reviewed by Philippe Normand. 7 8 Some commands run in flatpak may end up calling other commands on the 9 host through flatpak-spawn that would enter the flatpak environment 10 again. One such command happens when getting crash logs, which invokes 11 webkit-flatpak with --gdb-stack-trace. 12 13 Before this commit, the WEBKIT_FLATPAK_USER_DIR is not forwarded, 14 making flatpakutils.py to download the regular UserFlatpak SDK instead 15 of using the one in the mentioned variable. 16 17 * Scripts/webkitpy/port/linux_get_crash_log.py: 18 (GDBCrashLogGenerator._get_trace_from_flatpak): 19 1 20 2021-01-05 Aditya Keerthi <akeerthi@apple.com> 2 21 -
trunk/Tools/Scripts/webkitpy/port/linux_get_crash_log.py
r267784 r271199 109 109 coredump_since = "--gdb-stack-trace" 110 110 webkit_flatpak_path = self._webkit_finder.path_to_script('webkit-flatpak') 111 cmd = ['flatpak-spawn', '--host', webkit_flatpak_path, '--%s' % self._port_name, 112 "--%s" % self._configuration.lower(), coredump_since] 111 cmd = ['flatpak-spawn', '--host'] 112 113 # Forward WEBKIT_FLATPAK_USER_DIR so webkit-flatpak can use the same flatpak 114 # install as the current one. 115 user_dir = os.environ.get('WEBKIT_FLATPAK_USER_DIR') 116 if user_dir: 117 cmd.append("--env=WEBKIT_FLATPAK_USER_DIR=%s" % user_dir) 118 119 cmd.extend([webkit_flatpak_path, '--%s' % self._port_name, 120 "--%s" % self._configuration.lower(), "--verbose", coredump_since]) 113 121 114 122 proc = self._executive.popen(cmd, stdin=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
Note:
See TracChangeset
for help on using the changeset viewer.