All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <tom_rini@mentor.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH 2/5] perl-native: Switch to userelocatableinc and not shared libperl
Date: Mon, 31 Jan 2011 07:30:53 -0700	[thread overview]
Message-ID: <4D46C79D.7040501@mentor.com> (raw)
In-Reply-To: <lyy661s67b.fsf@ensc-virt.intern.sigma-chemnitz.de>

On 01/31/2011 03:44 AM, Enrico Scholz wrote:
> Tom Rini<tom_rini@mentor.com>  writes:
>
>> -	for PERLSCRIPT in `grep -rIl ${bindir}/perl ${D}${bindir}`; do
>> -		sed -i -e 's|^#!${bindir}/perl|#!/usr/bin/env perl|' $PERLSCRIPT
>> +	for PERLSCRIPT in `grep -rIEl '#!.*/perl' ${D}${bindir}`; do
>> +		sed -i -e '1s|^#!.*|#!/usr/bin/env perl|' $PERLSCRIPT
>
> This will break shebang lines with interpreter options (e.g.
> '#! /usr/bin/perl -T'):
>
> | $ echo '#! /usr/bin/env perl -T'>  /tmp/x.pl
> | $ chmod +x /tmp/x.pl
> | $ /tmp/x.pl
> | /usr/bin/env: perl -T: No such file or directory

Which is why we change it to just /usr/bin/env perl.  Given how we use 
these programs, it's not a problem to drop -w/W/t/T IMHO.

-- 
Tom Rini
Mentor Graphics Corporation



  reply	other threads:[~2011-01-31 14:32 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-28 18:52 [PATCH 0/5] Relocatable perl-native and use it always Tom Rini
2011-01-28 18:52 ` [PATCH 1/5] perl: Drop 5.8.8, bump PR in all perl recipes Tom Rini
2011-01-28 21:03   ` Frans Meulenbroeks
2011-01-28 18:52 ` [PATCH 2/5] perl-native: Switch to userelocatableinc and not shared libperl Tom Rini
2011-01-31 10:44   ` Enrico Scholz
2011-01-31 14:30     ` Tom Rini [this message]
2011-01-28 18:52 ` [PATCH 3/5] automake: Add perl-native as a dep rather than perl-runtime-native Tom Rini
2011-01-28 21:06   ` Frans Meulenbroeks
2011-01-28 18:52 ` [PATCH 4/5] autoconf: Add perl-native as a dep Tom Rini
2011-01-28 21:06   ` Frans Meulenbroeks
2011-01-28 18:52 ` [PATCH 5/5] bitbake.conf: Drop unused perl-native-runtime ASSUME_PROVIDED Tom Rini
2011-01-28 21:07   ` Frans Meulenbroeks
2011-01-28 20:14 ` [PATCH 0/5] Relocatable perl-native and use it always Koen Kooi
2011-01-28 21:32 ` Tom Rini
2011-01-29  8:16 ` Roman I Khimov
2011-01-29 14:52   ` Tom Rini
2011-01-29 11:29 ` Martin Jansa
2011-01-29 11:59   ` Frans Meulenbroeks
2011-01-29 14:52     ` Tom Rini
2011-01-29 14:51   ` Tom Rini
2011-01-29 15:52     ` Tom Rini
2011-01-29 16:45       ` Koen Kooi

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=4D46C79D.7040501@mentor.com \
    --to=tom_rini@mentor.com \
    --cc=openembedded-devel@lists.openembedded.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.