I’m trying to build rpms for the python-cx-freeze package and get an errors like the following on 11.1 and above:
/usr/lib/rpm/brp-rpath
ERROR: RPATH “${ORIGIN}” on /var/tmp/python-cx-freeze4-4.1.2-build/usr/lib/python2.6/site-packages/cx_Freeze/bases/Console is not allowed
Is there any way to disable this check?
BTW what is the rationale for it?
Yes, I’ve read that and no, there is no --disable-rpath option. I explicitly want RPATH feature, i.e. I do not want distro managers to mess with the libraries my application is qualified to work with. At the same time I welcome all the general system updates that improve functionality or security of other common applications.
So I’ll reformulate the question a little - is it possible to disable the rpath check for a package that is not a part of the official distribution?
if build local, just replace /usr/lib/rpm/brp-rpath to /bin/true ))
on build service try enable “rootforbuild” and replace /usr/lib/rpm/brp-rpath , or create package that do it (and this package to buildrequres in spec)
I’ve got the same error when I put it in a wrong place. Try to insert it as a last command in the %install section. Kudos to the beautiful rpm.spec files syntax/design rotfl!