From dd17f94d9aedf0418ee6ce27900ac8e299328b18 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 18 Jul 2024 17:21:56 +0300 Subject: [PATCH] Simplify packages list in build instructions generator. --- build.html | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/build.html b/build.html index b5ca362..5776d8a 100644 --- a/build.html +++ b/build.html @@ -534,29 +534,26 @@ function onOptionsChanged() { break; case 'CentOS 7': commands.push(sudo + 'yum update -y'); - var packages = 'gcc-c++ make git zlib-devel openssl-devel'; commands.push(sudo + 'yum install -y centos-release-scl-rh epel-release'); commands.push(sudo + 'yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++'); cmake = 'cmake3'; - packages += ' gperf ' + cmake; + var packages = 'gcc-c++ make git zlib-devel openssl-devel gperf ' + cmake; commands.push(sudo + 'yum install -y ' + packages); break; case 'CentOS 8': case 'CentOS Stream 9': commands.push(sudo + 'dnf update -y'); - var packages = 'gcc-c++ make git zlib-devel openssl-devel'; if (linux_distro === 'CentOS 8') { commands.push(sudo + 'dnf --enablerepo=powertools install gperf'); } else { commands.push(sudo + 'dnf --enablerepo=crb install gperf'); } - packages += ' ' + cmake; + var packages = 'gcc-c++ make git zlib-devel openssl-devel cmake'; commands.push(sudo + 'dnf install -y ' + packages); break; case 'Fedora 21+': commands.push(sudo + 'dnf update -y'); - var packages = 'gperf gcc-c++ make git zlib-devel openssl-devel'; - packages += ' ' + cmake; + var packages = 'gperf gcc-c++ make git zlib-devel openssl-devel cmake'; commands.push(sudo + 'dnf install -y ' + packages); break; case 'Debian 8/9':