Changeset 209611 in webkit


Ignore:
Timestamp:
Dec 9, 2016, 9:57:39 AM (9 years ago)
Author:
commit-queue@webkit.org
Message:

Fedora also needs a PHP7 config file alternative
https://bugs.webkit.org/show_bug.cgi?id=165606

Patch by Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> on 2016-12-09
Reviewed by Michael Catanzaro.

Tools:

  • Scripts/webkitpy/port/base.py:

(Port._is_fedora_php_version_7): check for the php7 library.
(Port._fedora_php_version): get the appropriate filename for Fedora.
(Port._apache_config_file_name_for_platform):

LayoutTests:

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

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r209610 r209611  
     12016-12-09  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
     2
     3        Fedora also needs a PHP7 config file alternative
     4        https://bugs.webkit.org/show_bug.cgi?id=165606
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        * http/conf/fedora-httpd-2.4-php7.conf: Added.
     9
    1102016-12-09  Ryosuke Niwa  <rniwa@webkit.org>
    211
  • trunk/Tools/ChangeLog

    r209609 r209611  
     12016-12-09  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
     2
     3        Fedora also needs a PHP7 config file alternative
     4        https://bugs.webkit.org/show_bug.cgi?id=165606
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        * Scripts/webkitpy/port/base.py:
     9        (Port._is_fedora_php_version_7): check for the php7 library.
     10        (Port._fedora_php_version): get the appropriate filename for Fedora.
     11        (Port._apache_config_file_name_for_platform):
     12
    1132016-12-09  Ryan Haddad  <ryanhaddad@apple.com>
    214
  • trunk/Tools/Scripts/webkitpy/port/base.py

    r206934 r209611  
    11551155        return None
    11561156
     1157    def _is_fedora_php_version_7(self):
     1158        if self._filesystem.exists("/etc/httpd/modules/libphp7.so"):
     1159            return True
     1160        return False
     1161
    11571162    def _is_debian_php_version_7(self):
    11581163        if self._filesystem.exists("/usr/lib/apache2/modules/libphp7.0.so"):
     
    11761181    def _debian_php_version(self):
    11771182        if self._is_debian_php_version_7():
     1183            return "-php7"
     1184        return ""
     1185
     1186    def _fedora_php_version(self):
     1187        if self._is_fedora_php_version_7():
    11781188            return "-php7"
    11791189        return ""
     
    11851195        if sys_platform.startswith('linux'):
    11861196            if self._is_redhat_based():
    1187                 return 'fedora-httpd-' + self._apache_version() + '.conf'
     1197                return 'fedora-httpd-' + self._apache_version() + self._fedora_php_version() + '.conf'
    11881198            if self._is_debian_based():
    11891199                return 'debian-httpd-' + self._apache_version() + self._debian_php_version() + '.conf'
Note: See TracChangeset for help on using the changeset viewer.