meson: don't dump full error log on failure
PATCH 1/2 meson: don't dump full error log on failure
If the configure fails then we don't really want to see hundreds of lines of test output (this would be similar to dumping out autoconf's config.log). The error includes the path of the full log if further debugging is required.
--- meta/classes/meson.bbclass | 1 - 1 file changed, 1 deletion(-)
meta/classes/meson.bbclass +0 -1
@@ -101,7 +101,6 @@ CONFIGURE_FILES = "meson.build" meson_do_configure() { bbnote Executing meson ${EXTRA_OEMESON}... if ! meson ${MESONOPTS} "${MESON_SOURCEPATH}" "${B}" ${MESON_CROSS_FILE} ${EXTRA_OEMESON}; then - cat ${B}/meson-logs/meson-log.txt bbfatal_log meson failed fi }
Signature · 1 line
2.11.0
PATCH 2/2 python[3]native: allow use of both native Python 2 and 3
Instead of both classes using ${PYTHON_PN} (which is set by python-dir and python3-dir), hardcode the right values so that it is possible to inherit both pythonnative and python3native at the same time.
If both are inherited then both native Pythons are available, but the last to be inherited will be the one to set PYTHON.
--- meta/classes/python3native.bbclass | 6 +++--- meta/classes/pythonnative.bbclass | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-)
meta/classes/python3native.bbclass +3 -3
@@ -1,8 +1,8 @@ inherit python3-dir -PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}" -EXTRANATIVEPATH += "${PYTHON_PN}-native" -DEPENDS_append = " ${PYTHON_PN}-native " +PYTHON="${STAGING_BINDIR_NATIVE}/python3-native/python3" +EXTRANATIVEPATH += "python3-native" +DEPENDS_append = " python3-native " # python-config and other scripts are using distutils modules # which we patch to access these variables
meta/classes/pythonnative.bbclass +3 -3
@@ -1,11 +1,11 @@ inherit python-dir -PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}" +PYTHON="${STAGING_BINDIR_NATIVE}/python-native/python" # PYTHON_EXECUTABLE is used by cmake PYTHON_EXECUTABLE="${PYTHON}" -EXTRANATIVEPATH += "${PYTHON_PN}-native" -DEPENDS_append = " ${PYTHON_PN}-native " +EXTRANATIVEPATH += "python-native" +DEPENDS_append = " python-native " # python-config and other scripts are using distutils modules # which we patch to access these variables
Signature · 1 line
2.11.0
Re: [PATCH 2/2] python[3]native: allow use of both native Python 2 and 3
Quoted 8 lines · Ross Burton
Instead of both classes using ${PYTHON_PN} (which is set by python-dir and python3-dir), hardcode the right values so that it is possible to inherit both
pythonnative and python3native at the same time.If both are inherited then both native Pythons are available, but the last to be
inherited will be the one to set PYTHON.
Not particularly thrilled about this usage it seems error prone
Quoted 54 lines
Signed-off-by Ross Burton <[email protected]>--- meta/classes/python3native.bbclass | 6 +++--- meta/classes/pythonnative.bbclass | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-)meta/classes/python3native.bbclass +3
-3@@ -1,8 +1,8 @@ inherit python3-dir -PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}" -EXTRANATIVEPATH += "${PYTHON_PN}-native" -DEPENDS_append = " ${PYTHON_PN}-native " +PYTHON="${STAGING_BINDIR_NATIVE}/python3-native/python3" +EXTRANATIVEPATH += "python3-native" +DEPENDS_append = " python3-native " # python-config and other scripts are using distutils modules # which we patch to access these variablesmeta/classes/pythonnative.bbclass +3
-4@@ -1,11 +1,11 @@ inherit python-dir -PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}" +PYTHON="${STAGING_BINDIR_NATIVE}/python-native/python" # PYTHON_EXECUTABLE is used by cmake PYTHON_EXECUTABLE="${PYTHON}" -EXTRANATIVEPATH += "${PYTHON_PN}-native" -DEPENDS_append = " ${PYTHON_PN}-native " +EXTRANATIVEPATH += "python-native" +DEPENDS_append = " python-native " # python-config and other scripts are using distutils modules # which we patch to access these variables --2.11.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [PATCH 2/2] python[3]native: allow use of both native Python 2 and 3
The last to be inherited behaviour? That's the same as the current behaviour, apart from after my change both pythons are available via PATH.
The only change is that inheriting the second class doesn't wipe out the first class.
Ross
Quoted 69 lines · Khem Raj
Quoted 9 lines · Ross Burton
Instead of both classes using ${PYTHON_PN} (which is set by python-dir and python3-dir), hardcode the right values so that it is possible to inherit both
pythonnative and python3native at the same time.If both are inherited then both native Pythons are available, but the last to be
inherited will be the one to set PYTHON.Not particularly thrilled about this usage it seems error prone
Quoted 54 lines
Signed-off-by Ross Burton <[email protected]>--- meta/classes/python3native.bbclass | 6 +++--- meta/classes/pythonnative.bbclass | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-)meta/classes/python3native.bbclass +3
-3@@ -1,8 +1,8 @@ inherit python3-dir -PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}" -EXTRANATIVEPATH += "${PYTHON_PN}-native" -DEPENDS_append = " ${PYTHON_PN}-native " +PYTHON="${STAGING_BINDIR_NATIVE}/python3-native/python3" +EXTRANATIVEPATH += "python3-native" +DEPENDS_append = " python3-native " # python-config and other scripts are using distutils modules # which we patch to access these variablesmeta/classes/pythonnative.bbclass +3
-4@@ -1,11 +1,11 @@ inherit python-dir -PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}" +PYTHON="${STAGING_BINDIR_NATIVE}/python-native/python" # PYTHON_EXECUTABLE is used by cmake PYTHON_EXECUTABLE="${PYTHON}" -EXTRANATIVEPATH += "${PYTHON_PN}-native" -DEPENDS_append = " ${PYTHON_PN}-native " +EXTRANATIVEPATH += "python-native" +DEPENDS_append = " python-native " # python-config and other scripts are using distutils modules # which we patch to access these variables --2.11.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [PATCH 2/2] python[3]native: allow use of both native Python 2 and 3
Quoted 6 lines · Ross
The last to be inherited behaviour? That's the same as the current behaviour, apart from after my change both pythons are available via PATH.
The only change is that inheriting the second class doesn't wipe out the first class.
Ok may be then this variable should be made overridable so a recipe can select it to be one of two otherwise the default remains as you said
Quoted 79 lines
Ross
Quoted 3 lines · Khem Raj
On Tue, Jul 31, 2018 at 10:06 AM Ross Burton <[email protected]>
Quoted 2 lines · wrote:
Quoted 2 lines
Instead of both classes using ${PYTHON_PN} (which is set by python-dir
and
Quoted 1 line
Quoted 1 line
python3-dir), hardcode the right values so that it is possible to
inherit
Quoted 4 lines
Quoted 4 lines
both
pythonnative and python3native at the same time.If both are inherited then both native Pythons are available, but the
last
Quoted 59 lines
Quoted 2 lines
to be
inherited will be the one to set PYTHON.Not particularly thrilled about this usage it seems error prone
Quoted 54 lines
Signed-off-by Ross Burton <[email protected]>--- meta/classes/python3native.bbclass | 6 +++--- meta/classes/pythonnative.bbclass | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-)meta/classes/python3native.bbclass +3
-3@@ -1,8 +1,8 @@ inherit python3-dir -PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}" -EXTRANATIVEPATH += "${PYTHON_PN}-native" -DEPENDS_append = " ${PYTHON_PN}-native " +PYTHON="${STAGING_BINDIR_NATIVE}/python3-native/python3" +EXTRANATIVEPATH += "python3-native" +DEPENDS_append = " python3-native " # python-config and other scripts are using distutils modules # which we patch to access these variablesmeta/classes/pythonnative.bbclass +3
-4@@ -1,11 +1,11 @@ inherit python-dir -PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}" +PYTHON="${STAGING_BINDIR_NATIVE}/python-native/python" # PYTHON_EXECUTABLE is used by cmake PYTHON_EXECUTABLE="${PYTHON}" -EXTRANATIVEPATH += "${PYTHON_PN}-native" -DEPENDS_append = " ${PYTHON_PN}-native " +EXTRANATIVEPATH += "python-native" +DEPENDS_append = " python-native " # python-config and other scripts are using distutils modules # which we patch to access these variables --2.11.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core