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.
target for 1.0 M1
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.
Following is a simple script to scan gplv3 code in target, supposing to use it in future testing. ################## #!/bin/sh temp=`mktemp` rpm -qa > $temp ret=0 for i in `cat $temp` do rpm -qi $i | grep License | grep -i gplv3 > /dev/null 2>&1 if [ $? -eq 0 ]; then license=`rpm -qi $i | grep License | awk -F"License:" '{print $2}'` echo "package $i has inconsistent license: $license" ret=1 fi done rm -rf $temp exit $ret ###################
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.
Verify the bug.