GCC rpath failure
What steps will reproduce the problem?
- Run mock on the GCC SRPM
What is the expected output? What do you see instead?
Expected Result is to see it run correctly and build and exit 0.
What version of the product are you using? On what operating system?
GCC .4.3, Lincom
Any additional information that we should know about?
Here is output from the terminal:
DEBUG: + /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot DEBUG: ******************************************************************************* DEBUG: * DEBUG: * WARNING: 'check-rpaths' detected a broken RPATH and will cause 'rpmbuild' DEBUG: * to fail. To ignore these errors, you can set the '$QA_RPATHS' DEBUG: * environment variable which is a bitmask allowing the values DEBUG: * below. The current value of QA_RPATHS is 0x0000. DEBUG: * DEBUG: * 0x0001 ... standard RPATHs (e.g. /usr/lib); such RPATHs are a minor DEBUG: * issue but are introducing redundant searchpaths without DEBUG: * providing a benefit. They can also cause errors in multilib DEBUG: * environments. DEBUG: * 0x0002 ... invalid RPATHs; these are RPATHs which are neither absolute DEBUG: * nor relative filenames and can therefore be a SECURITY risk DEBUG: * 0x0004 ... insecure RPATHs; these are relative RPATHs which are a DEBUG: * SECURITY risk DEBUG: * 0x0008 ... the special '$ORIGIN' RPATHs are appearing after other DEBUG: * RPATHs; this is just a minor issue but usually unwanted DEBUG: * 0x0010 ... the RPATH is empty; there is no reason for such RPATHs DEBUG: * and they cause unneeded work while loading libraries DEBUG: * 0x0020 ... an RPATH references '..' of an absolute path; this will break DEBUG: * the functionality when the path before '..' is a symlink DEBUG: * DEBUG: * DEBUG: * Examples: DEBUG: * - to ignore standard and empty RPATHs, execute 'rpmbuild' like DEBUG: * $ QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild my-package.src.rpm DEBUG: * - to check existing files, set $RPM_BUILD_ROOT and execute check-rpaths like DEBUG: * $ RPM_BUILD_ROOT=<top-dir> /usr/lib/rpm/check-rpaths DEBUG: * DEBUG: ******************************************************************************* DEBUG: ERROR 0020: file '/usr/lib64/gcj-4.4.3/libjawt.so' contains an rpath referencing '..' of an absolute path [/usr/lib/../lib64/gcj-4.4.3] DEBUG: error: Bad exit status from /var/tmp/rpm-tmp.xhVhGJ (%install) DEBUG: RPM build errors: DEBUG: Bad exit status from /var/tmp/rpm-tmp.xhVhGJ (%install) DEBUG: Child returncode was: 1
A workaround is this:
QA_RPATHS=$[ 0x0020 ]
Set that environment variable before anything else.
