Files from / were not allowed to be linked against shared
libraries from /usr because there was the option to have
/usr on an other partition.
Now, systemd does not support that anymore and will
probably never do that again, so we allow linking to /usr,
but show a warning instead.
interpreter=$(file_get_interpreter ${file})
if [ ! -e "${interpreter}" ]; then
- log WARN " SKIPPED because interpreter is not available"
continue
fi
libs=$(ldd ${file})
if grep -q /usr/lib <<<${libs}; then
- log ERROR "${file} links to libs in /usr/lib..."
- log ERROR " ${libs}"
+ log WARN "${file} links to libs in /usr/lib..."
+ while read lib; do
+ log WARN " ${lib}"
+ done <<<${libs}
ret=1
fi
done