From: Robert Yang <liezhi.yang@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: The native perl's path is not in PATH
Date: Sat, 30 Jun 2012 16:58:26 +0800 [thread overview]
Message-ID: <4FEEBFB2.8080804@windriver.com> (raw)
In-Reply-To: <1340969529.23146.143.camel@ted>
On 06/29/2012 07:32 PM, Richard Purdie wrote:
> On Fri, 2012-06-29 at 17:36 +0800, Robert Yang wrote:
>> The native perl is installed to:
>>
>> ${STAGING_BINDIR_NATIVE}/perl-native/perl
>>
>> But this isn't in the PATH, so we can use the native perl
>> by the command "perl" or "#!/usr/bin/env perl".
>>
>> I wonder why we install the perl to ${STAGING_BINDIR_NATIVE}/perl-native,
>> but not to ${STAGING_BINDIR_NATIVE}.
>>
>> It would be good if we can add ${STAGING_BINDIR_NATIVE}/perl-native to the path
>> or install the native perl to ${STAGING_BINDIR_NATIVE}, I will send a patch
>> for it if you are ok with it.
>
> No, this is very deliberately not in PATH by default. Please see the
> mailing list archives and the original patches that implemented this to
> understand why.
>
> Such a patch will not be accepted.
>
> What problem are you trying to fix?
>
Thanks, the problem is that when "#!/very/long/path/to/perl" in a perl
script, there would be an error "Bad interpreter: No such file or directory",
when the length of "#!/very/long/path/" is longer than 170 (or smaller), the
script which has this problem is the dpkg-scanpackages (and other dpkg-*
scripts, but they don't run when generate the rootfs of deb backend)) we can
use "#!/usr/bin/env perl" to fix this problem if the native perl is in the
PATH, and we can't use the host's perl since the host perl's @INC doesn't
contain the native perl's module which is needed by dpkg-scanpackages.
I think that I can use "/path/to/native-perl/perl dpkg-scanpackages"
to fix this problem since we can't add the native perl to the PATH.
// Robert
> Cheers,
>
> Richard
>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
prev parent reply other threads:[~2012-06-30 9:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-29 9:36 The native perl's path is not in PATH Robert Yang
2012-06-29 9:39 ` Robert Yang
2012-06-29 11:32 ` Richard Purdie
2012-06-30 8:58 ` Robert Yang [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=4FEEBFB2.8080804@windriver.com \
--to=liezhi.yang@windriver.com \
--cc=openembedded-core@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox