[OE-core] [PATCH] autogen: fix autoopts script generation to handle shebang

Belal, Awais Awais_Belal at mentor.com
Mon May 15 09:01:22 UTC 2017


> Isn't this backwards? And why is PERL set twice in a row?

Really did not get the first question. Regarding PERL being set twice, I am just trying to manipulate it to the actual host binary, is there a better way? 'which perl' or 'env perl' will only point to the symlink under HOSTTOOLS.

BR,
Awais

________________________________________
From: openembedded-core-bounces at lists.openembedded.org <openembedded-core-bounces at lists.openembedded.org> on behalf of Alexander Kanavin <alexander.kanavin at linux.intel.com>
Sent: Friday, May 12, 2017 7:06 PM
To: openembedded-core at lists.openembedded.org
Subject: Re: [OE-core] [PATCH] autogen: fix autoopts script generation to handle shebang

On 05/12/2017 04:59 PM, Awais Belal wrote:
> +-        *perl ) echo '#!/usr/bin/env perl'
> ++        *perl )  PERL=`which perl`
> ++                 PERL=`readlink -f ${PERL}`
> ++                 echo '#!' ${PERL}

Isn't this backwards? And why is PERL set twice in a row?


Alex

--
_______________________________________________
Openembedded-core mailing list
Openembedded-core at lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list