Save full paths for needed objects on Darwin, and store prefixed path as well
authorFabian Groffen <grobian@gentoo.org>
Fri, 1 Feb 2008 21:42:05 +0000 (21:42 -0000)
committerFabian Groffen <grobian@gentoo.org>
Fri, 1 Feb 2008 21:42:05 +0000 (21:42 -0000)
svn path=/main/branches/prefix/; revision=9270

bin/misc-functions.sh

index c775722d0130486c6905b20fb01fc7120f6a3e30..2f4f6e4269f98125092fa8cc4314e9e9e7b58348 100644 (file)
@@ -364,12 +364,10 @@ install_qa_check() {
                                        touch "${T}"/.install_name_check_failed
                                fi
                        fi
-                       # scanelf only knows the libname, so we'll do the same even
-                       # though we have the full path :(
-                       needed="${needed}${needed:+,}${r##*/}"
+                       needed=${needed}${needed:+,}${r}
                done
                [[ -n ${needed} ]] && \
-                       echo "/${f#${ED}} ${needed}" > "${PORTAGE_BUILDDIR}"/build-info/NEEDED
+                       echo "/${f#${D}} ${needed}" >> "${PORTAGE_BUILDDIR}"/build-info/NEEDED
        done
        if [[ -f ${T}/.install_name_check_failed ]] ; then
                # secret switch "allow_broken_install_names" to get