Changeset 202158 in webkit


Ignore:
Timestamp:
Jun 16, 2016 9:56:57 PM (8 years ago)
Author:
Gyuyoung Kim
Message:

[EFL][GTK] LayoutTest doesn't run on Ubuntu 16.04
https://bugs.webkit.org/show_bug.cgi?id=158141

Reviewed by Michael Catanzaro.

Tools:

  • Scripts/webkitpy/port/base.py: Detect php version in system, then use it.

(Port._is_debian_php_version_7):
(Port._debian_php_version):
(Port._apache_config_file_name_for_platform):

  • efl/install-dependencies:
  • gtk/install-dependencies:

LayoutTests:

  • http/conf/debian-httpd-2.4-php7.conf: Added.
Location:
trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r202157 r202158  
     12016-06-16  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
     2
     3        [EFL][GTK] LayoutTest doesn't run on Ubuntu 16.04
     4        https://bugs.webkit.org/show_bug.cgi?id=158141
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        * http/conf/debian-httpd-2.4-php7.conf: Added.
     9
    1102016-06-15  Filip Pizlo  <fpizlo@apple.com>
    211
  • trunk/Tools/ChangeLog

    r202157 r202158  
     12016-06-16  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
     2
     3        [EFL][GTK] LayoutTest doesn't run on Ubuntu 16.04
     4        https://bugs.webkit.org/show_bug.cgi?id=158141
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        * Scripts/webkitpy/port/base.py: Detect php version in system, then use it.
     9        (Port._is_debian_php_version_7):
     10        (Port._debian_php_version):
     11        (Port._apache_config_file_name_for_platform):
     12        * efl/install-dependencies:
     13        * gtk/install-dependencies:
     14
    1152016-06-16  Filip Pizlo  <fpizlo@apple.com>
    216
  • trunk/Tools/Scripts/webkitpy/port/base.py

    r201404 r202158  
    11311131        return None
    11321132
     1133    def _is_debian_php_version_7(self):
     1134        if self._filesystem.exists("/usr/lib/apache2/modules/libphp7.0.so"):
     1135            return True
     1136        return False
     1137
    11331138    # FIXME: This belongs on some platform abstraction instead of Port.
    11341139    def _is_redhat_based(self):
     
    11441149        config = self._executive.run_command([self._path_to_apache(), '-v'])
    11451150        return re.sub(r'(?:.|\n)*Server version: Apache/(\d+\.\d+)(?:.|\n)*', r'\1', config)
     1151
     1152    def _debian_php_version(self):
     1153        if self._is_debian_php_version_7():
     1154            return "-php7"
     1155        return ""
    11461156
    11471157    # We pass sys_platform into this method to make it easy to unit test.
     
    11531163                return 'fedora-httpd-' + self._apache_version() + '.conf'
    11541164            if self._is_debian_based():
    1155                 return 'debian-httpd-' + self._apache_version() + '.conf'
     1165                return 'debian-httpd-' + self._apache_version() + self._debian_php_version() + '.conf'
    11561166            if self._is_arch_based():
    11571167                return 'archlinux-httpd.conf'
  • trunk/Tools/efl/install-dependencies

    r196601 r202158  
    112112    apt-get install \
    113113        apache2 \
    114         libapache2-mod-php5 \
    115114        libruby \
    116115        xvfb
     116
     117    installPHPWithApt
     118}
     119
     120function installPHPWithApt {
     121    if [ -f "/etc/os-release" ]; then
     122        ubuntu_version=`grep VERSION_ID /etc/os-release`
     123        if [[ $ubuntu_version == *VERSION_ID=\"16.04* ]]; then
     124            apt-get install libapache2-mod-php7.0
     125        else
     126            apt-get install libapache2-mod-php5
     127        fi
     128    fi
    117129}
    118130
  • trunk/Tools/gtk/install-dependencies

    r194464 r202158  
    139139        dbus-x11 \
    140140        libapache2-mod-bw \
    141         libapache2-mod-php5 \
    142141        libgpg-error-dev \
    143142        pulseaudio-utils \
     
    193192
    194193    apt-get install $packages
     194
     195    installPHPWithApt
    195196}
    196197
     
    433434}
    434435
     436function installPHPWithApt {
     437    if [ -f "/etc/os-release" ]; then
     438        ubuntu_version=`grep VERSION_ID /etc/os-release`
     439        if [[ $ubuntu_version == *VERSION_ID=\"16.04* ]]; then
     440            apt-get install libapache2-mod-php7.0
     441        else
     442            apt-get install libapache2-mod-php5
     443        fi
     444    fi
     445}
     446
    435447checkInstaller
    436448
Note: See TracChangeset for help on using the changeset viewer.