]> git.pld-linux.org Git - packages/rpm.git/commitdiff
Don't use new rpath if it's longer than old one. auto/th/rpm-build-macros-1_464-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 27 Jun 2008 09:41:09 +0000 (09:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.464

rpm.macros

index 470d88f6c907365f1fa695894325491c67054ed2..c9a58640ecadc08c76b1c283b212ff638e3e5b26 100644 (file)
@@ -462,7 +462,8 @@ if [ -d "$RPM_BUILD_ROOT" ]; then \
                                                continue ; \
                                                ;; \
                                        esac ; \
-                                       dir=$(readlink -m "$dir"); \
+                                       newdir=$(readlink -m "$dir"); \
+                                       [ ${#newdir} -le ${#dir} ] && dir=$newdir; \
                                        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.039447 seconds and 4 git commands to generate.