Created attachment 954428 [details] Change python2_sitelib to python2_sitearch to work on x86_64 Description of problem: When rebuilding python-qt5-5.3.2-1.fc21.src.rpm on CentOS 7, it fails due to a bug in the specfile which seems to violate the Fedora python packaging guidelines (http://fedoraproject.org/wiki/Packaging:Python). The compilation failure is: [...] RPM build errors: File not found: /root/rpmbuild/BUILDROOT/python-qt5-5.3.2-1.el7.centos.x86_64/usr/lib/python2.7/site-packages/dbus/mainloop/pyqt5.so The specfile in the %files section has: %{python2_sitelib}/dbus/mainloop/pyqt5.so On x86_64 architectures, this is documented to be /usr/lib/python2.X/site-packages. However, the build puts it in: [root@nathanr-centos7 SPECS]# find ../BUILDROOT/python-qt5-5.3.2-1.el7.centos.x86_64 -name '*.so' [...] ../BUILDROOT/python-qt5-5.3.2-1.el7.centos.x86_64/usr/lib64/python2.7/site-packages/dbus/mainloop/pyqt5.so [...] The reference should be to %{python2_sitearch} not %{python2_sitelib}, which is /usr/lib/python2.X on x86, and /usr/lib64/python2.X on x86_64. Version-Release number of selected component (if applicable): python-qt5-5.3.2-1.fc21 Attached is a patch to fix the issue.
That patch will likely break fedora builds. I think it depends on how python and python-dbus is setup
I'll have to take a closer look too, may end up including here some hackery similar to what's currently done in PyQt4: http://pkgs.fedoraproject.org/cgit/PyQt4.git/tree/PyQt4.spec#n239
Created attachment 954449 [details] centos7 dbus-python patch that accounts for the difference I'll consider adopting this into fedora's dbus-python packaging too, then PyQt4 and python-qt5 will install in the same place
moving over to dbus-python
fixed builds in rawhide, I'll issue f21 updates shortly.
python-qt5-5.3.2-4.fc21,dbus-python-1.2.0-7.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/python-qt5-5.3.2-4.fc21,dbus-python-1.2.0-7.fc21
Those packages (both updated python-qt5 and dbus-python) build on CentOS 7.x as well. Thanks.
Package python-qt5-5.3.2-4.fc21, dbus-python-1.2.0-7.fc21, PyQt4-4.11.2-2.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing python-qt5-5.3.2-4.fc21 dbus-python-1.2.0-7.fc21 PyQt4-4.11.2-2.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-14431/PyQt4-4.11.2-2.fc21,python-qt5-5.3.2-4.fc21,dbus-python-1.2.0-7.fc21 then log in and leave karma (feedback).
python-qt5-5.3.2-4.fc21, dbus-python-1.2.0-7.fc21, PyQt4-4.11.2-2.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.