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.
poky version: master commit 67864ca79da08df752487a3a4e1a975546da123d.
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.
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
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1cf75b5fd35026f90fb606897d4cb902ff0d960c
See prior comment for commit
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).
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.
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=99d33f27781a7780ae3ec55ece7e6160c33f1ece
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.
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