From b368b8f23245b5ccd7b511cc0ff48af0a4057cac Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Fri, 5 Jun 2026 13:10:17 +0200 Subject: [PATCH] app-crypt/adcli: Fix building when cross-compiling Signed-off-by: Krzesimir Nowak Part-of: https://codeberg.org/gentoo/gentoo/pulls/1069 Merges: https://codeberg.org/gentoo/gentoo/pulls/1069 Signed-off-by: Sam James --- app-crypt/adcli/adcli-0.9.3.1.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app-crypt/adcli/adcli-0.9.3.1.ebuild b/app-crypt/adcli/adcli-0.9.3.1.ebuild index 9beaaca620879..361c7c30fe389 100644 --- a/app-crypt/adcli/adcli-0.9.3.1.ebuild +++ b/app-crypt/adcli/adcli-0.9.3.1.ebuild @@ -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) \