From 43983eb2024ec6b3280e6e06a6fb621ee3bb2a41 Mon Sep 17 00:00:00 2001 From: LOLi Date: Fri, 9 Mar 2018 22:51:31 +0100 Subject: [PATCH] Fix spl-kmod builds when using rpm >= 4.14 With rpm-software-management/rpm@5e94633 a package version containing invalid characters (most commonly a double '-') causes the kmod package generation to terminate with an error. This change takes advantage of the newly introduced rpm macro "_wrong_version_format_terminate_build" to allow kmod packages to be built. Reviewed-by: Brian Behlendorf Signed-off-by: loli10K Closes #691 --- config/spl-build.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/config/spl-build.m4 b/config/spl-build.m4 index 553b5d5..9c97e64 100644 --- a/config/spl-build.m4 +++ b/config/spl-build.m4 @@ -231,6 +231,7 @@ AC_DEFUN([SPL_AC_RPM], [ RPM_DEFINE_COMMON='--define "$(DEBUG_SPL) 1" --define "$(DEBUG_KMEM) 1" --define "$(DEBUG_KMEM_TRACKING) 1"' RPM_DEFINE_UTIL= RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"' + RPM_DEFINE_KMOD+=' --define "_wrong_version_format_terminate_build 0"' RPM_DEFINE_DKMS= SRPM_DEFINE_COMMON='--define "build_src_rpm 1"' -- 2.40.0