Bug 4949 - core-image-basic outputs that PAM might not work correctly
Summary: core-image-basic outputs that PAM might not work correctly
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: configuration (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Low normal
Target Milestone: 1.6 M5
Assignee: Cristian Iorga
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-07-29 14:38 UTC by Cristian Iorga
Modified: 2014-03-31 07:19 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
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 Cristian Iorga 2013-07-29 14:38:45 UTC
Test case:
bitbake core-image-basic

Warning:
Building libpam but 'pam' isn't in DISTRO_FEATURES, PAM won't work correctly

Output:
ubik@sentry:/mnt/Yo/yoctoproject/build$ MACHINE=qemumips bitbake core-image-basic
Parsing recipes: 100% |######################################################################################################################################################################| ETA:  00:00:00
Parsing of 848 .bb files complete (0 cached, 848 parsed). 1175 targets, 53 skipped, 0 masked, 0 errors.

Build Configuration:
BB_VERSION        = "1.19.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-13.04"
TARGET_SYS        = "mips-poky-linux"
MACHINE           = "qemumips"
DISTRO            = "poky"
DISTRO_VERSION    = "1.4+snapshot-20130729"
TUNE_FEATURES     = "o32 bigendian fpu-hard mips32"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    
meta-hob          = "PUs:a67adcec5e8a6e900f91a46e0cbfe0ca20358305"

NOTE: Resolving any missing task queue dependencies
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
NOTE: Tasks Summary: Attempted 3134 tasks of which 2510 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.
Comment 1 Cristian Iorga 2013-07-29 14:39:36 UTC
poky version: master commit 67864ca79da08df752487a3a4e1a975546da123d.
Comment 2 Cristian Iorga 2013-07-29 14:53:57 UTC
On a initial investigation seems that:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b5c49e6032a05f1c452010010f97b81d9100196f is related.
Reverting this patch makes the issue go away.
I might be wrong.
Comment 3 Saul Wold 2013-08-01 06:29:14 UTC
Something in core-image-basic is requiring PAM when pam is disabled, pam is only enabled for LSB based builds, so using bitbake -g -u depexp might show what is depending on pam and this should be setup to use PACKAGECONFIG
Comment 5 Saul Wold 2013-08-07 22:26:25 UTC
See prior comment for commit
Comment 6 Razvan Ionescu 2013-10-08 09:44:26 UTC
I can reproduce the bug using: poky: 1cf75b5fd35026f90fb606897d4cb902ff0d960c .
Also, the command bitbake -g -u depexp returns an error stating: NameError: global name 'logger' is not defined

It is hapenning also on a newer poky, such as: dora:a02280f99f05b1c21de2a78de9222a2f62a0dabc (1.5 M5 RC6).
Comment 7 Saul Wold 2013-10-15 22:22:57 UTC
I see what happened, I already had a libpam built so it did not warn me on 
subsequent runs.  If I cleansstate between runs I found the issue again, turns 
out libuser has a hard depenedency on libpam, so I have a fix for that now.
Comment 9 Cristian Iorga 2014-03-24 09:20:19 UTC
Reopened the issue, issue is still reproducible while building a core-image-lsb:

bitbake core-image-lsb
Loading cache: 100% |########################################################################################################################################################################| ETA:  00:00:00
Loaded 1216 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.21.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-13.10"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "qemux86-64"
DISTRO            = "poky"
DISTRO_VERSION    = "1.5+snapshot-20140324"
TUNE_FEATURES     = "m64 core2"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "YB5795:24979a1f7ecc155cf36f61ffb2d2a32c2fb64734"

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

Present in: 
poky master HEAD: commit 24979a1f7ecc155cf36f61ffb2d2a32c2fb64734.
Comment 10 Cristian Iorga 2014-03-31 07:19:25 UTC
My re-open of the issue was a mistake, because building a proper core-image-lsb requires setting accordingly the distro, which in case of core-image-lsb is:
DISTRO = "poky-lsb"
I didn't do that config, as such I received the proper warning:
"WARNING: Building libpam but 'pam' isn't in DISTRO_FEATURES, PAM won't work correctly".
Which is correct.

Regards,
Cristian