Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM incompatibility - EL8 (CentOS/RedHat) [Now with EL7] #1677

Open
TheFlagCourier opened this issue Nov 14, 2019 · 9 comments
Open

RPM incompatibility - EL8 (CentOS/RedHat) [Now with EL7] #1677

TheFlagCourier opened this issue Nov 14, 2019 · 9 comments
Labels
Help Wanted Issues that could do with external help

Comments

@TheFlagCourier
Copy link

Issue: The RPM requests an older naming scheme for Python packages that broke with the release of RedHat Enterprise Linux 8 and affects all down-stream distributions.

How to fix: Python 2 libraries should be depended upon as 'python2-lib', Python 3 libraries should be depended upon as 'python3-lib'.

As an example, yum and dnf will throw the following error.

# dnf install ./overviewer-0.14.72.rpm 
Last metadata expiration check: 1:18:04 ago on Thu 14 Nov 2019 02:05:13 PM UTC.
Error: 
 Problem: conflicting requests
  - nothing provides python36-numpy needed by Minecraft-Overviewer-0.14.72-1.el7.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

This should be fixable by changing the dependency for numpy to python3-numpy

Otherwise, documentation at download should say "EL7 Only" rather than "CentOS 7+ / other rpm"

@TheFlagCourier
Copy link
Author

Side note: Python3's development package is still python36-devel

@CounterPillow
Copy link
Member

Feel free to add builders for EL8 over at https://github.com/overviewer/Overviewer-Web/ which would be the ideal way to fix this.

@CounterPillow
Copy link
Member

Looks like our EL7 builders are also currently broken on account of shadow-utils failing to install.

Not sure what's going on and really not an EL7 person. Can someone look into this?

@CounterPillow CounterPillow added the Help Wanted Issues that could do with external help label Dec 11, 2019
@TheFlagCourier TheFlagCourier changed the title RPM incompatibility - EL8 (CentOS/RedHat) RPM incompatibility - EL8 (CentOS/RedHat) [Now with EL7] Dec 12, 2019
@CounterPillow
Copy link
Member

EL7 builders are working again, still need someone to make EL8 builders

@ChrisOrlando
Copy link

I opened a PR with an initial pass at adding a centos8 builder here: overviewer/Overviewer-Web#42

@BenKennish
Copy link

What should I be doing to get Overviewer installed on my CentOS 8 server in the meantime? Build from source using http://docs.overviewer.org/en/latest/building/#linux ? TIA

@fhuemer
Copy link

fhuemer commented Sep 19, 2020

@BenKennish If you still have this issue, I fixed it using a solution suggested for a different problem here
You can create a dummy RPM that simply installs the python38-numpy package and pretends to provide python36-numpy. Save the following config to a file named mco-python36-numpy-fix.spec

Name:         mco-python36-numpy-fix
Version:      1
Release:      1%{?dist}
Summary:      A simple fix for minecraft overviewer CentOS 8 dependency bug 

License:      Public Domain

Requires:     python38-numpy
Provides:     python36-numpy

%description
A simple fix for minecraft overviewer CentOS 8 dependency bug 

%install
#nothing to do

and run

$ rpmdev-setuptree
$ rpmbuild -ba mco-python36-numpy-fix.spec

After that you can install the generated rpm and then install the normal minecraft-overviewer rpm.
I didn't run into any problems, the way I see it the rpm for CentOS 8 should simply be changed to require python38-numpy instead of python36-numpy, which is not available.

@BenKennish
Copy link

Oh that's a neat trick, @fhuemer - thank you!

@ghost
Copy link

ghost commented Nov 16, 2020

@BenKennish If you still have this issue, I fixed it using a solution suggested for a different problem here
You can create a dummy RPM that simply installs the python38-numpy package and pretends to provide python36-numpy. Save the following config to a file named mco-python36-numpy-fix.spec

Name:         mco-python36-numpy-fix
Version:      1
Release:      1%{?dist}
Summary:      A simple fix for minecraft overviewer CentOS 8 dependency bug 

License:      Public Domain

Requires:     python38-numpy
Provides:     python36-numpy

%description
A simple fix for minecraft overviewer CentOS 8 dependency bug 

%install
#nothing to do

and run

$ rpmdev-setuptree
$ rpmbuild -ba mco-python36-numpy-fix.spec

After that you can install the generated rpm and then install the normal minecraft-overviewer rpm.
I didn't run into any problems, the way I see it the rpm for CentOS 8 should simply be changed to require python38-numpy instead of python36-numpy, which is not available.

sorry for the bump but it only generates a src.rpm file for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted Issues that could do with external help
Projects
None yet
Development

No branches or pull requests

5 participants