From 77541932edb029ce2b6220e446914d33898ed40c Mon Sep 17 00:00:00 2001 From: Helmut Pozimski Date: Sun, 20 Jan 2019 16:59:46 +0100 Subject: [PATCH] autofs: fix cross --- srcpkgs/autofs/template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srcpkgs/autofs/template b/srcpkgs/autofs/template index 1a87a3f1794..27f992669e8 100644 --- a/srcpkgs/autofs/template +++ b/srcpkgs/autofs/template @@ -3,8 +3,8 @@ pkgname=autofs version=5.1.5 revision=1 build_style=gnu-configure -conf_files="/etc/autofs/*" configure_args="--with-libtirpc --with-mapdir=/etc/autofs --sbindir=/usr/bin" +conf_files="/etc/autofs/*" hostmakedepends="pkg-config flex kmod rpcgen" makedepends="libtirpc-devel libxml2-devel" short_desc="A kernel-based automounter for Linux" @@ -19,7 +19,9 @@ CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/gssglue -I${XBPS_CROSS_BASE}/usr/includ case "$XBPS_TARGET_MACHINE" in *-musl) # sssd cannot be built for musl ;; - *) makedepends+=" sssd-devel" + *) if [ -z "$CROSS_BUILD" ]; then + makedepends+=" sssd-devel" + fi ;; esac