From 2c50512ad2c6a53964be82420b819406bae69a89 Mon Sep 17 00:00:00 2001 From: Damian Szuberski Date: Thu, 17 Nov 2022 03:27:53 +1000 Subject: [PATCH] Make autodetection disable pyzfs for kernel/srpm configurations Reviewed-by: Brian Behlendorf Reviewed-by: Richard Yao Signed-off-by: szubersk Closes #13394 Closes #14178 --- config/always-pyzfs.m4 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/always-pyzfs.m4 b/config/always-pyzfs.m4 index 00e5d0e2cb..efea49f5f0 100644 --- a/config/always-pyzfs.m4 +++ b/config/always-pyzfs.m4 @@ -46,6 +46,16 @@ AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_PYZFS], [ ]) AC_SUBST(DEFINE_PYZFS) + dnl # + dnl # Autodetection disables pyzfs if kernel or srpm config + dnl # + AS_IF([test "x$enable_pyzfs" = xcheck], [ + AS_IF([test "x$ZFS_CONFIG" = xkernel -o "x$ZFS_CONFIG" = xsrpm ], [ + enable_pyzfs=no + AC_MSG_NOTICE([Disabling pyzfs for kernel/srpm config]) + ]) + ]) + dnl # dnl # Python "packaging" (or, failing that, "distlib") module is required to build and install pyzfs dnl #