RPATH to be completly removed from libraries where just $ORIGIN is used
(ie. in glibc) making them unusable, python on the other hand fails with
$ORIGIN/../something, this part of macros needs more investigation to find
100% working sollution, for now python works in much more cases
Changed files:
rpm.macros -> 1.458
rpath= ; \
chmod u+w "$file"; \
for dir in $(chrpath -l "$file" | awk '/RPATH=/ { gsub(/.*RPATH=/,""); gsub(/:/," "); print $0 }'); do \
- dir=$(readlink -m "$dir"); \
+ dir=$(%{__python} -c 'import sys, os; print os.path.normpath(sys.argv[1]);' "$dir"); \
case $dir in \
/home/* | /tmp/* | /usr/lib | /usr/lib64 | /lib | /lib64 | /usr/local/lib | /usr/local/lib64 | /usr/X11R6/lib | /usr/X11R6/lib64 ) \
echo "remove-rpath: $dir in $file"; \