This change checks for yum, and installs dependencies needed for the project, in the same manner as is done for apt and pacman. It also prints "Unknown Linux distribution" if none of apt, pacman, or yum are not found.
Why the change?
To easily add dependencies that might not be installed in a standard environment, in order to build the project.
How can this be tested?
Was tested on new VMs of CentOS 7.9 and CentOS (8) Stream with only desktop environments and basic development tools (gcc, git, etc) installed (sudo yum update; sudo yum groupinstall "Development Tools"). Clone repo in VM and run sudo ./deps.sh; make; sudo make install
You can also grab the attached Dockerfile (much quicker than setting up a VM) and run:
docker build - < Dockerfile_tldr_yum.txt
What does it do?
This change checks for yum, and installs dependencies needed for the project, in the same manner as is done for apt and pacman. It also prints "Unknown Linux distribution" if none of apt, pacman, or yum are not found.
Why the change?
To easily add dependencies that might not be installed in a standard environment, in order to build the project.
How can this be tested?
Was tested on new VMs of CentOS 7.9 and CentOS (8) Stream with only desktop environments and basic development tools (gcc, git, etc) installed (
sudo yum update; sudo yum groupinstall "Development Tools"
). Clone repo in VM and runsudo ./deps.sh; make; sudo make install
You can also grab the attached Dockerfile (much quicker than setting up a VM) and run: docker build - < Dockerfile_tldr_yum.txt
Dockerfile_tldr_yum.txt
Can also be tested in any environment with yum, such as a RHEL or CentOS host OS.
Where to start code review?
Look in deps.sh.
Relevant tickets?