<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2472</bug_id>
          
          <creation_ts>2012-05-18 15:23:33 +0000</creation_ts>
          <short_desc>archiver.bbclass: improve usability</short_desc>
          <delta_ts>2012-06-12 10:10:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Other YP Layers</product>
          <component>layers</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(QA testing completed) Done </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.3 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Christopher Larson">kergoth</reporter>
          <assigned_to name="Xiaofeng Yan">Xiaofeng.yan</assigned_to>
          <cc>liang.li2</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>meta.layer.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>zhenfeng.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21453</commentid>
    <comment_count>0</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2012-05-18 15:23:33 +0000</bug_when>
    <thetext>In my opinion, the usability of the archiver classes can be improved, beyond the simple addition of default values for the variables. A user could well inherit just archiver rather than the individual useful classes, and not realize it will do nothing.

In my distro, I&apos;m doing something this:

# More sane usability for the archiver classes
ARCHIVER_MODE ?= &quot;none&quot;
ARCHIVER_MODE[type] = &quot;choice&quot;
ARCHIVER_MODE[choices] = &quot;none original patched configured&quot;
ARCHIVER_CLASS = &quot;${@&apos;archive-${ARCHIVER_MODE}-source&apos; \
                     if ARCHIVER_MODE != &apos;none&apos; else &apos;&apos;}&quot;
INHERIT += &quot;${ARCHIVER_CLASS}&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21540</commentid>
    <comment_count>1</comment_count>
    <who name="Xiaofeng Yan">Xiaofeng.yan</who>
    <bug_when>2012-05-23 01:46:28 +0000</bug_when>
    <thetext>Hi Christopher Larson,

This is good way to point to the type for archiving. I will learn your ideas and add them to appropriate place. thanks your good suggestion.

Thanks
Yan</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21905</commentid>
    <comment_count>2</comment_count>
    <who name="Xiaofeng Yan">Xiaofeng.yan</who>
    <bug_when>2012-06-07 06:58:52 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=34f819e22e337c3ad69f72a9bd9c4422d5a61c3a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22036</commentid>
    <comment_count>3</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-06-12 10:07:05 +0000</bug_when>
    <thetext>the following is added to the local.conf of build dir:

INHERIT += &quot;archive-original-source&quot;
SOURCE_ARCHIVE_PACKAGE_TYPE ?= &apos;tar&apos;
SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= &apos;xxx&apos;

run &quot;bitbake core-image-sato-sdk&quot; in build dir to build the qemuppc core-image-sato-sdk image, then change the above to :

INHERIT += &quot;archive-original-source&quot;
SOURCE_ARCHIVE_PACKAGE_TYPE ?= &apos;tar&apos;
SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= &apos;&apos;
 
run &quot;bitbake core-image-sato-sdk&quot; in build dir to build the qemuppc core-image-sato-sdk image.

no error happened , change status to verified.

test env :
host :ubuntu 11.10 x86_64
kernel :3.0.0-20-generic #34-Ubuntu SMP

git info:60543b931d073e17ad935aacfbd0d4eba76e2360
git branch :poky/master</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>