Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 843437 - app-emulation/virtualbox-6.1.32-r1[-pam]: build fails with missing include security/pam_appl.h
Summary: app-emulation/virtualbox-6.1.32-r1[-pam]: build fails with missing include se...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-05-09 15:26 UTC by François-Xavier Carton
Modified: 2022-06-29 06:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log.gz,27.83 KB, application/gzip)
2022-05-09 15:29 UTC, François-Xavier Carton
Details
applied patch to vbox (fix_no_pam.patch,647 bytes, patch)
2022-05-09 15:32 UTC, François-Xavier Carton
Details | Diff
patch applied to ebuild so that CXXFLAGS are honored (ebuild.patch,554 bytes, patch)
2022-05-09 15:35 UTC, François-Xavier Carton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description François-Xavier Carton 2022-05-09 15:26:33 UTC
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
Comment 1 François-Xavier Carton 2022-05-09 15:29:36 UTC
Created attachment 777782 [details]
build.log
Comment 2 François-Xavier Carton 2022-05-09 15:32:18 UTC
Created attachment 777785 [details, diff]
applied patch to vbox

see https://www.virtualbox.org/changeset/94406/vbox
Comment 3 François-Xavier Carton 2022-05-09 15:35:06 UTC
Created attachment 777788 [details, diff]
patch applied to ebuild so that CXXFLAGS are honored
Comment 4 François-Xavier Carton 2022-05-09 15:38:45 UTC
Also I should add that this happened while upgrading the package. The previous version I had, 6.1.28-r1, was fine.