diff options
author | Kevin Strasser <kevin.strasser@linux.intel.com> | 2013-03-22 13:19:22 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-03 17:01:13 +0100 |
commit | 3e4655d951d38b0f216b286bb49f8a0276ba112d (patch) | |
tree | 0074e2fd5e784093534625e80d144e4cc5c28da2 /meta/classes/archive-configured-source.bbclass | |
parent | 805eede15761ef792b14afc4168f7d47c821dfd6 (diff) | |
download | poky-3e4655d951d38b0f216b286bb49f8a0276ba112d.tar.gz |
archiver: fix srpm archiving build errors
srpm archiving doesn't need to be handled as a different case
when deciding what archive tasks to add.
When srpm is selected as the archiving type, the scripts and logs
archive staging directory ${WORKDIR}/script-logs is cleaned, and
its contents moved out to ${WORKDIR}.
Now that we are including ${WORKDIR}/script-logs in sstate-inputdirs,
the directory must be preserved.
[YOCTO #4032]
(From OE-Core rev: 0c80286a3383b436a0a63a0b00eb357dd9dea4fb)
Signed-off-by: Kevin Strasser <kevin.strasser@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/archive-configured-source.bbclass')
-rw-r--r-- | meta/classes/archive-configured-source.bbclass | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/meta/classes/archive-configured-source.bbclass b/meta/classes/archive-configured-source.bbclass index 0f2c9ee329..d346f69e29 100644 --- a/meta/classes/archive-configured-source.bbclass +++ b/meta/classes/archive-configured-source.bbclass | |||
@@ -24,24 +24,17 @@ python () { | |||
24 | return | 24 | return |
25 | 25 | ||
26 | d.appendVarFlag('do_dumpdata_create_diff_gz', 'depends', ' %s:do_package_write_' %pn + packaging) | 26 | d.appendVarFlag('do_dumpdata_create_diff_gz', 'depends', ' %s:do_package_write_' %pn + packaging) |
27 | build_deps = ' %s:do_dumpdata_create_diff_gz' %pn | ||
27 | 28 | ||
28 | if d.getVar('SOURCE_ARCHIVE_PACKAGE_TYPE', True) != 'srpm': | 29 | if d.getVar('SOURCE_ARCHIVE_LOG_WITH_SCRIPTS', True) == 'logs_with_scripts': |
29 | """ | 30 | d.appendVarFlag('do_archive_scripts_logs', 'depends', ' %s:do_package_write_' %pn + packaging) |
30 | If package type is not 'srpm' then add tasks to move archive packages of | 31 | build_deps += ' %s:do_archive_scripts_logs' %pn |
31 | configured sources and scripts/logs in ${DEPLOY_DIR}/sources. | 32 | |
32 | """ | 33 | if not not_tarball(d): |
33 | d.appendVarFlag('do_compile', 'depends', ' %s:do_archive_configured_sources' %pn) | 34 | d.appendVarFlag('do_compile', 'depends', ' %s:do_archive_configured_sources' %pn) |
34 | build_deps = ' %s:do_dumpdata_create_diff_gz' %pn | 35 | build_deps += ' %s:do_archive_configured_sources' %pn |
35 | if not not_tarball(d): | 36 | |
36 | build_deps += ' %s:do_archive_configured_sources' %pn | 37 | d.appendVarFlag('do_build', 'depends', build_deps) |
37 | if d.getVar('SOURCE_ARCHIVE_LOG_WITH_SCRIPTS', True) == 'logs_with_scripts': | ||
38 | build_deps += ' %s:do_archive_scripts_logs' %pn | ||
39 | d.appendVarFlag('do_archive_scripts_logs', 'depends', ' %s:do_package_write_' %pn + packaging) | ||
40 | d.appendVarFlag('do_build', 'depends', build_deps) | ||
41 | |||
42 | else: | ||
43 | d.prependVarFlag('do_configure', 'postfuncs', "do_archive_configured_sources") | ||
44 | d.prependVarFlag('do_package_write_rpm', 'prefuncs', "do_archive_scripts_logs") | ||
45 | } | 38 | } |
46 | 39 | ||
47 | ARCHIVE_SSTATE_OUTDIR = "${DEPLOY_DIR}/sources/" | 40 | ARCHIVE_SSTATE_OUTDIR = "${DEPLOY_DIR}/sources/" |