<?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>5740</bug_id>
          
          <creation_ts>2014-01-17 15:55:43 +0000</creation_ts>
          <short_desc>Use archiver.bbclass to filter the source - fails</short_desc>
          <delta_ts>2015-08-07 13:51:49 +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>OE-Core</product>
          <component>core</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.yoctoproject.org/show_bug.cgi?id=5113</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M5</target_milestone>
          <dependson>5113</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ionut Chisanovici">ionutx.chisanovici</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Ionut Chisanovici">ionutx.chisanovici</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39908</commentid>
    <comment_count>0</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2014-01-17 15:55:43 +0000</bug_when>
    <thetext>STATUS: RUNNING
BUILD: 1.6_M2_RC1: e4c23f7bcb79072ea6028fbdf8f3f0dc17a63371
ENVIRONMENT: Multiple environments
STEPS TO REPRODUCE: 
Feature request::

https://bugzilla.yoctoproject.org/show_bug.cgi?id=2473


1. Add the following lines to conf/local.conf:

ARCHIVER_MODE ?= &quot;original&quot;

ARCHIVER_MODE[type] ?= &quot;tar&quot; 
ARCHIVER_MODE[log_type] ?= &quot;logs_with_scripts&quot; 
ARCHIVER_MODE[filter] = &quot;no&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; 

and run bitbake core-image-minimal

EXPECTED OUTCOME: 
1. Check in tmp/deploy/sources/{MACHINE}-poky-linux/ the existence of the following licenses:
BSD-3-Clause         GPL-3.0-with-GCC-exceptionGPL-3.0  LGPLv2+BSDPD

GPL-1.0              GPLv2+                             MIT GPL-2.0              GPLv2.0+LGPLv2.1+                  PD GPL-2.0BSD-4-Clause  GPLv3+                             Sleepycat GPL-2.0+LGPL-2.1+    GPLv3+LGPL-2.1+                    Zlib GPL-2.0LGPL-2.1      LGPLv2.1+ 

ACTUAL OUTCOME:

ionut@ionut-ubuntu:~/work/poky/build$ bitbake core-image-minimal
Parsing recipes: 100% |######################################################################################################################################################################| ETA:  00:00:00
Parsing of 848 .bb files complete (0 cached, 848 parsed). 1202 targets, 36 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.21.1&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-13.10&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.5+snapshot-20140117&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;(detachedfrome4c23f7):e4c23f7bcb79072ea6028fbdf8f3f0dc17a63371&quot;

NOTE: Preparing runqueue
ERROR: Task do_archive_scripts_logs in /home/ionut/work/poky/meta/recipes-devtools/quilt/quilt-native_0.61.bb depends upon non-existent task do_package_write_rpm in /home/ionut/work/poky/meta/recipes-devtools/quilt/quilt-native_0.61.bb

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Cheers,
Ionut C</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41671</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2014-03-25 10:35:51 +0000</bug_when>
    <thetext>Merged into master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4a91e1449b0c869979231b7f4c98e09c7a5d732a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41766</commentid>
    <comment_count>2</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2014-03-26 13:15:18 +0000</bug_when>
    <thetext>Hi Robert,

Regarding all the changes related to the refactoring of the archiver.bbclass, can you please tell me how can I configure the local.conf in order to reflect this case ?

Thanks,
IonutC</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41803</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2014-03-27 01:36:30 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Hi Robert,
&gt; 
&gt; Regarding all the changes related to the refactoring of the
&gt; archiver.bbclass, can you please tell me how can I configure the local.conf
&gt; in order to reflect this case ?
&gt; 
&gt; Thanks,
&gt; IonutC

Hello, here is the full doc, please feel free to let me know if you still have any questions:

# Archive the source and put them to ${DEPLOY_DIR}/sources/.
#
#INHERIT += &quot;archiver&quot;
#
# The tarball for the patched source will be created by default, and you
# can configure the archiver as follow:
#
# Create archive for:
# 1) original (or unpacked) source:
#ARCHIVER_MODE[src] = &quot;original&quot;
# 2) patched source: (default)
#ARCHIVER_MODE[src] = &quot;patched&quot;
# 3) configured source:
#ARCHIVER_MODE[src] = &quot;configured&quot;
#
# 4) the patches between do_unpack and do_patch:
#ARCHIVER_MODE[diff] = &quot;1&quot;
# set the files that you&apos;d like to exclude from the diff:
#ARCHIVER_MODE[diff-exclude] ?= &quot;.pc autom4te.cache patches&quot;
#
# 5) the environment data, similar to &apos;bitbake -e recipe&apos;:
#ARCHIVER_MODE[dumpdata] = &quot;1&quot;
#
# 6) the recipe (.bb and .inc):
#ARCHIVER_MODE[recipe] = &quot;1&quot;
#
# 7) Whether output the .src.rpm package:
#ARCHIVER_MODE[srpm] = &quot;1&quot;
#
# 8) Filter the license, the recipe whose license in
#    COPYLEFT_LICENSE_INCLUDE will be included, and in
#    COPYLEFT_LICENSE_EXCLUDE will be excluded.
#    COPYLEFT_LICENSE_INCLUDE = &apos;GPL* LGPL*&apos;
#    COPYLEFT_LICENSE_EXCLUDE = &apos;CLOSED Proprietary&apos;
# 9) The recipe type that will be archived:
#    COPYLEFT_RECIPE_TYPES = &apos;&lt;type1&gt; &lt;type2&gt; ...&apos;
#    The type can be: target native nativesdk cross crosssdk cross-canadian.
#    Archive all types by default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41804</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2014-03-27 01:37:24 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Hi Robert,
&gt; 
&gt; Regarding all the changes related to the refactoring of the
&gt; archiver.bbclass, can you please tell me how can I configure the local.conf
&gt; in order to reflect this case ?
&gt; 
&gt; Thanks,
&gt; IonutC

The filter part are:

# 8) Filter the license, the recipe whose license in
#    COPYLEFT_LICENSE_INCLUDE will be included, and in
#    COPYLEFT_LICENSE_EXCLUDE will be excluded.
#    COPYLEFT_LICENSE_INCLUDE = &apos;GPL* LGPL*&apos;
#    COPYLEFT_LICENSE_EXCLUDE = &apos;CLOSED Proprietary&apos;
# 9) The recipe type that will be archived:
#    COPYLEFT_RECIPE_TYPES = &apos;&lt;type1&gt; &lt;type2&gt; ...&apos;
#    The type can be: target native nativesdk cross crosssdk cross-canadian.
#    Archive all types by default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41895</commentid>
    <comment_count>5</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2014-03-28 13:09:30 +0000</bug_when>
    <thetext>This has been verified and TC updated.

Cheers,
IonutC</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>