All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: "Zawadzki,
	Krzysztof (Nokia - PL/Wroclaw)" <krzysztof.zawadzki@nokia.com>
Cc: "poky@yoctoproject.org" <poky@yoctoproject.org>
Subject: Re: [PATCH V2] meta: toolchain-shar-relocate.sh: Fix for extracting SDK in
Date: Tue, 8 Mar 2016 18:50:28 +0100	[thread overview]
Message-ID: <20160308175027.GD2551@jama> (raw)
In-Reply-To: <4655585E9D8F3143B62277AB38CCEC0C2FFEB0AB@DEMUMBX003.nsn-intra.net>

[-- Attachment #1: Type: text/plain, Size: 1580 bytes --]

On Tue, Mar 08, 2016 at 04:23:23PM +0000, Zawadzki, Krzysztof (Nokia - PL/Wroclaw) wrote:
> If SDK will be extracted in the same folder as sdk shar script.
>  The shar_relocate will substitute SDK.sh script SDKPATH  with extract destination path.
>  After that operation no one will be able use this sdk script as paths in it will be different.
>  To fix this we need to filter out sdk script and relocate_sdk scripts from  SDKPATH substitution

The subject line seems to be missing something.

> Signed-off-by: Krzysztof Zawadzki <krzysztof.zawadzki@nokia.com>
> 
> 
> diff --git a/meta/files/toolchain-shar-relocate.sh b/meta/files/toolchain-shar-relocate.sh
> index 4f34fb4..d4bcf0e 100644
> --- a/meta/files/toolchain-shar-relocate.sh
> +++ b/meta/files/toolchain-shar-relocate.sh
> @@ -47,7 +47,7 @@ for replace in "$target_sdk_dir -maxdepth 1" "$native_sysroot"; do
>  	$SUDO_EXEC find $replace -type f
>  done | xargs -n100 file | grep ":.*\(ASCII\|script\|source\).*text" | \
>      awk -F':' '{printf "\"%s\"\n", $1}' | \
> -    grep -v "$target_sdk_dir/environment-setup-*" | \
> +    grep -Ev "$target_sdk_dir/(environment-setup-*|relocate_sdk*|${0##*/})" | \
>      xargs -n100 $SUDO_EXEC sed -i \
>          -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" \
>          -e "s:^#! */usr/bin/perl.*:#! /usr/bin/env perl:g" \
> 
> 
> -- 
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

  reply	other threads:[~2016-03-08 17:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-08 16:23 [PATCH V2] meta: toolchain-shar-relocate.sh: Fix for extracting SDK in Zawadzki, Krzysztof (Nokia - PL/Wroclaw)
2016-03-08 17:50 ` Martin Jansa [this message]
2016-03-08 19:56   ` Zawadzki, Krzysztof (Nokia - PL/Wroclaw)

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=20160308175027.GD2551@jama \
    --to=martin.jansa@gmail.com \
    --cc=krzysztof.zawadzki@nokia.com \
    --cc=poky@yoctoproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.