[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    Re: [OE-core] [PATCH] perl: fix startperl configuration option for perl-native
From:       "Peter Kjellerstedt" <peter.kjellerstedt () axis ! com>
Date:       2021-04-30 20:42:39
Message-ID: 28e9a1a4251849bcafde43dc01684bd5 () XBOX03 ! axis ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

Well, it did break our builds. I now get the following error when building a native \
recipe that inherits perlnative and tries to run pod2man:

> /bin/sh: /home/pkj/…/recipe-sysroot-native/usr/bin/pod2man: \
> /home/pkj/…/recipe-sysroot-native/usr/bin/per: bad interpreter: No such file or \
> directory

This is because the first two lines of the pod2man script now looks like

#!/home/pkj/…/recipe-sysroot-native/usr/bin/perl
    eval 'exec /home/pkj/…/recipe-sysroot-native/usr/bin/perl -S $0 ${1+"$@"}'

instead of the previous:

#!/usr/bin/env nativeperl
    eval 'exec /usr/bin/env nativeperl -S $0 ${1+"$@"}'

I.e., the sed command in perl's do_install_append_class-native() does not seem to \
have done anything, which is because there is no "perl-native.*/perl" in the path to \
match (as can be seen above), it is just "perl", which is what the old code was \
looking for.

[ In the above examples, I have replaced a longish part of the path with … to \
protect the innocent. ]

//Peter

From: openembedded-core@lists.openembedded.org \
                <openembedded-core@lists.openembedded.org> On Behalf Of Paulo Cesar \
                Zaneti
Sent: den 19 april 2021 16:13
To: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] perl: fix startperl configuration option for \
perl-native

I just re-send the patch with additional fix for the build failure.

I think the basic problem was an inconsistency in the way perl recipe and \
cpan.bbclass convert the absolute perl path to env path. Version 2 of the patch tries \
to use same cpan.bbclass approach on the perl recipe.

Before submitting I just ran "bitbake -k world". I hope it doesn't break the build \
again.


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:#943634;
	font-weight:normal;
	font-style:normal;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="SV" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" \
style="color:#943634;mso-fareast-language:EN-US">Well, it did break our builds. I now \
get the following error when building a native recipe that inherits perlnative and \
tries to run pod2man:<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="color:#943634;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="font-family:Consolas;color:#943634;mso-fareast-language:EN-US">| /bin/sh: \
/home/pkj/…/recipe-sysroot-native/usr/bin/pod2man: \
/home/pkj/…/recipe-sysroot-native/usr/bin/per: bad interpreter: No such file or \
directory<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="color:#943634;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="color:#943634;mso-fareast-language:EN-US">This is because the first two lines \
of the pod2man script now looks like<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US" style="color:#943634;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-family:Consolas;color:#943634;mso-fareast-language:EN-US">#!/home/pkj/…/recipe-sysroot-native/usr/bin/perl<o:p></o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="font-family:Consolas;color:#943634;mso-fareast-language:EN-US">&nbsp;&nbsp;&nbsp; \
eval 'exec /home/pkj/…/recipe-sysroot-native/usr/bin/perl -S $0 \
${1&#43;&quot;$@&quot;}'<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US" style="color:#943634;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="color:#943634;mso-fareast-language:EN-US">instead of the \
previous:<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="color:#943634;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="font-family:Consolas;color:#943634;mso-fareast-language:EN-US">#!/usr/bin/env \
nativeperl<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="font-family:Consolas;color:#943634;mso-fareast-language:EN-US">&nbsp;&nbsp;&nbsp; \
eval 'exec /usr/bin/env nativeperl -S $0 \
${1&#43;&quot;$@&quot;}'<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-US" style="color:#943634;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="EN-US" \
style="color:#943634;mso-fareast-language:EN-US">I.e., the sed command in perl's \
do_install_append_class-native() does not seem to have done anything, which is \
because there is no "perl-native.*/perl&quot; in the path to match  (as can be seen \
above), it is just "perl", which is what the old code was looking \
for.<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="color:#943634;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="color:#943634;mso-fareast-language:EN-US">[ In the above examples, I have \
replaced a longish part of the path with … to protect the innocent. \
]<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="color:#943634;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="color:#943634;mso-fareast-language:EN-US">//Peter<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="color:#943634;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p> <div \
style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt"> <div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> \
openembedded-core@lists.openembedded.org \
&lt;openembedded-core@lists.openembedded.org&gt; <b>On Behalf Of </b>Paulo Cesar \
Zaneti<br> <b>Sent:</b> den 19 april 2021 16:13<br>
<b>To:</b> openembedded-core@lists.openembedded.org<br>
<b>Subject:</b> Re: [OE-core] [PATCH] perl: fix startperl configuration option for \
perl-native<o:p></o:p></span></p> </div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I just re-send the patch with additional fix for the build \
failure.<br> <br>
I think the basic problem was an inconsistency in the way perl recipe and \
cpan.bbclass convert the absolute perl path to env path.<br> Version 2 of the patch \
tries to use same cpan.bbclass approach on the perl recipe.<br> <br>
Before submitting I just ran &quot;bitbake -k world&quot;. I hope it doesn't break \
the build again. <o:p></o:p></p>
</div>
</div>
</body>
</html>



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#151156): https://lists.openembedded.org/g/openembedded-core/message/151156
Mute This Topic: https://lists.openembedded.org/mt/82154526/4454766
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [openembedded-core@marc.info]
-=-=-=-=-=-=-=-=-=-=-=-


--GA1xj6YEVawY9hYgZADf--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic