linux-test-project / lcov

LCOV
GNU General Public License v2.0
866 stars 234 forks source link

RPM 2.1-1 does not install on Rocky Linux 8 or Centos7 #301

Open Luke-LoPresti opened 3 weeks ago

Luke-LoPresti commented 3 weeks ago

When attempting to install the lcov rpm using yum/dnf, it fails with the following error.

yum install lcov-2.1-1.noarch.rpm

... ... Running transaction check Transaction check succeeded. Running transaction test The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'yum clean packages'. Error: Transaction test error: package lcov-2.1-1.noarch is intended for a different operating system

Tested on Rocky Linux 8 and Centos7. The previous rpm lcov-2.0-1.noarch.rpm installs with no errors.

henry2cox commented 2 weeks ago

You may be able to get this to work, by using the --ignoreos RPM flag. man yum indicates that there is no similar flag - and it is not clear whether you can pass additional RPM flags to yum, nor how to do it, if it is possible.

I confess to not knowing how this is encoded in the RPM - and did not even realize that this was an issue - but it does appear that there are some flags one can use while generating the RPM to make it more generic. I'll experiment.