]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- keep ORIGIN, we need it because some absolute paths are too long to be in rpath... auto/th/rpm-build-macros-1_463-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 25 Jun 2008 19:12:34 +0000 (19:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.463

rpm.macros

index 6b357744804288876ef66521aea18767c542aa56..470d88f6c907365f1fa695894325491c67054ed2 100644 (file)
@@ -455,12 +455,13 @@ if [ -d "$RPM_BUILD_ROOT" ]; then \
                        rpath= ; \
                        chmod u+w "$file"; \
                        for dir in $(chrpath -l "$file" | awk '/RPATH=/ { gsub(/.*RPATH=/,""); gsub(/:/," "); print $0 }'); do \
-                                       # translate $ORIGIN to real path, so that normalize path \
-                                       # would work with readlink and secondly we don't need to \
-                                       # relocate the binaries in rpm based distro \
-                                       local f=${file#$RPM_BUILD_ROOT}; \
-                                       local origin=${f%/*}; \
-                                       dir=$(echo $dir | sed -e "s,\$ORIGIN,$origin,g"); \
+                                       case $dir in \
+                                       '$ORIGIN' ) \
+                                               if [ "$rpath" = "" ] ; then rpath="$dir" ; \
+                                               else rpath="$rpath:$dir" ; fi ; \
+                                               continue ; \
+                                               ;; \
+                                       esac ; \
                                        dir=$(readlink -m "$dir"); \
                                        case $dir in \
                                        /home/* | /tmp/* | /usr/lib | /usr/lib64 | /lib | /lib64 | /usr/local/lib | /usr/local/lib64 | /usr/X11R6/lib | /usr/X11R6/lib64 ) \
This page took 0.046196 seconds and 4 git commands to generate.