<?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>6929</bug_id>
          
          <creation_ts>2014-11-04 13:16:19 +0000</creation_ts>
          <short_desc>Enhance archiver to allow filter on recipe name</short_desc>
          <delta_ts>2015-09-22 11:37:19 +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.7</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.9 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matthias Bilger">matthias</reporter>
          <assigned_to name="Mariano Lopez">mariano.lopez</assigned_to>
          <cc>anibal.limon</cc>
    
    <cc>bluelightning</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
    
    <cc>mariano.lopez</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Daniel Istrate">daniel.alexandrux.istrate</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>46744</commentid>
    <comment_count>0</comment_count>
    <who name="Matthias Bilger">matthias</who>
    <bug_when>2014-11-04 13:16:19 +0000</bug_when>
    <thetext>The archiver should offer the possibility to filter on the recipe. At the moment only the license filter is available.

Use-case:

A build server builds the image, providing rpm packages. A user can download the vmlinux image (with debug symbols) and then needs access to the source which was compiled to use a external debugger such as TRACE32 or similar hardware.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46798</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-11-06 15:43:22 +0000</bug_when>
    <thetext>For reference would require a simple extension to meta/classes/copyleft_filter.bbclass.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51155</commentid>
    <comment_count>2</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-05-19 17:48:49 +0000</bug_when>
    <thetext>The implementation will be in copyleft_filter.bbclass as advised by Paul, it won&apos;t take a lot of lines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51310</commentid>
    <comment_count>3</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-05-27 16:30:11 +0000</bug_when>
    <thetext>Patch sent to the mailing list</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51830</commentid>
    <comment_count>4</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-06-19 17:05:02 +0000</bug_when>
    <thetext>Patch has been ACK by Paul Eggleton but hasn&apos;t been applied to master. Moving to 1.9M2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51887</commentid>
    <comment_count>5</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-06-23 20:03:40 +0000</bug_when>
    <thetext>This bug is solved with commit:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/classes/copyleft_filter.bbclass?id=ae9102bda398359736ae0d46db388af51141d361</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54388</commentid>
    <comment_count>6</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2015-09-21 15:27:35 +0000</bug_when>
    <thetext>Verify on master: 7b86c771c80d0759c2ca0e57c46c4c966f89c49e


Steps to verify:

1. Add to local.conf
MACHINE = &quot;genericx86-64&quot;
# Archiver
INHERIT += &quot;archiver&quot;
ARCHIVER_MODE[src] = &quot;original&quot;
COPYLEFT_PN_INCLUDE = &quot;busybox&quot;
COPYLEFT_PN_EXCLUDE = &quot;zlib&quot;

2. Build core-image-minimal
bitbake core-image-minimal

3. Check that &apos;zlib&apos; is excluded and &apos;busybox&apos; is included:
in tmp/deploy/sources/x86_64-poky-linux/

Additional test:
1. Clear the $BUILDDIR/tmp dir
2. Invert COPYLEFT_PN_INCLUDE AND COPYLEFT_PN_EXCLUDE
3. Build core-image-minimal
4. Check that &apos;zlib&apos; is included and &apos;busybox&apos; is excluded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54432</commentid>
    <comment_count>7</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2015-09-22 11:37:19 +0000</bug_when>
    <thetext>Added a new oe-selftest testcase for this.
Patch sent: http://lists.openembedded.org/pipermail/openembedded-core/2015-September/110792.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>