From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UIyVm-0004Ju-7E for ptxdist@pengutronix.de; Fri, 22 Mar 2013 10:43:46 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1UIyVk-0007Ug-4t for ptxdist@pengutronix.de; Fri, 22 Mar 2013 10:43:44 +0100 Date: Fri, 22 Mar 2013 10:43:44 +0100 From: Michael Olbrich Message-ID: <20130322094344.GA28648@pengutronix.de> References: <20130321172500.GE22306@pengutronix.de> <1363890849-8217-1-git-send-email-bernhard@bwalle.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1363890849-8217-1-git-send-email-bernhard@bwalle.de> Subject: Re: [ptxdist] [PATCH] ptxd_install_shared: Fix missing links when ${src} is a symlink itself Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Thu, Mar 21, 2013 at 07:34:09PM +0100, Bernhard Walle wrote: > When "${src}" is a symlink to some other directory, then not all > symbolic links to the library are installed. > > In my case I'm using a ct-ng-based toolchain where > ${TOOLCHAIN_BASE}/arm-unknown-linux-gnueabi/lib/ is a symbolic link to > sysroot/lib/. As a result, install_copy_toolchain_lib with libstdc++.so > doesn't install the libstdc++.so.6 symbolic link and so C++ programs > don't start. Thanks, applied. Michael > Signed-off-by: Bernhard Walle > --- > scripts/lib/ptxd_make_xpkg_pkg.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh > index 476ad58..17d3ff4 100644 > --- a/scripts/lib/ptxd_make_xpkg_pkg.sh > +++ b/scripts/lib/ptxd_make_xpkg_pkg.sh > @@ -694,7 +694,7 @@ ptxd_install_shared() { > > ptxd_install_file "${src}" "${dst}/${filename}" "${usr}" "${grp}" "${mod}" && > > - find "$(dirname "${src}")" -maxdepth 1 -type l | while read file; do > + find -H "$(dirname "${src}")" -maxdepth 1 -type l | while read file; do > if [ "$(basename "$(readlink -f "${file}")")" = "${filename}" ]; then > local link="${dst}/$(basename "${file}")" > ptxd_install_ln "${filename}" "${link}" "${usr}" "${grp}" || return > -- > 1.8.2 > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de