diff mbox series

[3/5] x264: Use updated gnu-config artifacts

Message ID 19ff9542e08c7df5898cc811f65200050ecf02d5.1521257828.git.raj.khem@gmail.com
State Superseded
Headers show
Series RISC-V Build fixes | expand

Commit Message

Khem Raj March 17, 2018, 3:40 a.m. UTC
It is not using autoconf completely, therefore there
is no autoreconf happening, so when we depend on latest
gnu-config changes e.g. new architectures like riscv
the build does not see them and fails.

Installing these files from native sysroot helps

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta/recipes-multimedia/x264/x264_git.bb | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.16.2

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

Comments

Ross Burton March 19, 2018, 11:36 a.m. UTC | #1
On 17 March 2018 at 03:40, Khem Raj <raj.khem@gmail.com> wrote:

> It is not using autoconf completely, therefore there

> is no autoreconf happening, so when we depend on latest

> gnu-config changes e.g. new architectures like riscv

> the build does not see them and fails.

>

> Installing these files from native sysroot helps

>

> Signed-off-by: Khem Raj <raj.khem@gmail.com>

> ---

>  meta/recipes-multimedia/x264/x264_git.bb | 2 ++

>  1 file changed, 2 insertions(+)

>

> diff --git a/meta/recipes-multimedia/x264/x264_git.bb

> b/meta/recipes-multimedia/x264/x264_git.bb

> index a669295044..c445d15e69 100644

> --- a/meta/recipes-multimedia/x264/x264_git.bb

> +++ b/meta/recipes-multimedia/x264/x264_git.bb

> @@ -43,6 +43,8 @@ EXTRA_OECONF = '--prefix=${prefix} \

>                 '

>

>  do_configure() {

> +    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess

> ${S}

> +    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}

>      ./configure ${EXTRA_OECONF}



A neater way is to call gnu-configize --force ${S}.

Ross
<div dir="ltr">On 17 March 2018 at 03:40, Khem Raj <span dir="ltr">&lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It is not using autoconf completely, therefore there<br>
is no autoreconf happening, so when we depend on latest<br>
gnu-config changes e.g. new architectures like riscv<br>
the build does not see them and fails.<br>
<br>
Installing these files from native sysroot helps<br>
<br>
Signed-off-by: Khem Raj &lt;<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.com</a>&gt;<br>

---<br>
 meta/recipes-multimedia/x264/<a href="http://x264_git.bb" rel="noreferrer" target="_blank">x<wbr>264_git.bb</a> | 2 ++<br>
 1 file changed, 2 insertions(+)<br>
<br>
diff --git a/meta/recipes-multimedia/<wbr>x264/<a href="http://x264_git.bb" rel="noreferrer" target="_blank">x264_git.bb</a> b/meta/recipes-multimedia/<wbr>x264/<a href="http://x264_git.bb" rel="noreferrer" target="_blank">x264_git.bb</a><br>
index a669295044..c445d15e69 100644<br>
--- a/meta/recipes-multimedia/<wbr>x264/<a href="http://x264_git.bb" rel="noreferrer" target="_blank">x264_git.bb</a><br>
+++ b/meta/recipes-multimedia/<wbr>x264/<a href="http://x264_git.bb" rel="noreferrer" target="_blank">x264_git.bb</a><br>
@@ -43,6 +43,8 @@ EXTRA_OECONF = &#39;--prefix=${prefix} \<br>
                &#39;<br>
<br>
 do_configure() {<br>
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-<wbr>config/config.guess ${S}<br>
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-<wbr>config/config.sub ${S}<br>
     ./configure ${EXTRA_OECONF}</blockquote><div><br></div><div>A neater way is to call gnu-configize --force ${S}.</div><div><br></div><div>Ross</div></div></div></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Khem Raj March 19, 2018, 3:32 p.m. UTC | #2
Thanks for the tip!

On Mon, Mar 19, 2018 at 4:37 AM Burton, Ross <ross.burton@intel.com> wrote:

> On 17 March 2018 at 03:40, Khem Raj <raj.khem@gmail.com> wrote:

>

>> It is not using autoconf completely, therefore there

>> is no autoreconf happening, so when we depend on latest

>> gnu-config changes e.g. new architectures like riscv

>> the build does not see them and fails.

>>

>> Installing these files from native sysroot helps

>>

>> Signed-off-by: Khem Raj <raj.khem@gmail.com>

>> ---

>>  meta/recipes-multimedia/x264/x264_git.bb | 2 ++

>>  1 file changed, 2 insertions(+)

>>

>> diff --git a/meta/recipes-multimedia/x264/x264_git.bb

>> b/meta/recipes-multimedia/x264/x264_git.bb

>> index a669295044..c445d15e69 100644

>> --- a/meta/recipes-multimedia/x264/x264_git.bb

>> +++ b/meta/recipes-multimedia/x264/x264_git.bb

>> @@ -43,6 +43,8 @@ EXTRA_OECONF = '--prefix=${prefix} \

>>                 '

>>

>>  do_configure() {

>> +    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess

>> ${S}

>> +    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}

>>      ./configure ${EXTRA_OECONF}

>

>

> A neater way is to call gnu-configize --force ${S}.

>

> Ross

>
<div>Thanks for the tip!</div><div><br><div class="gmail_quote"><div>On Mon, Mar 19, 2018 at 4:37 AM Burton, Ross &lt;<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 17 March 2018 at 03:40, Khem Raj <span>&lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;</span> wrote:<br></div><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It is not using autoconf completely, therefore there<br>
is no autoreconf happening, so when we depend on latest<br>
gnu-config changes e.g. new architectures like riscv<br>
the build does not see them and fails.<br>
<br>
Installing these files from native sysroot helps<br>
<br>
Signed-off-by: Khem Raj &lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;<br>

---<br>
 meta/recipes-multimedia/x264/<a href="http://x264_git.bb" rel="noreferrer" target="_blank">x264_git.bb</a> | 2 ++<br>
 1 file changed, 2 insertions(+)<br>
<br>
diff --git a/meta/recipes-multimedia/x264/<a href="http://x264_git.bb" rel="noreferrer" target="_blank">x264_git.bb</a> b/meta/recipes-multimedia/x264/<a href="http://x264_git.bb" rel="noreferrer" target="_blank">x264_git.bb</a><br>
index a669295044..c445d15e69 100644<br>
--- a/meta/recipes-multimedia/x264/<a href="http://x264_git.bb" rel="noreferrer" target="_blank">x264_git.bb</a><br>
+++ b/meta/recipes-multimedia/x264/<a href="http://x264_git.bb" rel="noreferrer" target="_blank">x264_git.bb</a><br>
@@ -43,6 +43,8 @@ EXTRA_OECONF = &#39;--prefix=${prefix} \<br>
                &#39;<br>
<br>
 do_configure() {<br>
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}<br>
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}<br>
     ./configure ${EXTRA_OECONF}</blockquote><div><br></div></div></div></div><div><div class="gmail_extra"><div class="gmail_quote"><div>A neater way is to call gnu-configize --force ${S}.</div></div></div></div><div><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>Ross</div></div></div></div></blockquote></div></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Khem Raj March 19, 2018, 4:54 p.m. UTC | #3
On Mon, Mar 19, 2018 at 4:36 AM, Burton, Ross <ross.burton@intel.com> wrote:
> On 17 March 2018 at 03:40, Khem Raj <raj.khem@gmail.com> wrote:

>>

>> It is not using autoconf completely, therefore there

>> is no autoreconf happening, so when we depend on latest

>> gnu-config changes e.g. new architectures like riscv

>> the build does not see them and fails.

>>

>> Installing these files from native sysroot helps

>>

>> Signed-off-by: Khem Raj <raj.khem@gmail.com>

>> ---

>>  meta/recipes-multimedia/x264/x264_git.bb | 2 ++

>>  1 file changed, 2 insertions(+)

>>

>> diff --git a/meta/recipes-multimedia/x264/x264_git.bb

>> b/meta/recipes-multimedia/x264/x264_git.bb

>> index a669295044..c445d15e69 100644

>> --- a/meta/recipes-multimedia/x264/x264_git.bb

>> +++ b/meta/recipes-multimedia/x264/x264_git.bb

>> @@ -43,6 +43,8 @@ EXTRA_OECONF = '--prefix=${prefix} \

>>                 '

>>

>>  do_configure() {

>> +    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess

>> ${S}

>> +    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}

>>      ./configure ${EXTRA_OECONF}

>

>

> A neater way is to call gnu-configize --force ${S}.

>


this only works if the system uses autotools
in full respect. x264 has a hand woven configure
but rely on other parts of autotools. So we have to
stay with proposed solution.

> Ross

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Ross Burton March 19, 2018, 5:23 p.m. UTC | #4
On 19 March 2018 at 16:54, Khem Raj <raj.khem@gmail.com> wrote:

> this only works if the system uses autotools

> in full respect. x264 has a hand woven configure

> but rely on other parts of autotools. So we have to

> stay with proposed solution.

>


gnu-configize should be sufficiently dumb that it should work in
non-autotools trees, did it give you an error message?

Ross
<div dir="ltr">On 19 March 2018 at 16:54, Khem Raj <span dir="ltr">&lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">this only works if the system uses autotools<br>
in full respect. x264 has a hand woven configure<br>
but rely on other parts of autotools. So we have to<br>
stay with proposed solution.<br></blockquote><div><br></div><div>gnu-configize should be sufficiently dumb that it should work in non-autotools trees, did it give you an error message?</div><div><br></div><div>Ross </div></div></div></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Khem Raj March 19, 2018, 5:48 p.m. UTC | #5
On Mon, Mar 19, 2018 at 10:23 AM, Burton, Ross <ross.burton@intel.com> wrote:
> On 19 March 2018 at 16:54, Khem Raj <raj.khem@gmail.com> wrote:

>>

>> this only works if the system uses autotools

>> in full respect. x264 has a hand woven configure

>> but rely on other parts of autotools. So we have to

>> stay with proposed solution.

>

>

> gnu-configize should be sufficiently dumb that it should work in

> non-autotools trees, did it give you an error message?

>


its looking for configure.in or configure.ac

> Ross

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Ross Burton March 19, 2018, 6:38 p.m. UTC | #6
Huh, I was hoping that passing a path would just force it.

Maybe we should stop the script being so "clever".

Ross

On 19 March 2018 at 17:48, Khem Raj <raj.khem@gmail.com> wrote:

> On Mon, Mar 19, 2018 at 10:23 AM, Burton, Ross <ross.burton@intel.com>

> wrote:

> > On 19 March 2018 at 16:54, Khem Raj <raj.khem@gmail.com> wrote:

> >>

> >> this only works if the system uses autotools

> >> in full respect. x264 has a hand woven configure

> >> but rely on other parts of autotools. So we have to

> >> stay with proposed solution.

> >

> >

> > gnu-configize should be sufficiently dumb that it should work in

> > non-autotools trees, did it give you an error message?

> >

>

> its looking for configure.in or configure.ac

>

> > Ross

>
<div dir="ltr">Huh, I was hoping that passing a path would just force it.<div><br></div><div>Maybe we should stop the script being so &quot;clever&quot;.</div><div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 19 March 2018 at 17:48, Khem Raj <span dir="ltr">&lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Mar 19, 2018 at 10:23 AM, Burton, Ross &lt;<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>&gt; wrote:<br>
&gt; On 19 March 2018 at 16:54, Khem Raj &lt;<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; this only works if the system uses autotools<br>
&gt;&gt; in full respect. x264 has a hand woven configure<br>
&gt;&gt; but rely on other parts of autotools. So we have to<br>
&gt;&gt; stay with proposed solution.<br>
&gt;<br>
&gt;<br>
&gt; gnu-configize should be sufficiently dumb that it should work in<br>
&gt; non-autotools trees, did it give you an error message?<br>
&gt;<br>
<br>
</span>its looking for <a href="http://configure.in" rel="noreferrer" target="_blank">configure.in</a> or <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
<br>
&gt; Ross<br>
</blockquote></div><br></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/recipes-multimedia/x264/x264_git.bb b/meta/recipes-multimedia/x264/x264_git.bb
index a669295044..c445d15e69 100644
--- a/meta/recipes-multimedia/x264/x264_git.bb
+++ b/meta/recipes-multimedia/x264/x264_git.bb
@@ -43,6 +43,8 @@  EXTRA_OECONF = '--prefix=${prefix} \
                '
 
 do_configure() {
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}
+    install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
     ./configure ${EXTRA_OECONF}
 }