Whamcloud - gitweb
LU-14776 zfs: fix Ubuntu 20 HWE build issues
authorJames Simmons <jsimmons@infradead.org>
Tue, 31 Jan 2023 20:27:17 +0000 (12:27 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 16 Feb 2023 21:18:07 +0000 (21:18 +0000)
commit88da39dc7b60511e59901808433f338f1f32be41
treeac4ce3e8f2142e872bef3f844fe071a5a1840814
parentd107582d3de33cb03cc07334d83a7da6a97bbadf
LU-14776 zfs: fix Ubuntu 20 HWE build issues

With newer Ubuntu systems using ZFS dkms have the following build
errors:

    In file included from zfs/2.0.2/source/include/sys/arc.h:32,
                 from lustre/osd-zfs/osd_internal.h:50,
                 from lustre/osd-zfs/osd_handler.c:51:
    zfs/2.0.2/source/include/sys/zfs_context.h:45:10:
                 fatal error: sys/types.h: No such file or directory
    45 | #include <sys/types.h>
       |          ^~~~~~~~~~~~~
    compilation terminated.

This is due to layout of the tree containing the needed headers.
Include those paths in build system.

Lustre-change: https://review.whamcloud.com/44749
Lustre-commit: b1723622b88e693cac1d65bc317188f256a82558

Test-Parameters: trivial
Change-Id: I453830c4111ad88ec655d3d7d0ee51627331cb0b
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49854
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
config/lustre-build-linux.m4
lustre/osd-zfs/Makefile.in