Changeset 260641 in webkit


Ignore:
Timestamp:
Apr 24, 2020 7:22:10 AM (4 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK][WPE] White-list more GStreamer environment variables in webkitpy
https://bugs.webkit.org/show_bug.cgi?id=210854
<rdar://problem/62238305>

Patch by Philippe Normand <pnormand@igalia.com> on 2020-04-24
Reviewed by Carlos Alberto Lopez Perez.

Extra variables need to be white-listed when the webkitpy tooling
runs inside a gst-build environment, those variables are needed so
that uninstalled GStreamer plugins are correctly picked up.

Additionally we now correctly white-list the
WEBKIT_GST_USE_PLAYBIN3 env var. USE_PLAYBIN3 shouldn't be used
anymore.

  • Scripts/webkitpy/port/gtk.py:

(GtkPort.setup_environ_for_server):

  • Scripts/webkitpy/port/wpe.py:

(WPEPort.setup_environ_for_server):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r260620 r260641  
     12020-04-24  Philippe Normand  <pnormand@igalia.com>
     2
     3        [GTK][WPE] White-list more GStreamer environment variables in webkitpy
     4        https://bugs.webkit.org/show_bug.cgi?id=210854
     5        <rdar://problem/62238305>
     6
     7        Reviewed by Carlos Alberto Lopez Perez.
     8
     9        Extra variables need to be white-listed when the webkitpy tooling
     10        runs inside a gst-build environment, those variables are needed so
     11        that uninstalled GStreamer plugins are correctly picked up.
     12
     13        Additionally we now correctly white-list the
     14        WEBKIT_GST_USE_PLAYBIN3 env var. USE_PLAYBIN3 shouldn't be used
     15        anymore.
     16
     17        * Scripts/webkitpy/port/gtk.py:
     18        (GtkPort.setup_environ_for_server):
     19        * Scripts/webkitpy/port/wpe.py:
     20        (WPEPort.setup_environ_for_server):
     21
    1222020-04-23  Yusuke Suzuki  <ysuzuki@apple.com>
    223
  • trunk/Tools/Scripts/webkitpy/port/gtk.py

    r260580 r260641  
    125125        self._copy_value_from_environ_if_set(environment, 'WEBKIT_JHBUILD')
    126126        self._copy_value_from_environ_if_set(environment, 'WEBKIT_TOP_LEVEL')
    127         self._copy_value_from_environ_if_set(environment, 'USE_PLAYBIN3')
    128         self._copy_value_from_environ_if_set(environment, 'GST_DEBUG')
    129         self._copy_value_from_environ_if_set(environment, 'GST_DEBUG_DUMP_DOT_DIR')
    130         self._copy_value_from_environ_if_set(environment, 'GST_DEBUG_FILE')
    131         self._copy_value_from_environ_if_set(environment, 'GST_DEBUG_NO_COLOR')
     127        self._copy_value_from_environ_if_set(environment, 'WEBKIT_GST_USE_PLAYBIN3')
     128        for gst_variable in ('DEBUG', 'DEBUG_DUMP_DOT_DIR', 'DEBUG_FILE', 'DEBUG_NO_COLOR',
     129                             'PLUGIN_SCANNER', 'PLUGIN_PATH', 'PLUGIN_SYSTEM_PATH', 'REGISTRY',
     130                             'PLUGIN_PATH_1_0'):
     131            self._copy_value_from_environ_if_set(environment, 'GST_%s' % gst_variable)
    132132
    133133        # Configure the software libgl renderer if jhbuild ready and we test inside a virtualized window system
  • trunk/Tools/Scripts/webkitpy/port/wpe.py

    r260580 r260641  
    8080        self._copy_value_from_environ_if_set(environment, 'WEBKIT_JHBUILD')
    8181        self._copy_value_from_environ_if_set(environment, 'WEBKIT_TOP_LEVEL')
    82         self._copy_value_from_environ_if_set(environment, 'USE_PLAYBIN3')
    83         self._copy_value_from_environ_if_set(environment, 'GST_DEBUG')
    84         self._copy_value_from_environ_if_set(environment, 'GST_DEBUG_DUMP_DOT_DIR')
    85         self._copy_value_from_environ_if_set(environment, 'GST_DEBUG_FILE')
    86         self._copy_value_from_environ_if_set(environment, 'GST_DEBUG_NO_COLOR')
    8782        self._copy_value_from_environ_if_set(environment, 'LIBGL_ALWAYS_SOFTWARE')
    8883        self._copy_value_from_environ_if_set(environment, 'XR_RUNTIME_JSON')
     84        self._copy_value_from_environ_if_set(environment, 'WEBKIT_GST_USE_PLAYBIN3')
     85        for gst_variable in ('DEBUG', 'DEBUG_DUMP_DOT_DIR', 'DEBUG_FILE', 'DEBUG_NO_COLOR',
     86                             'PLUGIN_SCANNER', 'PLUGIN_PATH', 'PLUGIN_SYSTEM_PATH', 'REGISTRY',
     87                             'PLUGIN_PATH_1_0'):
     88            self._copy_value_from_environ_if_set(environment, 'GST_%s' % gst_variable)
    8989        return environment
    9090
Note: See TracChangeset for help on using the changeset viewer.