If one activates the "static"-flag an error occurs, beacause one cannot emerge openssh with "static"- and "pie"-flag enabled simultaneously. Unfortunately the "pie"-flag cannot be disabled. This is (IMO), because the ebuild has an IUSE=+pie and not an IUSE=pie entry. (As a result, an "emerge -av openssh" shows the (pie)-flag with round brackets around the "pie".) Reproducible: Always Steps to Reproduce: # "USE=static" emerge -av openssh. --> emerge explains that one should disable the pie-flag. # "USE=static -pie" emerge -av openssh. --> emerge explains again that one should disable the pie-flag. Actual Results: Cannot emerge openssh with static-flag . Expected Results: Emerge openssh with static-flag enabled. I need openssh with "static"-flag for my Initramfs, because lvm2 and cryptsetup (both with USE="static static-libs") pull it in.
(In reply to Gerold Schellstede from comment #0) > If one activates the "static"-flag an error occurs, beacause one cannot > emerge openssh with "static"- and "pie"-flag enabled simultaneously. > > Unfortunately the "pie"-flag cannot be disabled. This is (IMO), because the > ebuild has an IUSE=+pie and not an IUSE=pie entry. (As a result, an "emerge > -av openssh" shows the (pie)-flag with round brackets around the "pie".) > No, it's because it's forced on in profiles. > > I need openssh with "static"-flag for my Initramfs, because lvm2 and > cryptsetup (both with USE="static static-libs") pull it in. Neither lvm2 nor cryptsetup depend on openssh at all, let alone openssh[static]. Are you setting USE=static in make.conf instead of package.use for specific packages...?
having IUSE=+pie just means that it defaults on, not that it cannot be disabled, and round brackets mean a masked flag, which is not appropriate in this situation # USE="static -pie" emerge -pv openssh The following REQUIRED_USE flag constraints are unsatisfied: static? ( !pam ) setting -pam shows that it wants static-libs on several packages, which then works; if there is a problem we're not seeing, can you show full output?