]>
git.ipfire.org Git - ipfire-3.x.git/blob - pkgs/build-essentials/quality-agent/quality-agent.d/050-rpaths
3 . $
(dirname ${0})/qa-include
5 DESC
="Searching for RPATHs. We don't want paths that point to the tree where \
6 the package was built (older, broken libtools would do this). \
7 Also check for null paths because the loader will search \$PWD when it \
15 for file in $
(find_elf_files
--prefix=${BUILDROOT} ${BINARY_PATHS}); do
16 if filtered
${file}; then
20 rpath
=$
(file_get_rpath
${file})
21 if [ -n "${rpath}" ]; then
22 if [ "${QUALITY_AGENT_RPATH_ALLOW_ORIGIN}" = "yes" ]; then
23 [ "${rpath}" = '$ORIGIN' ] && continue
25 if listmatch
${rpath} ${QUALITY_AGENT_WHITELIST_RPATH}; then
28 log_error
" File has unallowed rpath: ${file} - ${rpath}"