Portage throws a warning about insecure rpaths on PyQt4-4.4.4-r5 located on qting-edge overlay. I keep trying to fix it but i am not quite sure where and what to search for. So i wanted some help about this and solve it before pushing it to portage tree Thanks Reproducible: Always Steps to Reproduce: 1.emerge =dev-python/PyQt4-4.4.4-r5 2. 3. Actual Results: The actuall warning is below: * QA Notice: The following files contain insecure RUNPATH's * Please file a bug about this at http://bugs.gentoo.org/ * with the maintaining herd of the package. * /var/tmp/portage/dev-python/PyQt4-4.4.4-r5/work/PyQt-x11-gpl-4.4.4/qpy/QtDesigner:/usr/lib64/qt4 usr/lib64/python2.6/site-packages/PyQt4/QtDesigner.so Auto fixing rpaths for /var/tmp/portage/dev-python/PyQt4-4.4.4-r5/work/PyQt-x11-gpl-4.4.4/qpy/QtDesigner:/usr/lib64/qt4 usr/lib64/python2.6/site-packages/PyQt4/QtDesigner.so Expected Results: no warnings
Doesn't this also happen on 4.4.4-r4 (in Portage)?
Possibly yes. But if this QA failure is easy to fix why not fixing it. The new ebuild has major changes and might be a future stable candidate. So I'd prefer it to be in a sane QA state :)
Of course, QA is important and I agree that this bug must be fixed. I just wanted to know if the QA issue has been introduced by my changes to -r5 in overlay, or if it was already there.
Just checked. QA issue exists on 4.4.4-r4 as well so it is not a regression :)
Switched to security since it's a rpath issue for a portage package (leaving to them rather than QA).
The insecure runpath is added by QtDesigner/Makefile. The -rpath directive points to qpy/QtDesigner, where there's only a static archive that is linked in at build-time, and -L already specifies its location, so the additional rpath seems totally useless. Flameeyes confirmed my thought. I'm still investigating the root cause: since that makefile is generated by sipconfig, it may be a sip bug.
Disregard the part about -L in my previous comment, rpath is only used by the _runtime_ linker.
This should be fixed now.
+*PyQt4-4.4.4-r5 (01 Jun 2009) + + 01 Jun 2009; Markos Chandras <hwoarang@gentoo.org> +PyQt4-4.4.4-r5.ebuild, + files/configure.py.patch, metadata.xml: + Fixed automagic dependency issue. ( bug 236341 ). Fixed rpath issues ( bug + 235819 , bug 271870 ). Thanks to Davide Pesavento <davidepesa@gmail.com> + for + the ebuilds and the rpath patch. + On tree Thank you all