Building EPEL6 packages that use Qt 4

I’ve been trying to build an EPEL 6 package (for Red Hat Enterprise Linux 6, Centos 6, etc.) of Meshlab, for which I already have a Fedora package.  The latest challenge is that the Koji build server is trying to use qt-devel-3.x, while Meshlab needs qt-devel-4.x.

The obvious thing to do was to change the spec from:

BuildRequires: qt-devel

to

BuildRequires: qt-devel >= 4.6

However, Koji still tries to use qt-devel-3.x!

A Google search revealed an explanation in the rpmfusion-developers list from Kevin Fenzi:

That doesn’t work because it’s missing the Epoch. “>= 1:4″ would work, but it’s better to use the virtual qt4-devel Provides, which is backwards-compatible with EPEL 5 (which had an actual qt4-devel package), which will keep working in the future when Qt 5 will be the default and which avoids the pesky Epoch.

Now on to the next problem!

This entry was posted in Fedora. Bookmark the permalink.

Leave a Reply