Fedora 27: Building SRPM From Fedora 24 for Compatibility

asked 2018-01-12 13:45:57 -0500

updated 2018-11-04 03:38:50 -0500

hhlp gravatar image

I just switched to Fedora 27 and am interested in installing two versions of Qt5...I run the KDE spin, and the existing version is good to go (this is version 5.9.2-1, and does not need anything). However, I need to also build and install an older version from Fedora 24 to run in parallel to the current version...I need Qt5 version 5.6.2 (this is available in srpm format for Fedora 24 in srpm format).

When I install the srpm as my non-root user it works fine. When I do the builddep against the 5.6.2 version, it instead adds the 5.9.2 support...when I go to do the rpmbuild it fails. I suspect it is because builddep used 5.9.2 versions...but I don't really know for sure.

Is there a different procedure for building a specific previous version of a package for the builddep stage? The "rpmbuild -bp" looks like it works, the "rpmbuild -ba" fails with a rather non-useful message:

error: Bad exit status from /var/tmp/rpm-tmp.WuO4BN (%build)

...basically it says "it broke", and not much more even when looking at earlier build messages.

edit retag flag offensive close merge delete


I am posting this as a comment rather than an answer as I don't think it is what you are after. But this is what I do (as a user):

rpmbuild --rebuild old.srpm
toddandmargo gravatar imagetoddandmargo ( 2018-01-12 14:59:55 -0500 )edit

This doesn't really answer your question directly, either, but here's a link to the package you want on Koji: https://kojipkgs.fedoraproject.org//p... . Lots of people don't know they can still acquire many an old package from there, but you can, and it can be a lifesaver.

bitwiseoperator gravatar imagebitwiseoperator ( 2018-01-12 20:33:55 -0500 )edit