| Summary: | Realize source archiver class | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Xiaofeng Yan <Xiaofeng.yan> |
| Component: | core | Assignee: | Xiaofeng Yan <Xiaofeng.yan> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Medium | CC: | david.nystrom, dvhart, liang.li2, liezhi.yang, mark.hatle, meta.mr.watcher, meta.watcher, richard.purdie, sgw, song.liu, wenzong.fan, yi.zhao |
| Version: | 1.2 | ||
| Target Milestone: | 1.2 M4 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | (P2)(QA testing completed) Done | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Xiaofeng Yan
2012-02-09 21:55:07 UTC
*** Bug 1655 has been marked as a duplicate of this bug. *** *** Bug 1590 has been marked as a duplicate of this bug. *** *** Bug 2084 has been marked as a duplicate of this bug. *** How to test archiver.bbclass
#Archiving packages configuration#
The following variables lists which files to archive and the package type to archive.
One bbclass of them (archive-original-source.bbclass,archive-configured-source.bbclass) should be inherited in a global bbclass, for example, inherit archive-original-source in packages_rpm.bbclass
Please copy the following parts to local.conf
# SOURCE_ARCHIVE_PACKAGE_TYPE = {'tar','srpm'}
SOURCE_ARCHIVE_PACKAGE_TYPE ?= 'tar'(or 'srpm')
#
# SOURCE_ARCHIVE_LOG_WITH_SCRIPTS = {'logs_with_scripts', 'logs'}
# String 'logs_with_scripts' include temp directory and .bb and .inc files
# String 'logs' only include temp
SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= 'logs_with_scripts'(or 'logs')
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=dd61d59c47f95a3f9b451f4cc903c5c31621ac0c http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=0cc11b390d1fbd322fd1ce5ed5a9cfea5839f58a http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=6dd4ddf7eacc0b71f046a3086d949830918bc4c3 http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=6a99e0f8fbb5c7a411da2e4b724c43f28e6fa0c1 verified on : git info : d3e0beed9eef53018158c9f999cd20b44629aa61 git branch :poky/master test env: host os: ubuntu 11.10 x86_64 kernel : 3.0.0-16-generic #29-Ubuntu SMP test steps: 1. add following line to path_to_git/meta/classes/package_rpm.bbclass inherit archive-original-source 2. set build env,run "soruce ./oe-init-build-env builddir". 3. add following lines to conf/local.conf of builddir: SOURCE_ARCHIVE_PACKAGE_TYPE ?= 'srpm' SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= 'logs_with_scripts' 4. run "bitbake core-image-sato" (MACHINE ?= "qemuppc" in conf/local.conf). results below: 1. new subdir "tmp/deploy/sources" be found in builddir. 2. "gzip-1.4-r1.src.rpm" be found in "tmp/deploy/sources/deploy-srpm/ppc603e/GPLv3+/" subdir of builddir. 3. run "rpm -i gzip-1.4-r1.src.rpm" on a qemuppc sato-sdk target,following packages found in dir "/usr/src/rpm/SOURCES": gzip-1.4-r1-script-logs.tar.gz gzip-1.4.tar.gz 4. extract "gzip-1.4-r1-script-logs.tar.gz" , logs (log.* and run.*) in temp subdir of gzip package in builddir be found,"gzip.inc" and "gzip_1.4.bb" be found. 5. extract "gzip-1.4.tar.gz" ,gzip source code be found. next test will change status to verified. verified on : git info : d3e0beed9eef53018158c9f999cd20b44629aa61 git branch :poky/master I also have tried add following lines to path_to_git/meta/classes/package_rpm.bbclass just like discribed in Comment 4: inherit archive-configured-source.bbclass and tried add follwing choice in conf/local.conf just like discribed in Comment 4: SOURCE_ARCHIVE_PACKAGE_TYPE ?= 'tar' SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= 'logs' since no error found ,so verify it. |