From eacd70d42f55c30d602c028b5b54c426a31a23df Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Tue, 5 Sep 2017 13:13:51 -0400 Subject: [PATCH] zfs: fix cross build --- srcpkgs/zfs/template | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srcpkgs/zfs/template b/srcpkgs/zfs/template index 98c46aefb6..59ee941142 100644 --- a/srcpkgs/zfs/template +++ b/srcpkgs/zfs/template @@ -23,9 +23,11 @@ dkms_modules="zfs ${version/r/-}" depends="dkms>=2.2.0.3_9 spl>=${version}" pre_configure() { + export CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/tirpc/" autoreconf -fi tar czf ../clean.tar.gz . } + post_install() { vlicense COPYRIGHT vlicense OPENSOLARIS.LICENSE @@ -37,6 +39,7 @@ post_install() { rm -rf ${DESTDIR}/usr/lib/systemd rm -rf ${DESTDIR}/usr/share/initramfs-tools } + zfs-devel_package() { depends="${sourcepkg}>=${version}_${revision}" short_desc="Z File System -- development files" @@ -46,6 +49,7 @@ zfs-devel_package() { vmove "usr/lib/*.so" } } + do_clean() { rm -f ../clean.tar.gz }