From 050f5da63106e89ba11da3e5bac3f1e76209a3ef Mon Sep 17 00:00:00 2001 From: Gilles Buloz Date: Mon, 19 Oct 2020 18:52:40 +0200 Subject: RPM support: fixed broken build due to use of headers from kernel When building an RPM, --with-kerneldir is passed to ./configure. This adds the include path /lib/modules//build/include that may break the build but is not present when building with "make" so useless. For instance while building ipmi_sel.c with kernel 5.3.7-301.fc31.x86_64 : /lib/modules/5.3.7-301.fc31.x86_64/build/include/linux/stddef.h:11:2: error: expected identifier before numeric constant 11 | false = 0, | ^~~~~ Signed-off-by: Gilles Buloz --- control/ipmitool.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'control') diff --git a/control/ipmitool.spec.in b/control/ipmitool.spec.in index 6c62a7f..6b5127a 100644 --- a/control/ipmitool.spec.in +++ b/control/ipmitool.spec.in @@ -34,7 +34,7 @@ fi %setup %build -./configure --with-kerneldir \ +./configure \ --with-rpm-distro=@DISTRO@ \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ -- cgit v1.2.1