INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MediaCenter-28.0.94 no longer installs on RHEL/CentOS 8.x  (Read 2503 times)

mblakeman

  • Member
  • *
  • Posts: 3
MediaCenter-28.0.94 no longer installs on RHEL/CentOS 8.x
« on: December 26, 2021, 04:52:33 pm »

 [root@hostname ~]# dnf localinstall MediaCenter-28.0.94.x86_64.rpm
Updating Subscription Management repositories.
Last metadata expiration check: 0:43:29 ago on Mon Dec 27 08:59:57 2021.
Error:
 Problem: conflicting requests
  - nothing provides fribidi >= 1.0.5 needed by MediaCenter-28.0.94-1.x86_64
  - nothing provides gtk3 >= 3.24 needed by MediaCenter-28.0.94-1.x86_64
  - nothing provides harfbuzz >= 2.3.1 needed by MediaCenter-28.0.94-1.x86_64
  - nothing provides libuuid >= 2.33 needed by MediaCenter-28.0.94-1.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2662
Re: MediaCenter-28.0.94 no longer installs on RHEL/CentOS 8.x
« Reply #1 on: December 26, 2021, 05:15:14 pm »

I assume you are using installJRMC or my repository to install MC on CentOS 8. I recently updated installJRMC to match the dependency versions specified by the JRiver-provided deb (based on Debian Buster). So any distros with libraries older than Buster (like CentOS 8 ) will run into this issue with newer RPMs.

I've been mulling over this problem, but there isn't really a good solution at the moment without manually lowering (or removing) the version dependencies in the build script to fix compatibility with older distros. The tradeoff is unnecessary complexity (creating RPMs per distro, per version) or potentially breaking compatibility with new versions of MC. One possibility I've come up with is adding a "--universal" flag that will create an RPM without any library version restrictions whatsoever, obviously YMMV if it will work or not on your particular distro.

The reason I never implemented this is because CentOS 8 is effectively dead in the water (only 5 days of support left) and the best solution for most users is to migrate ASAP to CentOS Stream 9 or some other flavor of EL9 with newer libraries (and a longer support window).
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2662
Re: MediaCenter-28.0.94 no longer installs on RHEL/CentOS 8.x
« Reply #2 on: January 02, 2022, 01:09:12 am »

I uploaded version 1.0b5 of installJRMC that has a new "--compat" option to build/install RPMs on older distros like CentOS 8.

1. Remove the existing RPM output: rm -rf output/RPMS
2. Run installJRMC with --compat option: ./installJRMC --install rpm --compat

If you have any issues, please rerun and provide output with --debug.
Logged

mblakeman

  • Member
  • *
  • Posts: 3
Re: MediaCenter-28.0.94 no longer installs on RHEL/CentOS 8.x
« Reply #3 on: February 11, 2022, 04:59:06 pm »

It appears RHEL 8.5 doesn't provide some of the required dependencies.  I'll find and build the "dpkg-deb" and try again soon.

Code: [Select]
# ./installJRMC --install rpm --compat --debug
Autodetecting distro, this may be unreliable and --compat may also be required
Debugging on
installJRMC version: 1.0b7
Use --debug for verbose output
Debug: Running: getVersion
Debug: Running: installPackage --silent buildah
Debug: pkg_install  buildah
sudo: : command not found
Debug: Running: installPackage wget
Using MC version 28.0.103 determined by webscrape
To override, use --mcversion
Debug: Running: installPackage wget
Debug: Running: acquireDeb
Checking latest repo for DEB package
Found!
Downloaded MC 28.0.103 DEB to /root/output/SOURCES/MediaCenter-28.0.103-amd64.deb
Debug: Running: installPackage dpkg rpm-build
Debug: pkg_install  dpkg
sudo: : command not found
Error: Failed to install dpkg. Attempting to continue
Debug: Running: buildRPM
./installJRMC: line 552: dpkg-deb: command not found
./installJRMC: line 553: dpkg-deb: command not found
Building RPM for MC 28.0.103, this may take awhile
Debug: rpmbuild --define="%_topdir /root/output" --define="%_libdir /usr/lib" -bb /root/output/SPECS/mediacenter.spec
error: line 12: Empty tag: Requires:
Error: Build failed
Removing source DEB

# dnf whatprovides "*/dpkg-deb"
Updating Subscription Management repositories.
Last metadata expiration check: 3:08:43 ago on Sat Feb 12 06:43:35 2022.
bash-completion-1:2.7-5.el8.noarch : Programmable completion for Bash
Repo        : @System
Matched from:
Filename    : /usr/share/bash-completion/completions/dpkg-deb

bash-completion-1:2.7-5.el8.noarch : Programmable completion for Bash
Repo        : rhel-8-for-x86_64-baseos-rpms
Matched from:
Filename    : /usr/share/bash-completion/completions/dpkg-deb


# dnf repolist
Updating Subscription Management repositories.
repo id                                                     repo name
codeready-builder-for-rhel-8-x86_64-rpms                    Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)
rhel-8-for-x86_64-appstream-rpms                            Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms                               Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
rhel-8-for-x86_64-supplementary-rpms                        Red Hat Enterprise Linux 8 for x86_64 - Supplementary (RPMs)
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2662
Re: MediaCenter-28.0.94 no longer installs on RHEL/CentOS 8.x
« Reply #4 on: February 11, 2022, 06:19:05 pm »

It appears RHEL 8.5 doesn't provide some of the required dependencies.  I'll find and build the "dpkg-deb" and try again soon.

Code: [Select]
# ./installJRMC --install rpm --compat --debug
Autodetecting distro, this may be unreliable and --compat may also be required
Debugging on
installJRMC version: 1.0b7
Use --debug for verbose output
Debug: Running: getVersion
Debug: Running: installPackage --silent buildah
Debug: pkg_install  buildah
sudo: : command not found
Debug: Running: installPackage wget
Using MC version 28.0.103 determined by webscrape
To override, use --mcversion
Debug: Running: installPackage wget
Debug: Running: acquireDeb
Checking latest repo for DEB package
Found!
Downloaded MC 28.0.103 DEB to /root/output/SOURCES/MediaCenter-28.0.103-amd64.deb
Debug: Running: installPackage dpkg rpm-build
Debug: pkg_install  dpkg
sudo: : command not found
Error: Failed to install dpkg. Attempting to continue
Debug: Running: buildRPM
./installJRMC: line 552: dpkg-deb: command not found
./installJRMC: line 553: dpkg-deb: command not found
Building RPM for MC 28.0.103, this may take awhile
Debug: rpmbuild --define="%_topdir /root/output" --define="%_libdir /usr/lib" -bb /root/output/SPECS/mediacenter.spec
error: line 12: Empty tag: Requires:
Error: Build failed
Removing source DEB

# dnf whatprovides "*/dpkg-deb"
Updating Subscription Management repositories.
Last metadata expiration check: 3:08:43 ago on Sat Feb 12 06:43:35 2022.
bash-completion-1:2.7-5.el8.noarch : Programmable completion for Bash
Repo        : @System
Matched from:
Filename    : /usr/share/bash-completion/completions/dpkg-deb

bash-completion-1:2.7-5.el8.noarch : Programmable completion for Bash
Repo        : rhel-8-for-x86_64-baseos-rpms
Matched from:
Filename    : /usr/share/bash-completion/completions/dpkg-deb


# dnf repolist
Updating Subscription Management repositories.
repo id                                                     repo name
codeready-builder-for-rhel-8-x86_64-rpms                    Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)
rhel-8-for-x86_64-appstream-rpms                            Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms                               Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
rhel-8-for-x86_64-supplementary-rpms                        Red Hat Enterprise Linux 8 for x86_64 - Supplementary (RPMs)

This looks like a different problem related to OS detection. Could you paste the output of `cat /etc/os-release`?

I also just released 1.0b9 here that should provide some more informative output, if not fix the detection. Once CentOS is detected properly it will install the EPEL repo that contains the dpkg package.
Logged

mblakeman

  • Member
  • *
  • Posts: 3
Re: MediaCenter-28.0.94 no longer installs on RHEL/CentOS 8.x
« Reply #5 on: February 12, 2022, 03:40:59 pm »

It's not CentOS it's RHEL.  I don't use the EPEL but I do plan on installing dpkg-deb manually.

Code: [Select]
$ cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.5 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.5"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.5 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.5
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.5"
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2662
Re: MediaCenter-28.0.94 no longer installs on RHEL/CentOS 8.x
« Reply #6 on: February 12, 2022, 03:52:50 pm »

Thanks, I will add RHEL support in the next release.
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2662
Re: MediaCenter-28.0.94 no longer installs on RHEL/CentOS 8.x
« Reply #7 on: February 13, 2022, 05:15:27 pm »

I just added RHEL support and improved OS detection in installJRMC 1.0b10. Note that it will install EPEL repo and dpkg + other dependencies by default on CentOS/RHEL as this is the path of least resistance for most users. At some point in the future I will detect if the dependencies are already installed and skip adding the repo.
Logged
Pages: [1]   Go Up