SOURCES: rpm.macros - normalize rpath before processing. this fixes: /us...

Jakub Bogusz qboosh at pld-linux.org
Tue May 27 22:36:40 CEST 2008


On Tue, May 20, 2008 at 03:04:12PM +0200, pluto wrote:
> Author: pluto                        Date: Tue May 20 13:04:12 2008 GMT
> Module: SOURCES                       Tag: HEAD
> ---- Log message:
> - normalize rpath before processing.
>   this fixes:
> /usr/bin/gij: RPATH=/usr/lib64/../lib64:/usr/lib64/gcj-4.2.4
> /usr/bin/jv-convert: RPATH=/usr/lib64/../lib64
>   into:
> $ chrpath -l /usr/bin/gij
> /usr/bin/gij: RPATH=/usr/lib64/gcj-4.3.0-9
> $ chrpath -l /usr/bin/jv-convert
> /usr/bin/jv-convert: no rpath or runpath tag found.

That's desirable, but

> @@ -449,6 +449,7 @@
>  			chmod u+w "$file"; \
>  			for dir in `chrpath -l "$file" | \
>  					awk '/RPATH=/ { gsub(/.*RPATH=/,""); gsub(/:/," "); print $0 }'` ; do \
> +					dir=`%{__python} -c 'import sys, os; print os.path.normpath(sys.argv[1]);' $dir`

this way adds python dependency in rpm-build, which we don't want.
Path should be normalized using more common tools.


-- 
Jakub Bogusz    http://qboosh.pl/


More information about the pld-devel-en mailing list