Ticket #13631: 0007-enable-software-collections-and-install-devtoolset-9.patch

File 0007-enable-software-collections-and-install-devtoolset-9.patch, 1.6 KB (added by Gary Buhrmaster, 4 months ago)

install software collections repo and install devtoolset-9

  • roles/mythtv-rpm/tasks/main.yml

    From 9a6925fabfca5cce708aaa037f82ce83e098b0c4 Mon Sep 17 00:00:00 2001
    From: Gary Buhrmaster <gary.buhrmaster@gmail.com>
    Date: Sun, 7 Jun 2020 15:50:15 -0400
    Subject: [PATCH 7/7] enable software collections and install devtoolset-9 for
     el7
    
    ---
     roles/mythtv-rpm/tasks/main.yml      | 10 ++++++++++
     roles/mythtv-rpm/tasks/setup-scl.yml |  8 ++++++++
     2 files changed, 18 insertions(+)
     create mode 100644 roles/mythtv-rpm/tasks/setup-scl.yml
    
    diff --git a/roles/mythtv-rpm/tasks/main.yml b/roles/mythtv-rpm/tasks/main.yml
    index 062cd1d..9352893 100644
    a b  
    66- include: setup-rpmfusion.yml
    77  when:    ansible_distribution == "Fedora" or ansible_distribution == "CentOS"
    88
     9- include: setup-scl.yml
     10  when:    ansible_distribution == "CentOS"
     11
    912- name: create a list of compilers and build essentials
    1013  set_fact:
    1114    yum_pkg_lst:
     
    129132      - mysql-devel
    130133      - minizip-devel
    131134
     135- name: add devtoolset-9 for CentOS
     136  set_fact:
     137    yum_pkg_lst:
     138      - '{{ yum_pkg_lst }}'
     139      - devtoolset-9
     140  when: ansible_distribution == "CentOS"
     141
    132142- name: final package list
    133143  debug:
    134144    msg:
  • new file roles/mythtv-rpm/tasks/setup-scl.yml

    diff --git a/roles/mythtv-rpm/tasks/setup-scl.yml b/roles/mythtv-rpm/tasks/setup-scl.yml
    new file mode 100644
    index 0000000..f86651a
    - +  
     1# roles/mythtv-rpm/tasks/setup-scl.yml
     2
     3- name: setup SCL repositories for CentOS
     4  yum:
     5    name:
     6      'centos-release-scl,centos-release-scl-rh'
     7    state:
     8      present