sys-libs/libcap-2.* with USE="pam" doesnt depend on pam and fails to build while searching for pam headers like so: pam_cap.c:19:34: error: security/pam_modules.h: No such file or directory pam_cap.c:20:34: error: security/_pam_macros.h: No such file or directory Reproducible: Always Steps to Reproduce: emerge libcap-2.* with USE="pam" while you dont have pam installed Actual Results: pam_cap.c:19:34: error: security/pam_modules.h: No such file or directory pam_cap.c:20:34: error: security/_pam_macros.h: No such file or directory * ERROR: sys-libs/libcap-2.10 failed.
*** Bug 231188 has been marked as a duplicate of this bug. ***
fixed in libcap-2.11