You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2020/10/13 16:27:58 UTC

[trafficserver] branch 8.1.x updated: add support for centos8 (#7268)

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 8.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/8.1.x by this push:
     new ab73c83  add support for centos8 (#7268)
ab73c83 is described below

commit ab73c83d322e6cac16c7b2fd83679fb97bf1ea5e
Author: Evan Zelkowitz <ez...@apache.org>
AuthorDate: Tue Oct 13 10:23:22 2020 -0600

    add support for centos8 (#7268)
---
 tests/bootstrap.py | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/tests/bootstrap.py b/tests/bootstrap.py
index c352878..190cd23 100755
--- a/tests/bootstrap.py
+++ b/tests/bootstrap.py
@@ -56,6 +56,10 @@ distro_packages = {
     "CentOS": [
         "install epel-release",
         "install rh-python36-python-virtualenv"
+    ],
+    "CentOS-8": [
+        "install epel-release",
+        "install python3-virtualenv"
     ]
 }
 
@@ -168,7 +172,7 @@ def gen_package_cmds(packages):
 
 
 extra = ''
-if distro() == 'RHEL' or distro() == 'CentOS':
+if distro() == 'RHEL' or (distro() == 'CentOS' and distro_version() < 8):
     extra = ". /opt/rh/rh-python36/enable ;"
 
 
@@ -214,8 +218,17 @@ def main():
     # do we know of packages to install for the given platform
     dist = distro()
     cmds = []
+
+    # if centos 8 we must set crypto to legacy to allow tlsv1.0 tests
     if dist:
-        cmds = gen_package_cmds(distro_packages[dist])
+        if distro() == 'CentOS' and distro_version() > 7:
+            cmds += ["sudo update-crypto-policies --set LEGACY"]
+
+    if dist:
+        if distro() == 'CentOS' and distro_version() > 7:
+            cmds += gen_package_cmds(distro_packages['CentOS-8'])
+        else:
+            cmds += gen_package_cmds(distro_packages[dist])
 
     # test to see if we should use a certain version of pip
     path_to_pip = None