Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 699192

Summary: pam-1.2.1-r2 and pam-1.3.0-r2 install headers in wrong location in Prefix
Product: Gentoo/Alt Reporter: Steven Trogdon <strogdon>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Steven Trogdon 2019-11-02 23:57:38 UTC
pam-1.2.1-r2 and pam-1.3.0-r2 install headers under $PREFIX/usr/include instead of under $PREFIX/usr/include/security

pam-1.2.1-r2:
ls /storage/strogdon/gentoo-rap/var/tmp/portage/sys-libs/pam-1.2.1-r2/image/storage/strogdon/gentoo-rap/usr/include/
_pam_compat.h  _pam_macros.h  _pam_types.h  pam_appl.h  pam_client.h  pam_ext.h  pam_filter.h  pam_misc.h  pam_modules.h  pam_modutil.h

pam-1.3.0-r2:
ls /storage/strogdon/gentoo-rap/var/tmp/portage/sys-libs/pam-1.3.0-r2/image/storage/strogdon/gentoo-rap/usr/include/
_pam_compat.h  _pam_macros.h  _pam_types.h  pam_appl.h  pam_client.h  pam_ext.h  pam_filter.h  pam_misc.h  pam_modules.h  pam_modutil.h

This ultimately causes openrc to fail to install

start-stop-daemon.c:52:10: fatal error: security/pam_appl.h: No such file or directory
   52 | #include <security/pam_appl.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [../../mk/prog.mk:35: start-stop-daemon.o] Error 1

supervise-daemon.c:54:10: fatal error: security/pam_appl.h: No such file or directory
   54 | #include <security/pam_appl.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [../../mk/prog.mk:35: supervise-daemon.o] Error 1
Comment 1 Steven Trogdon 2019-11-03 00:58:35 UTC
sys-libs/libcap-[2.26-r2 | 2.27] also fail to build for the reason - headers not installed under $PREFIX/include/security
Comment 2 Fabian Groffen gentoo-dev 2021-01-18 19:40:37 UTC
we shouldn't try to install pam in Prefix, we should find the pkgs that depend on it and see why they need it