<?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>8781</bug_id>
          
          <creation_ts>2015-12-09 11:45:06 +0000</creation_ts>
          <short_desc>Cannot build lsb images</short_desc>
          <delta_ts>2016-02-05 09:46:14 +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>Toaster</product>
          <component>toaster</component>
          <version>2.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>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mihail Stanciu">stanciux.mihail</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>alexandru.costinx.roman</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Alexandru Roman">alexandru.costinx.roman</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>57141</commentid>
    <comment_count>0</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2015-12-09 11:45:06 +0000</bug_when>
    <thetext>Tested on master: f9384b0669a5d281e0d251060c453a2b228ea878
OS: Ubuntu 15.04

Steps to reproduce:
1. start toaster
2. create new project (local yocto project)
3. change machine to genericx86-64
4. change DISTRO in bitbake variables to &quot;poky-lsb&quot;
(5. remove SDK_MACHINE due to known issue)
6. try to  build core-image-lsb

Expected:
Build starts successfully.

Observed:
Build fails to start with following error in toaster_ui.log:


ERROR: Nothing PROVIDES &apos;core-image-lsb&apos;
ERROR: core-image-lsb was skipped: missing required distro feature &apos;pam&apos; (not in DISTRO_FEATURES)
ERROR: Command execution failed:


Note that I have tried to add DISTRO_FEATURES in the bitbake variables page with pam as value but the build still fails.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57193</commentid>
    <comment_count>1</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2015-12-11 09:30:52 +0000</bug_when>
    <thetext>I tried this on master:7e8ff7b9d793b7be106415c3c80b687977217566

This is what I did:

1. Created a Toaster project with the local release
2. Changed the machine to genericx86-64
3. In the bitbake variables page, I removed the SDKMACHINE variable, set DISTRO to poky-lsb, and added the following variable

variable: DISTRO_FEATURES_append
value: pam 

In the value I made sure to put a space before &apos;pam&apos;.

4. I built core-image-lsb

The build went past the parsing state and got to about 70% before failing with something that seems unrelated to the problem reported. The error shown was

Function failed: sstate_task_postfunc

The task that failed was core-image-lsb do_populate_lic

Mihail: could you try again on your side and see if you can reproduce the initial problem?

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57526</commentid>
    <comment_count>2</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2016-01-05 12:27:44 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Mihail: could you try again on your side and see if you can reproduce the
&gt; initial problem?
&gt; 
&gt; Thanks!

Just tried and it looks like it works. I was not adding the blank space before &quot;pam&quot; in DISTRO_FEATURES_append.

However...shouldn&apos;t this be handled by toaster automatically? I don&apos;t remember having to add the &quot;pam&quot; distro feature when building &quot;by hand&quot; with bitbake.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57531</commentid>
    <comment_count>3</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-01-05 13:32:58 +0000</bug_when>
    <thetext>A build for core-image-lsb started from Toaster and Knotty should have exactly the same outcome. If I start such build from any of the 2 without adding pam to distro features I get this message: 

ERROR: core-image-lsb was skipped: missing required distro feature &apos;pam&apos; (not in DISTRO_FEATURES)

If you do the same, do you get a different outcome for the builds?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57589</commentid>
    <comment_count>4</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2016-01-06 15:34:10 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; A build for core-image-lsb started from Toaster and Knotty should have
&gt; exactly the same outcome. If I start such build from any of the 2 without
&gt; adding pam to distro features I get this message: 
&gt; 
&gt; ERROR: core-image-lsb was skipped: missing required distro feature &apos;pam&apos;
&gt; (not in DISTRO_FEATURES)
&gt; 
&gt; If you do the same, do you get a different outcome for the builds?

Retested on the latest master: 2cd061a29a94fdcdfec86732e6bcbb71c12c4afc

TOASTER BUILD: FAILED
Started toaster, new project, changed DISTRO to poky-lsb, MACHINE to genericx86-64.
Tried to build core-image-lsb, failed with &quot;missing distro feature pam&quot; error.

COMMAND LINE BUILD: WORKS
sourced new environment, changed in local.conf DISTRO to poky-lsb, MACHINE to genericx86-64.
Bitbaked core-image-lsb and build started successfully.

So with identical configuration changes, toaster fails but command line works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57964</commentid>
    <comment_count>5</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-01-19 18:44:27 +0000</bug_when>
    <thetext>There is another issue when building for a machine not provided by the poky layers. Builds fail with this message:

Nothing PROVIDES &apos;virtual/kernel&apos;linux-yocto-tiny PROVIDES virtual/kernel but was skipped: incompatible with machine intel-corei7-64 (not in COMPATIBLE_MACHINE)linux-yocto-rt PROVIDES virtual/kernel but was skipped: incompatible with machine intel-corei7-64 (not in COMPATIBLE_MACHINE)linux-yocto-tiny PROVIDES virtual/kernel but was skipped: incompatible with machine intel-corei7-64 (not in COMPATIBLE_MACHINE)linux-dummy PROVIDES virtual/kernel but was skipped: PREFERRED_PROVIDER_virtual/kernel set to linux-yocto, not linux-dummylinux-yocto PROVIDES virtual/kernel but was skipped: incompatible with machine intel-corei7-64 (not in COMPATIBLE_MACHINE)linux-yocto-rt PROVIDES virtual/kernel but was skipped: incompatible with machine intel-corei7-64 (not in COMPATIBLE_MACHINE)linux-yocto PROVIDES virtual/kernel but was skipped: incompatible with machine intel-corei7-64 (not in COMPATIBLE_MACHINE)linux-yocto-dev PROVIDES virtual/kernel but was skipped: incompatible with machine intel-corei7-64 (not in COMPATIBLE_MACHINE)

In the case above, I was trying to build intel-corei7-64 provided by meta-intel. Brian Avery believes this error might be connected to what&apos;s causing this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57967</commentid>
    <comment_count>6</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-01-19 18:58:46 +0000</bug_when>
    <thetext>Mihail, can you try if this patch fixes the issue: http://lists.openembedded.org/pipermail/bitbake-devel/2016-January/006926.html ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57982</commentid>
    <comment_count>7</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-01-20 11:40:43 +0000</bug_when>
    <thetext>Here is my attempt to reproduce this:

Tested on fresh master 68c7113a746694e25df2ac5d86171ed96b7c2e94

1. Toaster build triggered from Toaster UI.
Changed DISTRO to poky-lsb, MACHINE to genericx86-64

core-image-lsb build failed with:
Failed on 20/01/16 11:39  with  1 error and  1 warning Build time: 00:00:22
 1 error
Nothing PROVIDES &apos;core-image-lsb&apos;core-image-lsb was skipped: missing required distro feature &apos;pam&apos; (not in DISTRO_FEATURES)

2. Toaster build triggered from Toaster UI.
Changed DISTRO to poky-lsb, MACHINE to genericx86-64, set DISTRO_FEATURES_append to &apos; pam&apos;

core-image-lsb build succeeded.

3. Toaster build triggered from command line:
Changed DISTRO to poky-lsb, MACHINE to genericx86-64 in conf/local.conf

core-image-lsb build failed with:
ERROR: Nothing PROVIDES &apos;core-image-lsb&apos;
ERROR: core-image-lsb was skipped: missing required distro feature &apos;pam&apos; (not in DISTRO_FEATURES)

4. Toaster build triggered from command line:
Changed DISTRO to poky-lsb, MACHINE to genericx86-64, DISTRO_FEATURES_append to &apos; pam&apos;  in conf/local.conf

core-image-lsb build succeeded.

5. bitbake command line build with toaster stopped
Changed DISTRO to poky-lsb, MACHINE to genericx86-64 in conf/local.conf

build succeeded


Summary: Toaster UI and command line builds are identical, but differ from bitbake builds</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57983</commentid>
    <comment_count>8</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-01-20 11:50:19 +0000</bug_when>
    <thetext>Pam is in DISTRO_FEATURES for local bitbake build without toaster running:

$ bitbake -e core-image-lsb | grep &apos;^DISTRO_FEATURES=.* pam&apos;
DISTRO_FEATURES=&quot;alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11 ipv4 ipv6 libc-backtrace libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-charsets libc-crypt                                        libc-crypt-ufc libc-db-aliases libc-envz libc-fcvt libc-fmtmsg libc-fstab libc-ftraverse                                       libc-getlogin libc-idn libc-inet-anl libc-libm libc-locales libc-locale-code                                   libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn libc-streams libc-sunrpc                                     libc-utmp libc-utmpx libc-wordexp libc-posix-clang-wchar libc-posix-regexp libc-posix-regexp-glibc                                     libc-posix-wchar-io largefile opengl ptest multiarch wayland pam largefile opengl pulseaudio sysvinit bluez5&quot;

pam is not there if DISTRO=&quot;poky&quot; in local.config:
$ bitbake -e core-image-lsb | grep &apos;^DISTRO_FEATURES=.* pam&apos;
ERROR: Nothing PROVIDES &apos;core-image-lsb&apos;
ERROR: core-image-lsb was skipped: missing required distro feature &apos;pam&apos; (not in DISTRO_FEATURES)

Conclusion: Bitbake ignores toaster variables set in conf/toaster.conf
Reason has to be investigated and fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57987</commentid>
    <comment_count>9</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-01-20 12:23:31 +0000</bug_when>
    <thetext>I&apos;ve found the reason and hopefully fixed it:
https://lists.yoctoproject.org/pipermail/toaster/2016-January/003714.html

Please, review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58147</commentid>
    <comment_count>10</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-01-22 16:16:26 +0000</bug_when>
    <thetext>The fix has been accepted to bitbake master: http://cgit.openembedded.org/bitbake/commit/?id=76c9871740ef42ac35fdfdcb89a68478cca370cd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58626</commentid>
    <comment_count>11</comment_count>
    <who name="Alexandru Roman">alexandru.costinx.roman</who>
    <bug_when>2016-02-05 09:46:14 +0000</bug_when>
    <thetext>Verified on master: a4a5d1f3232821ea2695ba5e48ddfeb30ee7ea8d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>