<?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>358</bug_id>
          
          <creation_ts>2010-09-28 14:57:29 +0000</creation_ts>
          <short_desc>Add a test which scans a non-v3 build for any v3 code</short_desc>
          <delta_ts>2011-02-28 10:59:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Test Plans/Suite</product>
          <component>test-plans/suite</component>
          <version>unspecified</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>normal</bug_severity>
          <target_milestone>1.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dave Stewart">david.c.stewart</reporter>
          <assigned_to name="Jiajun Xu">jiajun.xu</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>julie.n.fleischer</cc>
    
    <cc>sgw</cc>
    
    <cc>yp.test.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9986</commentid>
    <comment_count>0</comment_count>
    <who name="Dave Stewart">david.c.stewart</who>
    <bug_when>2010-09-28 14:57:29 +0000</bug_when>
    <thetext>You can make a version of Linux with no GPL v3 code in it. Would like a tool which you can run against a non-v3 build and ensure that there is no v3 licensed code in it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9988</commentid>
    <comment_count>1</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2010-09-28 15:30:19 +0000</bug_when>
    <thetext>target for 1.0 M1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11722</commentid>
    <comment_count>2</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-02-12 07:55:10 +0000</bug_when>
    <thetext>After talking with Saul, we came to the conclusion to use rpm command to check the license version for all the packages in image. I will create a script to automate such check.

Meanwhile, currently the non-v3 build is blocked by the bug 712.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11827</commentid>
    <comment_count>3</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-02-16 21:47:44 +0000</bug_when>
    <thetext>Following is a simple script to scan gplv3 code in target, supposing to use it in future testing.

##################
#!/bin/sh

temp=`mktemp`
rpm -qa &gt; $temp
ret=0

for i in `cat $temp`
do
        rpm -qi $i | grep License | grep -i gplv3 &gt; /dev/null 2&gt;&amp;1
        if [ $? -eq 0 ]; then
                license=`rpm -qi $i | grep License | awk -F&quot;License:&quot; &apos;{print $2}&apos;`
                echo &quot;package $i has inconsistent license: $license&quot;
                ret=1
        fi
done

rm -rf $temp
exit $ret
###################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12096</commentid>
    <comment_count>4</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-02-24 17:44:20 +0000</bug_when>
    <thetext>I think we could mark the bug as fixed now. I include a test case for non-v3 code check in v1.0 M4 test plan. And the test script I pasted as above could check the v3 packages in image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12097</commentid>
    <comment_count>5</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-02-24 17:44:34 +0000</bug_when>
    <thetext>Verify the bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>