app-crypt/adcli: Fix building when cross-compiling

Signed-off-by: Krzesimir Nowak <knowak@microsoft.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/1069
Merges: https://codeberg.org/gentoo/gentoo/pulls/1069
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Krzesimir Nowak
2026-06-05 13:10:17 +02:00
committed by Sam James
parent e89f60dba2
commit b368b8f232

View File

@@ -37,6 +37,14 @@ src_prepare() {
src_configure() {
# builds its own policy, no selinux until policies are official
local myconf="--disable-selinux-support"
# building selinux policies is explicitly disabled, but
# configure still checks for existence of
# /usr/share/selinux/devel/Makefile with AC_CHECK_FILE - this
# results in an error when cross-compiling:
#
# checking for /usr/share/selinux/devel/Makefile... configure:
# error: cannot check for file existence when cross compiling
local -x ac_cv_file__usr_share_selinux_devel_Makefile=no
econf \
${myconf} \
$(use_enable doc) \