<?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>712</bug_id>
          
          <creation_ts>2011-02-12 07:53:12 +0000</creation_ts>
          <short_desc>Fail to build non-GPLv3 image</short_desc>
          <delta_ts>2011-03-24 05:38:57 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.0</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></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>ke.yu</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>kunwei.tian</cc>
    
    <cc>nitin.a.kamble</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</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>11721</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-02-12 07:53:12 +0000</bug_when>
    <thetext>Testing Env:    
Host: Ubuntu 10.04 LTS
Kernel: 2.6.32-21-generic-pae
commit information: 66e6a9798e5462a6cd8dce22a400b81f1dcae88b

To build a non-GPLv3 image, we should add following line in local.conf: INCOMPATIBLE_LICENSE = &quot;GPLv3&quot;. Then it should ignore GPLv3 package. But when I run it against latest tree, it fails to build the image by reporting NoProvider.

I guess there are two problems with variable &quot;INCOMPATIBLE_LICENSE&quot;:
a) Poky build just skip these GPLv3 package instead of using a GPLv2 version for these package.
b) Native and cross compile packages are also checked but I think we should not check them.

Detail error is as below:
########
jxu49@vt-nhm4:~/osel/poky-gpl/build$ bitbake poky-image-sato
NOTE: Psyco JIT Compiler (http://psyco.sf.net) not available. Install it to increase performance.
Loading cache: 100% |############################################################################################################################################| ETA:  00:00:00
Loaded 901 entries from dependency cache.
NOTE: SKIPPING which because it&apos;s GPLv3+
NOTE: SKIPPING gzip because it&apos;s GPLv3+                                                                                                                          | ETA:  --:--:--
NOTE: SKIPPING bison because it&apos;s GPLv3
NOTE: SKIPPING readline because it&apos;s GPLv3+
NOTE: SKIPPING sed because it&apos;s GPLv3+
NOTE: SKIPPING gcc because it&apos;s GPLv3
NOTE: SKIPPING autoconf because it&apos;s GPLv2|GPLv3
NOTE: SKIPPING gcc-crosssdk-intermediate because it&apos;s GPLv3
NOTE: SKIPPING readline-nativesdk because it&apos;s GPLv3+
NOTE: SKIPPING mtools because it&apos;s GPLv3
NOTE: SKIPPING gperf because it&apos;s GPLv3+
NOTE: SKIPPING gcc-cross-canadian-i586 because it&apos;s GCC RUNTIME LIBRARY EXCEPTION &amp; GPLv2 &amp; GPLv3 &amp; LGPLv2.1 &amp; LGPLv3
NOTE: SKIPPING mpfr because it&apos;s GPLv3&amp;LGPLv3                                                                                                                    | ETA:  00:00:06
NOTE: SKIPPING gcc-crosssdk because it&apos;s GCC RUNTIME LIBRARY EXCEPTION &amp; GPLv2 &amp; GPLv3 &amp; LGPLv2.1 &amp; LGPLv3                                                       | ETA:  00:00:02
NOTE: SKIPPING binutils-cross-canadian-i586 because it&apos;s GPLv3                                                                                                   | ETA:  00:00:02
NOTE: SKIPPING qt4-tools-nativesdk because it&apos;s LGPLv2.1 | GPLv3
NOTE: SKIPPING mpfr-nativesdk because it&apos;s GPLv3&amp;LGPLv3                                                                                                          | ETA:  00:00:01
NOTE: SKIPPING gcc because it&apos;s GCC RUNTIME LIBRARY EXCEPTION &amp; GPLv2 &amp; GPLv3 &amp; LGPLv2.1 &amp; LGPLv3
NOTE: SKIPPING gcc-runtime because it&apos;s GPLv3
NOTE: SKIPPING gawk because it&apos;s GPLv3
NOTE: SKIPPING qt4-x11-free because it&apos;s LGPLv2.1 | GPLv3
NOTE: SKIPPING gcc-crosssdk-initial because it&apos;s GCC RUNTIME LIBRARY EXCEPTION &amp; GPLv2 &amp; GPLv3 &amp; LGPLv2.1 &amp; LGPLv3
NOTE: SKIPPING gcc-runtime-nativesdk because it&apos;s GPLv3
NOTE: SKIPPING gdb-cross-canadian-i586 because it&apos;s GPLv3+
NOTE: SKIPPING qt4-x11-free because it&apos;s LGPLv2.1 | GPLv3
NOTE: SKIPPING gdb because it&apos;s GPLv2&amp;GPLv3&amp;LGPLv2&amp;LGPLv3
NOTE: SKIPPING contacts because it&apos;s GPLv2 &amp; GPLv2+ &amp; GPLv3+
NOTE: SKIPPING tar because it&apos;s GPLv3
NOTE: SKIPPING gnome-icon-theme because it&apos;s LGPLv3 | BY-SAv3
NOTE: SKIPPING m4 because it&apos;s GPLv3
NOTE: SKIPPING binutils-crosssdk because it&apos;s GPLv3
NOTE: SKIPPING lttng-control because it&apos;s GPLv3
NOTE: SKIPPING findutils because it&apos;s GPLv3+
NOTE: SKIPPING xz because it&apos;s GPLv2+ &amp; GPLv3+ &amp; LGPLv2.1+
NOTE: SKIPPING gcc-runtime because it&apos;s GCC RUNTIME LIBRARY EXCEPTION &amp; GPLv2 &amp; GPLv3 &amp; LGPLv2.1 &amp; LGPLv3
NOTE: SKIPPING ubootchart because it&apos;s GPLv3
NOTE: SKIPPING ed because it&apos;s GPLv3+
NOTE: SKIPPING gcc-runtime-nativesdk because it&apos;s GCC RUNTIME LIBRARY EXCEPTION &amp; GPLv2 &amp; GPLv3 &amp; LGPLv2.1 &amp; LGPLv3
NOTE: SKIPPING binutils because it&apos;s GPLv3
NOTE: SKIPPING qt4-embedded because it&apos;s LGPLv2.1 | GPLv3
NOTE: SKIPPING libgcc because it&apos;s GCC RUNTIME LIBRARY EXCEPTION &amp; GPLv2 &amp; GPLv3 &amp; LGPLv2.1 &amp; LGPLv3
NOTE: SKIPPING libgcc-nativesdk because it&apos;s GCC RUNTIME LIBRARY EXCEPTION &amp; GPLv2 &amp; GPLv3 &amp; LGPLv2.1 &amp; LGPLv3
NOTE: SKIPPING talloc because it&apos;s LGPLv3+
NOTE: SKIPPING coreutils because it&apos;s GPLv3+
NOTE: SKIPPING parted because it&apos;s GPLv3+
NOTE: SKIPPING diffutils because it&apos;s GPLv3+
NOTE: SKIPPING gettext because it&apos;s GPLv3
NOTE: SKIPPING gcc-cross-canadian-i586 because it&apos;s GPLv3
NOTE: SKIPPING gmp because it&apos;s LGPLv3&amp;GPLv3
NOTE: SKIPPING gettext-nativesdk because it&apos;s GPLv3#######################                                                                                       | ETA:  00:00:01
NOTE: SKIPPING gst-ffmpeg because it&apos;s GPLv2+ &amp; LGPLv2+ &amp; ( (GPLv2+ &amp; LGPLv2.1+) | (GPLv3+ &amp; LGPLv3+) )                                                          | ETA:  00:00:00
NOTE: SKIPPING grep because it&apos;s GPLv3
NOTE: SKIPPING gmp-nativesdk because it&apos;s LGPLv3&amp;GPLv3###################################################################                                        | ETA:  00:00:00
NOTE: SKIPPING gcc-crosssdk-initial because it&apos;s GPLv3
NOTE: SKIPPING patch because it&apos;s GPLv3
NOTE: SKIPPING msmtp because it&apos;s GPLv3
NOTE: SKIPPING contacts because it&apos;s GPLv2 &amp; GPLv2+ &amp; GPLv3+
NOTE: SKIPPING rsync because it&apos;s GPLv3+
NOTE: SKIPPING cpio because it&apos;s GPLv3
NOTE: SKIPPING gcc-crosssdk because it&apos;s GPLv3#################################################################################                                  | ETA:  00:00:00
NOTE: SKIPPING bash because it&apos;s GPLv3+
NOTE: SKIPPING binutils because it&apos;s GPLv3
NOTE: SKIPPING qt4-tools-nativesdk because it&apos;s LGPLv2.1 | GPLv3
NOTE: SKIPPING qt4-embedded because it&apos;s LGPLv2.1 | GPLv3
NOTE: SKIPPING gcc-crosssdk-intermediate because it&apos;s GCC RUNTIME LIBRARY EXCEPTION &amp; GPLv2 &amp; GPLv3 &amp; LGPLv2.1 &amp; LGPLv3
Parsing recipes: 100% |##########################################################################################################################################| Time: 00:00:00
Parsing of 797 .bb files complete (706 cached, 91 parsed). 1000 targets, 99 skipped, 0 masked, 0 errors.

OE Build Configuration:
BB_VERSION        = &quot;1.11.0&quot;
METADATA_BRANCH   = &quot;(nobranch)&quot;
METADATA_REVISION = &quot;66e6a9798e5462a6cd8dce22a400b81f1dcae88b&quot;
TARGET_ARCH       = &quot;i586&quot;
TARGET_OS         = &quot;linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;0.9+snapshot-20110212&quot;
TARGET_FPU        = &quot;&quot;

NOTE: Resolving any missing task queue dependencies
NOTE: Runtime target &apos;task-poky-boot&apos; is unbuildable, removing...
Missing or unbuildable dependency chain was: [&apos;task-poky-boot&apos;, &apos;virtual/i586-poky-linux-compilerlibs&apos;]
ERROR: Required build target &apos;poky-image-sato&apos; has no buildable providers.
Missing or unbuildable dependency chain was: [&apos;poky-image-sato&apos;, &apos;task-poky-boot&apos;, &apos;virtual/i586-poky-linux-compilerlibs&apos;]
ERROR: Nothing PROVIDES &apos;virtual/i586-poky-linux-compilerlibs&apos;
ERROR: Command execution failed: Traceback (most recent call last):
  File &quot;/home/jxu49/osel/poky-gpl/bitbake/lib/bb/command.py&quot;, line 102, in runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File &quot;/home/jxu49/osel/poky-gpl/bitbake/lib/bb/command.py&quot;, line 200, in buildTargets
    command.cooker.buildTargets(pkgs_to_build, task)
  File &quot;/home/jxu49/osel/poky-gpl/bitbake/lib/bb/cooker.py&quot;, line 729, in buildTargets
    taskdata.add_unresolved(localdata, self.status)
  File &quot;/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py&quot;, line 534, in add_unresolved
    self.remove_buildtarget(targetid)
  File &quot;/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py&quot;, line 491, in remove_buildtarget
    self.fail_fnid(fnid, missing_list)
  File &quot;/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py&quot;, line 476, in fail_fnid
    self.remove_runtarget(target, missing_list)
  File &quot;/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py&quot;, line 517, in remove_runtarget
    self.fail_fnid(fnid, missing_list)
  File &quot;/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py&quot;, line 471, in fail_fnid
    self.remove_buildtarget(target, missing_list)
  File &quot;/home/jxu49/osel/poky-gpl/bitbake/lib/bb/taskdata.py&quot;, line 501, in remove_buildtarget
    raise bb.providers.NoProvider(target)
NoProvider: poky-image-sato
########</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12369</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-03-08 13:35:53 +0000</bug_when>
    <thetext>Build will work for poky-image-minimal and should work for poky-image-basic.  There are 3 recipes that need to be gplv2, m4 bison, util-linux.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12766</commentid>
    <comment_count>2</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2011-03-17 07:34:04 +0000</bug_when>
    <thetext>I have already sent pull requests for GPLv2 versions of m4 &amp; bison recipes. I will check the status of util-linux recipe.

Thanks,
Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12769</commentid>
    <comment_count>3</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2011-03-17 11:06:18 +0000</bug_when>
    <thetext>coreutils was failing while building poky-image-basic. Have a fix for it now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12837</commentid>
    <comment_count>4</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2011-03-18 10:45:40 +0000</bug_when>
    <thetext>util-linux fix also has sent out to the mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12841</commentid>
    <comment_count>5</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2011-03-18 16:34:11 +0000</bug_when>
    <thetext>All the commits are in the master branch now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12842</commentid>
    <comment_count>6</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2011-03-18 16:36:59 +0000</bug_when>
    <thetext>Saul&apos;s &amp; Nitin&apos;s commites are gone in the master branch, and this bug can be closed now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12957</commentid>
    <comment_count>7</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-03-24 05:38:57 +0000</bug_when>
    <thetext>With gold build, I could build non-GPLv3 for both poky-image-minimal and poky-image-basic now. So verify the bug as fixed now.

branch: bernard/poky master tree
meta-intel commit: 83384c3e83d69245dfe19e36b2a64c8973ad8462
poky commit: 82af8b9fb6d6d1439943fd15b8a75c0e663e4a45</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>