From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] ptxd_install_shared: Fix missing links when ${src} is a symlink itself
Date: Thu, 21 Mar 2013 16:47:01 +0100 [thread overview]
Message-ID: <20130321154701.GA6144@pengutronix.de> (raw)
In-Reply-To: <1363878534-3157-1-git-send-email-bernhard@bwalle.de>
On Thu, Mar 21, 2013 at 04:08:54PM +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.
>
> Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
> ---
> First version missed the '&&'.
>
> scripts/lib/ptxd_make_xpkg_pkg.sh | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh
> index 476ad58..b32461e 100644
> --- a/scripts/lib/ptxd_make_xpkg_pkg.sh
> +++ b/scripts/lib/ptxd_make_xpkg_pkg.sh
> @@ -694,6 +694,7 @@ ptxd_install_shared() {
>
> ptxd_install_file "${src}" "${dst}/${filename}" "${usr}" "${grp}" "${mod}" &&
>
> + src="$(readlink -f "${src}")" &&
> find "$(dirname "${src}")" -maxdepth 1 -type l | while read file; do
I think this would be nicer and should work too, right:
find -H "$(dirname "${src}")" -maxdepth 1 -type l | while read file; do
mol
> if [ "$(basename "$(readlink -f "${file}")")" = "${filename}" ]; then
> local link="${dst}/$(basename "${file}")"
> --
> 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
next prev parent reply other threads:[~2013-03-21 15:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-21 14:58 Bernhard Walle
2013-03-21 15:08 ` Bernhard Walle
2013-03-21 15:47 ` Michael Olbrich [this message]
2013-03-21 16:21 ` Bernhard Walle
2013-03-21 17:25 ` Michael Olbrich
2013-03-21 18:34 ` Bernhard Walle
2013-03-22 9:43 ` Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130321154701.GA6144@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox