]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- normalize rpath before processing. auto/th/rpm-build-macros-1_451-1 auto/ti/rpm-build-macros-1_451-1
authorPaweł Sikora <pluto@pld-linux.org>
Tue, 20 May 2008 13:04:06 +0000 (13:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  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.

Changed files:
    rpm.macros -> 1.451

rpm.macros

index ce025efadc515e1fd50c0407d8b93dbe8f484b38..5afd11c17b11aad4daf2e06357cd6b3651be8126 100644 (file)
@@ -449,6 +449,7 @@ if [ -d "$RPM_BUILD_ROOT" ]; then \
                        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`
                                        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"; \
This page took 0.046143 seconds and 4 git commands to generate.