[oe] [meta-oe][PATCH 2/2] a2jmidid: Define own do_configure

Andreas Müller schnitzeltony at gmail.com
Mon Dec 3 21:27:28 UTC 2018


On Mon, Dec 3, 2018 at 9:13 PM Khem Raj <raj.khem at gmail.com> wrote:
>
> waf script here does not support -o switch so define own which can
> be run in B
>
> Secondly, ensure to use python2
1. Why?
2. There is no python2 in sysroot Maybe it was doing it before but now
I think it makes recipe use host's python2.

Andreas
>
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> ---
>  meta-oe/recipes-multimedia/jack/a2jmidid_8.bb | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/meta-oe/recipes-multimedia/jack/a2jmidid_8.bb b/meta-oe/recipes-multimedia/jack/a2jmidid_8.bb
> index 59b73f8e8b..7dcaaf6828 100644
> --- a/meta-oe/recipes-multimedia/jack/a2jmidid_8.bb
> +++ b/meta-oe/recipes-multimedia/jack/a2jmidid_8.bb
> @@ -23,4 +23,9 @@ LDFLAGS_append_libc-musl = " -lexecinfo"
>
>  export LINKFLAGS="${LDFLAGS}"
>
> +do_configure() {
> +    sed -i 's|/usr/bin/.*python$|/usr/bin/env python2|' ${S}/a2j_control ${S}/waf ${S}/wscript
> +    (cd ${B} && ${S}/waf configure --prefix=${prefix} ${WAF_EXTRA_CONF} ${EXTRA_OECONF})
> +}
> +
>  FILES_${PN} += "${datadir}/dbus-1/services"
> --
> 2.19.2
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


More information about the Openembedded-devel mailing list