Changeset 260562 in webkit


Ignore:
Timestamp:
Apr 23, 2020 2:17:44 AM (4 years ago)
Author:
Philippe Normand
Message:

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

Reviewed by Adrian Perez de Castro.

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

    r260560 r260562  
     12020-04-23  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
     6        Reviewed by Adrian Perez de Castro.
     7
     8        Extra variables need to be white-listed when the webkitpy tooling
     9        runs inside a gst-build environment, those variables are needed so
     10        that uninstalled GStreamer plugins are correctly picked up.
     11
     12        Additionally we now correctly white-list the
     13        WEBKIT_GST_USE_PLAYBIN3 env var. USE_PLAYBIN3 shouldn't be used
     14        anymore.
     15
     16        * Scripts/webkitpy/port/gtk.py:
     17        (GtkPort.setup_environ_for_server):
     18        * Scripts/webkitpy/port/wpe.py:
     19        (WPEPort.setup_environ_for_server):
     20
    1212020-04-23  Diego Pino Garcia  <dpino@igalia.com>
    222
  • trunk/Tools/Scripts/webkitpy/port/gtk.py

    r258626 r260562  
    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            self._copy_value_from_environ_if_set(environment, 'GST_%s' % gst_variable)
    132131
    133132        # Configure the software libgl renderer if jhbuild ready and we test inside a virtualized window system
  • trunk/Tools/Scripts/webkitpy/port/wpe.py

    r260357 r260562  
    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            self._copy_value_from_environ_if_set(environment, 'GST_%s' % gst_variable)
    8988        return environment
    9089
Note: See TracChangeset for help on using the changeset viewer.