diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-03-21 18:10:58 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-25 10:29:13 +0000 |
commit | 50addfb97bb901dce5551c124e7ba27f920b02ef (patch) | |
tree | eb506a2060f07db24a13344fa83254a837705ee8 /meta/classes/distutils-tools.bbclass | |
parent | 0ec30c7a68f2d3dd9650e44af9e4268f83ec0281 (diff) | |
download | poky-50addfb97bb901dce5551c124e7ba27f920b02ef.tar.gz |
classes/distutils*: don't hide logs when setup script fails
We need to see the output of the setup script in the error message
because what we are having bbfatal print here doesn't completely
describe what went wrong, thus we should use bbfatal_log here and not
bbfatal.
(From OE-Core rev: 970a02061b474a238f57cd0cc4db7b62e36dfa3d)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/distutils-tools.bbclass')
-rw-r--r-- | meta/classes/distutils-tools.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/distutils-tools.bbclass b/meta/classes/distutils-tools.bbclass index f43450e56f..8d9b3f78f7 100644 --- a/meta/classes/distutils-tools.bbclass +++ b/meta/classes/distutils-tools.bbclass | |||
@@ -10,14 +10,14 @@ distutils_do_compile() { | |||
10 | STAGING_LIBDIR=${STAGING_LIBDIR} \ | 10 | STAGING_LIBDIR=${STAGING_LIBDIR} \ |
11 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ | 11 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ |
12 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py build ${DISTUTILS_BUILD_ARGS} || \ | 12 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py build ${DISTUTILS_BUILD_ARGS} || \ |
13 | bbfatal "${PYTHON_PN} setup.py build_ext execution failed." | 13 | bbfatal_log "${PYTHON_PN} setup.py build_ext execution failed." |
14 | } | 14 | } |
15 | 15 | ||
16 | distutils_stage_headers() { | 16 | distutils_stage_headers() { |
17 | install -d ${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} | 17 | install -d ${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} |
18 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ | 18 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ |
19 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py install_headers ${DISTUTILS_STAGE_HEADERS_ARGS} || \ | 19 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py install_headers ${DISTUTILS_STAGE_HEADERS_ARGS} || \ |
20 | bbfatal "${PYTHON_PN} setup.py install_headers execution failed." | 20 | bbfatal_log "${PYTHON_PN} setup.py install_headers execution failed." |
21 | } | 21 | } |
22 | 22 | ||
23 | distutils_stage_all() { | 23 | distutils_stage_all() { |
@@ -27,7 +27,7 @@ distutils_stage_all() { | |||
27 | PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} \ | 27 | PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} \ |
28 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ | 28 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ |
29 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py install ${DISTUTILS_STAGE_ALL_ARGS} || \ | 29 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py install ${DISTUTILS_STAGE_ALL_ARGS} || \ |
30 | bbfatal "${PYTHON_PN} setup.py install (stage) execution failed." | 30 | bbfatal_log "${PYTHON_PN} setup.py install (stage) execution failed." |
31 | } | 31 | } |
32 | 32 | ||
33 | distutils_do_install() { | 33 | distutils_do_install() { |
@@ -39,7 +39,7 @@ distutils_do_install() { | |||
39 | PYTHONPATH=${D}/${PYTHON_SITEPACKAGES_DIR} \ | 39 | PYTHONPATH=${D}/${PYTHON_SITEPACKAGES_DIR} \ |
40 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ | 40 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ |
41 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py install --install-lib=${D}/${PYTHON_SITEPACKAGES_DIR} ${DISTUTILS_INSTALL_ARGS} || \ | 41 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py install --install-lib=${D}/${PYTHON_SITEPACKAGES_DIR} ${DISTUTILS_INSTALL_ARGS} || \ |
42 | bbfatal "${PYTHON_PN} setup.py install execution failed." | 42 | bbfatal_log "${PYTHON_PN} setup.py install execution failed." |
43 | 43 | ||
44 | echo "Step 3 of ${PN} Install ..." | 44 | echo "Step 3 of ${PN} Install ..." |
45 | # support filenames with *spaces* | 45 | # support filenames with *spaces* |