All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: Jacob Stiffler <j-stiffler@ti.com>
Cc: meta-arago@arago-project.org
Subject: Re: [PATCH v2] perl-native: Fix for when shebang is too many characters.
Date: Thu, 5 Feb 2015 10:16:52 -0500	[thread overview]
Message-ID: <20150205151652.GF9943@edge> (raw)
In-Reply-To: <1423057901-5767-1-git-send-email-j-stiffler@ti.com>

On Wed, Feb 04, 2015 at 08:51:41AM -0500, Jacob Stiffler wrote:
> * Currently perl-native is installing perl scripts with the
>   absolute path to the native  perl interpreter in the shebang.
> * Due to the directory structure of Yocto, this path may exceed
>   the shebang character limit in bash.
> * This is a workaround to get the correct perl interpreter from
>   the environment.
> * This solution has been obtained from:
>   http://patchwork.openembedded.org/patch/79251/
> * This may be dropped after migrating to dizzy as this has been
>   upstreamed: http://cgit.openembedded.org/openembedded-core/commit/?id=83dec26849a120d0f1de64e63025354fa7108491

Looks good, thanks.


> Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
> ---
>  .../perl/perl-native_5.14.3.bbappend               |    9 +++++++++
>  1 file changed, 9 insertions(+)
>  create mode 100644 meta-arago-extras/recipes-devtools/perl/perl-native_5.14.3.bbappend
> 
> diff --git a/meta-arago-extras/recipes-devtools/perl/perl-native_5.14.3.bbappend b/meta-arago-extras/recipes-devtools/perl/perl-native_5.14.3.bbappend
> new file mode 100644
> index 0000000..2b16416
> --- /dev/null
> +++ b/meta-arago-extras/recipes-devtools/perl/perl-native_5.14.3.bbappend
> @@ -0,0 +1,9 @@
> +
> +PR_append = "a"
> +
> +do_install_append() {
> +	for f in `grep -Il '#! *${bindir}/perl' ${D}/${bindir}/*`; do
> +		sed -i -e 's|${bindir}/perl|/usr/bin/env nativeperl|' $f
> +	done
> +}
> +
> -- 
> 1.7.9.5
> 
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


      reply	other threads:[~2015-02-05 15:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-04 13:51 [PATCH v2] perl-native: Fix for when shebang is too many characters Jacob Stiffler
2015-02-05 15:16 ` Denys Dmytriyenko [this message]

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=20150205151652.GF9943@edge \
    --to=denys@ti.com \
    --cc=j-stiffler@ti.com \
    --cc=meta-arago@arago-project.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.