<div dir="ltr"><div><div><div>Hello,<br>Example recipe (<a href="http://recipe.bb">recipe.bb</a> for example):<br>&quot;&quot;&quot;<br>LICENSE=&quot;CLOSED&quot;<br><br>RDEPENDS_${PN} = &quot;perl-module-file-glob&quot;<br><br>BBCLASSEXTEND = &quot;native nativesdk&quot;<br>do_install() {<br></div><div>    install -d ${D}/${bindir}<br></div><div>    echo &quot;my perl script&quot; &gt; ${D}/${bindir}/<a href="http://recipe.pl">recipe.pl</a><br>}<br>inherit perlnative<br>&quot;&quot;<br><br></div>When my patch is removed and I will call: &quot;&#39;bitbake recipe-native&quot;. <br></div>Then I have dependency:<br></div>recipe-native -&gt; perl (target version)<br><div><div><div><div>This is not correct, that native recipe has dependency to target recipe.<br><br></div><div>When I called (bitbake recipe-native -g) I can find:<br>&quot;recipe-native&quot; -&gt; &quot;perl&quot; <br>in recipe-depends.dot<br><br></div><div>This was my original problem. Please correct me, if missed something.<br><br>usage of += with an over-ride - I&#39;ve just copied it from nativesdk over-ride, which was already in perl recipe.<br><br></div></div></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">Best regards,<br></div><div class="gmail_extra">Krzysztof Taborski<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-07-23 19:23 GMT+02:00 Andre McCurdy <span dir="ltr">&lt;<a href="mailto:armccurdy@gmail.com" target="_blank">armccurdy@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Jul 23, 2018 at 5:57 AM, Krzysztof Taborski<br>
&lt;<a href="mailto:taborskikrzysztof@gmail.com">taborskikrzysztof@gmail.com</a>&gt; wrote:<br>
&gt; Change was already merged:<br>
&gt; <a href="http://cgit.openembedded.org/openembedded-core/commit/meta/recipes-devtools?id=7dd9772eca6df52db09b65537fdf689f1aa3fd8f" rel="noreferrer" target="_blank">http://cgit.openembedded.org/<wbr>openembedded-core/commit/meta/<wbr>recipes-devtools?id=<wbr>7dd9772eca6df52db09b65537fdf68<wbr>9f1aa3fd8f</a><br>
&gt;<br>
&gt; Is your request still valid?<br>
<br>
</span>Yes, although the change was merged, it&#39;s not clear that it was correct.<br>
<br>
Native recipes aren&#39;t split into packages, so there are no -native<br>
versions of the perl modules. If you have a recipe which depends on<br>
&quot;perl-module-XXX-native&quot; it&#39;s likely a bug in that recipe - not in<br>
perl-native.<br>
<br>
What recipe did you find which depends on a -native version of a perl module?<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; 2018-07-09 21:40 GMT+02:00 Andre McCurdy &lt;<a href="mailto:armccurdy@gmail.com">armccurdy@gmail.com</a>&gt;:<br>
&gt;&gt;<br>
&gt;&gt; On Wed, May 9, 2018 at 7:16 AM, taborskikrzysztof<br>
&gt;&gt; &lt;<a href="mailto:taborskikrzysztof@gmail.com">taborskikrzysztof@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Can I request review?<br>
&gt;&gt; &gt; -------- Oryginalna wiadomość --------<br>
&gt;&gt; &gt; Od: Krzysztof Taborski &lt;<a href="mailto:taborskikrzysztof@gmail.com">taborskikrzysztof@gmail.com</a>&gt;<br>
&gt;&gt; &gt; Data: 08.05.2018 18:46 (GMT+01:00)<br>
&gt;&gt; &gt; Do: <a href="mailto:openembedded-core@lists.openembedded.org">openembedded-core@lists.<wbr>openembedded.org</a><br>
&gt;&gt; &gt; DW: Krzysztof Taborski &lt;<a href="mailto:taborskikrzysztof@gmail.com">taborskikrzysztof@gmail.com</a>&gt;<br>
&gt;&gt; &gt; Temat: [meta-oe][PATCH] perl: native modules will not trigger build perl<br>
&gt;&gt; &gt; for<br>
&gt;&gt; &gt; target.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Currently building perl-native modules triggers<br>
&gt;&gt; &gt; build perl for target due to PACKAGES_DYNAMIC regex.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; This commit will cause, that perl native modules will<br>
&gt;&gt; &gt; trigger perl-native build.<br>
&gt;&gt;<br>
&gt;&gt; Can you give an example of how to reproduce the problem?<br>
&gt;&gt;<br>
&gt;&gt; &gt; Signed-off-by: Krzysztof Taborski &lt;<a href="mailto:taborskikrzysztof@gmail.com">taborskikrzysztof@gmail.com</a>&gt;<br>
&gt;&gt; &gt; ---<br>
&gt;&gt; &gt; meta/recipes-devtools/perl/<a href="http://perl-native_5.24.1.bb" rel="noreferrer" target="_blank">per<wbr>l-native_5.24.1.bb</a> | 2 ++<br>
&gt;&gt; &gt; meta/recipes-devtools/perl/<a href="http://perl_5.24.1.bb" rel="noreferrer" target="_blank">per<wbr>l_5.24.1.bb</a>        | 2 +-<br>
&gt;&gt; &gt; 2 files changed, 3 insertions(+), 1 deletion(-)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; diff --git a/meta/recipes-devtools/perl/<a href="http://perl-native_5.24.1.bb" rel="noreferrer" target="_blank">p<wbr>erl-native_5.24.1.bb</a><br>
&gt;&gt; &gt; b/meta/recipes-devtools/perl/<a href="http://perl-native_5.24.1.bb" rel="noreferrer" target="_blank">p<wbr>erl-native_5.24.1.bb</a><br>
&gt;&gt; &gt; index a9ab17d16c..71f45890b0 100644<br>
&gt;&gt; &gt; --- a/meta/recipes-devtools/perl/<a href="http://perl-native_5.24.1.bb" rel="noreferrer" target="_blank">p<wbr>erl-native_5.24.1.bb</a><br>
&gt;&gt; &gt; +++ b/meta/recipes-devtools/perl/<a href="http://perl-native_5.24.1.bb" rel="noreferrer" target="_blank">p<wbr>erl-native_5.24.1.bb</a><br>
&gt;&gt; &gt; @@ -135,3 +135,5 @@ EOF<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # Fix the path in sstate<br>
&gt;&gt; &gt; SSTATE_SCAN_FILES += &quot;*.pm *.pod *.h *.pl *.sh&quot;<br>
&gt;&gt; &gt; +PACKAGES_DYNAMIC_class-native += &quot;^perl-module-.*native$&quot;<br>
&gt;&gt;<br>
&gt;&gt; This usage of += with an over-ride is not correct.<br>
&gt;&gt;<br>
&gt;&gt; However, regardless of that, was this change actually needed?<br>
&gt;&gt;<br>
&gt;&gt; If you know of a -native recipe which depends on a<br>
&gt;&gt; perl-module-XXX-native package then it&#39;s probably a bug in the -native<br>
&gt;&gt; recipe. Having perl-native pretend to provide perl-module packages<br>
&gt;&gt; probably isn&#39;t the right solution.<br>
&gt;&gt;<br>
&gt;&gt; &gt; diff --git a/meta/recipes-devtools/perl/<a href="http://perl_5.24.1.bb" rel="noreferrer" target="_blank">p<wbr>erl_5.24.1.bb</a><br>
&gt;&gt; &gt; b/meta/recipes-devtools/perl/<a href="http://perl_5.24.1.bb" rel="noreferrer" target="_blank">p<wbr>erl_5.24.1.bb</a><br>
&gt;&gt; &gt; index 53a426289a..4c6a71082f 100644<br>
&gt;&gt; &gt; --- a/meta/recipes-devtools/perl/<a href="http://perl_5.24.1.bb" rel="noreferrer" target="_blank">p<wbr>erl_5.24.1.bb</a><br>
&gt;&gt; &gt; +++ b/meta/recipes-devtools/perl/<a href="http://perl_5.24.1.bb" rel="noreferrer" target="_blank">p<wbr>erl_5.24.1.bb</a><br>
&gt;&gt; &gt; @@ -339,7 +339,7 @@ python split_perl_packages () {<br>
&gt;&gt; &gt;      d.setVar(d.expand(&quot;<wbr>RRECOMMENDS_${PN}-modules&quot;), &#39; &#39;.join(packages))<br>
&gt;&gt; &gt; }<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; -PACKAGES_DYNAMIC += &quot;^perl-module-.*&quot;<br>
&gt;&gt; &gt; +PACKAGES_DYNAMIC += &quot;^perl-module-.*(?&lt;!\-native)$<wbr>&quot;<br>
&gt;&gt; &gt; PACKAGES_DYNAMIC_class-<wbr>nativesdk += &quot;^nativesdk-perl-module-.*&quot;<br>
&gt;&gt;<br>
&gt;&gt; This usage of += with an over-ride is not correct.<br>
&gt;&gt;<br>
&gt;&gt; &gt; RPROVIDES_perl-lib = &quot;perl-lib&quot;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; 2.13.6<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; ______________________________<wbr>_________________<br>
&gt;&gt; &gt; Openembedded-core mailing list<br>
&gt;&gt; &gt; <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
&gt;&gt; &gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Pozdrawiam,<br>
&gt; Krzysiek Taborski<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Pozdrawiam,<div>Krzysiek Taborski</div></div></div>
</div></div>