Building virtualbox[-pam] without PAM installed fails because of <security/pam_appl.h> missing. I was able to build the package by: 1) applying fix_no_pam.patch (which I'll attach) which is an adaptation for that version of vbox from upstream patch https://www.virtualbox.org/changeset/94406/vbox 2) adding -DIPRT_WITHOUT_PAM=1 to CXXFLAGS with package.env, because I wasn't able to figure out how to set it with the build system 3) add the following to the ebuild, right before the configure line at the end of src_configure, so that CXXFLAGS are honored (right now they are not or filtered): cat >> LocalConfig.kmk <<EOF || die CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} EOF Reproducible: Always
Created attachment 777782 [details] build.log
Created attachment 777785 [details, diff] applied patch to vbox see https://www.virtualbox.org/changeset/94406/vbox
Created attachment 777788 [details, diff] patch applied to ebuild so that CXXFLAGS are honored
Also I should add that this happened while upgrading the package. The previous version I had, 6.1.28-r1, was fine.