<?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>8923</bug_id>
          
          <creation_ts>2016-01-14 08:51:32 +0000</creation_ts>
          <short_desc>PAM is not enforced as a needed distro feature for any image</short_desc>
          <delta_ts>2016-02-05 10:53:59 +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>2.1</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="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</reporter>
          <assigned_to name="Joshua Lock">joshuagloe</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</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>57803</commentid>
    <comment_count>0</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-01-14 08:51:32 +0000</bug_when>
    <thetext>PAM is not enforced as a needed distro feature for core-image-minimal.


&quot;WARNING: Building libpam but &apos;pam&apos; isn&apos;t in DISTRO_FEATURES, PAM won&apos;t work correctly&quot; instead of an error.


Examples:
 bitbake core-image-minimal
Parsing recipes: 100% |##########################################################################################################################################################| Time: 00:00:26
Parsing of 866 .bb files complete (0 cached, 866 parsed). 1295 targets, 43 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.28.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-14.04&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.0+snapshot-20160114&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;master:da43a56d3533db37592a1698777af08f51a5800f&quot;

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Building libpam but &apos;pam&apos; isn&apos;t in DISTRO_FEATURES, PAM won&apos;t work correctly
Currently 1 running tasks (1374 of 2169):
0: gcc-cross-initial-i586-5.3.0-r0 do_compile (pid 27321)

............
 
Build Configuration:
BB_VERSION        = &quot;1.28.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-14.04&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.0+snapshot-20160114&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;master:da43a56d3533db37592a1698777af08f51a5800f&quot;

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Building libpam but &apos;pam&apos; isn&apos;t in DISTRO_FEATURES, PAM won&apos;t work correctly
Currently 3 running tasks (1350 of 2169):
0: gcc-source-5.3.0-5.3.0-r0 do_unpack (pid 23058)
1: linux-yocto-4.1.15+gitAUTOINC+46bb64d605_788dfc9859-r0 do_unpack (pid 26803)
2: binutils-cross-i586-2.25.1-r0 do_configure (pid 8364)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57804</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-01-14 08:57:36 +0000</bug_when>
    <thetext>The bug here is not that pam isn&apos;t enforced as a distro feature, but that something is including pam as a DEPENDS (either implicit or explicit) without first checking whether pam is in DISTRO_FEATURES.

I&apos;ll take a look and see if I can figure out what component that is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57805</commentid>
    <comment_count>2</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-01-14 08:58:18 +0000</bug_when>
    <thetext>Adding exact steps: 
1) git clone a fresh master repo
2) source environment 
3) (optionally - set SSTATE)
4) bitbake core-image-minimal 

- Results: at some time, 
&quot;WARNING: Building libpam but &apos;pam&apos; isn&apos;t in DISTRO_FEATURES, PAM won&apos;t work correctly&quot; is displayed; this is not immediate (but is before compiling gcc) 

- Expected: image build without this warning</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57828</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-01-14 16:28:40 +0000</bug_when>
    <thetext>There&apos;s a patch to fix this issue from Ioan-Adrian Ratiu &lt;adrian.ratiu@ni.com&gt; queued in the master-next branch:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=master-next&amp;id=c1720b71bf194f6dcae44672752039f0d779d40f

Original submission is:

http://lists.openembedded.org/pipermail/openembedded-core/2016-January/115301.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58371</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-02-01 08:03:07 +0000</bug_when>
    <thetext>This fix was merged: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=764c9279eaebe2774ec344f722dfec9911b45691</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58631</commentid>
    <comment_count>5</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-02-05 10:53:59 +0000</bug_when>
    <thetext>Verified on master: 60100884d4d6a20aaf499d7afcf7fc91faabd22e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>