<p dir="ltr"><br>
On Oct 24, 2015 5:15 AM, &quot;Jens Rehsack&quot; &lt;<a href="mailto:rehsack@gmail.com">rehsack@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; &gt; Am 23.10.2015 um 19:18 schrieb Jeremy Puhlman &lt;<a href="mailto:jpuhlman@mvista.com">jpuhlman@mvista.com</a>&gt;:<br>
&gt; &gt;<br>
&gt; &gt; Get version data from querying $CC rather then<br>
&gt; &gt; $Config(gccversion) which comes from running version of<br>
&gt; &gt; perl. Since perl-native is not likely compiled by gcc<br>
&gt; &gt; 5 at this point, it will never trigger the required<br>
&gt; &gt; fixes for gcc 5.<br>
&gt; &gt;<br>
&gt; &gt; [YOCTO #8367]<br>
&gt; &gt;<br>
&gt; &gt; Signed-off-by: Jeremy Puhlman &lt;<a href="mailto:jpuhlman@mvista.com">jpuhlman@mvista.com</a>&gt;<br>
&gt; &gt; ---<br>
&gt; &gt; .../perl/perl/perl-errno-generation-gcc5.patch     | 23 ++++++++++++++++++++++<br>
&gt; &gt; meta/recipes-devtools/perl/<a href="http://perl_5.22.0.bb">perl_5.22.0.bb</a>          |  1 +<br>
&gt; &gt; 2 files changed, 24 insertions(+)<br>
&gt; &gt; create mode 100644 meta/recipes-devtools/perl/perl/perl-errno-generation-gcc5.patch<br>
&gt; &gt;<br>
&gt; &gt; diff --git a/meta/recipes-devtools/perl/perl/perl-errno-generation-gcc5.patch b/meta/recipes-devtools/perl/perl/perl-errno-generation-gcc5.patch<br>
&gt; &gt; new file mode 100644<br>
&gt; &gt; index 0000000..efbc55d<br>
&gt; &gt; --- /dev/null<br>
&gt; &gt; +++ b/meta/recipes-devtools/perl/perl/perl-errno-generation-gcc5.patch<br>
&gt; &gt; @@ -0,0 +1,23 @@<br>
&gt; &gt; +Upstream-Status:Inappropriate [embedded specific]<br>
&gt;<br>
&gt; Did you ask p5-porters?<br>
&gt;<br>
&gt; I strongly suggest to open an RT for 2 reasons:<br>
&gt;<br>
&gt; 1) Let the people know that I&#39;m not the only one encountering problems with the way they deal situation</p>
<p dir="ltr">Yeah we have been having fun cross compiling perl since 2000, lots of fun. </p>
<p dir="ltr">&gt; 2) Those tickets enlighten over time.<br>
&gt;<br>
&gt; Cross-compiling is not restricted to embedded.<br>
&gt;<br>
&gt; The patch self looks more than sane and I&#39;m happy to support it when reported (so tell me the ticket number or put me on CC when creating the ticket).<br></p>
<p dir="ltr">Is there a specific mailing list?<br>
&gt; &gt; +The upstream code assumes that the compiler version used to compiler miniperl/perl-native<br>
&gt; &gt; +is the same as the one being used to build the perl binary. Since most people are not running<br>
&gt; &gt; +systems with gcc 5, it is unlikely that it will work on any supported host. Switch out gccversion<br>
&gt; &gt; +for the version extracted from $CC --version.<br>
&gt; &gt; +<br>
&gt; &gt; +--- perl-5.22.0/ext/Errno/Errno_pm.PL        2015-10-19 18:01:20.622143786 -0400<br>
&gt; &gt; ++++ perl-5.22.0-fixed/ext/Errno/Errno_pm.PL  2015-10-19 17:50:35.662137367 -0400<br>
&gt; &gt; +@@ -224,9 +224,12 @@<br>
&gt; &gt; +<br>
&gt; &gt; +     {       # BeOS (support now removed) did not enter this block<br>
&gt; &gt; +     # invoke CPP and read the output<br>
&gt; &gt; ++        my $compiler = $ENV{&#39;CC&#39;};<br>
&gt; &gt; ++        my $compiler_out = `$compiler --version`;<br>
&gt; &gt; ++        my @compiler_version = split / /,$compiler_out;<br>
&gt; &gt; +<br>
&gt; &gt; +     my $inhibit_linemarkers = &#39;&#39;;<br>
&gt; &gt; +-    if ($Config{gccversion} =~ /\A(\d+)\./ and $1 &gt;= 5) {<br>
&gt; &gt; ++    if (@compiler_version[2] =~ /\A(\d+)\./ and $1 &gt;= 5) {<br>
&gt; &gt; +         # GCC 5.0 interleaves expanded macros with line numbers breaking<br>
&gt; &gt; +         # each line into multiple lines. RT#123784<br>
&gt; &gt; +         $inhibit_linemarkers = &#39; -P&#39;;<br>
&gt; &gt; diff --git a/meta/recipes-devtools/perl/<a href="http://perl_5.22.0.bb">perl_5.22.0.bb</a> b/meta/recipes-devtools/perl/<a href="http://perl_5.22.0.bb">perl_5.22.0.bb</a><br>
&gt; &gt; index 3ce7849..66e074d 100644<br>
&gt; &gt; --- a/meta/recipes-devtools/perl/<a href="http://perl_5.22.0.bb">perl_5.22.0.bb</a><br>
&gt; &gt; +++ b/meta/recipes-devtools/perl/<a href="http://perl_5.22.0.bb">perl_5.22.0.bb</a><br>
&gt; &gt; @@ -62,6 +62,7 @@ SRC_URI += &quot; \<br>
&gt; &gt;         file://ext-ODBM_File-hints-linux.pl-link-libgdbm_compat.patch \<br>
&gt; &gt;         file://ext-ODBM_File-t-odbm.t-fix-the-path-of-dbmt_common.p.patch \<br>
&gt; &gt;         file://perl-PathTools-don-t-filter-out-blib-from-INC.patch \<br>
&gt; &gt; +        file://perl-errno-generation-gcc5.patch \<br>
&gt; &gt; &quot;<br>
&gt; &gt;<br>
&gt; &gt; # Fix test case issues<br>
&gt; &gt; --<br>
&gt; &gt; 2.6.2<br>
&gt;<br>
&gt; Cheers<br>
&gt; --<br>
&gt; Jens Rehsack - <a href="mailto:rehsack@gmail.com">rehsack@gmail.com</a><br>
&gt;<br>
</p>