Bug 8923 - PAM is not enforced as a needed distro feature for any image
Summary: PAM is not enforced as a needed distro feature for any image
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.1
Assignee: Joshua Lock
QA Contact: Bogdan Alexandru Voiculescu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-01-14 08:51 UTC by Bogdan Alexandru Voiculescu
Modified: 2016-02-05 10:53 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bogdan Alexandru Voiculescu 2016-01-14 08:51:32 UTC
PAM is not enforced as a needed distro feature for core-image-minimal.


"WARNING: Building libpam but 'pam' isn't in DISTRO_FEATURES, PAM won't work correctly" 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        = "1.28.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "2.0+snapshot-20160114"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta
meta-yocto
meta-yocto-bsp    = "master:da43a56d3533db37592a1698777af08f51a5800f"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Building libpam but 'pam' isn't in DISTRO_FEATURES, PAM won'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        = "1.28.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "2.0+snapshot-20160114"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta
meta-yocto
meta-yocto-bsp    = "master:da43a56d3533db37592a1698777af08f51a5800f"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Building libpam but 'pam' isn't in DISTRO_FEATURES, PAM won'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)
Comment 1 Joshua Lock 2016-01-14 08:57:36 UTC
The bug here is not that pam isn'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'll take a look and see if I can figure out what component that is.
Comment 2 Bogdan Alexandru Voiculescu 2016-01-14 08:58:18 UTC
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, 
"WARNING: Building libpam but 'pam' isn't in DISTRO_FEATURES, PAM won't work correctly" is displayed; this is not immediate (but is before compiling gcc) 

- Expected: image build without this warning
Comment 3 Joshua Lock 2016-01-14 16:28:40 UTC
There's a patch to fix this issue from Ioan-Adrian Ratiu <adrian.ratiu@ni.com> queued in the master-next branch:

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

Original submission is:

http://lists.openembedded.org/pipermail/openembedded-core/2016-January/115301.html
Comment 5 Bogdan Alexandru Voiculescu 2016-02-05 10:53:59 UTC
Verified on master: 60100884d4d6a20aaf499d7afcf7fc91faabd22e