cardano-community / guild-operators

Artifacts and scripts created by Guild operators
https://cardano-community.github.io/guild-operators
MIT License
354 stars 177 forks source link

Current alpha branch breaks prereqs.sh for Enterprise Linux 9 #1447

Closed TrevorBenson closed 1 year ago

TrevorBenson commented 2 years ago

Describe the bug Enterprise Linux 9 packaging does not match the Enterprise Linux 8. The current master branch would bypass the issue when trying to install ncurses-compat-libs, as it does not exist in el9 distros. However the alpha branch added a link between 8 and 9.

elif [[ "${VERSION_ID}" =~ "8" ]] || [[ "${VERSION_ID}" =~ "9" ]]; then
  #RHEL/CentOS/RockyLinux8
  pkg_opts="${pkg_opts} --allowerasing"
  pkg_list="${pkg_list} libusbx ncurses-compat-libs pkgconf-pkg-config"

To Reproduce Steps to reproduce the behavior:

  1. Clone guild-operators repository alpha branch onto a RHEL9
  2. Enable the RHEL Code Ready Builder repository
  3. Install EPEL for EL9
  4. Execute `prereqs.sh
  5. See error

Expected behavior Success to install packages and compile

Screenshots

$ ./prereqs.sh 
A new version of prereqs script is available, do you want to download the latest version? (yes/no): no
Using yum to prepare packages for "Red Hat Enterprise Linux" system
  Updating system packages...
  Installing missing prerequisite packages, if any..
Error: Unable to find a match: ncurses-compat-libs
An error occurred while installing the prerequisite packages, please investigate by using the command below:
sudo yum -y --allowerasing install python3 coreutils libffi-devel gmp-devel openssl-devel ncurses-devel ncurses-libs systemd systemd-devel libsodium-devel zlib-devel make gcc-c++ tmux git jq gnupg2 libtool autoconf iproute bc traceroute dialog sqlite util-linux xz wget unzip procps-ng libusbx ncurses-compat-libs pkgconf-pkg-config
It would be best if you could submit an issue at https://github.com/cardano-community/guild-operators with the details to tackle in future, as some errors may be due to external/already present dependencies
ERROR: 

Version:

Additional context

I'll spend some time this weekend investigating the base RHEL 9 (vs. the Universal Base Image 9 I was working on today) and create a branch to handle the differences between el8 and el9 packaging.

rdlrt commented 2 years ago

Might need a temporary diversion on master instead of being able to copy as-is, as alpha is on node-1.35 now, while mainnet upgrade is not yet mandatory